:root {
    --primary: #0891b2;
    --secondary: #06b6d4;
    --accent: #f0f9ff;
    --highlight: #0ea5e9;
    --text: #1e293b;
    --text-light: #ffffff;
    --bg-light: #f8fafc;
    --medical-green: #10b981;
    --medical-blue: #3b82f6;
    --gradient-start: #0891b2;
    --gradient-end: #06b6d4;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text);
    background: linear-gradient(to bottom, #ffffff, #f0f9ff);
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.15);
    overflow: visible;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.025em;
}

.burger {
    display: none;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

nav.main-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    align-items: center;
}

nav.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav.main-nav li {
    margin: 0;
    padding: 0;
}

nav.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

nav.main-nav a:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

nav.main-nav a.active {
    background: white;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav.breadcrumbs {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text);
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
}

nav.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

nav.breadcrumbs a:hover {
    background: var(--accent);
    color: var(--highlight);
}

nav.breadcrumbs span {
    color: var(--text);
    font-weight: 600;
}

.hero {
    background: linear-gradient(135deg, #0891b2, #06b6d4, #0ea5e9);
    color: white;
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero input,
.hero select,
.hero button {
    padding: 0.85rem 1.2rem;
    margin: 0.5rem;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.hero input,
.hero select {
    background: white;
    color: var(--text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero button {
    background: white;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: var(--medical-green);
    color: white;
}

section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--highlight));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(8, 145, 178, 0.15);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.carousel {
    overflow-x: auto;
    white-space: nowrap;
    padding: 2rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--accent);
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-track {
    background: var(--accent);
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.carousel-item {
    display: inline-block;
    margin-right: 1.5rem;
    width: 250px;
    vertical-align: top;
}

.carousel-item.card {
    background: linear-gradient(145deg, #ffffff, #f0f9ff);
    border-top: 3px solid var(--medical-green);
}

.carousel-item.card h3 {
    color: var(--medical-green);
}

.carousel-item.card:hover {
    background: linear-gradient(145deg, #f0f9ff, #ffffff);
}

details {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

details:hover {
    box-shadow: 0 5px 20px rgba(8, 145, 178, 0.1);
    transform: translateX(5px);
}

details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary);
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

details summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

details p {
    margin-top: 1rem;
    color: var(--text);
    line-height: 1.8;
}

.form-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 3rem;
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(8, 145, 178, 0.1);
    border-top: 5px solid var(--primary);
}

.form-container label {
    display: block;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    text-align: left;
}

.form-container input,
.form-container select,
.form-container input[type="file"],
.form-container textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.form-container button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
    width: 100%;
    margin-top: 1rem;
}

.form-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.4);
}

.content {
    max-width: 900px;
    margin: auto;
    padding: 3rem 1rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

footer {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

footer nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0 0 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

footer nav li {
    margin: 0;
    padding: 0;
}

footer a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

footer a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

footer p {
    position: relative;
    z-index: 1;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

.cta {
    background: linear-gradient(135deg, var(--medical-green), #059669);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: white;
}

.required::after {
    content: '*';
    color: #ef4444;
    margin-left: 0.25rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .burger:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: white;
    }

    nav.main-nav {
        display: none !important;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 1.5rem 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    nav.main-nav.show {
        display: flex !important;
    }

    nav.main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    nav.main-nav a {
        padding: 0.8rem;
        margin: 0 1rem;
    }
    
    nav.breadcrumbs {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    footer nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    nav.main-nav a {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    nav.breadcrumbs {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    section {
        padding: 2rem 0.75rem;
    }

    .form-container {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    footer a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    display: block;
    transition: transform 0.3s ease;
}

.card:hover .post-thumbnail {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .post-thumbnail {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .post-thumbnail {
        height: 140px;
    }
}

.post-image-wrapper {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 15px;
}

.post-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.95), rgba(6, 182, 212, 0.95));
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 99999;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(10px);
}

#cookie-banner span {
    max-width: 80%;
}

#cookie-banner .cookie-link {
    color: #fbbf24;
    text-decoration: underline;
    font-weight: 500;
}

#cookie-banner button#accept-cookies {
    background-color: white;
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    margin-left: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#cookie-banner button#accept-cookies:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.message {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
}

.message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 2px solid #a7f3d0;
}

.message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 2px solid #fecaca;
}

.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden { display: none !important; }

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fee2e2;
    border-radius: 8px;
}

input.error, select.error, textarea.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

#form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 145, 178, 0.3);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

#form-overlay .loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#form-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 450px;
    text-align: center;
    border-top: 5px solid var(--primary);
}

#form-modal-message {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

#form-modal button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

#form-modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
}

.pagination {
    margin: 3rem 0;
    text-align: center;
}

.pagination__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pagination__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 1.25rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    background: white;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination__button:hover:not(.pagination__button--disabled):not(.pagination__button--active) {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

.pagination__button--active {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    cursor: default;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

.pagination__button--disabled {
    color: #94a3b8;
    border-color: #e2e8f0;
    background: #f8fafc;
    cursor: not-allowed;
    text-decoration: none;
    opacity: 0.5;
}

.pagination__button--dots {
    border: none;
    background: transparent;
    cursor: default;
    color: var(--text);
}

.pagination__button--prev,
.pagination__button--next {
    padding: 0 1.75rem;
    font-weight: 600;
}

.pagination__button:focus {
    outline: 3px solid rgba(8, 145, 178, 0.2);
    outline-offset: 2px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .pagination__button {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9rem;
    }

    .pagination__button--prev,
    .pagination__button--next {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .pagination__controls {
        gap: 0.5rem;
    }

    .pagination__button {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
        padding: 0 0.75rem;
    }
}