/* =========================
   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 / LOGO
========================= */

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

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

    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.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 {
    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(4, 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-logo {
    width: 70px;
    height: 70px;

    object-fit: contain;
}

.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-logo {
        width: 52px;
        height: 52px;

        flex-shrink: 0;

        margin-right: 10px;

        object-fit: contain;
    }

    .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 {
        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;
    }

    .footer-logo {
        width: 55px;
        height: 55px;
    }


    /* 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; }
.brand-logo { width: 80px; height: 80px; }
.brand-name { font-size: 25px; }
.brand-tagline { font-size: 16px; line-height: 1.25; max-width: 520px; }

#main-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.8vw, 30px);
    white-space: nowrap;
}

#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-logo { width: 50px; height: 50px; margin-right: 0; }
    .brand-text { min-width: 0; }
    .brand-name {
        font-size: clamp(17px, 5.1vw, 20px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .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; }
    .brand-logo { width: 50px; height: 50px; }
    .menu-toggle { right: 9px; width: 40px; height: 40px; }
}


/* 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: repeat(3, 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;
    }
}
