*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --light-blue-bg: #F0F5FA;
    --text-color: #1D2939;
    --subtle-text-color: #667085;
    --white: #FFFFFF;
    --border-color: #E4E7EC;
    --cta-blue-bg: #0056b3;
    --cta-light-blue: #007bff;
}

body {
    background-color: var(--white);
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body:not(.home) {
    background-color: var(--light-blue-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
}

nav ul li a {
    color: var(--subtle-text-color);
}

header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px; /* Ensure a consistent height for the header */
    box-sizing: border-box; /* Include padding and border in the height */
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px; /* Standard wider container */
    margin: 0 auto;
    padding: 15px 20px; /* New: take padding from header */
    height: 100%; /* Make main-nav fill the header height */
    box-sizing: border-box; /* Add box-sizing for consistency */
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-left .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
}

.nav-left .logo img {
    height: 60px;
    margin-right: 12px;
}







.nav-right {
    display: flex;
    align-items: center;
    gap: 30px; /* Gap between nav links and phone group */
    justify-content: flex-end;
}

.nav-right ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}


.nav-right ul li a {
    text-decoration: none;
    color: #364153; /* Specific color from user request */
    font-weight: normal; /* Not bold */
    font-size: 16px;
    transition: color 0.3s ease;
    font-family: 'Open Sans', sans-serif; /* Explicitly set sans-serif */
}

.nav-right ul li a:hover {
    color: #0084D1;
}

.nav-right .phone-number {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 16px;
}

.header-phone-icon {
    height: 18px;
    vertical-align: middle;
}

.phone-numbers-group {
    display: flex;
    align-items: center;
    gap: 5px; /* Adjust spacing between icon and numbers as needed */
}

/* General button styling */
.btn {
    padding: 18px 24px; /* Increased vertical padding */
    border: 2px solid; /* Increased border thickness */
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: normal;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #0084D1; /* New color */
    border-color: #0084D1; /* New color */
    color: var(--white);
}

.btn-primary:hover {
    background-color: #006BBF; /* Darken for hover */
    border-color: #006BBF; /* Darken for hover */
}

/* Burger menu (for mobile) */
.burger-menu {
    display: none; /* Hide on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Ensure it's above the mobile nav */
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.burger-menu.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.burger-menu.open span:nth-child(2) {
    opacity: 0;
}

.burger-menu.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.mobile-nav {
    display: none; /* Hide on desktop */
}

#hero {
    padding: 80px 0;
    background-color: var(--light-blue-bg);
}

.hero-container {
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 60px; /* Updated size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #101828; /* Specific color from user request */
    font-family: 'Open Sans', sans-serif; /* Changed from Montserrat to sans-serif */
}

.hero-content p {
    font-size: 18px;
    color: var(--subtle-text-color);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-secondary {
    background-color: var(--white);
    border-color: #0084D1; /* New border color */
    color: #0084D1; /* New text color */
}

.btn-secondary:hover {
    background-color: #F8F9FA;
}

.stats-container {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #0084D1;
}

.stat-description {
    font-size: 16px;
    color: var(--subtle-text-color);
}

.hero-image {
    flex: 0 0 40%;
    max-width: 40%;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 12px;
}

/* General Section Styling */
main section:not(#hero) {
    padding: 80px 0;
}

main section#privacy-policy,
main section#licenses-page,
main section#contract-page,
main section#doctor-profile {
    padding: 0;
}

section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #101828;
}

/* Advantages Section */
#advantages {
    padding: 80px 0;
}

.advantages-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.advantage-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    text-align: left;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.advantage-list .advantage-item:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.13);
    transform: scale(1.04) translateY(-6px);
    z-index: 1;
}

.advantage-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background-color: var(--light-blue-bg);
    transition: transform 0.3s ease;
}

.advantage-list .advantage-item:hover .advantage-icon-wrapper {
    transform: translateY(-8px) scale(1.12);
}

.advantage-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
    color: #101828;
    font-family: 'Open Sans', sans-serif;
}

.advantage-item p {
    font-size: 16px;
    color: #4A5565;
    margin-top: 0;
    font-family: 'Open Sans', sans-serif;
}

#services {
    background-color: var(--light-blue-bg);
    padding: 80px 0;
}

/* Services Section */
.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Changed to 3 explicit columns */
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    text-align: left;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-list .service-item:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
    transform: scale(1.04) translateY(-6px);
    z-index: 1;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background-color: var(--light-blue-bg);
    transition: transform 0.3s ease;
}

.service-list .service-item:hover .service-icon-wrapper {
    transform: translateY(-0.5px) scale(1.12);
}

.service-icon--blue   { background-color: #DBEAFE; }
.service-icon--green  { background-color: #DCFCE7; }
.service-icon--purple { background-color: #EDE9FE; }
.service-icon--yellow { background-color: #FEF9C3; }
.service-icon--pink   { background-color: #FCE7F3; }
.service-icon--red    { background-color: #FEE2E2; }

.service-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
    color: #101828;
    font-family: 'Open Sans', sans-serif;
}

.service-item p {
    font-size: 16px;
    color: #4A5565;
    margin-top: 0;
    font-family: 'Open Sans', sans-serif;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--subtle-text-color);
    margin-bottom: 30px;
}

/* Services page — Facts strip */
.services-facts {
    background-color: var(--white);
    padding: 56px 0;
    border-top: 1px solid var(--border-color);
}

.services-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background-color: var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.services-fact-item {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    text-align: center;
    transition: background-color 0.2s ease;
}

.services-fact-item:hover {
    background-color: #f5faff;
}

.fact-number {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #1b5be6, #60a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
    display: block;
}

.fact-label {
    font-size: 14px;
    color: var(--subtle-text-color);
    line-height: 1.4;
    display: block;
}

/* Services page — CTA banner */
.services-cta {
    background: linear-gradient(135deg, #1b5be6 0%, #3a7ef5 50%, #60a8ff 100%);
    padding: 80px 0;
}

.services-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.services-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.services-cta-title {
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.services-cta-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 28px;
}

.services-cta-perks {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.services-cta-perk {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.services-cta-perk svg {
    color: #7dd3fc;
    flex-shrink: 0;
}

.services-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #fff;
    color: #1b5be6;
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.services-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

@media (max-width: 956px) {
    .services-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-cta-title {
        font-size: 34px;
    }
}

@media (max-width: 480px) {
    .services-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fact-number {
        font-size: 32px;
    }

    .services-cta {
        padding: 56px 0;
    }

    .services-cta-title {
        font-size: 28px;
    }

    .services-cta-desc {
        font-size: 16px;
    }

    .services-cta-perks {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        width: 100%;
        padding: 0 8px;
    }
}

#doctors {
    background-color: var(--light-blue-bg);
    padding: 80px 0;
}

/* Doctors Section */

.doctor-slider {
    position: relative;
}

/* Default: grid for 4 and fewer doctors */
.doctor-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Slider mode: activated by JS when more than 4 doctors */
.doctor-slider.is-slider {
    overflow: hidden;
}

.doctor-slider.is-slider .doctor-list {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.prev-btn-doctor,
.next-btn-doctor {
    display: none; /* hidden by default, shown by JS in slider mode */
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 2;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.prev-btn-doctor:hover,
.next-btn-doctor:hover {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
}

.prev-btn-doctor { left: -14px; }
.next-btn-doctor { right: -14px; }

.doctor-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden; /* Ensures image corners are rounded */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Subtle shadow */
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.doctor-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.doctor-item img {
    width: 100%;
    height: 250px; /* Fixed height for images */
    object-fit: cover; /* Ensures image covers the area */
    object-position: top;
    border-radius: 12px 12px 0 0; /* Rounded top corners */
    margin-bottom: 20px;
}

.doctor-avatar {
    width: 100%;
    height: 250px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 700;
    color: white;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
}

.doctor-card-header {
    min-height: 100px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 24px 20px;
}

.doctor-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.doctor-card-initials {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 3px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

.doctor-card-body {
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.doctor-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    padding: 0;
}

.doctor-specialty {
    font-size: 14px;
    color: #0084D1;
    margin-bottom: 8px;
    padding: 0;
    line-height: 1.5;
}

.doctor-experience {
    font-size: 13px;
    color: var(--subtle-text-color);
    margin-bottom: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.doctor-more-btn {
    display: block;
    margin: auto 20px 20px;
    padding: 10px 0;
    text-align: center;
    background: #0084D1;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.doctor-more-btn:hover {
    background: #006BBF;
}

/* Contact Section */
#contact {
    background-color: var(--light-blue-bg);
    padding: 80px 0;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch; /* Align items to stretch to fill the grid area */
}

.contact-details-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
}

.contact-card-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-color: #EFF6FF;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    flex-shrink: 0;
    color: #1b5be6;
}

.contact-card-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 0;
}

.contact-card-text p {
    font-size: 14px;
    color: var(--subtle-text-color);
    margin-top: 0;
    margin-bottom: 0;
}

.contact-card-text p a {
    color: var(--subtle-text-color);
    text-decoration: none;
}

.contact-map-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px; /* Add some padding around the map */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}



/* Specific styling for the map inside the contact section if it was used */
#map {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 48px 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    align-items: flex-start;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 16px;
}

/* Block 1: Logo + clinic info */
.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-clinic-desc {
    font-size: 13px;
    color: var(--subtle-text-color);
    line-height: 1.65;
    margin-bottom: 16px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contacts a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-contacts a:hover {
    color: var(--cta-light-blue);
}

/* Block 2: Navigation */
.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav ul li a {
    color: var(--subtle-text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav ul li a:hover {
    color: var(--white);
}

/* Block 3: Legal links + accessibility */
.footer-legal-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-legal-links ul li a {
    color: var(--subtle-text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-legal-links ul li a:hover {
    color: var(--white);
}

#accessibility-btn {
    background: transparent;
    border: 1px solid var(--subtle-text-color);
    color: var(--white);
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

#accessibility-btn:hover {
    border-color: var(--white);
}

/* Block 4: Legal info */
.footer-legal-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--subtle-text-color);
    line-height: 1.6;
}

.footer-legal-info .disclaimer {
    font-style: italic;
    margin-top: 4px;
}

/* Privacy Policy Page */
#privacy-policy {
    padding: 0;
}

.privacy-hero {
    background: linear-gradient(135deg, var(--text-color) 0%, #1e3a5f 100%);
    color: var(--white);
    padding: 64px 20px;
    text-align: center;
}

.privacy-hero h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.privacy-meta {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}

.privacy-body {
    background: var(--light-blue-bg);
    padding: 56px 20px 80px;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 48px 56px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

.privacy-content h2 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0084D1;
    background: var(--light-blue-bg);
    border-left: 4px solid #0084D1;
    border-radius: 0 8px 8px 0;
    padding: 10px 16px;
    margin: 40px 0 18px;
}

.privacy-content h2:first-of-type {
    margin-top: 0;
}

.privacy-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #4A5565;
    margin-bottom: 10px;
}

.privacy-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.privacy-content ul li {
    font-size: 15px;
    line-height: 1.7;
    color: #4A5565;
    padding-left: 22px;
    position: relative;
}

.privacy-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #0084D1;
    opacity: 0.6;
}

.privacy-content a {
    color: #0084D1;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 132, 209, 0.3);
    transition: border-color 0.2s;
}

.privacy-content a:hover {
    border-color: #0084D1;
}

.privacy-content strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Licenses & Contract Pages */
#licenses-page,
#contract-page {
    padding: 0;
}

.licenses-layout {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* License card */
.license-card {
    background: var(--white);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.license-card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.license-icon-wrap {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--light-blue-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0084D1;
}

.license-card-label {
    font-size: 13px;
    color: var(--subtle-text-color);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.license-card-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
}

.license-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px 32px;
    margin-bottom: 28px;
}

.license-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.license-detail-label {
    font-size: 12px;
    color: var(--subtle-text-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.license-detail-value {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
}

.license-card-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.license-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #DCFCE7;
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
}

.license-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.license-download-btn:hover {
    border-color: #0084D1;
    color: #0084D1;
}

/* Info block */
.license-info-block {
    background: var(--white);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.license-info-block h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.license-info-block p {
    font-size: 15px;
    line-height: 1.8;
    color: #4A5565;
    margin-bottom: 14px;
}

.license-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FEF9C3;
    border: 1px solid #fde047;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 20px;
    color: #854d0e;
}

.license-disclaimer svg {
    flex-shrink: 0;
    margin-top: 2px;
    stroke: #ca8a04;
}

.license-disclaimer p {
    font-size: 14px;
    font-weight: 600;
    color: #854d0e;
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

/* Pricing Page */
#pricing {
    padding: 60px 20px;
}

.pricing-container {
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pricing-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.btn-download-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background-color: #0084D1;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.btn-download-price:hover {
    background-color: #006BBF;
}

.pricing-section {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 28px 20px;
    margin-bottom: 28px;
}

.pricing-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.pricing-search-wrap {
    position: relative;
    margin-bottom: 16px;
    max-width: 360px;
}

.pricing-search-wrap .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--subtle-text-color);
    pointer-events: none;
}

.pricing-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--light-blue-bg);
    transition: border-color 0.2s ease;
    outline: none;
}

.pricing-search-input:focus {
    border-color: #0084D1;
    background-color: var(--white);
}

.pricing-table-wrap {
    overflow-x: auto;
}

.pricing-section table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-section th,
.pricing-section td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    line-height: 1.5;
}

.pricing-section thead tr {
    background-color: var(--light-blue-bg);
}

.pricing-section th {
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.pricing-section tbody tr:last-child td {
    border-bottom: none;
}

.pricing-section tbody tr:hover {
    background-color: #f7fafd;
}

.pricing-section .col-code {
    width: 70px;
    color: var(--subtle-text-color);
}

.pricing-section td:first-child {
    color: var(--subtle-text-color);
    font-size: 13px;
}

.pricing-section .col-price {
    width: 160px;
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
}

.pricing-section td:last-child {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-no-results {
    text-align: center;
    padding: 20px 0 8px;
    color: var(--subtle-text-color);
    font-size: 14px;
}

@media (max-width: 956px) {
    .pricing-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-section {
        padding: 20px 16px 16px;
    }

    .pricing-search-wrap {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    #pricing {
        padding: 32px 12px;
    }

    .pricing-header h2 {
        font-size: 24px;
    }

    .pricing-section th,
    .pricing-section td {
        padding: 9px 10px;
        font-size: 13px;
    }
}

/* Reviews Section */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.review-item p {
    font-style: italic;
    margin-bottom: 15px;
}

.review-item span {
    font-weight: 600;
    color: #0084D1;
}

#review-sources {
    text-align: center;
}

.source-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* New button style for "Do not allow cookies" */
.btn-tertiary {
    background-color: transparent;
    border-color: var(--subtle-text-color);
    color: var(--white);
}

.btn-tertiary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1D2939; /* Dark background from design */
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* High z-index to ensure it's on top */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%); /* Start hidden */
    transition: transform 0.5s ease-out;
}

#cookie-banner.show {
    transform: translateY(0); /* Slide up to show */
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    max-width: 1280px;
    width: 100%;
    gap: 20px;
    position: relative;
}

.cookie-banner-content p {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: var(--white);
}

.cookie-banner-content p a {
    color: #0084D1; /* Link color */
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px;
    line-height: 1;
}


/* --- Free Consultation Section */
.cta-section {
    background: linear-gradient(135deg, #1b5be6 0%, #3a7ef5 50%, #60a8ff 100%);
    padding: 80px 0;
    color: var(--white);
}

.cta-section .content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Use 1fr 1fr for a 50/50 split */
    gap: 40px;
    align-items: center;
}

.cta-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-header {
    text-align: left;
}

.cta-header .offer-tag {
    display: inline-flex; /* Use inline-flex */
    align-items: center;
    gap: 8px; /* Add gap for icon */
    background-color: rgba(255, 255, 255, 0.1); /* Match image */
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.offer-tag-icon {
    height: 16px;
    width: 16px;
    flex-shrink: 0;
    color: var(--white);
}

.cta-header h2 {
    font-family: sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white); /* Ensure heading is white */
    text-align: left;
}

.cta-header p {
    font-family: sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #DBEAFE;
}

.cta-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.benefit-list li {
    font-size: 17px;
    color: var(--white);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-list .checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1;
    color: var(--white);
}

.cta-section .cta-button {
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 10px;
    background-color: #ffffff;
    color: #0056b3;
    border: 2px solid #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-section .cta-button:hover {
    background-color: #f0f7ff;
    border-color: #f0f7ff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-button .btn-icon {
    height: 18px;
    width: 18px;
    flex-shrink: 0;
    color: #0056b3;
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cta-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.cta-stats .stat-item:hover {
    transform: translateY(-6px);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.cta-stats .stat-number {
    display: block;
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.cta-stats .stat-description {
    display: block;
    font-size: 14px;
    color: var(--white);
    opacity: 0.85;
    line-height: 1.3;
}

/* Patient Reviews Section */
#patient-reviews {
    padding: 80px 0;
    background: #fff;
}

body:not(.home) #patient-reviews {
    background: var(--light-blue-bg);
}

.reviews-header {
    text-align: center;
    margin-bottom: 48px;
}

.reviews-quote-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #EFF6FF;
    margin-bottom: 20px;
    color: #1b5be6;
    font-size: 26px;
    line-height: 1;
}

#patient-reviews h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

#patient-reviews .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--subtle-text-color);
    margin-bottom: 0;
}

/* Slider */
.review-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}

.review-list {
    display: flex;
    width: 200%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-page {
    width: 50%;
    display: flex;
    gap: 24px;
    box-sizing: border-box;
}

.review-item {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.review-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.reviewer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.reviewer-details h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111827;
    word-break: break-word;
}

.review-item .star-rating {
    color: #FBBF24;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 1;
}

.review-quote-icon {
    font-size: 34px;
    color: #DBEAFE;
    line-height: 0.9;
    flex-shrink: 0;
    user-select: none;
}

.review-item p {
    font-size: 15px;
    line-height: 1.65;
    color: #4B5563;
    flex: 1;
    margin-bottom: 20px;
    font-style: italic;
}

.review-date {
    font-size: 13px;
    color: #9CA3AF;
    display: block;
}

/* Navigation arrows */
.review-prev-btn,
.review-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.review-prev-btn { left: -14px; }
.review-next-btn { right: -14px; }

.review-prev-btn:hover,
.review-next-btn:hover {
    background: #1b5be6;
    border-color: #1b5be6;
    color: #fff;
}

/* Dots */
.review-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.review-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    border: none;
}

.review-dot.active {
    background: #1b5be6;
    transform: scale(1.35);
}

/* Rating badge */
.review-footer {
    display: flex;
    justify-content: center;
}

.review-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 40px;
    padding: 12px 28px;
    font-size: 15px;
    color: #374151;
}

.review-rating-badge .badge-star {
    color: #FBBF24;
    font-size: 20px;
    line-height: 1;
}

.review-rating-badge strong {
    color: #111827;
}

/* --- Scroll-in Animations --- */

/* Initial state for all animated elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* State when the element becomes visible */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== Doctor Profile Page ===================== */

.doctor-profile-hero {
    background: linear-gradient(135deg, var(--text-color) 0%, #1e3a5f 100%);
    color: var(--white);
    padding: 56px 20px;
}

.doctor-profile-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.doctor-profile-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    width: fit-content;
}

.doctor-profile-back:hover {
    color: #fff;
}

.doctor-profile-main {
    display: flex;
    align-items: center;
    gap: 40px;
}

.doctor-profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    border: 4px solid rgba(255,255,255,0.2);
    letter-spacing: 1px;
}

.doctor-profile-info h1 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.doctor-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.doctor-profile-tag {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.doctor-profile-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.doctor-profile-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}

.doctor-profile-stat svg {
    flex-shrink: 0;
    color: rgba(255,255,255,0.5);
}

/* Profile body */
.doctor-profile-body {
    background: var(--light-blue-bg);
    padding: 56px 20px 80px;
}

.doctor-profile-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.doctor-block {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-color);
}

.doctor-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.doctor-block-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #EFF6FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1b5be6;
    flex-shrink: 0;
}

.doctor-block-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* Education timeline */
.doctor-edu-list {
    display: flex;
    flex-direction: column;
}

.doctor-edu-item {
    display: flex;
    gap: 14px;
    padding-bottom: 20px;
}

.doctor-edu-item:last-child {
    padding-bottom: 0;
}

.doctor-edu-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 10px;
}

.doctor-edu-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1b5be6;
    margin-top: 4px;
    flex-shrink: 0;
}

.doctor-edu-line {
    width: 2px;
    flex: 1;
    background: var(--border-color);
    margin-top: 4px;
    min-height: 12px;
}

.doctor-edu-item:last-child .doctor-edu-line {
    display: none;
}

.doctor-edu-year {
    font-size: 12px;
    font-weight: 700;
    color: #1b5be6;
    margin-bottom: 3px;
}

.doctor-edu-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
    line-height: 1.4;
}

.doctor-edu-desc {
    font-size: 13px;
    color: var(--subtle-text-color);
    line-height: 1.4;
}

/* Certificates */
.doctor-cert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doctor-cert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #F8FAFC;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.doctor-cert-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #DBEAFE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1b5be6;
    flex-shrink: 0;
}

.doctor-cert-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3px;
    line-height: 1.4;
}

.doctor-cert-year {
    font-size: 12px;
    color: var(--subtle-text-color);
}

/* --- Media Queries --- */

/* Tablet and Mobile Styles (max-width: 956px) */
@media (max-width: 956px) {
    .main-nav {
        padding: 0 15px;
        justify-content: space-between; /* Ensure logo left, burger right */
    }

    .nav-right { /* Hide the entire desktop nav-right */
        display: none;
    }

    .burger-menu {
        display: flex; /* Show the burger menu */
    }

    .mobile-nav {
        display: none; /* Hide by default */
        flex-direction: column;
        position: absolute;
        top: 80px; /* Below the header */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%); /* Start off-screen above */
        transition: transform 0.3s ease-out;
        z-index: 998; /* Below burger menu */
        align-items: center; /* Center items in mobile nav */
    }

    .mobile-nav.open {
        display: flex; /* Show only when 'open' class is present */
        transform: translateY(0); /* Slide down to show */
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0 0 20px 0; /* Add margin below list */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .mobile-nav ul li a {
        text-decoration: none;
        color: var(--text-color);
        font-size: 18px;
        padding: 10px 0;
        display: block;
        width: 100%;
        text-align: center;
    }

    .mobile-nav .phone-numbers-group {
        display: flex; /* Ensure phone numbers are displayed in mobile nav */
        flex-direction: column; /* Stack phone numbers vertically */
        align-items: center;
        gap: 10px;
        margin-top: 20px;
    }

    .mobile-nav .phone-numbers-group .phone-number {
        font-size: 18px;
        color: var(--text-color);
    }

    .mobile-nav .phone-numbers-group img {
        display: none; /* Hide phone icons in mobile menu, or style differently */
    }

    /* Hero Section */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-container {
        flex-direction: column;
        gap: 20px;
    }

    /* Advantages Section */
    .advantage-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Services Section */
    .service-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Doctors Section */
    .doctor-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctor-page {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact Section */
    .contact-content-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }

    .contact-map-container {
        height: 300px; /* Give the map a fixed height */
    }

    /* Free Consultation Section */
    .cta-section .content-wrapper {
        grid-template-columns: 1fr; /* Stack content on tablets */
        text-align: center; /* Center-align text for a cleaner look */
    }

    .cta-header {
        text-align: center; /* Center-align header content */
    }

    .cta-details {
        align-items: center; /* Center-align details content */
    }

    /* Privacy Policy & Licenses */
    .privacy-hero h1 {
        font-size: 30px;
    }

    .privacy-content {
        padding: 36px 28px;
    }

    .license-card,
    .license-info-block {
        padding: 28px 24px;
    }

    .license-details-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .review-quote-icon {
        display: none;
    }

    /* Doctor Profile */
    .doctor-profile-content {
        grid-template-columns: 1fr;
    }

    .doctor-profile-main {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .doctor-profile-tags {
        justify-content: center;
    }

    .doctor-profile-stats {
        justify-content: center;
    }
}

/* Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
    /* Reviews: stack cards vertically on mobile */
    .review-page {
        flex-direction: column;
        gap: 16px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-description {
        font-size: 14px;
    }

    .advantage-list,
    .service-list {
        grid-template-columns: 1fr;
    }

    .doctor-list,
    .doctor-page {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Free Consultation Section */
    .cta-header h2 {
        font-size: 36px;
    }

    .cta-header p {
        font-size: 16px;
    }

    .benefit-list li {
        font-size: 16px;
    }

    .cta-stats {
        grid-template-columns: 1fr; /* Stack stats on very small screens */
    }

    .cta-stats .stat-number {
        font-size: 32px;
    }

    .cta-stats .stat-description {
        font-size: 14px;
    }

    /* Patient Reviews Section */
    .review-page {
        gap: 12px;
    }

    .review-quote-icon {
        display: none;
    }

    #patient-reviews h2 {
        font-size: 28px;
    }

    #patient-reviews .section-subtitle {
        font-size: 16px;
    }

    /* Cookie Banner */
    .cookie-banner-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-buttons .btn {
        width: 100%;
    }

    .cookie-close-btn {
        position: static; /* Adjust position for mobile */
        transform: none;
        margin-top: 10px;
    }

    /* Privacy Policy & Licenses */
    .privacy-hero {
        padding: 48px 20px;
    }

    .privacy-hero h1 {
        font-size: 24px;
    }

    .privacy-body {
        padding: 32px 16px 56px;
    }

    .privacy-content {
        padding: 28px 20px;
    }

    .license-card,
    .license-info-block {
        padding: 24px 16px;
    }

    .license-card-header {
        flex-direction: column;
        gap: 14px;
    }

    .license-details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .license-card-number {
        font-size: 17px;
    }

    /* Doctor Profile mobile */
    .doctor-profile-hero {
        padding: 40px 16px;
    }

    .doctor-profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 30px;
    }

    .doctor-profile-info h1 {
        font-size: 22px;
    }

    .doctor-block {
        padding: 24px 16px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Desktop Styles (min-width: 957px) */
@media (min-width: 957px) {
    .main-nav .nav-right {
        display: flex; /* Ensure desktop nav is visible */
    }

    .burger-menu,
    .mobile-nav {
        display: none; /* Ensure mobile elements are hidden */
    }
}

/* =============================================================
   ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ  —  ГОСТ Р 52872-2012
   ============================================================= */

/* --- Панель управления --- */
#a11y-panel {
    position: sticky;
    top: 80px;
    z-index: 990;
    background-color: #1a2535;
    border-bottom: 3px solid #0084D1;
    display: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

body.a11y-mode #a11y-panel {
    display: block;
}

.a11y-panel-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.a11y-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    opacity: 0.85;
}

.a11y-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.a11y-group-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    margin-right: 2px;
}

/* Базовая кнопка-опция */
.a11y-opt {
    height: 30px;
    min-width: 36px;
    padding: 0 9px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    line-height: 1;
}

.a11y-opt:hover {
    background: rgba(255, 255, 255, 0.16);
}

.a11y-opt.active {
    background: #0084D1;
    border-color: #0084D1;
}

/* Кнопки цветовых схем */
.a11y-theme-btn[data-theme="white-black"] { background: #fff;     color: #000; border-color: rgba(255,255,255,0.4); }
.a11y-theme-btn[data-theme="black-white"] { background: #000;     color: #fff; border-color: rgba(255,255,255,0.2); }
.a11y-theme-btn[data-theme="black-yellow"]{ background: #111100;  color: #ff0; border-color: #ff0; }
.a11y-theme-btn[data-theme="blue-yellow"] { background: #003399;  color: #ff0; border-color: #ff0; }

.a11y-theme-btn:hover,
.a11y-theme-btn[data-theme="white-black"].active { background: #fff;    color: #000; outline: 2px solid #5bc0f8; outline-offset: 2px; }
.a11y-theme-btn[data-theme="black-white"].active  { background: #000;    color: #fff; outline: 2px solid #5bc0f8; outline-offset: 2px; }
.a11y-theme-btn[data-theme="black-yellow"].active { background: #111100; color: #ff0; outline: 2px solid #5bc0f8; outline-offset: 2px; }
.a11y-theme-btn[data-theme="blue-yellow"].active  { background: #003399; color: #ff0; outline: 2px solid #5bc0f8; outline-offset: 2px; }

/* Действия */
.a11y-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.a11y-reset-btn {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0 12px;
    height: 28px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
}

.a11y-reset-btn:hover { background: rgba(255, 255, 255, 0.08); }

.a11y-close-btn {
    font-size: 12px;
    color: #fff;
    background: rgba(220, 50, 50, 0.22);
    border: 1px solid rgba(220, 80, 80, 0.4);
    padding: 0 12px;
    height: 28px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Open Sans', sans-serif;
}

.a11y-close-btn:hover { background: rgba(220, 50, 50, 0.42); }

/* --- Цветовые схемы --- */
body.a11y-mode[data-a11y-theme="white-black"] { --a11y-bg: #fff;    --a11y-fg: #000;    --a11y-bd: #555; }
body.a11y-mode[data-a11y-theme="black-white"] { --a11y-bg: #000;    --a11y-fg: #fff;    --a11y-bd: #777; }
body.a11y-mode[data-a11y-theme="black-yellow"]{ --a11y-bg: #000;    --a11y-fg: #ffff00; --a11y-bd: #ffff00; }
body.a11y-mode[data-a11y-theme="blue-yellow"] { --a11y-bg: #003399; --a11y-fg: #ffff00; --a11y-bd: #ffff00; }

/* Применить тему ко всему контенту */
body.a11y-mode * {
    background-color: var(--a11y-bg, #fff) !important;
    color:            var(--a11y-fg, #000) !important;
    border-color:     var(--a11y-bd, #555) !important;
    background-image: none !important;
    box-shadow:       none !important;
    text-shadow:      none !important;
    transition:       none !important;
}

body.a11y-mode img {
    background-color: transparent !important;
}

/* Восстановить панель (ID > class, победит !important с высокой специфичностью) */
#a11y-panel { background-color: #1a2535 !important; border-color: #0084D1 !important; }

#a11y-panel * {
    background-color: transparent !important;
    color:            #fff         !important;
    border-color:     transparent  !important;
    box-shadow:       none         !important;
    background-image: none         !important;
    font-size:        13px         !important;
    letter-spacing:   normal       !important;
    word-spacing:     normal       !important;
    line-height:      normal       !important;
}

#a11y-panel .a11y-opt               { background-color: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.2) !important; }
#a11y-panel .a11y-opt.active        { background-color: #0084D1 !important; border-color: #0084D1 !important; }
#a11y-panel .a11y-opt:hover:not(.active) { background-color: rgba(255,255,255,0.16) !important; }

#a11y-panel .a11y-theme-btn[data-theme="white-black"] { background-color: #fff    !important; color: #000  !important; border-color: rgba(255,255,255,0.4) !important; }
#a11y-panel .a11y-theme-btn[data-theme="black-white"] { background-color: #000    !important; color: #fff  !important; border-color: rgba(255,255,255,0.2) !important; }
#a11y-panel .a11y-theme-btn[data-theme="black-yellow"]{ background-color: #111100 !important; color: #ff0  !important; border-color: #ff0 !important; }
#a11y-panel .a11y-theme-btn[data-theme="blue-yellow"] { background-color: #003399 !important; color: #ff0  !important; border-color: #ff0 !important; }
#a11y-panel .a11y-theme-btn.active  { outline: 2px solid #5bc0f8; outline-offset: 2px; }

#a11y-panel .a11y-reset-btn  { color: rgba(255,255,255,0.65) !important; border-color: rgba(255,255,255,0.22) !important; }
#a11y-panel .a11y-close-btn  { color: #fff !important; background-color: rgba(220,50,50,0.22) !important; border-color: rgba(220,80,80,0.4) !important; }
#a11y-panel .a11y-group-label { color: rgba(255,255,255,0.55) !important; }
#a11y-panel .a11y-panel-title { color: #fff !important; opacity: 0.85; }

/* --- Размер шрифта (применяется до панели, панель сбрасывает через #id) --- */
body.a11y-mode[data-a11y-size="large"]  * { font-size: 20px !important; }
body.a11y-mode[data-a11y-size="xlarge"] * { font-size: 24px !important; }

/* --- Межбуквенный интервал и межстрочный --- */
body.a11y-mode[data-a11y-spacing="medium"] * {
    letter-spacing: 0.1em  !important;
    word-spacing:   0.2em  !important;
    line-height:    1.9    !important;
}
body.a11y-mode[data-a11y-spacing="large"] * {
    letter-spacing: 0.16em !important;
    word-spacing:   0.3em  !important;
    line-height:    2.1    !important;
}

/* --- Изображения --- */
body.a11y-mode[data-a11y-images="hide"] img {
    visibility: hidden !important;
}

/* --- Адаптив панели --- */
@media (max-width: 768px) {
    .a11y-panel-inner {
        gap: 10px;
        padding: 8px 16px;
    }
    .a11y-panel-title { display: none; }
    .a11y-actions { margin-left: 0; }
}