/* =========================
   GLOBAL
========================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f3efe7;
    color: #183f3b;
}


/* =========================
   BRAND / TEXT IDENTITY
========================= */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: inherit;
}
.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #183f3b;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 14px;
    margin-top: 3px;
    color: #60706c;
    line-height: 1.1;
}


/* =========================
   TOP NAVIGATION
========================= */
.menu-toggle {
    display: none;

    background: none;
    border: none;

    font-size: 30px;

    color: #183f3b;

    cursor: pointer;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 32px 8%;

    background-color: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid #dddddd;

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
}

nav a {
    text-decoration: none;

    color: #183f3b;

    margin-left: 28px;

    font-weight: 600;

    position: relative;

    padding-bottom: 6px;
}

nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background-color: #b08b42;

    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}


/* =========================
   HERO SECTION
========================= */

.hero {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 60px;

    align-items: center;

    padding: 90px 10%;

    max-width: none;

    background-color: #f3efe7;
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    font-size: 52px;

    margin-top: 10px;
    margin-bottom: 10px;

    line-height: 1.05;
}

.hero h2 {
    font-size: 30px;

    font-weight: 500;

    color: #315952;

    margin-bottom: 25px;
}

.intro {
    font-size: 21px;

    line-height: 1.7;

    max-width: 720px;

    color: #4a5d59;
}

.hero-image {
    display: flex;

    justify-content: center;

    align-items: center;
}

.hero-doctor-photo {
    width: 100%;

    max-width: 390px;

    height: 480px;

    object-fit: cover;

    object-position: center;

    border-radius: 22px;

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}


/* =========================
   BUTTONS
========================= */

.buttons {
    margin-top: 35px;
}

.primary-button,
.secondary-button,
.call-button {
    display: inline-block;

    padding: 16px 28px;

    margin-right: 15px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                background-color 0.2s ease,
                color 0.2s ease;
}


/* PRIMARY BUTTON */

.primary-button {
    background-color: #8b2f2f;
    color: white;
}

.primary-button:hover {
    transform: translateY(-3px);

    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
}


/* SECONDARY BUTTON */

.secondary-button {
    border: 2px solid #126b63;
    color: #126b63;
}

.secondary-button:hover {
    transform: translateY(-3px);

    background-color: #126b63;
    color: white;
}


/* =========================
   ABOUT SECTION
========================= */

.about {
    display: grid;

    grid-template-columns: 1fr 1.4fr;

    gap: 60px;

    align-items: center;

    padding: 90px 10%;

    background-color: #f8f7f2;
}

.about-image {
    display: flex;
    justify-content: center;
}

.doctor-photo {
    width: 100%;
    max-width: 380px;
    height: 470px;

    object-fit: cover;
    object-position: center;

    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.clinic-photo {
    width: 100%;
    max-width: 480px;
    height: 360px;

    object-fit: cover;
    object-position: center;

    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.about-content h2 {
    font-size: 42px;

    margin-top: 5px;
    margin-bottom: 8px;
}

.about-content h3 {
    font-size: 22px;

    color: #315952;

    margin-top: 0;
}

.about-content p {
    font-size: 18px;

    line-height: 1.7;

    color: #4a5d59;
}

.about-details {
    margin-top: 30px;

    display: grid;

    gap: 18px;
}

.about-details div {
    display: flex;

    flex-direction: column;

    padding-bottom: 15px;

    border-bottom: 1px solid #d7dfdc;
}

.about-details strong {
    margin-bottom: 5px;

    color: #183f3b;
}

.about-details span {
    color: #60706c;
}


/* =========================
   CREDENTIALS
========================= */

.credentials {
    padding: 80px 10%;
    background-color: #183f3b;
    color: white;
}

.credentials .small-heading {
    color: #d3b56d;
}

.credentials h2 {
    font-size: 38px;
    margin-top: 8px;
    margin-bottom: 40px;
    color: white;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.credential-card {
    height: 430px;
    box-sizing: border-box;

    padding: 30px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;

    background-color: rgba(255, 255, 255, 0.05);

    transition: transform 0.25s ease;
}

.credential-card:hover {
    transform: translateY(-6px);
}

.credential-card h3 {
    margin-top: 0;

    font-size: 21px;

    color: #d3b56d;
}

.credential-card p {
    color: #e2e8e6;

    line-height: 1.6;

    margin: 8px 0;
}


/* PROFESSIONAL EXPERIENCE CARD */

.experience-card {
    overflow-y: auto;

    padding-right: 20px;
}


/* SCROLLBAR */

.experience-card::-webkit-scrollbar {
    width: 6px;
}

.experience-card::-webkit-scrollbar-track {
    background: transparent;
}

.experience-card::-webkit-scrollbar-thumb {
    background-color: #b08b42;

    border-radius: 10px;
}


/* =========================
   EXPERTISE
========================= */

.expertise {
    padding: 80px 10%;
    background-color: white;
}

.expertise h2 {
    font-size: 38px;
    margin-top: 8px;
    margin-bottom: 35px;
}

.expertise-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid #cfd8d5;
    border-left: 1px solid #cfd8d5;
}

.expertise-box {
    padding: 30px 25px;

    border-right: 1px solid #cfd8d5;
    border-bottom: 1px solid #cfd8d5;

    background-color: #fbfcfb;
}

.expertise-box h3 {
    margin-top: 0;
    margin-bottom: 18px;

    font-size: 21px;
    color: #183f3b;
}

.expertise-box ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.expertise-box li {
    position: relative;

    padding-left: 18px;
    margin-bottom: 12px;

    line-height: 1.5;
    color: #4a5d59;
}

.expertise-box li::before {
    content: "–";

    position: absolute;
    left: 0;

    color: #b08b42;
}

/* =========================
   PATIENT EDUCATION REGIONS
========================= */

.education {
    padding: 80px 10%;
    background-color: #f3efe7;
}

.region-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 22px;

    margin-top: 35px;
}

.region-card {
    display: block;

    padding: 28px;

    background-color: white;

    border: 1px solid #d8dfdc;

    border-radius: 14px;

    text-decoration: none;

    color: #183f3b;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.region-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
}

.region-card h3 {
    margin-top: 0;
    margin-bottom: 12px;

    font-size: 23px;
}

.region-card p {
    color: #4a5d59;

    line-height: 1.6;

    min-height: 52px;
}

.region-card span {
    color: #126b63;

    font-weight: 700;
}

/* =========================
   GENERAL ORTHOPAEDIC GUIDANCE
========================= */

.general-guidance {
    margin-top: 45px;
    margin-bottom: 55px;
}


/* NON-SURGICAL REASSURANCE */

.reassurance-box {
    padding: 38px 40px;

    background-color: #e8f2ef;

    border: 1px solid #d1e2dd;
    border-radius: 16px;

    margin-bottom: 40px;
}

.reassurance-box h2 {
    margin-top: 0;
    margin-bottom: 5px;

    font-size: 30px;

    color: #183f3b;
}

.reassurance-box h3 {
    margin-top: 0;
    margin-bottom: 22px;

    font-size: 19px;
    font-weight: 600;

    color: #60706c;
}

.reassurance-box p {
    max-width: 1000px;

    line-height: 1.75;

    color: #4a5d59;
}

.reassurance-highlight {
    margin-top: 25px;

    padding: 18px 22px;

    background-color: white;

    border-left: 4px solid #126b63;
    border-radius: 8px;

    font-size: 18px;
    font-weight: 700;

    color: #183f3b !important;
}


/* URGENT SECTION */

.urgent-guidance {
    padding: 38px 40px;

    background-color: #fff8f8;

    border: 1px solid #e6c4c4;
    border-radius: 16px;
}

.urgent-guidance-heading {
    max-width: 950px;

    margin-bottom: 30px;
}

.urgent-label {
    display: inline-block;

    margin: 0 0 10px;
    padding: 7px 14px;

    background-color: #8b2f2f;

    color: #ffffff !important;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.urgent-guidance h2 {
    margin-top: 0;
    margin-bottom: 12px;

    font-size: 28px;

    color: #8b2f2f;
}

.urgent-guidance-heading p {
    line-height: 1.7;

    color: #604747;
}


/* INDIVIDUAL RED FLAG BOXES */

.urgent-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;
}

.red-flag-card {
    padding: 20px 22px;

    background-color: #fff;

    border: 1px solid #e5bcbc;
    border-left: 5px solid #8b2f2f;

    border-radius: 10px;
}

.red-flag-card strong {
    display: block;

    margin-bottom: 8px;

    font-size: 16px;

    color: #8b2f2f;
}

.red-flag-card p {
    margin: 0;

    line-height: 1.6;

    color: #594747;
}

.urgent-final-message {
    margin-top: 25px;
    margin-bottom: 0;

    padding-top: 20px;

    border-top: 1px solid #e5c6c6;

    font-weight: 700;

    color: #8b2f2f;
}

/* =========================
   CONTACT & APPOINTMENTS
========================= */

.contact {
    padding: 80px 10%;
    background-color: #ffffff;
}

.contact h2 {
    margin-top: 8px;
    margin-bottom: 12px;

    font-size: 38px;

    color: #183f3b;
}

.contact-intro {
    margin-bottom: 38px;

    font-size: 18px;
    line-height: 1.7;

    color: #4a5d59;
}

.contact-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;
}

.contact-card {
    padding: 28px 24px;

    background-color: #f8f7f2;

    border: 1px solid #d8dfdc;
    border-radius: 16px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.contact-icon {
    margin-bottom: 15px;

    font-size: 28px;
}

.contact-card h3 {
    margin-top: 0;
    margin-bottom: 15px;

    font-size: 21px;

    color: #183f3b;
}

.contact-card p {
    color: #4a5d59;

    line-height: 1.65;
}

.contact-link {
    color: #126b63;

    font-weight: 700;

    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 14px;

    color: #60706c;
}

.whatsapp-button {
    display: inline-block;

    margin-top: 10px;

    padding: 13px 18px;

    background-color: #183f3b;

    color: white;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 700;
}

.whatsapp-button:hover {
    opacity: 0.9;
}
/* =========================
   FOOTER
========================= */

.footer {
    padding: 60px 10% 25px;

    background-color: #102f2c;

    color: white;
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 50px;
}
.footer-brand h3 {
    font-size: 22px;

    margin-bottom: 8px;
}

.footer-brand p {
    color: #c9d4d1;

    line-height: 1.6;
}

.footer-links {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.footer-links h3 {
    margin-top: 0;

    color: #d3b56d;
}

.footer-links a {
    color: #dbe5e2;

    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 45px;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);

    color: #aebfbb;

    font-size: 13px;
}

.medical-disclaimer {
    max-width: 750px;

    line-height: 1.6;
}

/* =========================
   ARTICLE PAGES
========================= */

.article-page {
    max-width: 850px;

    margin: 0 auto;

    padding: 80px 8%;
}

.article-page h1 {
    font-size: 50px;

    margin-top: 10px;
    margin-bottom: 20px;
}

.article-intro {
    font-size: 21px;

    line-height: 1.7;

    color: #4a5d59;

    margin-bottom: 45px;
}

.article-page h2 {
    font-size: 27px;

    margin-top: 40px;

    color: #183f3b;
}

.article-page p {
    font-size: 18px;

    line-height: 1.8;

    color: #4a5d59;
}

.article-buttons {
    margin-top: 50px;
}

/* =========================
   SYMPTOM / REGION PAGES
========================= */

.symptom-page {
    max-width: 950px;

    margin: 0 auto;

    padding: 75px 8%;
}

.symptom-page h1 {
    font-size: 48px;

    margin-top: 8px;
    margin-bottom: 18px;
}

.symptom-intro {
    max-width: 760px;

    font-size: 19px;

    line-height: 1.7;

    color: #4a5d59;

    margin-bottom: 25px;
}

.accordion-help {
    font-size: 14px;
    color: #71817d;
    margin-bottom: 25px;
}

.symptom-item[open] > summary {
    color: #126b63;
    background-color: #f4f8f7;

    border: 1px solid #e0ebe8;
    border-radius: 10px;

    padding-left: 15px;
    padding-right: 15px;
}


/* LANGUAGE */

.language-links {
    display: flex;

    gap: 18px;

    margin: 25px 0 40px;
}

.language-links a,
.active-language {
    font-weight: 600;

    text-decoration: none;
}

.active-language {
    color: #b08b42;
}

.language-links a {
    color: #126b63;
}


/* SYMPTOM ACCORDION */

.symptom-item {
    border-top: 1px solid #d0d9d6;
}

.symptom-item:last-of-type {
    border-bottom: 1px solid #d0d9d6;
}

.symptom-item summary {
    padding: 24px 5px;

    cursor: pointer;

    font-size: 20px;

    font-weight: 700;

    color: #183f3b;

    list-style: none;
}

.symptom-item summary::-webkit-details-marker {
    display: none;
}

.symptom-item summary::after {
    content: "+";

    float: right;

    font-size: 25px;

    color: #b08b42;
}

.symptom-item[open] summary::after {
    content: "−";
}

.symptom-content {
    padding: 5px 5px 35px;

    color: #4a5d59;
}

.symptom-content h3 {
    margin-top: 30px;

    color: #183f3b;

    font-size: 18px;
}

.symptom-content li {
    margin-bottom: 10px;

    line-height: 1.65;
}

.symptom-content p {
    line-height: 1.7;
}


/* URGENT INFORMATION */

.urgent-box {
    margin-top: 30px;

    padding: 20px 24px;

    border-left: 4px solid #8b2f2f;

    background-color: #f8eeee;

    border-radius: 4px;
}

.urgent-box h3 {
    margin-top: 0;

    color: #8b2f2f;
}


/* WHAT TO EXPECT */

.visit-expectation {
    margin-top: 60px;

    padding: 40px;

    background-color: #e8f2ef;

    border-radius: 14px;
}

.visit-expectation h2 {
    margin-top: 5px;
}

.visit-expectation li {
    margin-bottom: 12px;

    line-height: 1.7;
}


/* DISCLAIMER */

.patient-note {
    margin-top: 35px;

    padding: 30px;

    border: 1px solid #d7dfdc;

    border-radius: 12px;
}

.patient-note h2 {
    margin-top: 0;

    font-size: 23px;
}

.patient-note p {
    line-height: 1.7;

    color: #60706c;
}

/* =========================
   SPINE PAGE TEXT SIZE
========================= */

.symptom-intro,
.treatment-note p,
.treatment-highlight {
    font-size: 18px;
    line-height: 1.7;
}


/* Only "Select a symptom..." is bold */

.accordion-help {
    font-size: 18px;
    line-height: 1.7;
    font-weight: 700;
    color: #183f3b !important;
}

/* =========================
   CPR STEPS BOX
========================= */

.cpr-steps {
    background-color: #fff1f1;
    border: 1px solid #e3bcbc;
    border-left: 5px solid #9b2c2c;

    border-radius: 14px;

    padding: 22px 28px;
    margin: 22px 0;
}

.cpr-steps ol {
    margin: 0;
    padding-left: 24px;
}

.cpr-steps li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.cpr-steps li:last-child {
    margin-bottom: 0;
}

/* =========================
   DIABETIC FOOT WARNING
========================= */

.diabetic-foot-warning {
    background-color: #fff1f1;
    border: 1px solid #e3bcbc;
    border-left: 5px solid #9b2c2c;
    border-radius: 14px;

    padding: 20px 24px;
    margin: 22px 0 28px;
}

.diabetic-foot-warning strong {
    display: block;
    color: #8b2f2f;
    font-size: 19px;
    margin-bottom: 8px;
}

.diabetic-foot-warning p {
    margin: 0;
    line-height: 1.7;
}

/* =========================
   BACK TO TOP BUTTON
========================= */

.back-to-top {
    position: fixed;

    right: 28px;
    bottom: 28px;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background-color: #183f3b;
    color: white;

    font-size: 24px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    background-color: #126b63;
}

/* =========================
   ACADEMIC & PROFESSIONAL PROFILE
========================= */

.academic-profile {
    padding: 80px 10%;
    background-color: #f5f2eb;
}

.academic-profile h2 {
    margin-top: 8px;
    margin-bottom: 12px;

    font-size: 36px;

    color: #183f3b;
}

.academic-intro {
    max-width: 850px;

    margin-bottom: 38px;

    font-size: 18px;
    line-height: 1.7;

    color: #4a5d59;
}


.academic-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 24px;
}


.academic-card {
    padding: 26px 28px;

    background-color: #ffffff;

    border: 1px solid #d8dfdc;
    border-radius: 14px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);

    height: 430px;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: #9aaba6 transparent;
}


.academic-card h3 {
    margin-top: 0;
    margin-bottom: 24px;

    font-size: 22px;

    color: #183f3b;
}


.academic-item {
    padding-bottom: 16px;
    margin-bottom: 16px;

    border-bottom: 1px solid #e3e8e6;
}


.academic-item strong {
    display: block;

    margin-bottom: 6px;

    color: #183f3b;

    line-height: 1.45;
}


.academic-item p {
    margin: 0;

    color: #5b6b67;

    line-height: 1.6;
}


.academic-more {
    display: block;
}


.academic-card::-webkit-scrollbar {
    width: 6px;
}

.academic-card::-webkit-scrollbar-track {
    background: transparent;
}

.academic-card::-webkit-scrollbar-thumb {
    background-color: #aab8b4;
    border-radius: 10px;
}

.academic-card::-webkit-scrollbar-thumb:hover {
    background-color: #183f3b;
}


.membership-list p {
    margin: 0 0 14px;

    padding-bottom: 12px;

    border-bottom: 1px solid #e3e8e6;

    color: #183f3b;

    line-height: 1.5;
}


.membership-list p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* =========================
MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

    /* =========================
       MOBILE HEADER
    ========================= */

    .topbar {
        position: sticky;
        top: 0;
        z-index: 5000;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        width: 100%;

        padding: 12px 16px;

        background-color: rgba(255, 255, 255, 0.98);

        box-sizing: border-box;
    }


    /* BRAND AREA */

    .brand {
        flex: 1;
        min-width: 0;

        margin-right: 52px;
    }

    .brand-link {
        display: flex;
        align-items: center;

        width: 100%;

        text-decoration: none;
    }
.brand-text {
        flex: 1;
        min-width: 0;
    }

    .brand-name {
        font-size: 20px;
        line-height: 1.1;
        font-weight: 700;

        color: #183f3b;

        white-space: nowrap;
    }

    .brand-tagline {
        margin-top: 3px;

        max-width: 230px;

        font-size: 11px;
        line-height: 1.25;

        color: #5b6b67;

        white-space: normal;
    }


    /* HAMBURGER */

    .menu-toggle {
        display: flex;

        position: absolute;

        right: 14px;
        top: 50%;

        transform: translateY(-50%);

        width: 40px;
        height: 40px;

        align-items: center;
        justify-content: center;

        padding: 0;

        border: none;

        background: transparent;

        color: #183f3b;

        font-size: 30px;
        line-height: 1;

        cursor: pointer;

        z-index: 5100;
    }


    /* MOBILE NAVIGATION */

    nav {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        margin: 0;

        padding: 0 16px 12px;

        flex-direction: column;

        background-color: white;

        box-sizing: border-box;

        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    }

    nav.show {
        display: flex;
    }

    nav a {
        display: block;

        width: 100%;

        margin: 0;

        padding: 14px 0;

        border-top: 1px solid #eeeeee;

        color: #183f3b;

        text-decoration: none;
    }


    /* HERO */

    .hero {
        grid-template-columns: 1fr;
        padding: 55px 6%;
        gap: 35px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .intro {
        font-size: 18px;
    }

    .hero-image {
        order: -1;
    }

    .hero-doctor-photo {
        max-width: 320px;
        height: 390px;
    }


    /* BUTTONS */

    .buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .primary-button,
    .secondary-button,
    .call-button {
        margin-right: 0;
        text-align: center;
    }


    /* ABOUT */

    .about {
        grid-template-columns: 1fr;
        padding: 60px 6%;
        gap: 35px;
    }

    .clinic-photo {
        max-width: 100%;
        height: 280px;
    }

    .about-content h2 {
        font-size: 32px;
    }


    /* CREDENTIALS */

    .credentials {
        padding: 55px 6%;
    }

    .credentials-grid {
        grid-template-columns: 1fr;
    }

    .credentials h2 {
        font-size: 30px;
    }

/* Allow credential cards to expand normally on mobile */

    .credential-card {
        height: auto;
    }

/* Remove internal scrolling from Professional Experience on mobile */

    .experience-card {
        overflow-y: visible;
        max-height: none;
    }


    /* EXPERTISE */

    .expertise {
        padding: 80px 10%;
    }

    .expertise-table {
        grid-template-columns: 1fr;
    }

    .expertise h2 {
        font-size: 30px;
    }

    .expertise-box {
        padding: 24px 20px;
    }


    /* CONTACT */

    .contact {
        padding: 55px 6%;
    }

    .contact h2 {
        font-size: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 22px 20px;
    }


    /* FOOTER */

    .footer {
        padding: 45px 6% 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
/* ARTICLE PAGES */

    .article-page {
        padding: 55px 6%;
    }

    .article-page h1 {
        font-size: 36px;
    }

    .article-intro {
        font-size: 18px;
    }

    .article-page h2 {
        font-size: 24px;
    }

    .article-page p {
        font-size: 17px;
    }

    .article-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

        /* SYMPTOM / REGION PAGES */

    .symptom-page {
        padding: 50px 6%;
    }

    .symptom-page h1 {
        font-size: 35px;
    }

    .symptom-intro {
        font-size: 17px;
    }

    .symptom-item summary {
        font-size: 18px;
    }

    .visit-expectation {
        padding: 25px 20px;
    }

    .patient-note {
        padding: 22px 18px;
    }

    .symptom-page {
        padding: 50px 6%;
    }

    .symptom-page h1 {
        font-size: 35px;
    }

    .symptom-intro {
        font-size: 17px;
    }

    .symptom-item summary {
        font-size: 18px;
    }

    .visit-expectation {
        padding: 25px 20px;
    }

    .patient-note {
        padding: 22px 18px;
    }

    /* GENERAL ORTHOPAEDIC GUIDANCE */

    .reassurance-box,
    .urgent-guidance {
     padding: 25px 20px;
    }

    .reassurance-box h2,
    .urgent-guidance h2 {
        font-size: 26px;
    }

    .reassurance-highlight {
        font-size: 16px;
    }

    .urgent-grid {
        grid-template-columns: 1fr;
    }

    .red-flag-card {
        padding: 18px;
    }

    /* ACADEMIC PROFILE */

    .academic-profile {
        padding: 55px 6%;
    }

    .academic-profile h2 {
        font-size: 30px;
    }

    .academic-grid {
        grid-template-columns: 1fr;
    }

    .academic-card {
        padding: 24px 20px;
    }

    .academic-card {
        height: auto;
        max-height: none;
        overflow-y: visible;
    }

    

}   /* ← THIS closes @media */

/* =========================
   BACK TO TOP - MOBILE FIX
========================= */

@media (max-width: 768px) {

    .back-to-top {
        position: fixed !important;

        right: 16px !important;
        bottom: 20px !important;

        width: 46px !important;
        height: 46px !important;

        border: none !important;
        border-radius: 50% !important;

        background-color: #183f3b !important;
        color: #ffffff !important;

        font-size: 24px !important;
        font-weight: 700 !important;

        cursor: pointer;

        z-index: 99999 !important;

        display: block !important;
    }

    .back-to-top.show {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

}

/* =========================================================
   FINAL INTERFACE REFINEMENT — DESKTOP / TABLET / MOBILE
   Added after the original stylesheet so these rules take precedence.
========================================================= */

* { box-sizing: border-box; }

:root {
    --clinic-green: #183f3b;
    --clinic-green-2: #126b63;
    --clinic-gold: #d3b56d;
    --clinic-maroon: #8b2f2f;
    --clinic-cream: #f3efe7;
    --clinic-paper: #fbfaf7;
    --clinic-text: #4a5d59;
    --clinic-border: #d8dfdc;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.topbar {
    min-height: 100px;
    padding: 14px clamp(24px, 6vw, 110px);
    gap: 26px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.brand { min-width: 350px; }
.brand-link { gap: 10px; }
#main-nav a {
    margin-left: 0;
    font-size: 17px;
}

/* ---------- Hero ---------- */
.hero {
    padding: clamp(68px, 6vw, 96px) 10%;
    gap: clamp(42px, 5vw, 82px);
    background:
        radial-gradient(circle at 83% 28%, rgba(211,181,109,.12), transparent 26%),
        var(--clinic-cream);
}

.hero h1 { font-size: clamp(38px, 3.5vw, 44px); letter-spacing: -1px; }
.hero h3 { font-size: clamp(19px, 1.55vw, 24px); margin: 14px 0 18px; }
.hero .intro { font-size: clamp(18px, 1.35vw, 20px); }
.hero-doctor-photo { border-radius: 24px; }

/* ---------- Section rhythm ---------- */
.about,
.credentials,
.expertise,
.education,
.contact,
.academic-profile { scroll-margin-top: 95px; }

.small-heading { letter-spacing: .055em; }

/* ---------- Credential cards ---------- */
.credential-card {
    border-radius: 18px;
    box-shadow: inset 0 1px rgba(255,255,255,.04);
}

/* ---------- Expertise / Education ---------- */
.expertise-box,
.region-card {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.expertise-box:hover {
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(24,63,59,.08);
    position: relative;
    z-index: 1;
}

.region-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.region-card { min-width: 0; padding: 24px; }
.region-card h3 { font-size: 20px; }
.region-card p { min-height: 72px; }
.region-card span::after { content: "  →"; }

/* ---------- Academic profile ---------- */
.academic-profile {
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(211,181,109,.10), transparent 28%),
        #f8f5ee;
}

.academic-profile > .small-heading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.academic-profile > .small-heading::before,
.academic-profile > .small-heading::after {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--clinic-gold);
}

.academic-profile h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.academic-intro { margin-left: auto; margin-right: auto; }

.academic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    text-align: left;
}

.academic-card {
    position: relative;
    height: 430px;
    padding: 24px 22px 20px;
    border-radius: 18px;
    border-color: rgba(24,63,59,.14);
    box-shadow: 0 10px 28px rgba(24,63,59,.07);
}

.academic-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 13px;
    border-radius: 50%;
    background: var(--clinic-green);
    color: #fff;
    box-shadow: 0 7px 16px rgba(24,63,59,.18);
}

.academic-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.academic-card h3 {
    text-align: center;
    margin-bottom: 18px;
    font-size: 19px;
}

/* Academic cards use a slim scrollbar on desktop. */
.academic-more { display: block !important; }

/* ---------- Patient education pages ---------- */
.symptom-page {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding-left: clamp(22px, 5vw, 60px);
    padding-right: clamp(22px, 5vw, 60px);
}

.symptom-page > h1 {
    letter-spacing: -.5px;
    margin-bottom: 14px;
}

.language-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.symptom-item {
    border: 1px solid var(--clinic-border);
    border-radius: 14px;
    overflow: clip;
    background: #fff;
    box-shadow: 0 5px 16px rgba(24,63,59,.035);
    margin-bottom: 14px;
}

.symptom-item summary {
    position: relative;
    padding: 19px 58px 19px 22px;
    list-style: none;
    cursor: pointer;
    font-weight: 750;
    color: var(--clinic-green);
}

.symptom-item summary::-webkit-details-marker { display: none; }
.symptom-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #edf4f1;
    color: var(--clinic-green-2);
    font-size: 22px;
    font-weight: 500;
}

.symptom-item[open] summary {
    background: #edf4f1;
    border-bottom: 1px solid #d9e5e1;
}
.symptom-item[open] summary::after { content: "−"; }

.symptom-content { padding: 10px 24px 26px; }
.symptom-content h3 { margin-top: 26px; }
.symptom-content li { margin-bottom: 8px; line-height: 1.65; }

.urgent-box,
.emergency-message {
    border-radius: 14px;
    box-shadow: none;
}

.urgent-box {
    background: #fff4f3;
    border: 1px solid #edc3bf;
    border-left: 5px solid var(--clinic-maroon);
}

.visit-expectation,
.patient-note,
.treatment-note,
.trauma-action-box,
.diabetic-foot-warning {
    border-radius: 16px;
}

/* ---------- Back to top ---------- */
.back-to-top {
    z-index: 9999;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1199px) and (min-width: 769px) {
    .topbar { padding-left: 28px; padding-right: 28px; }
    .brand { min-width: 280px; }
    .brand-name { font-size: 23px; }
    .brand-tagline { max-width: 380px; }
    #main-nav { gap: 14px; }
    #main-nav a { font-size: 13px; }
    .region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .academic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    html { scroll-padding-top: 88px; }

    .topbar {
        min-height: 78px;
        padding: 10px 14px;
        flex-direction: row;
        align-items: center;
    }

    .brand {
        min-width: 0;
        margin-right: 52px;
        flex: 1 1 auto;
    }

    .brand-link { gap: 9px; min-width: 0; }
.brand-tagline {
        max-width: 245px;
        font-size: 10px;
        line-height: 1.22;
    }

    .menu-toggle {
        display: grid !important;
        place-items: center;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 0;
        border-radius: 10px;
        font-size: 29px;
        z-index: 5100;
    }

    #main-nav {
        display: none;
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        padding: 6px 16px 14px;
        background: rgba(255,255,255,.99);
        box-shadow: 0 14px 24px rgba(24,63,59,.12);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        white-space: normal;
    }

    #main-nav.show { display: flex; }
    #main-nav a {
        width: 100%;
        padding: 13px 2px;
        margin: 0;
        font-size: 15px;
        border-top: 1px solid #e5ebe8;
    }
    #main-nav a::after { display: none; }

    .hero {
        grid-template-columns: 1fr;
        padding: 34px 6% 50px;
        gap: 28px;
    }
    .hero-image { order: -1; }
    .hero-doctor-photo { height: auto; aspect-ratio: 4 / 5; max-width: 290px; }
    .hero h1 { font-size: clamp(29px, 8vw, 32px); }
    .hero h3 { font-size: 19px; line-height: 1.35; }
    .hero .intro { font-size: 17px; line-height: 1.65; }

    .about, .credentials, .expertise, .education, .contact, .academic-profile {
        padding-left: 6%;
        padding-right: 6%;
    }

    .credential-card {
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }

    .region-grid { grid-template-columns: 1fr; gap: 14px; }
    .region-card { padding: 20px; }
    .region-card p { min-height: 0; }

    .academic-profile { text-align: left; }
    .academic-profile > .small-heading::before,
    .academic-profile > .small-heading::after { display: none; }
    .academic-profile h2 { font-size: 29px; }
    .academic-grid { grid-template-columns: 1fr; gap: 14px; }
    .academic-card {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 22px 20px;
    }
    .academic-icon { margin-left: 0; width: 42px; height: 42px; }
    .academic-card h3 { text-align: left; }

    .symptom-page {
        width: 100%;
        padding: 38px 5.5% 48px;
    }
    .symptom-page > h1 { font-size: 34px; line-height: 1.15; }
    .symptom-intro, .accordion-help { font-size: 17px; }
    .symptom-item summary { padding: 17px 52px 17px 18px; font-size: 17px; }
    .symptom-item summary::after { right: 14px; width: 28px; height: 28px; }
    .symptom-content { padding: 8px 18px 22px; }
    .symptom-content h3 { font-size: 17px; }

    .article-buttons { gap: 10px; }
    .article-buttons .primary-button,
    .article-buttons .secondary-button { width: 100%; text-align: center; }

    .back-to-top {
        right: 14px !important;
        bottom: 16px !important;
        width: 44px !important;
        height: 44px !important;
        z-index: 99999 !important;
    }
}

@media (max-width: 390px) {
    .brand-name { font-size: 17px; }
    .brand-tagline { font-size: 9.5px; max-width: 210px; }
/* Translation links will become active when Tamil/Hindi pages are added. */
.language-coming-soon {
    color: #7b8985;
    opacity: 0.72;
    cursor: default;
    font-weight: 600;
}


/* =========================================================
   MOBILE CONTACT BAR — FINAL
========================================================= */

.mobile-contact-bar {
    display: none;
}

@media (max-width: 768px) {

    body {
        padding-bottom: 68px;
    }

    .mobile-contact-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100000;

        display: grid;
        grid-template-columns: 1fr;

        width: 100%;
        min-height: 58px;

        background: #183f3b;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 -5px 18px rgba(0, 0, 0, 0.14);

        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-contact-bar a {
        display: flex;
        align-items: center;
        justify-content: center;

        min-width: 0;
        padding: 11px 5px;

        color: #ffffff;
        text-decoration: none;

        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;

        border-right: 1px solid rgba(255, 255, 255, 0.18);
    }

    .mobile-contact-bar a:last-child {
        border-right: none;
    }

    .mobile-contact-bar a:active {
        background: #126b63;
    }

    .back-to-top {
        bottom: 78px !important;
    }
}

@media (min-width: 769px) {
    .mobile-contact-bar {
        display: none !important;
    }
}

/* =========================================================
   APPOINTMENT CONVERSION — FINAL
========================================================= */

.call-button {
    display: inline-block;
    padding: 14px 22px;
    margin-right: 15px;
    border-radius: 8px;
    background-color: #126b63;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.call-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
    background-color: #183f3b;
}

.appointment-cta {
    margin-top: 42px;
    padding: 30px;
    border: 1px solid #d8dfdc;
    border-left: 5px solid #8b2f2f;
    border-radius: 14px;
    background-color: #f8f7f2;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.04);
}

.appointment-cta .small-heading {
    margin-bottom: 8px;
}

.appointment-cta h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #183f3b;
    font-size: 28px;
}

.appointment-cta p {
    margin-bottom: 22px;
    color: #4a5d59;
    line-height: 1.7;
}

.appointment-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.appointment-cta-actions .primary-button,
.appointment-cta-actions .secondary-button,
.appointment-cta-actions .call-button {
    margin-right: 0;
}

@media (max-width: 768px) {
    .appointment-cta {
        padding: 24px 20px;
    }

    .appointment-cta h2 {
        font-size: 24px;
    }

    .appointment-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .appointment-cta-actions .primary-button,
    .appointment-cta-actions .secondary-button,
    .appointment-cta-actions .call-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .buttons .call-button {
        margin-right: 0;
        text-align: center;
    }
}



/* Local contact details in footer */
.footer-address {
    line-height: 1.65;
}
.footer-contact-link {
    color: inherit;
    text-decoration: none;
}
.footer-contact-link:hover,
.footer-contact-link:focus {
    text-decoration: underline;
}

/* =========================================================
   STEP 9A — HEADER / NAV / HERO BUTTON ALIGNMENT REFINEMENT
   2026-08-12
========================================================= */

/* Large desktop: clinic identity and hero copy share exactly the same left axis. */
@media (min-width: 1360px) {
    .topbar {
        padding-left: 10%;
        padding-right: 10%;
    }

    #main-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: clamp(18px, 1.35vw, 26px);
        white-space: nowrap;
    }

    #main-nav a {
        margin-left: 0;
    }
}

/* Tablet / compact desktop: keep brand and hero aligned while preserving nav fit. */
@media (max-width: 1359px) and (min-width: 769px) {
    .topbar,
    .hero {
        padding-left: 6%;
        padding-right: 6%;
    }

    .brand {
        min-width: 260px;
    }

    #main-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 11px;
        white-space: nowrap;
    }

    #main-nav a {
        margin-left: 0;
        font-size: 12.5px;
    }
}

/* Make Call Clinic a clearly boxed secondary action beside the primary CTA. */
.buttons .call-button {
    box-sizing: border-box;
    padding: 14px 22px;
    border: 2px solid #126b63;
    border-radius: 8px;
    background: transparent;
    color: #126b63;
    text-decoration: none;
    font-weight: 700;
}

.buttons .call-button:hover {
    background: #126b63;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    /* Mobile header and hamburger behaviour remain compact and unchanged. */
    .topbar {
        padding-left: 14px;
        padding-right: 14px;
    }

    #main-nav {
        gap: 0;
    }
}


/* =========================================================
   PREMIUM LANDING PAGE — DR VIDHYA HORMONES CLINIC
   2026-08-16
========================================================= */

:root {
    --vr-ink: #153f3a;
    --vr-green: #0f665d;
    --vr-deep: #0d3f3a;
    --vr-wine: #8f3232;
    --vr-gold: #b8945b;
    --vr-ivory: #f7f3eb;
    --vr-paper: #fffdf9;
    --vr-muted: #62716d;
}

/* Refined text-only identity — appropriate for a corporate-hospital consultant site. */
.topbar {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(21, 63, 58, 0.10);
    box-shadow: 0 10px 30px rgba(28, 47, 44, 0.045);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.brand-name {
    font-size: clamp(24px, 1.65vw, 29px);
    font-weight: 800;
    letter-spacing: -0.35px;
    color: var(--vr-ink);
}

.brand-tagline {
    margin-top: 5px;
    font-size: 13px;
    color: #74817e;
    letter-spacing: 0.12px;
}

#main-nav a {
    color: var(--vr-ink);
    font-weight: 650;
    letter-spacing: -0.15px;
}

#main-nav a::after {
    height: 2px;
    background: var(--vr-gold);
}

/* Premium hero: quieter, more architectural, with subtle tonal depth. */
.premium-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: clamp(64px, 7vw, 118px);
    min-height: 610px;
    padding-top: clamp(76px, 7vw, 108px);
    padding-bottom: clamp(76px, 7vw, 108px);
    background:
        radial-gradient(circle at 86% 18%, rgba(184, 148, 91, 0.13), transparent 25%),
        radial-gradient(circle at 13% 92%, rgba(15, 102, 93, 0.08), transparent 28%),
        linear-gradient(118deg, #f8f4ec 0%, #f5f1e9 52%, #fbf8f2 100%);
}

.premium-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    right: 7%;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(184, 148, 91, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.premium-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 10%;
    bottom: 0;
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, var(--vr-gold), transparent);
    pointer-events: none;
}

.premium-hero .hero-content {
    max-width: 790px;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--vr-green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero-kicker-dot {
    color: var(--vr-gold);
    font-size: 16px;
    line-height: 1;
}

.premium-hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--vr-ink);
    font-size: clamp(46px, 4.25vw, 66px);
    line-height: 1.02;
    letter-spacing: -2.2px;
    font-weight: 800;
}

.premium-hero .hero-specialty {
    margin: 19px 0 0;
    color: var(--vr-deep);
    font-size: clamp(23px, 1.75vw, 30px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.45px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-location,
.hero-hours {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(21, 63, 58, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    color: #445a56;
    font-size: 13.5px;
    font-weight: 650;
}

.hero-location::before {
    content: "•";
    margin-right: 8px;
    color: var(--vr-gold);
    font-size: 17px;
}

.hero-hours::before {
    content: "◷";
    margin-right: 7px;
    color: var(--vr-green);
    font-size: 15px;
}

.premium-intro {
    max-width: 760px;
    margin: 27px 0 0;
    color: #50635f;
    font-size: clamp(17px, 1.25vw, 20px);
    line-height: 1.75;
}

.hero-credentials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 780px;
    margin-top: 30px;
    border-top: 1px solid rgba(21, 63, 58, 0.13);
    border-bottom: 1px solid rgba(21, 63, 58, 0.13);
}

.hero-credential {
    position: relative;
    padding: 17px 20px 17px 0;
}

.hero-credential + .hero-credential {
    padding-left: 22px;
}

.hero-credential + .hero-credential::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    width: 1px;
    height: 60%;
    background: rgba(21, 63, 58, 0.13);
}

.hero-credential strong,
.hero-credential span {
    display: block;
}

.hero-credential strong {
    color: var(--vr-ink);
    font-size: 14.5px;
    line-height: 1.3;
}

.hero-credential span {
    margin-top: 4px;
    color: #6b7a76;
    font-size: 12.5px;
    line-height: 1.35;
}

.premium-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.premium-buttons .primary-button,
.premium-buttons .call-button,
.premium-buttons .secondary-button {
    min-height: 52px;
    margin: 0;
    padding: 14px 24px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14.5px;
    letter-spacing: 0.05px;
}

.premium-buttons .primary-button {
    border: 1px solid var(--vr-wine);
    background: var(--vr-wine);
    box-shadow: 0 8px 22px rgba(143, 50, 50, 0.16);
}

.premium-buttons .primary-button:hover {
    background: #7e2929;
    box-shadow: 0 12px 26px rgba(143, 50, 50, 0.22);
}

.premium-buttons .call-button {
    border: 1.5px solid var(--vr-green);
    background: rgba(255, 255, 255, 0.25);
    color: var(--vr-green);
}

.premium-buttons .secondary-button {
    border: 1px solid rgba(21, 63, 58, 0.22);
    background: rgba(255, 255, 255, 0.38);
    color: var(--vr-ink);
}

.premium-buttons .secondary-button:hover {
    border-color: var(--vr-ink);
    background: var(--vr-ink);
    color: #fff;
}

.premium-image-wrap {
    position: relative;
    justify-self: center;
    width: min(100%, 440px);
    padding: 10px;
    border: 1px solid rgba(184, 148, 91, 0.30);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 30px 70px rgba(38, 54, 51, 0.14);
}

.premium-image-wrap::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 54px;
    width: 3px;
    height: 110px;
    border-radius: 4px;
    background: linear-gradient(to bottom, transparent, var(--vr-gold), transparent);
}

.premium-image-wrap .hero-doctor-photo {
    display: block;
    max-width: none;
    width: 100%;
    height: 510px;
    border-radius: 22px;
    box-shadow: none;
    object-position: center top;
}

.hero-image-caption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 25px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.60);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 28px rgba(20, 48, 44, 0.12);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.hero-image-caption strong,
.hero-image-caption span {
    display: block;
}

.hero-image-caption strong {
    color: var(--vr-ink);
    font-size: 14px;
}

.hero-image-caption span {
    margin-top: 3px;
    color: #6b7a76;
    font-size: 12px;
}

/* Pull the next section into the premium rhythm without changing its content. */
.about {
    border-top: 1px solid rgba(21, 63, 58, 0.06);
}

@media (min-width: 1360px) {
    .topbar,
    .premium-hero {
        padding-left: 9.5%;
        padding-right: 9.5%;
    }

    #main-nav {
        gap: clamp(20px, 1.5vw, 29px);
    }
}

@media (max-width: 1199px) and (min-width: 769px) {
    .premium-hero {
        grid-template-columns: 1.08fr 0.92fr;
        gap: 48px;
    }

    .premium-hero h1 {
        font-size: clamp(42px, 4.4vw, 56px);
    }

    .hero-credentials {
        grid-template-columns: 1fr;
    }

    .hero-credential,
    .hero-credential + .hero-credential {
        padding: 11px 0;
    }

    .hero-credential + .hero-credential::before {
        top: 0;
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 20px;
        letter-spacing: -0.25px;
    }

    .brand-tagline {
        max-width: 250px;
        font-size: 11px;
        line-height: 1.25;
    }

    .premium-hero {
        display: flex;
        flex-direction: column;
        gap: 34px;
        min-height: auto;
        padding: 54px 22px 62px;
        background:
            radial-gradient(circle at 90% 8%, rgba(184, 148, 91, 0.12), transparent 26%),
            linear-gradient(180deg, #f8f4ec 0%, #f4f0e8 100%);
    }

    .premium-hero::before,
    .premium-hero::after,
    .premium-image-wrap::before {
        display: none;
    }

    .hero-kicker {
        gap: 7px;
        margin-bottom: 14px;
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    .premium-hero h1 {
        font-size: clamp(38px, 11vw, 49px);
        letter-spacing: -1.6px;
    }

    .premium-hero .hero-specialty {
        margin-top: 15px;
        font-size: 21px;
    }

    .hero-meta {
        margin-top: 18px;
    }

    .hero-location,
    .hero-hours {
        font-size: 12.5px;
    }

    .premium-intro {
        margin-top: 21px;
        font-size: 16.5px;
        line-height: 1.68;
    }

    .hero-credentials {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .hero-credential,
    .hero-credential + .hero-credential {
        padding: 11px 0;
    }

    .hero-credential + .hero-credential::before {
        top: 0;
        width: 100%;
        height: 1px;
    }

    .premium-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 26px;
    }

    .premium-buttons .primary-button {
        grid-column: 1 / -1;
    }

    .premium-buttons .primary-button,
    .premium-buttons .call-button,
    .premium-buttons .secondary-button {
        width: 100%;
        min-height: 50px;
        padding: 13px 12px;
        font-size: 13px;
        text-align: center;
    }

    .premium-image-wrap {
        order: -1;
        width: min(86vw, 390px);
        padding: 7px;
        border-radius: 24px;
    }

    .premium-image-wrap .hero-doctor-photo {
        height: min(112vw, 470px);
        border-radius: 18px;
    }

    .hero-image-caption {
        left: 19px;
        right: 19px;
        bottom: 18px;
        padding: 11px 13px;
    }
}

@media (max-width: 390px) {
    .premium-buttons {
        grid-template-columns: 1fr;
    }

    .premium-buttons .primary-button {
        grid-column: auto;
    }
}


/* =========================================================
   ORTHO-SITE MATCHED LANDING LAYOUT — DR VIDHYA HORMONES CLINIC
   Text-only header, no logo. 2026-08-16
========================================================= */

/* Header proportions deliberately match the R.J. Vidhya Ortho Clinic landing page. */
.topbar {
    padding: 18px 7.5% !important;
    min-height: 100px;
    box-sizing: border-box;
    background: #ffffff !important;
    border-bottom: 1px solid #dddddd !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.brand {
    min-width: 330px;
}

.brand-name {
    font-size: 28px !important;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0 !important;
    color: #183f3b !important;
}

.brand-tagline {
    margin-top: 4px !important;
    font-size: 14px !important;
    line-height: 1.2;
    color: #60706c !important;
    letter-spacing: 0 !important;
}

#main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    white-space: nowrap;
}

#main-nav a {
    margin-left: 0 !important;
    padding-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #183f3b !important;
}

/* Hero mirrors the spacing, type scale and image proportions of the ortho homepage. */
.hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.72fr) !important;
    gap: clamp(72px, 8vw, 130px) !important;
    align-items: center !important;
    min-height: 630px;
    padding: 92px 7.5% 88px !important;
    background: #f3efe7 !important;
    overflow: visible !important;
    isolation: auto !important;
}

.hero::before,
.hero::after {
    display: none !important;
}

.hero-content {
    max-width: 760px !important;
}

.hero-kicker {
    display: block !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    color: #183f3b !important;
    font-size: 16px !important;
    line-height: 1.25;
    font-weight: 800 !important;
    letter-spacing: .55px !important;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 12px !important;
    max-width: none !important;
    color: #183f3b !important;
    font-size: clamp(42px, 3.35vw, 52px) !important;
    line-height: 1.07 !important;
    letter-spacing: -1px !important;
    font-weight: 800 !important;
}

.hero .hero-specialty {
    margin: 0 0 20px !important;
    color: #183f3b !important;
    font-size: clamp(22px, 1.8vw, 26px) !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.hero .hero-location {
    display: block !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #315952 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.hero .hero-location::before {
    content: none !important;
}

.hero-copy {
    max-width: 760px;
}

.hero-copy p {
    margin: 0 0 6px;
    color: #4a5d59;
    font-size: 19px;
    line-height: 1.66;
}

.hero-copy p:last-child {
    margin-bottom: 0;
}

.hero-image {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    justify-self: center !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hero-image::before {
    display: none !important;
}

.hero-doctor-photo {
    display: block;
    width: 100% !important;
    max-width: 390px !important;
    height: 480px !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.12) !important;
}

.buttons {
    display: flex !important;
    flex-wrap: wrap;
    gap: 18px !important;
    margin-top: 32px !important;
}

.buttons .primary-button,
.buttons .call-button,
.buttons .secondary-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 14px 26px !important;
    border-radius: 8px !important;
    font-size: 15px;
    font-weight: 700;
}

.buttons .primary-button {
    min-width: 214px;
    background: #9d3131 !important;
    border: 2px solid #9d3131 !important;
    color: #fff !important;
}

.buttons .call-button {
    min-width: 112px;
    background: #126b63 !important;
    border: 2px solid #126b63 !important;
    color: #fff !important;
}

.buttons .secondary-button {
    min-width: 182px;
    background: transparent !important;
    border: 2px solid #126b63 !important;
    color: #126b63 !important;
}

.buttons .primary-button:hover,
.buttons .call-button:hover,
.buttons .secondary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0,0,0,.15);
}

.buttons .secondary-button:hover {
    background: #126b63 !important;
    color: #fff !important;
}

/* Remove premium-only components if stale markup is cached. */
.hero-meta,
.hero-credentials,
.hero-image-caption,
.hero-kicker-dot {
    display: none !important;
}

@media (max-width: 1280px) and (min-width: 769px) {
    .topbar {
        padding-left: 5.5% !important;
        padding-right: 5.5% !important;
    }

    .brand { min-width: 280px; }
    .brand-name { font-size: 24px !important; }
    .brand-tagline { font-size: 12.5px !important; }

    #main-nav { gap: 16px; }
    #main-nav a { font-size: 13px; }

    .hero {
        padding-left: 7% !important;
        padding-right: 7% !important;
        gap: 58px !important;
    }

    .hero-copy p { font-size: 18px; }
}

@media (max-width: 768px) {
    .topbar {
        min-height: auto;
        padding: 14px 16px !important;
    }

    .brand { min-width: 0; }
    .brand-name { font-size: 20px !important; }
    .brand-tagline { font-size: 11px !important; max-width: 250px; }

    #main-nav { gap: 0; }

    .hero {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        min-height: auto !important;
        padding: 46px 22px 56px !important;
    }

    .hero-content { order: 2; }
    .hero-image { order: 1; width: 100% !important; }
    .hero-doctor-photo {
        max-width: 310px !important;
        height: auto !important;
        aspect-ratio: 4 / 5;
    }

    .hero-kicker { font-size: 13px !important; margin-bottom: 12px !important; }
    .hero h1 { font-size: clamp(32px, 9vw, 39px) !important; }
    .hero .hero-specialty { font-size: 20px !important; }
    .hero-copy p { font-size: 17px; line-height: 1.62; }

    .buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
    }

    .buttons .primary-button { grid-column: 1 / -1; }
    .buttons .primary-button,
    .buttons .call-button,
    .buttons .secondary-button {
        width: 100%;
        min-width: 0;
        padding: 13px 12px !important;
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .buttons { grid-template-columns: 1fr !important; }
    .buttons .primary-button { grid-column: auto; }
}

/* =========================================================
   HEADER NAVIGATION SPACING REFINEMENT — 2026-09-01
   Keeps the Ortho-style header but gives each menu item
   a clear, balanced visual separation.
========================================================= */
#main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px !important;
    white-space: nowrap;
}

#main-nav a {
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
    padding: 10px 1px 8px !important;
    line-height: 1.2;
}

@media (max-width: 1280px) and (min-width: 1001px) {
    .topbar {
        gap: 24px;
        padding-left: 4.5% !important;
        padding-right: 4.5% !important;
    }

    .brand {
        min-width: 265px;
        flex: 0 0 auto;
    }

    #main-nav {
        gap: 19px !important;
    }

    #main-nav a {
        font-size: 13.5px !important;
    }
}

@media (max-width: 1000px) and (min-width: 769px) {
    .topbar {
        gap: 18px;
        padding-left: 3.5% !important;
        padding-right: 3.5% !important;
    }

    .brand {
        min-width: 230px;
        flex: 0 0 auto;
    }

    .brand-name {
        font-size: 22px !important;
    }

    .brand-tagline {
        font-size: 11.5px !important;
    }

    #main-nav {
        gap: 14px !important;
    }

    #main-nav a {
        font-size: 12px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 768px) {
    #main-nav {
        gap: 0 !important;
    }

    #main-nav a {
        display: block;
        padding: 13px 18px !important;
    }
}


/* =========================================================
   HEADER NAVIGATION — MATCH ORTHO SITE VISUAL SPACING
   2026-09-01 v3
   Uses explicit inter-item margins so the labels remain
   clearly separated even where flex-gap is overridden/cached.
========================================================= */
@media (min-width: 1281px) {
    #main-nav {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0 !important;
        white-space: nowrap;
    }

    #main-nav a {
        margin: 0 30px 0 0 !important;
        padding: 10px 0 8px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    #main-nav a:last-child {
        margin-right: 0 !important;
    }
}

@media (max-width: 1280px) and (min-width: 1001px) {
    #main-nav {
        gap: 0 !important;
        white-space: nowrap;
    }

    #main-nav a {
        margin: 0 24px 0 0 !important;
        padding: 10px 0 8px !important;
        font-size: 15px !important;
    }

    #main-nav a:last-child {
        margin-right: 0 !important;
    }
}

@media (max-width: 1000px) and (min-width: 769px) {
    #main-nav {
        gap: 0 !important;
        white-space: nowrap;
    }

    #main-nav a {
        margin: 0 18px 0 0 !important;
        padding: 9px 0 7px !important;
        font-size: 13px !important;
    }

    #main-nav a:last-child {
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    #main-nav a,
    #main-nav a:last-child {
        margin: 0 !important;
    }
}


/* =========================================================
   HERO CALL BUTTON — HARDENED v6
   Ensures the hospital appointment number always renders
   as a button rather than a browser-default text link.
========================================================= */
.hero .buttons .call-button {
    display: inline-block !important;
    padding: 16px 28px !important;
    margin-right: 15px !important;
    border-radius: 8px !important;
    background-color: #126b63 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.hero .buttons .call-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
    background-color: #183f3b !important;
}

@media (max-width: 768px) {
    .hero .buttons .call-button {
        width: 100%;
        margin-right: 0 !important;
        text-align: center;
    }
}


/* ===== v11 refinements ===== */
.hero-kicker { text-transform: uppercase !important; }
.education > .section-kicker-strong {
    display: block;
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #183f3b;
}
.education > .section-subtitle-tight {
    margin-top: 0;
    margin-bottom: 30px;
}
.expertise-box h3 { line-height: 1.25; }
@media (max-width: 1180px) {
  .expertise-box h3 { font-size: 20px; }
}


/* ===== v12 credentials heading order ===== */
.credentials h2 {
    margin-top: 0;
    margin-bottom: 10px;
}
.credentials .small-heading {
    display: block;
    margin: 0 0 34px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #d3b56d;
}


/* ===== v13 credentials title emphasis ===== */
.credentials h2 {
    font-size: 46px !important;
    line-height: 1.08;
    margin-bottom: 8px;
}
@media (max-width: 768px) {
    .credentials h2 {
        font-size: 38px !important;
    }
}


/* ===== v14 patient education heading hierarchy ===== */
.education > .education-main-title {
    margin: 0 0 8px;
    font-size: 46px !important;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.4px;
    text-transform: uppercase;
    color: #183f3b;
}
.education > .education-subtitle {
    margin: 0 0 30px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #183f3b;
}
@media (max-width: 768px) {
    .education > .education-main-title {
        font-size: 38px !important;
    }
    .education > .education-subtitle {
        font-size: 20px;
    }
}


/* ===== v15 contact hierarchy + talks/media section ===== */
.contact > .contact-main-title {
    margin: 0 0 8px;
    font-size: 46px !important;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.4px;
    text-transform: uppercase;
    color: #183f3b;
}
.contact > .contact-subtitle {
    margin: 0 0 20px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #183f3b;
}

.media-showcase {
    padding: 80px 10%;
    background: #ffffff;
    scroll-margin-top: 95px;
}
.media-showcase > .media-main-title {
    margin: 0 0 8px;
    font-size: 46px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.4px;
    text-transform: uppercase;
    color: #183f3b;
}
.media-showcase > .media-subtitle {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #183f3b;
}
.media-intro {
    max-width: 920px;
    margin: 0 0 32px;
    color: #4a5d59;
    line-height: 1.65;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.media-card {
    overflow: hidden;
    border: 1px solid #d8dfdc;
    border-radius: 16px;
    background: #fbfcfb;
    box-shadow: 0 8px 24px rgba(24,63,59,.05);
}
.media-card h3 {
    margin: 22px 24px 10px;
    font-size: 21px;
    line-height: 1.3;
    color: #183f3b;
}
.media-card p {
    margin: 0 24px 26px;
    color: #4a5d59;
    line-height: 1.65;
}
.media-placeholder {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    text-align: center;
    font-weight: 800;
    letter-spacing: .2px;
    color: #183f3b;
    background:
        radial-gradient(circle at 20% 20%, rgba(211,181,109,.22), transparent 34%),
        linear-gradient(135deg, #e8f2ef, #f8f5ee);
}
.media-play-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #126b63;
    color: #ffffff;
    font-size: 22px;
    padding-left: 3px;
}

@media (max-width: 980px) {
    .media-grid { grid-template-columns: 1fr 1fr; }
    .media-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .contact > .contact-main-title,
    .media-showcase > .media-main-title {
        font-size: 38px !important;
    }
    .contact > .contact-subtitle,
    .media-showcase > .media-subtitle {
        font-size: 20px;
    }
    .media-showcase { padding: 60px 7%; }
    .media-grid { grid-template-columns: 1fr; }
    .media-card:last-child { grid-column: auto; }
}


/* ===== v16 embedded talks and media ===== */
.media-section-heading {
    margin: 30px 0 18px;
    font-size: 24px;
    line-height: 1.25;
    color: #183f3b;
}

.media-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.media-video-embed-card {
    overflow: hidden;
    border: 1px solid #d8dfdc;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(24,63,59,.06);
}

.media-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d211f;
}

.media-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-video-label {
    margin: 0;
    padding: 15px 18px 17px;
    font-size: 15px;
    font-weight: 700;
    color: #315952;
}

.media-future {
    margin-top: 30px;
    padding: 24px 26px;
    border: 1px solid #d8dfdc;
    border-radius: 14px;
    background:
        radial-gradient(circle at 15% 20%, rgba(211,181,109,.16), transparent 32%),
        #f8f5ee;
}

.media-future h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #183f3b;
}

.media-future p {
    margin: 0;
    max-width: 850px;
    line-height: 1.65;
    color: #4a5d59;
}

@media (max-width: 1080px) {
    .media-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .media-video-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== v17 media alignment and working video links ===== */
.media-showcase { padding: 80px 10%; background: #f8f5ee; }
.media-video-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.media-video-card { overflow:hidden; border:1px solid #d8dfdc; border-radius:16px; background:#fff; }
.media-video-body { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px 18px 17px; }
.media-watch-link { color:#126b63; font-weight:800; text-decoration:none; }
.media-watch-link:hover { text-decoration:underline; }
@media (max-width:1080px){ .media-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:680px){ .media-video-grid{grid-template-columns:1fr;} }



/* ===== v18 Patient Education landing refinement ===== */
.education > .education-main-title {
    margin: 0 0 8px !important;
    font-size: 46px !important;
    line-height: 1.08;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
    color: #183f3b;
}

.education > .education-subtitle {
    margin: 0 0 16px !important;
    font-size: 23px !important;
    line-height: 1.3;
    font-weight: 700 !important;
    color: #315952;
}

.education > .education-intro-top {
    max-width: 980px;
    margin: 0 0 34px !important;
    font-size: 17px;
    line-height: 1.7;
    color: #4a5d59;
}

.education .patient-topic-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
}

.education .patient-topic-grid .region-card {
    display: flex;
    flex-direction: column;
    min-height: 205px;
    padding: 26px;
    border: 1px solid #d8dfdc;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(24,63,59,.04);
}

.education .patient-topic-grid .region-card h3 {
    margin: 0 0 11px;
    font-size: 20px;
    line-height: 1.3;
    color: #183f3b;
}

.education .patient-topic-grid .region-card p {
    flex: 1;
    min-height: 0 !important;
    margin: 0 0 18px;
    line-height: 1.6;
    color: #4a5d59;
}

.education .patient-topic-grid .region-card span {
    margin-top: auto;
    color: #126b63;
    font-weight: 800;
}

.education .patient-topic-grid .region-card span::after {
    content: "  →";
}

.education .patient-guidance {
    margin-top: 48px;
    margin-bottom: 0;
}

@media (max-width: 1050px) {
    .education .patient-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .education > .education-main-title {
        font-size: 38px !important;
    }

    .education > .education-subtitle {
        font-size: 20px !important;
    }

    .education .patient-topic-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .education .patient-topic-grid .region-card {
        min-height: 0;
        padding: 22px;
    }
}



/* ===== v19 integrated Patient Education pages ===== */

/* Desktop navigation spacing for every page, not only the homepage. */
@media (min-width: 769px) {
  #main-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    column-gap: 30px !important;
    gap: 30px !important;
    white-space: nowrap !important;
  }
  #main-nav > a {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 10px 0 8px !important;
  }
}
@media (max-width: 1180px) and (min-width: 769px) {
  #main-nav {
    column-gap: 22px !important;
    gap: 22px !important;
  }
}

/* Patient Education page heading hierarchy. */
.symptom-page > .small-heading:first-child {
    display: block;
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 1.35px;
    text-transform: uppercase;
    color: #126b63;
}

.symptom-page > h1 {
    margin-top: 0;
}

/* Keep appointment actions balanced after WhatsApp removal. */
.appointment-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.appointment-cta-actions .primary-button,
.appointment-cta-actions .call-button,
.appointment-cta-actions .secondary-button {
    margin-right: 0 !important;
}

/* Central appointment bar only. */
.mobile-contact-bar {
    justify-content: center;
}

.mobile-contact-bar a {
    flex: 1 1 auto;
    text-align: center;
}

/* Keep long new titles comfortable on smaller screens. */
@media (max-width: 680px) {
  .symptom-page > h1 {
    line-height: 1.14;
  }
}


/* ===== v20 patient education Call Appointment Desk button fix ===== */
.appointment-cta-actions a.patient-call-button,
.appointment-cta-actions a.call-button {
    display: inline-block !important;
    padding: 16px 28px !important;
    margin: 0 !important;
    border: 2px solid #126b63 !important;
    border-radius: 8px !important;
    background-color: #126b63 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

.appointment-cta-actions a.patient-call-button:hover,
.appointment-cta-actions a.call-button:hover {
    background-color: #183f3b !important;
    border-color: #183f3b !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0,0,0,.15);
}

@media (max-width: 768px) {
    .appointment-cta-actions a.patient-call-button,
    .appointment-cta-actions a.call-button {
        width: 100% !important;
        text-align: center !important;
    }
}


/* ===== v21 patient CTA spacing ===== */
.appointment-cta-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    column-gap: 18px !important;
    row-gap: 14px !important;
}
.appointment-cta-actions > a {
    margin: 0 !important;
    flex: 0 0 auto !important;
}
@media (max-width: 768px) {
    .appointment-cta-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .appointment-cta-actions > a {
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
    }
}


/* ===== v22 footer appointment phone visibility ===== */
.footer a.footer-contact-link,
.footer .footer-contact-link {
    color: #d3b56d !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.footer a.footer-contact-link:hover,
.footer a.footer-contact-link:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
}


/* ===== v23 final pre-deployment QA refinements ===== */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid #d3b56d !important;
    outline-offset: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
