/* ============================================================
   NeuroDiscuss — Modern Design Layer ("Editorial Clinical")
   Loaded last; refines the base theme into a designer-grade UI.
   - Unified design tokens (light + dark)
   - Fraunces (display serif) + Inter (UI/body) pairing
   - Glass header, animated mesh hero, elevated cards
   - Scroll-reveal, reading progress, trust band
   ============================================================ */

/* ----------------------------------------------------------
   1. Design Tokens
   ---------------------------------------------------------- */
:root {
    /* Brand */
    --c-navy:        #0c1f33;
    --c-navy-700:    #122a44;
    --c-navy-600:    #1b3a59;
    --c-teal:        #0e7c86;
    --c-teal-600:    #0a6770;
    --c-teal-400:    #19a7b0;
    --c-mint:        #5fd0c5;
    --c-accent:      #e8a14b;   /* warm editorial highlight */

    /* Neutrals — warm paper */
    --c-paper:       #faf8f4;
    --c-paper-2:     #f3efe7;
    --c-surface:     #ffffff;
    --c-surface-2:   #fbfaf7;
    --c-ink:         #15212e;
    --c-ink-2:       #3c4a59;
    --c-muted:       #67768a;
    --c-line:        #e7e2d8;
    --c-line-soft:   #f0ece3;

    /* Gradients */
    --g-brand:   linear-gradient(135deg, var(--c-teal) 0%, var(--c-teal-400) 100%);
    --g-deep:    linear-gradient(135deg, #0a1a2b 0%, #122a44 55%, #16384f 100%);
    --g-accent:  linear-gradient(135deg, var(--c-accent) 0%, #f0b970 100%);

    /* Typography */
    --font-display: "Fraunces", "Playfair Display", Georgia, serif;
    --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Radius */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-pill: 999px;

    /* Shadows — soft, layered, brand-tinted */
    --sh-xs: 0 1px 2px rgba(12, 31, 51, .05);
    --sh-sm: 0 2px 8px rgba(12, 31, 51, .06), 0 1px 2px rgba(12, 31, 51, .04);
    --sh-md: 0 10px 30px -12px rgba(12, 31, 51, .18), 0 4px 10px -6px rgba(12, 31, 51, .08);
    --sh-lg: 0 28px 60px -22px rgba(12, 31, 51, .28), 0 10px 24px -16px rgba(12, 31, 51, .14);
    --sh-teal: 0 14px 34px -12px rgba(14, 124, 134, .5);

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    /* Layout */
    --container: 1200px;
    --container-wide: 1320px;
}

[data-theme="dark"] {
    --c-paper:       #0b1622;
    --c-paper-2:     #0e1b29;
    --c-surface:     #111f2e;
    --c-surface-2:   #16273a;
    --c-ink:         #e9eef4;
    --c-ink-2:       #c2cdda;
    --c-muted:       #93a4b6;
    --c-line:        #25394d;
    --c-line-soft:   #1d2e40;
    --c-teal:        #2bb9c0;
    --c-teal-400:    #43d0d6;
    --sh-md: 0 10px 30px -12px rgba(0,0,0,.6), 0 4px 10px -6px rgba(0,0,0,.4);
    --sh-lg: 0 28px 60px -22px rgba(0,0,0,.7), 0 10px 24px -16px rgba(0,0,0,.5);
    --sh-sm: 0 2px 10px rgba(0,0,0,.45);
}

/* ----------------------------------------------------------
   2. Base + Typography
   ---------------------------------------------------------- */
body {
    font-family: var(--font-sans);
    color: var(--c-ink-2);
    background: var(--c-paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "cv05";
}

h1, h2, h3, .hero-title, .section-title, .post-title, .page-title {
    font-family: var(--font-display);
    color: var(--c-ink);
    letter-spacing: -.012em;
    font-optical-sizing: auto;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 600; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; }

p { color: var(--c-ink-2); }

.container { max-width: var(--container); }

::selection { background: var(--c-teal); color: #fff; }

a { transition: color .25s var(--ease), background .25s var(--ease); }

/* ----------------------------------------------------------
   3. Header — glass, sticky, scroll-aware
   ---------------------------------------------------------- */
.site-header {
    background: rgba(10, 22, 36, .72);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: none;
    transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
    background: rgba(9, 19, 31, .92);
    box-shadow: 0 10px 30px -18px rgba(0,0,0,.7);
}
.header-content { padding: .8rem 0; transition: padding .3s var(--ease); }
.site-header.is-scrolled .header-content { padding: .55rem 0; }

.site-title a, .site-logo a, .site-logo {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.02em;
}

.main-navigation a {
    position: relative;
    color: #cfdae6;
    font-weight: 500;
    padding: .5rem .25rem;
    border-radius: 0;
    background: none;
}
.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--g-brand);
    transition: right .3s var(--ease);
}
.main-navigation a:hover,
.main-navigation a.current {
    background: none;
    color: #fff;
}
.main-navigation a:hover::after,
.main-navigation a.current::after { right: 0; }
.main-navigation ul { gap: 1.75rem; }

.nd-theme-toggle {
    color: #cfdae6;
    width: 40px; height: 40px;
    border-radius: var(--r-pill);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.nd-theme-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }

.doctor-header-link {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--g-brand);
    color: #fff !important;
    padding: .6rem 1.15rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: .92rem;
    box-shadow: var(--sh-teal);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.doctor-header-link:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(14,124,134,.6); }

.mobile-menu-toggle { color: #fff; }

/* ----------------------------------------------------------
   4. Buttons
   ---------------------------------------------------------- */
.btn-primary, .hero-button {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--g-brand);
    color: #fff;
    padding: .7rem 1.5rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-family: var(--font-sans);
    text-transform: none;
    letter-spacing: 0;
    font-size: .95rem;
    box-shadow: var(--sh-teal);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
}
.btn-primary:hover, .hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px -14px rgba(14,124,134,.6);
    filter: brightness(1.04);
}
.btn-primary:active, .hero-button:active { transform: translateY(-1px); }

.btn-outline {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.5rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border: 1.5px solid var(--c-line);
    color: var(--c-ink);
    background: transparent;
    transition: all .3s var(--ease);
}
.btn-outline:hover {
    border-color: var(--c-teal);
    color: var(--c-teal);
    background: rgba(14,124,134,.06);
    transform: translateY(-2px);
}

/* ----------------------------------------------------------
   5. Hero — animated mesh + editorial type
   ---------------------------------------------------------- */
.hero-slider { background: var(--g-deep); }
.hero-slide {
    min-height: clamp(340px, 52vh, 480px);
    padding: 2.5rem 1rem;
    position: relative;
    isolation: isolate;
    background-size: cover;
    background-position: center;
}
/* Animated colour-mesh glow */
.hero-slide::after {
    content: "";
    position: absolute; inset: 0;
    z-index: 0;
    background:
        radial-gradient(48% 60% at 18% 22%, rgba(25,167,176,.38), transparent 60%),
        radial-gradient(46% 55% at 82% 18%, rgba(232,161,75,.22), transparent 60%),
        radial-gradient(60% 70% at 70% 88%, rgba(27,58,89,.55), transparent 65%);
    animation: nd-mesh 16s var(--ease) infinite alternate;
    pointer-events: none;
}
@keyframes nd-mesh {
    0%   { transform: scale(1) translate(0,0); opacity: .9; }
    100% { transform: scale(1.12) translate(-2%, 1%); opacity: 1; }
}
.hero-slide::before { background: rgba(8, 18, 30, .52); z-index: 1; }
.hero-content { z-index: 2; max-width: 880px; padding: 0 1rem; }
.hero-title {
    font-size: clamp(2rem, 4.6vw, 3.3rem);
    line-height: 1.06;
    margin-bottom: .85rem;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0,0,0,.3);
    animation: nd-rise .9s var(--ease-out) both;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,.9);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.55;
    animation: nd-rise .9s var(--ease-out) .12s both;
}
.hero-content .hero-button { animation: nd-rise .9s var(--ease-out) .24s both; }
@keyframes nd-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.slick-dots { bottom: 1rem; }
.slick-dots li.slick-active button { background: var(--c-teal-400); }

/* ----------------------------------------------------------
   6. Sections — rhythm + eyebrow labels
   ---------------------------------------------------------- */
.section { padding: clamp(2.25rem, 4vw, 3.5rem) 0; }
.latest-posts, .doctors-section { background: var(--c-surface); }
.sub-specialities { background: var(--c-paper-2); }

.section-header { margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem); }
.section-title { font-size: clamp(1.6rem, 2.8vw, 2.1rem); position: relative; display: inline-block; margin-bottom: .5rem; }
.section-title::after {
    content: "";
    display: block;
    width: 44px; height: 3px;
    margin: .65rem auto 0;
    border-radius: 4px;
    background: var(--g-brand);
}
.section-subtitle { color: var(--c-muted); font-size: 1rem; margin-bottom: 0; }

/* Eyebrow label (added via template / JS) */
.nd-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-teal);
    margin-bottom: .5rem;
}

/* ----------------------------------------------------------
   7. Cards
   ---------------------------------------------------------- */
.post-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.speciality-grid, .doctor-grid { gap: 1.25rem; margin-bottom: 2rem; }
.view-all-btn { margin-top: .25rem; }

.post-card, .speciality-card, .doctor-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line-soft);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.post-card:hover, .speciality-card:hover, .doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sh-lg);
    border-color: transparent;
}

/* Post card image zoom */
.post-card a:has(.post-image), .post-card > a:first-child {
    display: block; overflow: hidden;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.post-image { height: 170px; transition: transform .6s var(--ease-out); }
.post-card:hover .post-image { transform: scale(1.06); }
.post-card .post-content { padding: 1.15rem 1.25rem 1.3rem; }
.post-card .post-title { font-size: 1.12rem; line-height: 1.3; margin-bottom: .4rem; }
.post-card .post-title a:hover { color: var(--c-teal); }
.post-excerpt { color: var(--c-muted); font-size: .9rem; margin-bottom: .75rem; }

.post-category {
    background: rgba(14,124,134,.1);
    color: var(--c-teal);
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .06em;
    padding: .35rem .8rem;
    border-radius: var(--r-pill);
}
[data-theme="dark"] .post-category { background: rgba(43,185,192,.15); }

.post-meta { color: var(--c-muted); border-top: 1px solid var(--c-line-soft); padding-top: .7rem; margin-top: .75rem; font-size: .8rem; }
.author-avatar { width: 22px; height: 22px; border: 2px solid var(--c-line-soft); }

/* Speciality cards */
.speciality-card { padding: 1.5rem 1.35rem; }
.speciality-icon {
    width: 56px; height: 56px;
    background: rgba(14,124,134,.1);
    color: var(--c-teal);
    border-radius: var(--r-md);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: transform .4s var(--ease-out), background .4s var(--ease-out), color .4s var(--ease-out);
}
.speciality-title { font-size: 1.1rem; margin-bottom: .5rem; }
.speciality-description { font-size: .9rem; }
.speciality-card:hover .speciality-icon {
    background: var(--g-brand);
    color: #fff;
    transform: rotate(-6deg) scale(1.06);
}
[data-theme="dark"] .speciality-icon { background: rgba(43,185,192,.16); }
.speciality-title a:hover { color: var(--c-teal); }

/* Doctor cards */
.doctor-image {
    width: 104px; height: 104px;
    margin: 1.5rem auto .75rem;
    border: 4px solid var(--c-surface);
    box-shadow: var(--sh-md);
    transition: transform .4s var(--ease-out);
}
.doctor-content { padding: 0 1.25rem 1.5rem; }
.doctor-name { font-size: 1.12rem; margin-bottom: .35rem; }
.doctor-bio { font-size: .88rem; }
.doctor-experience, .doctor-speciality { margin-bottom: .5rem; }
.doctor-card:hover .doctor-image { transform: scale(1.05); }
.doctor-speciality { color: var(--c-teal); font-weight: 600; }

/* ----------------------------------------------------------
   8. Trust / Stats band (new component)
   ---------------------------------------------------------- */
.nd-stats {
    background: var(--g-deep);
    color: #fff;
    padding: clamp(1.75rem, 3vw, 2.5rem) 0;
    position: relative;
    overflow: hidden;
}
.nd-stats::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(50% 80% at 80% 0%, rgba(25,167,176,.25), transparent 60%);
    pointer-events: none;
}
.nd-stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.nd-stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: linear-gradient(120deg, #fff, var(--c-mint));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nd-stat-label {
    margin-top: .6rem;
    color: rgba(255,255,255,.75);
    font-size: .95rem;
    letter-spacing: .02em;
}

/* ----------------------------------------------------------
   9. CTA section
   ---------------------------------------------------------- */
.cta-section { background: var(--g-deep) !important; position: relative; overflow: hidden; }
.cta-section::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(40% 60% at 15% 30%, rgba(25,167,176,.3), transparent 60%),
        radial-gradient(40% 60% at 85% 70%, rgba(232,161,75,.2), transparent 60%);
    pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-family: var(--font-display); }

/* ----------------------------------------------------------
   10. Footer
   ---------------------------------------------------------- */
.site-footer {
    background: var(--g-deep);
    color: #b9c6d4;
    position: relative;
}
.site-footer .footer-content { padding: 2.25rem 0 1.5rem; gap: 1.5rem; }
.site-footer .footer-bottom { padding: 1rem 0; }
.content-area { padding: 2rem 0; }
.page-header { padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 2rem; }
.site-footer::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--g-brand);
}
.site-footer h4 {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
}
.footer-logo a { font-family: var(--font-display); color: #fff; }
.site-footer a:hover { color: var(--c-teal-400); }
.social-links a {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,.07);
    color: #cfdae6;
    transition: transform .25s var(--ease), background .25s var(--ease);
}
.social-links a:hover { background: var(--g-brand); color: #fff; transform: translateY(-3px); }
.newsletter-form input { border-radius: var(--r-pill) 0 0 var(--r-pill); border: none; }
.newsletter-form .btn-primary { border-radius: 0 var(--r-pill) var(--r-pill) 0; box-shadow: none; }

/* ----------------------------------------------------------
   11. Reading progress + back to top
   ---------------------------------------------------------- */
.progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--g-brand);
    z-index: 3000;
    box-shadow: 0 0 12px rgba(25,167,176,.6);
    transition: width .1s linear;
}
/* Minimal translucent up-arrow — no filled circle */
.back-to-top {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: var(--c-ink) !important;
    width: 46px !important;
    height: 46px !important;
    font-size: 1.65rem !important;
    transition: transform .3s var(--ease), opacity .3s var(--ease) !important;
}
.back-to-top i { opacity: .35; transition: opacity .2s var(--ease); }
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top:hover i { opacity: .8; }

/* ----------------------------------------------------------
   12. Scroll-reveal animation
   ---------------------------------------------------------- */
.nd-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    will-change: opacity, transform;
}
.nd-reveal.is-visible { opacity: 1; transform: none; }
.nd-reveal[data-delay="1"] { transition-delay: .08s; }
.nd-reveal[data-delay="2"] { transition-delay: .16s; }
.nd-reveal[data-delay="3"] { transition-delay: .24s; }
.nd-reveal[data-delay="4"] { transition-delay: .32s; }

/* ----------------------------------------------------------
   13. Page header / breadcrumb refinement
   ---------------------------------------------------------- */
.page-header { background: var(--g-deep); padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem); }
.page-title { font-size: clamp(2rem, 4vw, 3rem); }
.breadcrumbs a { color: var(--c-teal-400); }

.main-content { background: var(--c-surface); border: 1px solid var(--c-line-soft); border-radius: var(--r-lg); }
.post-content blockquote { border-left-color: var(--c-teal); background: var(--c-surface-2); border-radius: 0 var(--r-md) var(--r-md) 0; }
.tag-cloud a { background: var(--c-surface-2); color: var(--c-muted); border: 1px solid var(--c-line-soft); }
.tag-cloud a:hover { background: var(--g-brand); color: #fff; border-color: transparent; }
.pagination a, .pagination span { border: 1px solid var(--c-line-soft); box-shadow: var(--sh-xs); }
.pagination a:hover, .pagination .current { background: var(--g-brand); border-color: transparent; }

/* ----------------------------------------------------------
   14. Dark-mode surface fixes
   ---------------------------------------------------------- */
[data-theme="dark"] body { background: var(--c-paper); }
[data-theme="dark"] .latest-posts,
[data-theme="dark"] .doctors-section { background: var(--c-paper); }
[data-theme="dark"] .sub-specialities { background: var(--c-paper-2); }
[data-theme="dark"] .post-card,
[data-theme="dark"] .speciality-card,
[data-theme="dark"] .doctor-card,
[data-theme="dark"] .main-content { background: var(--c-surface); border-color: var(--c-line); }
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .post-excerpt,
[data-theme="dark"] .speciality-description { color: var(--c-muted); }

/* ----------------------------------------------------------
   15. Responsive
   ---------------------------------------------------------- */
@media (min-width: 992px) {
    .main-navigation { display: block; }
    .mobile-menu-toggle { display: none; }
}
@media (max-width: 600px) {
    .hero-slide { min-height: 78vh; }
    .btn-primary, .hero-button, .btn-outline { padding: .85rem 1.6rem; }
}

/* ----------------------------------------------------------
   16. Accessibility — respect reduced motion
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hero-slide::after,
    .hero-slider::before { animation: none; }
    .nd-reveal { opacity: 1; transform: none; transition: none; }
    .hero-title, .hero-subtitle, .hero-content .hero-button { animation: none; }
    * { scroll-behavior: auto !important; }
}

/* ----------------------------------------------------------
   17. Compact single-article page
   Tightens the generous base spacing (3rem paddings / margins)
   so the article reads dense and elegant with less scrolling.
   Scoped to .single-post so card rules never leak in.
   ---------------------------------------------------------- */
.single-post .main-content { padding: clamp(1.5rem, 3vw, 2.25rem); }

.single-post .post-header { margin-bottom: 1.5rem; }
.single-post .post-categories { margin-bottom: .6rem; }
.single-post .post-title {
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    line-height: 1.18;
    margin-bottom: .6rem;
}
.single-post .post-meta-single {
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.single-post .post-thumbnail { margin-bottom: 1.5rem; }
.single-post .featured-image {
    height: clamp(220px, 32vw, 300px);
    margin-bottom: 0;
    border-radius: var(--r-lg);
}

.single-post .post-content { line-height: 1.7; }
.single-post .post-content p { margin-bottom: 1rem; }
.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4,
.single-post .post-content h5,
.single-post .post-content h6 { margin: 1.6rem 0 .6rem; }
.single-post .post-content ul,
.single-post .post-content ol { margin: 1rem 0; }
.single-post .post-content blockquote { padding: 1rem 1.35rem; margin: 1.35rem 0; font-size: 1.02rem; }

.single-post .post-tags { margin-top: 1.75rem; padding-top: 1.25rem; }
.single-post .author-box { padding: 1.35rem; margin: 1.75rem 0; gap: 1.1rem; }
.single-post .post-navigation { margin-top: 1.75rem; padding-top: 1.25rem; }
.single-post .related-posts { margin-top: 1.75rem; }
.single-post .related-posts h3 { margin-bottom: 1rem; }

/* ----------------------------------------------------------
   18. Compact single-doctor profile
   Smaller avatar, tighter paddings, and a horizontal header on
   wider screens for a designer-profile feel + less scrolling.
   ---------------------------------------------------------- */
.doctor-profile { margin-bottom: 1.75rem; border-radius: var(--r-lg); box-shadow: var(--sh-md); }

.doctor-profile-header { padding: clamp(1.5rem, 3vw, 2.25rem); gap: 1.5rem; }
.doctor-profile-image {
    width: 140px; height: 140px;
    border-width: 4px;
    box-shadow: var(--sh-md);
}
.doctor-profile-name { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .35rem; }
.doctor-profile-speciality { font-size: 1.1rem; margin-bottom: .6rem; }
.doctor-profile-details { margin-top: 1rem; gap: .75rem; }
.doctor-profile-details .detail-item { padding: .8rem; border-radius: var(--r-md); }

.doctor-profile-content { padding: clamp(1.5rem, 3vw, 2.25rem); }
.doctor-profile-content .content-section { margin-bottom: 1.5rem; }
.doctor-profile-content .content-section h3 { font-size: 1.25rem; margin-bottom: .7rem; }

@media (min-width: 768px) {
    .doctor-profile-header {
        grid-template-columns: auto 1fr;
        align-items: center;
        text-align: left;
    }
    .doctor-profile-image { margin: 0; }
    .doctor-profile-info { text-align: left; }
    .doctor-profile-details { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
