/* resources/css/page-doctor.css */

/* ============================================ */
/* DOCTOR DETAILS PAGE - CUSTOM STYLES */
/* ============================================ */

:root {
    --navy: #0A2647;
    --cobalt: #1C5FAE;
    --teal: #0E8A82;
    --gold: #C99A3E;
    --ink: #1A2430;
    --paper: #FBFAF7;
    --card: #FFFFFF;
    --line: #E4E7EC;
    --muted: #5B6572;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(10, 38, 71, 0.08);
}

/* ============================================ */
/* BREADCRUMB */
/* ============================================ */
.doctor-breadcrumb {
    font-size: 0.82rem;
    color: var(--muted);
    padding: 14px 0;
}

.doctor-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.doctor-breadcrumb a:hover {
    color: var(--cobalt);
}

.doctor-breadcrumb .sep {
    margin: 0 6px;
    opacity: 0.5;
}

.doctor-breadcrumb .current {
    color: var(--navy);
    font-weight: 600;
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */
.doctor-hero {
    background: linear-gradient(180deg, #EFF4FA 0%, var(--paper) 65%);
    padding: 10px 0 70px;
}

.doctor-hero-grid {
    display: grid;
    gap: 32px;
    align-items: center;
}

@media (min-width: 769px) {
    .doctor-hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 48px;
    }
}

.doctor-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--teal);
    background: rgba(14, 138, 130, 0.08);
    border: 1px solid rgba(14, 138, 130, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.doctor-hero h1 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 0.5em;
    font-size: 2.1rem;
}

@media (min-width: 481px) {
    .doctor-hero h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 769px) {
    .doctor-hero h1 {
        font-size: 2.9rem;
    }
}

.doctor-hero-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 56ch;
    margin: 0 0 20px;
}

/* Credential Strip */
.doctor-credential-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
}

.doctor-credential-strip .chip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    box-shadow: var(--shadow);
}

.doctor-credential-strip .chip b {
    color: var(--teal);
}

/* Hero CTAs */
.doctor-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Hero Photo */
.doctor-hero-photo {
    position: relative;
}

.doctor-hero-photo .frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 6px solid #fff;
    outline: 1px solid var(--line);
}

.doctor-hero-photo .frame img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
    display: block;
}

.doctor-hero-photo .badge {
    position: absolute;
    left: 16px;
    bottom: -18px;
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
    font-size: 0.82rem;
    max-width: 250px;
}

.doctor-hero-photo .badge b {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold);
}

/* ============================================ */
/* QUICK ANSWER / SUMMARY */
/* ============================================ */
.doctor-quick-answer {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--teal);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow);
    margin: 36px 0;
}

.doctor-quick-answer h2 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
    color: var(--navy);
}

.doctor-quick-answer p {
    margin: 0;
    color: var(--ink);
}

.doctor-quick-answer .tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal);
}

/* ============================================ */
/* SECTION COMMON */
/* ============================================ */
.doctor-section {
    padding: 44px 0;
}

.doctor-section-alt {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.doctor-section-head {
    max-width: 70ch;
    margin-bottom: 28px;
}

.doctor-section-head h2 {
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    line-height: 1.25;
    margin: 0 0 0.5em;
}

@media (min-width: 769px) {
    .doctor-section-head h2 {
        font-size: 1.9rem;
    }
}

.doctor-section-head p {
    margin: 0;
    color: var(--muted);
}

/* ============================================ */
/* BIO GRID */
/* ============================================ */
.doctor-bio-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 769px) {
    .doctor-bio-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.doctor-bio p {
    margin: 0 0 16px;
    color: var(--ink);
}

/* ============================================ */
/* EEAT CREDENTIAL CARDS */
/* ============================================ */
.doctor-cred-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 481px) {
    .doctor-cred-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 769px) {
    .doctor-cred-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.doctor-cred-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.doctor-cred-card .ic {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(28, 95, 174, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--cobalt);
    font-weight: 800;
    font-family: 'Playfair Display', serif;
}

.doctor-cred-card h3 {
    font-size: 1.05rem;
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    margin-bottom: 6px;
}

.doctor-cred-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

/* ============================================ */
/* SERVICES GRID */
/* ============================================ */
.doctor-service-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 481px) {
    .doctor-service-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 769px) {
    .doctor-service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.doctor-service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.doctor-service-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gold);
}

.doctor-service-card h3 {
    font-size: 1.02rem;
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    margin-bottom: 6px;
    padding-left: 6px;
}

.doctor-service-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    padding-left: 6px;
}

.doctor-service-card .kw {
    display: inline-block;
    margin-top: 10px;
    margin-left: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================ */
/* ACHIEVEMENT / RECOGNITION */
/* ============================================ */
.doctor-achieve {
    background: linear-gradient(135deg, var(--navy), #123a6b);
    color: #fff;
    border-radius: 20px;
    padding: 32px;
    display: grid;
    gap: 24px;
}

@media (min-width: 769px) {
    .doctor-achieve {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 40px;
    }
}

.doctor-achieve h2 {
    color: #fff;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
    margin: 0 0 0.5em;
}

.doctor-achieve p {
    color: #cfdcee;
    margin: 0 0 18px;
}

.doctor-achieve-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.doctor-achieve-imgs img {
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    width: 100%;
    display: block;
}

/* ============================================ */
/* FAQ */
/* ============================================ */
.doctor-faq {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    margin-bottom: 12px;
    overflow: hidden;
}

.doctor-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
}

.doctor-faq summary::-webkit-details-marker {
    display: none;
}

.doctor-faq summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--teal);
    flex: 0 0 auto;
    line-height: 1;
}

.doctor-faq[open] summary::after {
    content: "–";
}

.doctor-faq h3 {
    font-size: 1rem;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: var(--navy);
}

.doctor-faq .faq-a {
    padding: 0 20px 20px;
    color: var(--muted);
    margin: 0;
}

/* ============================================ */
/* AVAILABILITY SCHEDULE */
/* ============================================ */
.doctor-availability-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 481px) {
    .doctor-availability-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 769px) {
    .doctor-availability-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.doctor-availability-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.doctor-availability-card .ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(14, 138, 130, 0.1);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.doctor-availability-card .day {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.92rem;
    display: block;
}

.doctor-availability-card .time {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ============================================ */
/* SOCIAL LINKS */
/* ============================================ */
.doctor-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.doctor-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: 0.2s ease;
}

.doctor-social-link:hover {
    border-color: var(--cobalt);
    color: var(--cobalt);
}

/* HTML-style FAQ and shared service CTA */
.doctor-html-faq-section {
    background: #f7f9fc;
}

.doctor-html-faq-section h2 {
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    margin: 0 0 10px;
}

.doctor-section-kicker {
    display: inline-block;
    color: var(--teal-dark);
    background: rgba(14, 165, 160, .1);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.doctor-faq-subtitle {
    color: var(--muted);
    max-width: 700px;
}

.doctor-html-faq-section .ssc-html-faq-list {
    margin-top: 24px;
}

.doctor-html-faq-section .ssc-html-faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.doctor-html-faq-section .ssc-html-faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 16px 18px;
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: .96rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
}

.doctor-html-faq-section .ssc-html-faq-q .plus {
    color: var(--cyan);
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    transition: transform .25s ease;
    flex-shrink: 0;
}

.doctor-html-faq-section .ssc-html-faq-item.open .plus {
    transform: rotate(45deg);
}

.doctor-html-faq-section .ssc-html-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 18px;
}

.doctor-html-faq-section .ssc-html-faq-item.open .ssc-html-faq-a {
    max-height: 500px;
    padding-bottom: 18px;
}

.doctor-html-faq-section .ssc-html-faq-a>div {
    color: var(--muted);
    font-size: .92rem;
}

.doctor-html-faq-section .ssc-html-faq-a p {
    margin: 0;
}

.doctor-html-cta {
    background: linear-gradient(135deg, var(--navy), var(--cobalt));
    color: #fff;
    /* max-width: 846px; */
    margin: 0 auto;
    border-radius: 22px;
    padding: 38px 32px 30px;
    text-align: center;
    box-shadow: 0 16px 36px rgba(10, 38, 71, .14);
}

.doctor-html-cta h2 {
    color: #fff;
    margin-bottom: 10px;
}

.doctor-html-cta .ssc-html-cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.doctor-html-cta .ssc-html-cta-actions .btn {
    min-width: 164px;
    min-height: 42px;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}

.doctor-html-cta .ssc-cta-call {
    background: #0fa8c7;
    color: #fff;
    border: 0;
    box-shadow: 0 8px 18px rgba(15, 168, 199, .3);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.doctor-html-cta .ssc-cta-book {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .65);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.doctor-html-cta .ssc-html-cta-actions .btn:hover {
    transform: translateY(-2px);
}

.doctor-html-cta .avail {
    margin-top: 16px;
    color: #a9c4e6;
    font-size: .8rem;
}

@media (max-width: 640px) {
    .doctor-html-cta {
        padding: 28px 18px 24px;
    }

    .doctor-html-cta .ssc-html-cta-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Retain the legacy selector for pages or cached markup that still uses it. */
/* ============================================ */
/* FINAL CTA */
/* ============================================ */
.doctor-final-cta {
    background: linear-gradient(135deg, var(--navy), var(--cobalt));
    color: #fff;
    border-radius: 22px;
    padding: 38px 32px 30px;
    text-align: center;
    box-shadow: 0 16px 36px rgba(10, 38, 71, .14);
}

.doctor-final-cta h2 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
    margin: 0 0 0.5em;
    font-size: 1.6rem;
}

.doctor-final-cta p {
    margin: 0 auto 24px;
    color: #cfe0f5;
    max-width: 640px;
}

.doctor-final-cta .btn-outline {
    border-color: #fff;
    color: #fff;
    background: transparent;
}

.doctor-final-cta .btn-outline:hover {
    background: #fff;
    color: var(--teal);
}

/* ============================================ */
/* BUTTONS OVERRIDE */
/* ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 10px;
    padding: 11px 18px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
    background: var(--cobalt);
    color: #fff;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--navy);
    color: #fff;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 10px;
    padding: 11px 18px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
}

.btn-gold:hover {
    background: #b3892f;
    color: var(--navy);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 10px;
    padding: 11px 18px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
    border-color: var(--cobalt);
    color: var(--cobalt);
    background: transparent;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--cobalt);
    color: #fff;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 10px;
    padding: 11px 18px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
    background: #22c35e;
    color: #fff;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #1aa34d;
    color: #fff;
}

/* ============================================ */
/* WRAPPER */
/* ============================================ */
.doctor-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================ */
/* RESPONSIVE FINE-TUNE */
/* ============================================ */
@media (max-width: 768px) {
    .doctor-hero {
        padding: 20px 0 30px;
    }

    .doctor-hero h1 {
        font-size: 1.8rem;
    }

    .doctor-hero-photo .badge {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 10px;
        max-width: 100%;
        text-align: center;
    }

    .doctor-section {
        padding: 30px 0;
    }

    .doctor-achieve {
        padding: 24px;
    }

    .doctor-final-cta {
        padding: 24px;
    }

    .doctor-final-cta h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .doctor-credential-strip .chip {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .doctor-hero-ctas .btn {
        font-size: 0.8rem;
        padding: 9px 14px;
        width: 100%;
    }

    .doctor-quick-answer {
        padding: 16px 18px;
        margin: 20px 0;
    }

    .doctor-service-card {
        padding: 16px;
    }
}

/* ============================================ */
/* UTILITY */
/* ============================================ */
.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.d-block {
    display: block;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-3 {
    margin-top: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}


/* ============================================ */
/* DOCTORS LIST - HERO */
/* ============================================ */
.doctor-list-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1C5FAE 100%);
    padding: 50px 0 60px;
    position: relative;
    overflow: hidden;
}

.doctor-list-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.doctor-list-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.doctor-list-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.doctor-list-hero-content h1 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.doctor-list-hero-content .doctor-hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 30px;
}

.doctor-list-hero-content .doctor-hero-sub strong {
    color: #fff;
}

/* Hero Stats */
.doctor-list-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.doctor-list-stats .stat-item {
    text-align: center;
}

.doctor-list-stats .stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.doctor-list-stats .stat-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* ============================================ */
/* INTRO CARD */
/* ============================================ */
.doctor-intro-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow);
}

.doctor-intro-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(28, 95, 174, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-intro-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.doctor-intro-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.doctor-intro-card p strong {
    color: var(--navy);
}

/* ============================================ */
/* DOCTORS LIST SECTION */
/* ============================================ */
.doctor-list-section {
    padding: 40px 0;
    background: var(--paper);
}

.doctor-list-section-alt {
    padding: 40px 0;
    background: #fff;
}

.doctor-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.doctor-list-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--navy);
    margin: 0;
}

.doctor-count {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
    background: var(--paper);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--line);
}

/* ============================================ */
/* DOCTOR CARD */
/* ============================================ */
.doctor-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 640px) {
    .doctor-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .doctor-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.doctor-list-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.doctor-list-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 44px rgba(10, 38, 71, 0.14);
}

.doctor-card-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Doctor Image */
.doctor-card-banner {
    height: 92px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.doctor-image-wrapper {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
    position: absolute;
    left: 50%;
    bottom: -58px;
    transform: translateX(-50%);
}

.doctor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Doctor Content */
.doctor-card-content {
    padding: 68px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.doctor-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.doctor-card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin: 0;
}

.doctor-name-link {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
}

.doctor-name-link:hover {
    color: var(--cobalt);
}

.doctor-specialty-badge {
    display: inline-block;
    background: rgba(14, 138, 130, 0.1);
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 50px;
    border: 1px solid rgba(14, 138, 130, 0.2);
}

.doctor-experience-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}

.doctor-experience-badge .exp-icon {
    font-size: 0.7rem;
}

.doctor-bio-text {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 4px 0 14px;
}

/* Tags */
.doctor-tags-section {
    margin-bottom: 10px;
}

.doctor-tags-section .tags-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.doctor-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.doctor-tags .tag {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.74rem;
    color: var(--muted);
}

.doctor-tags .expertise-tag {
    background: rgba(28, 95, 174, 0.06);
    border-color: rgba(28, 95, 174, 0.15);
    color: var(--cobalt);
}

/* Actions */
.doctor-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.doctor-card-actions .btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
    flex: 1;
    white-space: nowrap;
}

/* ============================================ */
/* WHY CHOOSE SECTION */
/* ============================================ */
.doctor-list-why-choose {
    background: var(--navy);
    padding: 60px 0;
}

.why-choose-header {
    text-align: center;
    margin-bottom: 40px;
}

.why-choose-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #fff;
    margin: 0;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.why-choose-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: background 0.3s ease;
}

.why-choose-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.why-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.why-choose-card h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.why-choose-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.6;
}

/* ============================================ */
/* APPOINTMENT SECTION */
/* ============================================ */
.doctor-list-appointment {
    padding: 50px 0;
    background: var(--paper);
}

.appointment-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 720px;
    margin: 0 auto;
}

.appointment-content {
    text-align: center;
    margin-bottom: 28px;
}

.appointment-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.appointment-content p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
    max-width: 520px;
    margin: 0 auto;
}

/* ============================================ */
/* PAGINATION */
/* ============================================ */
.doctor-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.doctor-pagination .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.doctor-pagination .pagination li {
    display: inline-block;
}

.doctor-pagination .pagination li a,
.doctor-pagination .pagination li span,
.doctor-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.doctor-pagination .pagination li a:hover,
.doctor-pagination .page-item a.page-link:hover {
    background: var(--cobalt);
    color: #fff;
    border-color: var(--cobalt);
}

.doctor-pagination .pagination li.active span,
.doctor-pagination .page-item.active .page-link {
    background: var(--cobalt);
    color: #fff;
    border-color: var(--cobalt);
}

.doctor-pagination .pagination li.disabled span,
.doctor-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 768px) {
    .doctor-list-hero {
        padding: 40px 0 50px;
    }

    .doctor-list-stats {
        gap: 24px;
    }

    .doctor-list-stats .stat-number {
        font-size: 1.4rem;
    }

    .doctor-intro-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .doctor-card-inner {
        grid-template-columns: 1fr;
    }

    .doctor-card-image {
        padding: 20px;
        min-height: 160px;
    }

    .doctor-image-wrapper {
        width: 110px;
        height: 110px;
    }

    .doctor-card-content {
        padding: 18px 20px;
    }

    .doctor-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .appointment-card {
        padding: 24px 20px;
    }

    .why-choose-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .doctor-list-stats {
        gap: 16px;
    }

    .doctor-list-stats .stat-item {
        flex: 1 1 45%;
    }

    .doctor-list-stats .stat-number {
        font-size: 1.2rem;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .doctor-card-actions {
        flex-direction: column;
    }

    .doctor-card-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================ */
/* FLEXIBLE CONTENT SECTIONS (content_sections)  */
/* ============================================ */

/* answer box (fixed left-accent info box, e.g. "Who is Dr. X?") */
.doctor-answer-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: 10px;
    padding: 18px 20px;
    font-size: .98rem;
    color: #2f3f49;
    margin-bottom: 24px;
}

.doctor-answer-box strong {
    color: var(--navy);
}

/* numbered list (e.g. "who should see this doctor") */
.doctor-case-list {
    display: grid;
    gap: 10px;
}

@media (min-width: 700px) {
    .doctor-case-list {
        grid-template-columns: 1fr 1fr;
    }
}

.doctor-case-item {
    display: flex;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    align-items: flex-start;
}

.doctor-case-item .num {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-case-item p {
    font-size: .9rem;
    color: #3c4b56;
}

.doctor-case-item strong {
    color: var(--navy);
    display: block;
    font-size: .92rem;
    margin-bottom: 2px;
}

/* numbered steps (procedure / what-to-expect) */
.doctor-steps {
    counter-reset: dstep;
    display: grid;
    gap: 18px;
}

.doctor-step {
    position: relative;
    padding-left: 52px;
}

.doctor-step::before {
    counter-increment: dstep;
    content: counter(dstep);
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--cobalt));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.doctor-step h3 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.doctor-step p {
    font-size: .9rem;
    color: #57646e;
}

/* timeline (career / experience history) */
.doctor-timeline {
    display: grid;
    gap: 0;
    position: relative;
    padding-left: 26px;
    border-left: 2px solid var(--line);
}

.doctor-tl-item {
    position: relative;
    padding-bottom: 24px;
}

.doctor-tl-item:last-child {
    padding-bottom: 0;
}

.doctor-tl-dot {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--gold);
}

.doctor-tl-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.doctor-tl-item h3 {
    font-size: .98rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.doctor-tl-item p {
    font-size: .88rem;
    color: #57646e;
}

/* award / recognition grid */
.doctor-award-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 700px) {
    .doctor-award-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.doctor-award-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.doctor-award-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(201, 154, 62, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.doctor-award-card h3 {
    font-size: .98rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.doctor-award-card p {
    font-size: .88rem;
    color: #57646e;
}

/* signs / symptom grid (e.g. pediatric warning signs) */
.doctor-signs-grid {
    display: grid;
    gap: 14px;
}

@media (min-width: 640px) {
    .doctor-signs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .doctor-signs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.doctor-sign-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.doctor-sign-icon {
    flex: 0 0 auto;
    font-size: 1.2rem;
    color: var(--teal);
}

.doctor-sign-card strong {
    display: block;
    color: var(--navy);
    font-size: .92rem;
    margin-bottom: 2px;
}

.doctor-sign-card p {
    font-size: .88rem;
    color: #57646e;
}

/* specialisation grid with keyword tag */
.doctor-spec-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .doctor-spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .doctor-spec-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.doctor-spec-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    transition: .2s;
}

.doctor-spec-card:hover {
    border-color: var(--teal);
    box-shadow: 0 10px 26px rgba(10, 42, 67, .08);
}

.doctor-spec-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(14, 138, 130, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-weight: 800;
    margin-bottom: 12px;
}

.doctor-spec-card h3 {
    font-size: 1.02rem;
    color: var(--navy);
    margin-bottom: 6px;
}

.doctor-spec-card p {
    font-size: .9rem;
    color: #57646e;
}

.doctor-spec-kw {
    display: inline-block;
    margin-top: 10px;
    font-size: .74rem;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* generic data table (e.g. recommended exam schedule) */
.doctor-data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(10, 42, 67, .07);
}

.doctor-data-table th,
.doctor-data-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: .9rem;
    border-bottom: 1px solid var(--line);
}

.doctor-data-table thead {
    background: var(--navy);
    color: #fff;
}

.doctor-data-table tbody tr:nth-child(even) td {
    background: var(--paper);
}

.doctor-data-table tbody tr:last-child td {
    border-bottom: none;
}

/* related doctors strip */
.doctor-related-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.doctor-related-card {
    flex: 0 0 auto;
    width: 170px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 14px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: .2s;
    text-decoration: none;
}

.doctor-related-card:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg, 0 16px 40px rgba(10, 38, 71, .14));
}

.doctor-related-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
}

.doctor-related-card .name {
    font-weight: 700;
    color: var(--navy);
    font-size: .95rem;
    display: block;
    margin-bottom: 2px;
}

.doctor-related-card .role {
    font-size: .78rem;
    color: #647685;
}

/* Listing-page doctor cards (.doc-card, .doc-media, etc.) are now defined
   in the scoped <style> block inside resources/views/livewire/doctors.blade.php
   (under .doctors-page) — kept there for 1:1 parity with the reference mockup. */

/* ============================================ */
/* STANDARD DOCTOR PROFILE HERO (non-director)   */
/* ============================================ */
.doctor-profile-hero {
    padding: 26px 0 10px;
}

.doctor-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
}

@media (min-width: 860px) {
    .doctor-profile-grid {
        grid-template-columns: 340px 1fr;
    }
}

.doctor-profile-photo-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 16px 40px rgba(10, 38, 71, .14));
}

.doctor-profile-photo-wrap img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: top center;
}

.doctor-profile-photo-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(10, 38, 71, .85);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(3px);
}

.doctor-profile-info h1 {
    font-size: clamp(26px, 4vw, 36px);
    margin-bottom: 4px;
}

.doctor-profile-role {
    color: var(--teal);
    font-weight: 700;
    font-size: 15.5px;
    margin-bottom: 12px;
}

.doctor-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.doctor-stat-chip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
}

.doctor-profile-lede {
    font-size: 16.5px;
    color: var(--ink);
}

.doctor-specialty-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.doctor-specialty-pill {
    background: #EFF6F5;
    color: var(--teal);
    font-weight: 700;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Why-choose icon cards (standard-layout doctors) */
.doctor-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .doctor-why-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .doctor-why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.doctor-why-card {
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

@media (min-width: 900px) {
    .doctor-why-card {
        flex-direction: column;
        text-align: left;
    }
}

.doctor-why-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #EFF6F5;
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.doctor-why-card h3 {
    font-size: 16.5px;
    margin-bottom: 4px;
}

.doctor-why-card p {
    color: #647685;
    font-size: 14px;
    margin: 0;
}

.doctor-spec-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doctor-spec-list li {
    font-size: 14px;
    color: var(--ink);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.doctor-spec-list li::before {
    content: "✓";
    color: var(--teal);
    font-weight: 700;
    flex: 0 0 auto;
}

/* Mid-page booking band */
.doctor-book-band {
    background: linear-gradient(135deg, var(--navy), var(--cobalt));
    border-radius: 20px;
    padding: 30px 26px;
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-lg, 0 16px 40px rgba(10, 38, 71, .14));
}

.doctor-book-band h2 {
    color: #fff;
    font-size: clamp(22px, 3.5vw, 28px);
}

.doctor-book-band p {
    color: #DCE7F3;
    max-width: 560px;
    margin: 0 auto 20px;
}