/* ═══════════════════════════════════════════════════
   DermoBrain.com Design System
   Medical-grade dermatology encyclopedia
   ═══════════════════════════════════════════════════ */

/* ─── CSS Custom Properties (Light Mode) ─────────── */
:root {
    /* Primary - Medical Teal */
    --primary: #1A6B54;
    --primary-light: #238C6E;
    --primary-dark: #145543;
    --primary-50: #E8F5F0;
    --primary-100: #C6E8DC;

    /* Accent - Warm Coral for CTAs */
    --accent: #E8734A;
    --accent-light: #F09070;
    --accent-dark: #D45E35;
    --accent-hover: #D45E35;

    /* Pillar Colors */
    --pillar-medical: #1A6B54;
    --pillar-surgical: #2E5090;
    --pillar-cosmetic: #9B4DCA;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Semantic */
    --success: #059669;
    --warning: #D97706;
    --error: #DC2626;
    --info: #2563EB;

    /* Layout */
    --bg: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-card: var(--white);
    --text: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-light: var(--gray-500);
    --text-muted: var(--gray-400);
    --border: var(--gray-200);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-max: 1400px;
    --container-narrow: 800px;
    --header-height: 72px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition: 0.2s ease;
}

/* ─── Dark Mode ──────────────────────────────────── */
[data-theme="dark"] {
    --bg: #0F1419;
    --bg-secondary: #1A1F2E;
    --bg-card: #1E2433;
    --text: #E8ECF1;
    --text-secondary: #A0AAB8;
    --text-muted: #6B7A8D;
    --text-light: #8A95A5;
    --border: #2A3142;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.35);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
    --primary-50: #0E2A22;
    --primary-100: #133D30;
    --gray-100: #1A1F2E;
    --gray-200: #2A3142;
}

/* ─── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

/* ─── Layout ─────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Header & Navigation ────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.92);
    height: var(--header-height);
}
[data-theme="dark"] .site-header {
    background: rgba(15,20,25,0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    color: var(--text);
    font-weight: 400;
}
.logo:hover { color: var(--primary); }
.logo-icon { font-size: 1.6rem; display: flex; align-items: center; }
.logo-icon svg { color: var(--primary); }
.site-header .logo-text { color: var(--text); }
.logo-text strong { color: var(--primary); font-weight: 800; }

.main-nav { display: flex; align-items: center; }
.nav-list {
    display: flex;
    list-style: none;
    gap: 0.125rem;
    align-items: center;
}
/* HIDDEN: Tools section hidden until ready — remove these rules to restore */
.nav-item:has(> a[href="/tools/"]) { display: none; }
.footer-links a[href="/tools/"] { display: none; }
.nav-item { position: relative; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--primary);
    background: var(--primary-50);
}
.cta-link {
    color: var(--accent) !important;
    font-weight: 600;
}
.cta-link:hover { color: var(--accent-dark) !important; background: rgba(232,115,74,0.08) !important; }

.dropdown-arrow { transition: transform var(--transition); }
.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 0.5rem;
    z-index: 100;
}
.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}
.dropdown-menu a:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Dark Mode Toggle */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.dark-mode-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover { background: var(--primary-light); color: var(--white); }

.btn-accent {
    background: var(--accent);
    color: var(--white);
}
.btn-accent:hover { background: var(--accent-dark); color: var(--white); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }

/* ─── Hero Section ───────────────────────────────── */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg) 60%);
    text-align: center;
}
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg) 60%);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text);
    opacity: 0.75;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-search {
    display: flex;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 100;
}
.hero-search .search-input {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.hero-search .search-btn {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    outline: none;
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font-sans);
}
.search-input:focus { border-color: var(--primary); }
.search-btn {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 1rem 1.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.hero-stats .stat {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.hero-stats .stat strong {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ─── Section Styles ─────────────────────────────── */
.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* ─── Three Pillars ──────────────────────────────── */
.pillars-section {
    padding: 5rem 0;
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.pillar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    color: var(--text);
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pillar-medical:hover { border-color: var(--pillar-medical); }
.pillar-surgical:hover { border-color: var(--pillar-surgical); }
.pillar-cosmetic:hover { border-color: var(--pillar-cosmetic); }

.pillar-icon { font-size: 2.5rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--primary-50); }
.pillar-medical .pillar-icon { color: var(--pillar-medical); background: #E8F5F0; }
.pillar-surgical .pillar-icon { color: var(--pillar-surgical); background: #E8EEF5; }
.pillar-cosmetic .pillar-icon { color: var(--pillar-cosmetic); background: #F3E8FA; }
[data-theme="dark"] .pillar-medical .pillar-icon { background: rgba(26,107,84,0.15); }
[data-theme="dark"] .pillar-surgical .pillar-icon { background: rgba(46,80,144,0.15); }
[data-theme="dark"] .pillar-cosmetic .pillar-icon { background: rgba(155,77,202,0.15); }
.pillar-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.pillar-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1rem; }
.pillar-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-50);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* ─── Article Cards ──────────────────────────────── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
}
.article-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.article-card-body {
    padding: 1.25rem;
}
.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: var(--primary-50);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.article-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}
.article-card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.featured-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

/* ─── CTA Banners ────────────────────────────────── */
.cta-banner {
    padding: 4rem 0;
    text-align: center;
}
.cta-quiz {
    background: linear-gradient(135deg, var(--accent) 0%, #E85D3A 100%);
    color: var(--white);
}
.cta-quiz h2, .cta-quiz p { color: var(--white); }
.cta-quiz .btn-accent {
    background: var(--white);
    color: var(--accent);
}
.cta-quiz .btn-accent:hover { background: var(--gray-100); color: var(--accent-dark); }

.cta-directory {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}
.cta-directory h2, .cta-directory p { color: var(--white); }
.cta-directory .btn-primary {
    background: var(--white);
    color: var(--primary);
}
.cta-directory .btn-primary:hover { background: var(--gray-100); color: var(--primary-dark); }

.cta-content p { max-width: 500px; margin: 0.75rem auto 1.5rem; opacity: 0.92; }

/* ─── Categories Grid ────────────────────────────── */
.categories-section { padding: 5rem 0; }
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}
.category-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
}
.category-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}
.cat-icon { display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; width: 22px; height: 22px; }
.cat-icon svg { width: 18px; height: 18px; }

/* ─── Content Pages ──────────────────────────────── */
.content-page { padding: 3rem 0 5rem; }
.content-page h1 { margin-bottom: 2rem; }
.content-page h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.content-body p { margin-bottom: 1rem; }
.content-body .lead { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; }
.content-body ul { margin: 1rem 0; padding-left: 1.5rem; }
.content-body li { margin-bottom: 0.5rem; }

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}
.standard-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.standard-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.standard-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* ─── Breadcrumbs ────────────────────────────────── */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 0.4rem; }

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
    background: #0A0E14;
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}
[data-theme="dark"] .footer-logo { color: #E8ECF1; }
[data-theme="dark"] .footer-links h4 { color: #E8ECF1; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-about p { margin-top: 1rem; font-size: 0.92rem; line-height: 1.6; color: var(--gray-300); }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.3rem; color: var(--gray-100); }
.footer-logo strong { color: var(--primary-light); }

.footer-links h4 {
    color: var(--gray-100);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--gray-300); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.85rem;
}
.footer-disclaimer {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-400);
}

/* ─── Pillar Pages ───────────────────────────────── */
.pillar-page { padding: 2rem 0 5rem; }

.pillar-header {
    margin-bottom: 2.5rem;
    text-align: center;
    padding: 1rem 0 0;
}

.pillar-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.pillar-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.pillar-stats-line {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.pillar-stats-dot { margin: 0 0.4rem; }

.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.pillar-icon-medical  { background: rgba(26,107,84,0.1);  color: var(--pillar-medical);  }
.pillar-icon-surgical { background: rgba(46,80,144,0.1);  color: var(--pillar-surgical); }
.pillar-icon-cosmetic { background: rgba(155,77,202,0.1); color: var(--pillar-cosmetic); }
.pillar-icon-skincare { background: rgba(26,107,84,0.1);  color: var(--primary);          }

[data-theme="dark"] .pillar-icon-medical  { background: rgba(26,107,84,0.18);  }
[data-theme="dark"] .pillar-icon-surgical { background: rgba(46,80,144,0.18);  }
[data-theme="dark"] .pillar-icon-cosmetic { background: rgba(155,77,202,0.18); }
[data-theme="dark"] .pillar-icon-skincare { background: rgba(26,107,84,0.18);  }

.category-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
    line-height: 1.3;
}

.category-item h3 a {
    color: var(--text);
    text-decoration: none;
}

.category-item h3 a:hover { color: var(--primary); }

.category-item p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    line-height: 1.55;
}

.category-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.article-count {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-50);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
}

.category-item-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-muted);
    flex-shrink: 0;
}

.category-item:hover .category-item-arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ─── New Pillar Hero & Category Redesign ─────────── */
.pillar-hero {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a2e1e 0%, #1A6B54 100%);
    color: #fff;
}
.pillar-surgical .pillar-hero {
    background: linear-gradient(135deg, #0d1a35 0%, #2E5090 100%);
}
.pillar-cosmetic .pillar-hero {
    background: linear-gradient(135deg, #1a0a2e 0%, #9B4DCA 100%);
}
.pillar-skincare .pillar-hero {
    background: linear-gradient(135deg, #0a2418 0%, #16795a 100%);
}
.pillar-hero::before {
    content: '';
    position: absolute;
    right: -140px;
    top: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.pillar-hero::after {
    content: '';
    position: absolute;
    left: -80px;
    bottom: -100px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}
.pillar-hero .container { position: relative; z-index: 1; }
.pillar-hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.25rem;
}
.pillar-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    max-width: 640px;
}
.pillar-hero-desc {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.72);
    max-width: 560px;
    margin-bottom: 2.75rem;
}
.pillar-hero-stats {
    display: flex;
    gap: 2.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.pillar-hero-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.pillar-hero-stat-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}
.pillar-hero-stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 600;
}

/* Pillar category section */
.pillar-cats-section { padding: 4rem 0 5rem; }
.pillar-cats-heading {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text);
    letter-spacing: -0.02em;
}
.pillar-cats-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Featured card (largest category) */
.pcat-featured {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}
.pcat-featured::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--pillar-medical);
    border-radius: 2px 0 0 2px;
}
.pillar-surgical .pcat-featured::before { background: var(--pillar-surgical); }
.pillar-cosmetic .pcat-featured::before { background: var(--pillar-cosmetic); }
.pcat-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: var(--primary-100);
    text-decoration: none;
    color: inherit;
}
.pcat-featured-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: rgba(26,107,84,0.1);
    color: var(--pillar-medical);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pillar-surgical .pcat-featured-icon { background: rgba(46,80,144,0.1); color: var(--pillar-surgical); }
.pillar-cosmetic .pcat-featured-icon { background: rgba(155,77,202,0.1); color: var(--pillar-cosmetic); }
[data-theme="dark"] .pcat-featured-icon { background: rgba(26,107,84,0.18); }
[data-theme="dark"] .pillar-surgical .pcat-featured-icon { background: rgba(46,80,144,0.18); }
[data-theme="dark"] .pillar-cosmetic .pcat-featured-icon { background: rgba(155,77,202,0.18); }
.pcat-featured-body { flex: 1; min-width: 0; }
.pcat-featured-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pillar-medical);
    margin-bottom: 0.45rem;
}
.pillar-surgical .pcat-featured-label { color: var(--pillar-surgical); }
.pillar-cosmetic .pcat-featured-label { color: var(--pillar-cosmetic); }
.pcat-featured-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--text);
    line-height: 1.3;
}
.pcat-featured-desc {
    font-size: 0.91rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.pcat-featured-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.9rem;
    flex-shrink: 0;
}
.pcat-count-big {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
}
.pcat-count-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 600;
    text-align: right;
}
.pcat-featured-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
.pcat-featured:hover .pcat-featured-arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pillar-surgical .pcat-featured:hover .pcat-featured-arrow { background: var(--pillar-surgical); border-color: var(--pillar-surgical); }
.pillar-cosmetic .pcat-featured:hover .pcat-featured-arrow { background: var(--pillar-cosmetic); border-color: var(--pillar-cosmetic); }

/* Grid cards */
.pcat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.pcat-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pcat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--primary);
    text-decoration: none;
    color: inherit;
}
.pillar-surgical .pcat-card:hover { border-color: var(--pillar-surgical); }
.pillar-cosmetic .pcat-card:hover { border-color: var(--pillar-cosmetic); }
.pcat-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.pcat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,107,84,0.08);
    color: var(--pillar-medical);
    flex-shrink: 0;
}
.pillar-surgical .pcat-icon { background: rgba(46,80,144,0.08); color: var(--pillar-surgical); }
.pillar-cosmetic .pcat-icon { background: rgba(155,77,202,0.08); color: var(--pillar-cosmetic); }
[data-theme="dark"] .pcat-icon { background: rgba(26,107,84,0.15); }
[data-theme="dark"] .pillar-surgical .pcat-icon { background: rgba(46,80,144,0.15); }
[data-theme="dark"] .pillar-cosmetic .pcat-icon { background: rgba(155,77,202,0.15); }
.pcat-count-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.18rem 0.6rem;
    white-space: nowrap;
}
.pcat-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--text);
    line-height: 1.3;
}
.pcat-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1.25rem;
    margin-top: 0;
}
.pcat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.pcat-footer-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}
.pcat-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
.pcat-card:hover .pcat-arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pillar-surgical .pcat-card:hover .pcat-arrow { background: var(--pillar-surgical); border-color: var(--pillar-surgical); }
.pillar-cosmetic .pcat-card:hover .pcat-arrow { background: var(--pillar-cosmetic); border-color: var(--pillar-cosmetic); }

/* Pillar CTA strip */
.pillar-cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2.25rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.pillar-cta-strip:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    text-decoration: none;
    color: inherit;
}
.pillar-cta-strip h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}
.pillar-cta-strip p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    margin: 0;
}
.pillar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #fff !important;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.pillar-cta-btn:hover { opacity: 0.88; }

/* Pillar responsive */
@media (max-width: 900px) {
    .pillar-hero h1 { font-size: 2.75rem; }
    .pcat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pillar-hero { padding: 3.5rem 0 3rem; }
    .pillar-hero h1 { font-size: 2.1rem; }
    .pillar-hero-stats { gap: 1.5rem; }
    .pillar-hero-stat-num { font-size: 1.5rem; }
    .pcat-featured { flex-direction: column; gap: 1.25rem; }
    .pcat-featured-meta { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
    .pcat-grid { grid-template-columns: 1fr; }
    .pillar-cta-strip { flex-direction: column; text-align: center; align-items: center; }
}
@media (max-width: 480px) {
    .pillar-hero h1 { font-size: 1.85rem; }
    .pillar-hero-stats { flex-wrap: wrap; gap: 1.25rem; }
    .pillar-hero-desc { font-size: 0.95rem; }
}

/* ─── Category Pages ─────────────────────────────── */
.category-page { padding: 3rem 0 5rem; }

.category-header {
    margin-bottom: 2.5rem;
}

.category-header h1 {
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 700px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.filter-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ─── Directory Pages ────────────────────────────── */
.py-5 { padding: 3rem 0; }

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.search-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.form-control {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font-sans);
    transition: all var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 107, 84, 0.1);
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

.state-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.state-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.state-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ─── State Page: Cities Grid ─── */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.city-item {
    display: block;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.city-item:hover {
    border-color: var(--primary);
    background: var(--primary-50);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.city-item h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0 0 0.25rem;
}

.city-item p {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.city-item:hover h3 {
    color: var(--primary);
}

/* ─── Cost Pages ─────────────────────────────────── */
.cost-page { padding: 3rem 0 5rem; }

.cost-header {
    margin-bottom: 2.5rem;
}

.cost-header h1 {
    margin-bottom: 1rem;
}

.cost-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.cost-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.cost-range {
    grid-column: 1 / -1;
}

.cost-range h2,
.cost-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.cost-box {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--gray-100) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    text-align: center;
}

[data-theme="dark"] .cost-box {
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--gray-200) 100%);
}

.cost-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cost-note {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.cost-section {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.cost-section ul {
    list-style: none;
    padding: 0;
}

.cost-section li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.cost-section li:last-child {
    border-bottom: none;
}

.cost-cta {
    padding: 2.5rem;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--primary);
}

[data-theme="dark"] .cost-cta {
    background: var(--primary-100);
}

.cost-cta h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.cost-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.costs-index { padding: 3rem 0 5rem; }

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.procedures-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.procedure-item {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.procedure-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.procedure-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.procedure-item h3 a {
    color: var(--text);
    text-decoration: none;
}

.procedure-item h3 a:hover {
    color: var(--primary);
}

.procedure-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.cities-count {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-50);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    align-self: flex-start;
}

/* ─── Article Pages ─────────────────────────────── */
.article-page { padding: 3rem 0 5rem; }

.article-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.article-category {
    font-size: 0.8rem;
}
.article-header .article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: var(--primary-50);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.byline {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--success);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge::before {
    content: "✓";
    display: inline-block;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 3rem;
    max-width: 68ch;
}

.article-body h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.social-share {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    text-align: center;
}

.social-share p {
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    margin-right: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.share-btn.twitter:hover { color: #000000; }
.share-btn.facebook:hover { color: #1877F2; }

.related-articles {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.related-articles h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-card {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.related-card:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.related-card a {
    color: var(--text);
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.related-card:hover a {
    color: var(--primary);
}

/* ─── Practice Pages ──────────────────────────────── */
.practice-page {
    background: var(--bg);
}

/* Back to Home */
.back-to-home {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.page-home .back-to-home,
.page-pillar .back-to-home {
    display: none;
}

.back-to-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}

.back-to-home-link:hover {
    color: var(--primary-light);
    gap: 0.6rem;
}

.back-to-home-link svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.back-to-home-link:hover svg {
    transform: translateX(-2px);
}

@media (max-width: 768px) {
    .back-to-home {
        padding: 0.5rem 0;
    }

    .back-to-home-link {
        font-size: 0.82rem;
        padding: 0.25rem 0;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--bg-secondary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-list a {
    color: var(--primary);
    font-size: 0.95rem;
}

.breadcrumb-list a:hover {
    color: var(--primary-light);
}

.breadcrumb-list li.active {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Practice Header */
.practice-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.left-section {
    flex: 1;
}

.practice-name {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--text);
    margin-bottom: 0.5rem;
}

.doctor-name {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.badge-gold {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #FFB84D 0%, #FFA500 100%);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.4rem 0.85rem;
    background: linear-gradient(135deg, var(--primary, #1A6B54), var(--primary-dark, #145543));
    color: #fff;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.badge-verified svg {
    flex-shrink: 0;
}

/* Practice Info Row */
.practice-info-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.practice-address {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.practice-address .icon {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.practice-address p {
    margin: 0;
    line-height: 1.5;
}

/* Specialties */
.practice-specialties {
    margin-top: 1.5rem;
}

.practice-specialties strong {
    display: block;
    margin-bottom: 1rem;
    color: var(--text);
}

.specialties-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--primary);
}

/* Action Buttons */
.practice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.action-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.action-btn .icon {
    width: 18px;
    height: 18px;
}

.btn-phone {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-phone:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-directions {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-directions:hover {
    background: var(--accent);
    color: var(--white);
}

.btn-appointment {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-appointment:hover {
    background: var(--accent);
    color: var(--white);
}

/* Practice Content Grid */
.practice-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-bottom: 3rem;
}

.practice-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Sections */
.practice-about,
.practice-services,
.practice-community {
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.practice-about h2,
.practice-services h2,
.practice-community h2 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.practice-about p,
.practice-community p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.practice-about p:last-child,
.practice-community p:last-child {
    margin-bottom: 0;
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Sidebar */
.practice-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: fit-content;
}

.practice-location {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-box,
.contact-box {
    background: var(--bg-card);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.location-box:hover,
.contact-box:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.location-box h3,
.contact-box h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text);
}

.location-box .addr {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-phone a {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-phone a:hover {
    color: var(--primary-light);
}

/* Practice Footer */
.practice-footer {
    padding: 2rem 0;
    border-top: 2px solid var(--border);
    margin-top: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    transition: all var(--transition);
}

.back-link:hover {
    gap: 0.75rem;
    color: var(--primary-light);
}

.back-link span {
    font-size: 1.2rem;
}

/* View Profile Link on Cards */
.view-profile-link {
    display: inline-block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-weight: 600;
    transition: color var(--transition);
}

.view-profile-link:hover {
    color: var(--primary-light);
}

/* ─── Article Review Info ────────────────────────── */
.article-review-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    font-size: 0.9rem;
    color: var(--text-light, #555);
    line-height: 1.7;
}

.article-review-info p {
    margin-bottom: 0.5rem;
}

.article-review-info p:last-child {
    margin-bottom: 0;
}

/* ─── Cost Disclaimer ────────────────────────────── */
.cost-disclaimer {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #5d4037;
    line-height: 1.6;
}

/* ─── Practice Disclaimer ────────────────────────── */
.practice-disclaimer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light, #777);
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .cost-body { grid-template-columns: 1fr; }
    .practice-content { grid-template-columns: 1fr; }
    .practice-sidebar { position: static; }
    .practice-actions { gap: 0.75rem; }
    .action-btn { padding: 0.65rem 1.25rem; font-size: 0.9rem; }
    /* Collapse nav to hamburger on tablets */
    .mobile-menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 1rem;
    }
    .main-nav.active { display: block; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-link { padding: 0.75rem 1rem; width: 100%; font-size: 0.9rem; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 1rem;
    }
    .main-nav.active { display: block; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-link { padding: 0.75rem 1rem; width: 100%; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: transparent;
    }
    .has-dropdown:hover .dropdown-menu { display: none; }
    .has-dropdown.open .dropdown-menu { display: block; }

    .pillars-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero { padding: 3rem 0 2.5rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-search { flex-direction: column; border-radius: var(--radius); }
    .hero-search .search-input { border-radius: var(--radius) var(--radius) 0 0; }
    .hero-search .search-btn { border-radius: 0 0 var(--radius) var(--radius); }
    .search-input { border-right: 2px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
    .search-btn { border-radius: 0 0 var(--radius) var(--radius); }

    .categories-list { grid-template-columns: 1fr; }
    .states-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .filter-tabs { gap: 0.5rem; }
    .filter-tab { font-size: 0.85rem; padding: 0.5rem 1rem; }
    .cost-body { grid-template-columns: 1fr; }
    .article-body h2 { font-size: 1.2rem; }
    .article-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
    .search-form { grid-template-columns: 1fr; }

    /* Practice Pages */
    .practice-name { font-size: 1.75rem; }
    .practice-actions { flex-direction: column; }
    .action-btn { width: 100%; justify-content: center; }
    .practice-info-row { gap: 1rem; }
    .header-top { flex-direction: column; }
    .specialties-list { gap: 0.5rem; }
    .breadcrumb-list { gap: 0.25rem; }
}

@media (max-width: 480px) {
    .hero-stats .stat { font-size: 0.85rem; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .states-grid { grid-template-columns: 1fr; }
    .article-meta { flex-direction: column; gap: 0.75rem; }
    .share-btn { margin-right: 0.5rem; margin-bottom: 0.5rem; }
    .related-grid { grid-template-columns: 1fr; }
    .procedures-list { grid-template-columns: 1fr; }
    .cost-amount { font-size: 2rem; }

    /* Practice Pages */
    .practice-name { font-size: 1.5rem; }
    .practice-address { flex-direction: column; }
    .service-tag { font-size: 0.85rem; padding: 0.4rem 0.75rem; }
    .practice-about,
    .practice-services,
    .practice-community { padding: 1.5rem; }
    .breadcrumb { padding: 0.75rem 0; }
}

/* ─── Search Results Dropdown ─────────────────────── */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover,
.search-result-item:focus {
    background: var(--primary);
    color: #fff;
}

.search-result-item strong {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.search-result-item span {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: capitalize;
}

.search-result-item:hover span,
.search-result-item:focus span { opacity: 0.9; }

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ─── Mobile Dropdown Expansion ───────────────────── */
@media (max-width: 768px) {
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        z-index: 999;
        padding: 0.5rem 0;
    }

    .main-nav .nav-item { width: 100%; }

    .main-nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1.25rem;
        min-height: 48px;
    }

    .has-dropdown .dropdown-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        min-width: 40px;
        cursor: pointer;
        transition: transform 0.2s;
    }

    .has-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

    .has-dropdown .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        background: var(--surface);
        padding: 0;
        border-radius: 0;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
        animation: slideDown 0.2s ease;
    }

    .has-dropdown .dropdown-menu a {
        padding: 0.75rem 1.25rem 0.75rem 2rem;
        display: block;
        color: var(--text);
        text-decoration: none;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--border);
        font-size: 0.95rem;
    }

    .has-dropdown .dropdown-menu a:hover {
        background: var(--primary);
        color: #fff;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Bigger touch targets for all interactive elements */
    .filter-tab { min-height: 44px; min-width: 44px; }
    .article-card { padding: 1rem; }
    .share-btn { min-width: 44px; min-height: 44px; }
    .category-item { min-height: 44px; }
}

/* ─── Copy Toast Notification ─────────────────────── */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── Category Item as Link ───────────────────────── */
a.category-item {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

a.category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

a.category-item h3 { color: var(--text); }
a.category-item:hover h3 { color: var(--primary); }
a.category-item p { color: var(--text-secondary); }

/* ─── LinkedIn Share Button ───────────────────────── */
.share-btn.linkedin {
    background: #0077B5;
    color: #fff;
}

.share-btn.linkedin:hover {
    background: #005885;
}

/* ─── Filter Tab Active State Enhancement ─────────── */
.filter-tab.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(26,107,84,0.3);
}

/* ─── Focus States for Accessibility ──────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.nav-link:focus-visible,
.filter-tab:focus-visible,
.share-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ─── Skip to Content (Accessibility) ─────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    z-index: 10001;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* ─── Table of Contents ─── */
.table-of-contents {
    background: var(--bg-secondary, #f8f9fa);
    border: 1px solid var(--border, #e9ecef);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 24px 0 32px;
}

.toc-title {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--primary);
}

.table-of-contents ol {
    margin: 0;
    padding-left: 20px;
}

.table-of-contents li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.table-of-contents a {
    color: var(--text-secondary);
    text-decoration: none;
}

.table-of-contents a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ─── Read Time ─── */
.read-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ─── Newsletter Form ─── */
.footer-newsletter {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}

.footer-newsletter h4 {
    color: #fff;
    margin: 0 0 8px;
}

.footer-newsletter p {
    color: var(--text-muted, #aaa);
    margin: 0 0 16px;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.95rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted, #999);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #d4632e;
}

/* ─── WhatsApp & Pinterest share buttons ─── */
.share-btn.whatsapp {
    background: #25D366;
    color: #fff;
}

.share-btn.pinterest {
    background: #E60023;
    color: #fff;
}

/* ─── Key Takeaway Boxes ─── */
.key-takeaway {
    background: #f0f7f5;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 0.95rem;
}

.key-takeaway::before {
    content: "💡 Key Takeaway";
    display: block;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form button {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PHASE A: Strategic Growth Features
   ═══════════════════════════════════════════════════════════════ */

/* ─── Smart Patient Routing CTA ─── */
.find-specialist-cta {
    margin: 3rem 0 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 2px solid #1A6B54;
    overflow: hidden;
}
.cta-inner {
    padding: 2.5rem;
    text-align: center;
}
.cta-icon { margin-bottom: 1rem; }
.cta-inner h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.cta-inner p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    max-width: 480px;
    margin-inline: auto;
}
.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #1A6B54;
    color: #fff !important;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.15s;
}
.cta-btn:hover {
    background: #145544;
    transform: translateY(-1px);
}
.cta-stats {
    font-size: 0.85rem !important;
    color: #1A6B54 !important;
    font-weight: 600;
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
}

/* ─── Claim Your Profile CTA ─── */
.claim-profile-cta {
    margin: 2rem 0;
    border-radius: 16px;
    border: 2px dashed #1A6B54;
    background: linear-gradient(135deg, #f8fffe 0%, #E8F5E9 100%);
}
.claim-inner {
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.claim-badge {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(26,107,84,0.15);
}
.claim-content { flex: 1; min-width: 240px; }
.claim-content h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}
.claim-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.claim-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #1A6B54;
    font-weight: 600;
}
.claim-btn {
    align-self: center;
    padding: 14px 28px;
    background: #1A6B54;
    color: #fff !important;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}
.claim-btn:hover {
    background: #145544;
    transform: translateY(-1px);
}

/* ─── Patient Reviews ─── */
.practice-reviews {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border, #eee);
}
.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.reviews-header h2 { margin: 0; }
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.review-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A6B54;
}
.review-stars-summary {
    color: #F5A623;
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.review-count { color: var(--text-muted); font-size: 0.9rem; }
.review-card {
    padding: 1.25rem;
    border: 1px solid var(--border, #eee);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}
.review-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.reviewer-name { font-weight: 700; color: var(--text); }
.review-badge {
    background: #E8F5E9;
    color: #1A6B54;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}
.review-stars .star { color: #ddd; font-size: 1rem; }
.review-stars .star.filled { color: #F5A623; }
.review-condition {
    font-size: 0.85rem;
    color: #1A6B54;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.review-text { color: var(--text); line-height: 1.6; margin-bottom: 0.5rem; }
.review-date { font-size: 0.8rem; color: var(--text-muted); }
.review-cta {
    text-align: center;
    padding: 1.5rem;
    border: 1px dashed #ccc;
    border-radius: 12px;
    margin-top: 1rem;
}
.review-cta p { margin-bottom: 0.75rem; color: var(--text-secondary); }
.write-review-btn, .submit-review-btn {
    padding: 12px 28px;
    background: #1A6B54;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.write-review-btn:hover, .submit-review-btn:hover { background: #145544; }
.review-form-section {
    padding: 1.5rem;
    background: var(--bg-secondary, #f9f9f9);
    border-radius: 12px;
    margin-top: 1rem;
}
.review-form-section h3 { margin-bottom: 1rem; }
.review-form-section .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.review-form-section input, .review-form-section select, .review-form-section textarea {
    padding: 10px;
    border: 2px solid var(--border, #ddd);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.review-form-section textarea { resize: vertical; margin-bottom: 12px; }

/* ─── Podcast Section ─── */
.podcast-page { padding-bottom: 3rem; }
.podcast-hero {
    background: linear-gradient(135deg, #1A1A2E 0%, #2D2D4E 100%);
    padding: 4rem 0 3rem;
    color: #fff;
    text-align: center;
}
.podcast-label {
    display: inline-block;
    background: #1A6B54;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.podcast-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #fff;
}
.podcast-tagline {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}
.podcast-subscribe {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.subscribe-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff !important;
    transition: opacity 0.2s, transform 0.15s;
}
.subscribe-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.subscribe-btn.apple { background: #A855F7; }
.subscribe-btn.spotify { background: #1DB954; }
.subscribe-btn.google { background: #EA4335; }
.subscribe-btn.rss { background: #F97316; }
.podcast-stats { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.episodes-list { padding: 2rem 0; }
.episodes-list h2 { margin-bottom: 1.5rem; }
.episode-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--border, #eee);
    border-radius: 12px;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.episode-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #1A6B54;
}
.episode-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #1A6B54;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.episode-content { flex: 1; }
.episode-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}
.episode-guest {
    font-size: 0.9rem;
    color: #1A6B54;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.episode-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.episode-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.episode-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}
.episode-topics {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.topic-badge {
    display: inline-block;
    background: var(--bg-secondary, #f0f0f0);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

/* Episode Detail Page */
.episode-page { padding: 2rem 0 3rem; }
.episode-header-section {
    background: linear-gradient(135deg, #1A1A2E 0%, #2D2D4E 100%);
    padding: 3rem 0;
    color: #fff;
    margin-bottom: 2rem;
}
.episode-header-section .episode-number-lg {
    display: inline-block;
    background: #1A6B54;
    color: #fff;
    padding: 4px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.episode-header-section h1 { color: #fff; font-size: 2rem; margin-bottom: 0.5rem; }
.episode-header-section .episode-guest-info {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.75rem;
}
.episode-body { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }
.episode-main { min-width: 0; }
.episode-sidebar { }
.episode-sidebar .sidebar-box {
    background: var(--bg-secondary, #f8f8f8);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.sidebar-box h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.key-takeaway-list { list-style: none; padding: 0; }
.key-takeaway-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border, #eee);
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    gap: 0.5rem;
}
.key-takeaway-list li:last-child { border-bottom: none; }
.transcript-placeholder {
    background: var(--bg-secondary, #f8f8f8);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

/* Podcast Guest CTA */
.podcast-guest-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-radius: 16px;
    margin-top: 2rem;
}
.podcast-guest-cta h2 { margin-bottom: 0.75rem; }
.podcast-guest-cta p {
    max-width: 560px;
    margin: 0 auto 1.5rem;
    color: var(--text-secondary);
}

/* ─── Enhanced Directory Page ─── */
.directory-page { }
.directory-hero {
    background: linear-gradient(135deg, #1A6B54 0%, #145544 100%);
    padding: 3.5rem 0 3rem;
    color: #fff;
    text-align: center;
}
.directory-hero h1 { color: #fff; font-size: 2.5rem; margin-bottom: 0.5rem; }
.directory-hero .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 auto 2rem;
    opacity: 1;
}
.directory-search-box {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-card, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.search-tabs {
    display: flex;
    border-bottom: 2px solid var(--border, #eee);
}
.search-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s, background 0.2s;
}
.search-tab.active {
    color: #1A6B54;
    border-bottom: 2px solid #1A6B54;
    margin-bottom: -2px;
}
.search-panel {
    display: none;
    padding: 1rem;
    gap: 0.5rem;
}
.search-panel.active {
    display: flex;
}
.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border, #eee);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}
.search-input:focus { border-color: #1A6B54; }
.search-go-btn {
    padding: 12px 24px;
    background: #1A6B54;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.search-go-btn:hover { background: #145544; }
.geo-suggestion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #fff;
}
.geo-suggestion a { color: #fff; font-weight: 600; text-decoration: underline; }

/* ─── City Page: Dermatologist Cards ─── */
.dermatologists-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.dermatologist-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.dermatologist-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: #1A6B54;
}

.dermatologist-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.dermatologist-card .card-header h3 {
    font-size: 1.1rem;
    color: var(--text, #1A1A2E);
    margin: 0;
}

.dermatologist-card .card-body {
    font-size: 0.95rem;
}

.dermatologist-card .card-body .practice-name {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: var(--text, #1A1A2E);
}

.dermatologist-card .card-body .address {
    color: var(--text-secondary, #666);
    font-size: 0.9rem;
    margin: 0 0 0.25rem;
    line-height: 1.5;
}

.dermatologist-card .card-body .phone {
    margin: 0 0 0.5rem;
}

.dermatologist-card .card-body .phone a {
    color: #1A6B54;
    text-decoration: none;
    font-weight: 600;
}

.dermatologist-card .specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.badge-specialty {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: #1A6B54;
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-specialty::before {
    content: "✓";
    font-size: 0.7rem;
}

.popular-cities { margin-bottom: 2rem; }
.popular-cities h2 { margin-bottom: 1rem; }
.popular-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.popular-city-card {
    display: block;
    padding: 1.25rem;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #eee);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.popular-city-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: #1A6B54;
}
.popular-city-card h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 0.25rem; }
.popular-city-card p { font-size: 0.85rem; color: #1A6B54; font-weight: 600; margin: 0; }

.all-states { margin-bottom: 2rem; }
.all-states h2 { margin-bottom: 1rem; }

/* ─── Share Button Style ─── */
.btn-share {
    background: var(--bg-secondary, #f0f0f0);
    color: var(--text-secondary);
}
.btn-share:hover {
    background: #e0e0e0;
}

/* ═══════════════════════════════════════════════════════════════
   PHASE A: RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .episode-body { grid-template-columns: 1fr; }
    .episode-sidebar { order: -1; }
}

@media (max-width: 768px) {
    .find-specialist-cta { margin: 2rem 0; }
    .cta-inner { padding: 1.5rem; }
    .cta-inner h3 { font-size: 1.25rem; }

    .claim-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .claim-benefits { justify-content: center; }
    .claim-btn { width: 100%; text-align: center; }

    .review-form-section .form-row {
        grid-template-columns: 1fr;
    }

    .podcast-hero { padding: 2.5rem 0 2rem; }
    .podcast-hero h1 { font-size: 1.75rem; }
    .podcast-subscribe { gap: 0.5rem; }
    .subscribe-btn { padding: 8px 14px; font-size: 0.8rem; }

    .episode-card { flex-direction: column; gap: 0.75rem; }
    .episode-number {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }

    .directory-hero { padding: 2.5rem 0 2rem; }
    .directory-hero h1 { font-size: 1.75rem; }
    .search-tabs { font-size: 0.8rem; }

    .popular-cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .episode-header-section { padding: 2rem 0; }
    .episode-header-section h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .cta-inner { padding: 1.25rem; }
    .podcast-subscribe { flex-direction: column; align-items: center; }
    .subscribe-btn { width: 100%; text-align: center; }
    .cities-grid { grid-template-columns: 1fr 1fr; }
    .search-tab { padding: 10px 6px; font-size: 0.8rem; }
    .popular-cities-grid { grid-template-columns: 1fr 1fr; }
    .reviews-header { flex-direction: column; align-items: flex-start; }
    .pro-grid { grid-template-columns: 1fr; }
    .pro-cta-grid { grid-template-columns: 1fr; }
}

/* ─── Guide Cards (used across tools, for-dermatologists) ─── */
.guide-card {
    display: block;
    padding: 24px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.guide-card:hover {
    box-shadow: 0 4px 16px rgba(26, 107, 84, 0.12);
    border-color: #1A6B54;
    transform: translateY(-2px);
}
.guide-card h3 { margin: 0 0 8px; color: var(--text); }
.guide-card p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

.guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 800px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ─── Professional Hub (for-dermatologists) ─── */
.pro-hero {
    background: linear-gradient(135deg, #1A6B54 0%, #0d4a3a 100%);
    color: white;
    padding: 60px 0 50px;
    text-align: center;
}
.pro-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 12px;
}
.pro-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.pro-card {
    display: block;
    padding: 28px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.pro-card:hover {
    box-shadow: 0 6px 24px rgba(26, 107, 84, 0.14);
    border-color: #1A6B54;
    transform: translateY(-3px);
}
.pro-card-icon {
    margin-bottom: 12px;
    color: var(--primary);
}
.pro-card-icon svg {
    width: 28px;
    height: 28px;
}
.pro-card h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.15rem;
}
.pro-card p {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}
.pro-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1A6B54;
}

.pro-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.pro-cta-card {
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}
.pro-cta-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}
.pro-cta-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 20px;
    line-height: 1.5;
}
.pro-cta-claim {
    background: #f0f7f5;
    border: 1px solid #d0e8e1;
}
.pro-cta-widget {
    background: #fff5f0;
    border: 1px solid #f5d9cc;
}

/* ─── Mobile dropdown arrow rotation ─── */
.nav-item.has-dropdown.open > a .dropdown-arrow {
    transform: rotate(180deg);
    transition: transform 0.2s;
}
.dropdown-arrow { transition: transform 0.2s; }

/* ─── Dark mode adjustments for pro hub ─── */
[data-theme="dark"] .pro-card {
    background: #1e1e1e;
    border-color: #333;
}
[data-theme="dark"] .pro-card:hover { border-color: #1A6B54; }
[data-theme="dark"] .pro-card h3 { color: #e5e5e5; }
[data-theme="dark"] .pro-cta-claim { background: #1a2e28; border-color: #2a4a3e; }
[data-theme="dark"] .pro-cta-widget { background: #2e201a; border-color: #4a332a; }
[data-theme="dark"] .guide-card { background: #1e1e1e; border-color: #333; }
[data-theme="dark"] .guide-card:hover { border-color: #1A6B54; }
[data-theme="dark"] .guide-card h3 { color: #e5e5e5; }

/* ─── Dark Mode: Cost Disclaimer ─── */
[data-theme="dark"] .cost-disclaimer {
    background: #2A2210;
    border-color: #4A3D1A;
    color: #D4C9A8;
}

/* ─── Dark Mode: Table of Contents ─── */
[data-theme="dark"] .table-of-contents {
    background: var(--bg-secondary);
    border-color: var(--border);
}

/* ─── Dark Mode: Key Takeaway ─── */
[data-theme="dark"] .key-takeaway {
    background: #0E2A22;
}

/* ─── Dark Mode: Newsletter Form ─── */
[data-theme="dark"] .footer-newsletter {
    border-top-color: rgba(255,255,255,0.05);
}
[data-theme="dark"] .newsletter-form input[type="email"] {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}
[data-theme="dark"] .newsletter-form button:hover {
    background: #b8522a;
}

/* ─── Dark Mode: Find Specialist CTA ─── */
[data-theme="dark"] .find-specialist-cta {
    background: linear-gradient(135deg, #0E2A22 0%, #133D30 100%);
    border-color: #1A6B54;
}
[data-theme="dark"] .cta-inner h3 { color: var(--text); }
[data-theme="dark"] .cta-inner p { color: var(--text-secondary); }
[data-theme="dark"] .cta-stats { color: #2EBF91 !important; }

/* ─── Dark Mode: Claim Profile CTA ─── */
[data-theme="dark"] .claim-profile-cta {
    border-color: #1A6B54;
    background: linear-gradient(135deg, #0F1419 0%, #0E2A22 100%);
}
[data-theme="dark"] .claim-badge {
    background: var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
[data-theme="dark"] .claim-content h3 { color: var(--text); }
[data-theme="dark"] .claim-content p { color: var(--text-secondary); }

/* ─── Dark Mode: Practice Reviews ─── */
[data-theme="dark"] .practice-reviews {
    border-top-color: var(--border);
}
[data-theme="dark"] .review-card {
    border-color: var(--border);
    background: var(--bg-card);
}
[data-theme="dark"] .review-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
[data-theme="dark"] .reviewer-name { color: var(--text); }
[data-theme="dark"] .review-badge { background: #133D30; color: #2EBF91; }
[data-theme="dark"] .review-stars .star { color: #3A3A3A; }
[data-theme="dark"] .review-text { color: var(--text-secondary); }
[data-theme="dark"] .review-date { color: var(--text-muted); }
[data-theme="dark"] .review-cta {
    border-color: var(--border);
    background: var(--bg-secondary);
}
[data-theme="dark"] .review-cta p { color: var(--text-secondary); }
[data-theme="dark"] .review-form-section {
    background: var(--bg-secondary);
}
[data-theme="dark"] .review-form-section input,
[data-theme="dark"] .review-form-section select,
[data-theme="dark"] .review-form-section textarea {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}

/* ─── Dark Mode: Podcast ─── */
[data-theme="dark"] .podcast-hero {
    background: linear-gradient(135deg, #0F1419 0%, #1A1F2E 100%);
}
[data-theme="dark"] .episode-card {
    border-color: var(--border);
    background: var(--bg-card);
}
[data-theme="dark"] .episode-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    border-color: #1A6B54;
}
[data-theme="dark"] .episode-content h3 { color: var(--text); }
[data-theme="dark"] .episode-desc { color: var(--text-secondary); }
[data-theme="dark"] .episode-duration { color: var(--text-muted); }
[data-theme="dark"] .topic-badge {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}
[data-theme="dark"] .episode-header-section {
    background: linear-gradient(135deg, #0F1419 0%, #1A1F2E 100%);
}
[data-theme="dark"] .episode-sidebar .sidebar-box {
    background: var(--bg-secondary);
}
[data-theme="dark"] .key-takeaway-list li {
    border-bottom-color: var(--border);
    color: var(--text-secondary);
}
[data-theme="dark"] .transcript-placeholder {
    background: var(--bg-secondary);
}

/* ─── Dark Mode: Podcast Guest CTA ─── */
[data-theme="dark"] .podcast-guest-cta {
    background: linear-gradient(135deg, #0E2A22 0%, #133D30 100%);
}
[data-theme="dark"] .podcast-guest-cta p { color: var(--text-secondary); }

/* ─── Dark Mode: Directory ─── */
[data-theme="dark"] .directory-search-box {
    background: var(--bg-card);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
[data-theme="dark"] .search-tabs {
    border-bottom-color: var(--border);
}
[data-theme="dark"] .search-tab {
    color: var(--text-muted);
}
[data-theme="dark"] .search-tab.active {
    color: #2EBF91;
    border-bottom-color: #1A6B54;
}
[data-theme="dark"] .search-panel .search-input {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] .popular-city-card {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .popular-city-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-color: #1A6B54;
}
[data-theme="dark"] .popular-city-card h3 { color: var(--text); }
[data-theme="dark"] .dermatologist-card {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .dermatologist-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-color: #1A6B54;
}

/* ─── Dark Mode: Share / Misc Buttons ─── */
[data-theme="dark"] .btn-share {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}
[data-theme="dark"] .btn-share:hover {
    background: var(--border);
}

/* ─── Dark Mode: Pro CTA Cards ─── */
[data-theme="dark"] .pro-cta-card p { color: var(--text-secondary); }
[data-theme="dark"] .pro-card p { color: var(--text-secondary); }
[data-theme="dark"] .guide-card p { color: var(--text-secondary); }

@media (max-width: 768px) {
    .pro-hero { padding: 40px 0 35px; }
    .pro-hero h1 { font-size: 1.8rem; }
    .pro-grid { grid-template-columns: 1fr; }
    .pro-cta-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   A-Z Listing (Procedures A-Z)
   ═══════════════════════════════════════════════════ */
.az-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}
.az-jump-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-50);
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.az-jump-link:hover { background: var(--primary); color: #fff; }
[data-theme="dark"] .az-jump-nav { background: var(--surface); border-color: var(--border-light); }
[data-theme="dark"] .az-jump-link { background: rgba(2,128,144,0.15); }
[data-theme="dark"] .az-jump-link:hover { background: var(--primary); color: #fff; }
.az-listing { margin-top: 10px; }
.az-letter-group { margin-bottom: 32px; }
.az-letter {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
    margin-bottom: 16px;
}
.az-item {
    display: block;
    padding: 16px 20px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.az-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: var(--primary); }
.az-item h3 { font-size: 1rem; margin: 0 0 4px; color: var(--text-primary); }
.az-item p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; line-height: 1.4; }
[data-theme="dark"] .az-item { border-color: var(--border-light); }
/* Floating back-to-top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(10px);
    z-index: 100;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover { background: #015c66; transform: translateY(-2px); }
.back-to-top svg { stroke: #fff; }
@media (max-width: 768px) {
    .az-item { padding: 12px 16px; }
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

/* ═══════════════════════════════════════════════════
   Myths vs Facts Index
   ═══════════════════════════════════════════════════ */
.myths-index { padding: 40px 0 60px; }
.myths-index .page-header { text-align: center; margin-bottom: 40px; }
.myths-index .page-header h1 { font-size: 2.2rem; color: var(--text-primary); margin-bottom: 8px; }
.myths-index .page-subtitle { color: var(--text-secondary); font-size: 1.1rem; }
.myths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.myth-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.myth-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: var(--primary);
}
.myth-card h3 { font-size: 1.05rem; margin: 0 0 8px; line-height: 1.4; }
.myth-card h3 a { color: var(--text-primary); text-decoration: none; }
.myth-card h3 a:hover { color: var(--primary); }
.myth-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; margin: 0; }
[data-theme="dark"] .myth-card { background: var(--surface); border-color: var(--border-light); }
@media (max-width: 768px) {
    .myths-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   Podcast Pages — redesigned
   ═══════════════════════════════════════════════════ */

/* ── Index: Hero ── */
.podcast-page { padding: 0 0 60px; }
.pc-hero {
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    padding: 64px 0 56px;
}
.pc-hero-inner {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    align-items: center;
}
.pc-hero-text { max-width: 560px; }
.podcast-label {
    display: inline-flex;
    align-items: center;
    background: rgba(26,107,84,0.1);
    color: var(--primary, #1A6B54);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.pc-title {
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0 0 16px;
}
.pc-title em { font-style: normal; color: var(--primary); }
.podcast-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 500px;
    margin: 0 0 24px;
}
.pc-stats {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    row-gap: 12px;
}
.pc-stat-item { display: flex; flex-direction: column; padding: 0 20px; }
.pc-stat-item:first-child { padding-left: 0; }
.pc-stat-num {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
}
.pc-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}
.pc-stat-sep { width: 1px; height: 36px; background: var(--border-light); flex-shrink: 0; }
.podcast-subscribe { display: flex; flex-wrap: wrap; gap: 10px; }
.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}
.subscribe-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.subscribe-btn.apple { background: #000; color: #fff !important; }
.subscribe-btn.spotify { background: #1DB954; color: #fff !important; }
.subscribe-btn.amazon { background: #FF9900; color: #111 !important; }
.subscribe-btn.rss { background: #f26522; color: #fff !important; }

/* Hero visual */
.pc-hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.pc-show-card {
    background: linear-gradient(145deg, var(--primary, #1A6B54) 0%, #028090 100%);
    border-radius: 22px;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(26,107,84,0.28);
    transition: box-shadow 0.3s, transform 0.3s;
}
.pc-show-card:hover { box-shadow: 0 18px 52px rgba(26,107,84,0.38); transform: translateY(-3px); }
.pc-show-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.pc-show-name { font-size: 0.82rem; font-weight: 700; line-height: 1.3; }
.pc-waveform {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
}
.pc-waveform-bar {
    width: 5px;
    border-radius: 3px;
    background: var(--primary, #1A6B54);
    opacity: 0.45;
    transform-origin: bottom;
    animation: pcWave 1.3s ease-in-out infinite alternate;
}
.pc-waveform-bar:nth-child(1) { animation-delay: 0s; }
.pc-waveform-bar:nth-child(2) { animation-delay: 0.1s; opacity: 0.6; }
.pc-waveform-bar:nth-child(3) { animation-delay: 0.2s; opacity: 0.75; }
.pc-waveform-bar:nth-child(4) { animation-delay: 0.05s; }
.pc-waveform-bar:nth-child(5) { animation-delay: 0.3s; opacity: 0.9; }
.pc-waveform-bar:nth-child(6) { animation-delay: 0.15s; opacity: 0.65; }
.pc-waveform-bar:nth-child(7) { animation-delay: 0.25s; }
.pc-waveform-bar:nth-child(8) { animation-delay: 0.08s; opacity: 0.5; }
.pc-waveform-bar:nth-child(9) { animation-delay: 0.35s; opacity: 0.8; }
.pc-waveform-bar:nth-child(10) { animation-delay: 0.18s; }
.pc-waveform-bar:nth-child(11) { animation-delay: 0.28s; opacity: 0.7; }
.pc-waveform-bar:nth-child(12) { animation-delay: 0.04s; opacity: 0.4; }
.pc-waveform-bar:nth-child(13) { animation-delay: 0.22s; }
.pc-waveform-bar:nth-child(14) { animation-delay: 0.12s; opacity: 0.55; }
@keyframes pcWave {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}

/* ── Index: Episode List ── */
.episodes-list { padding: 48px 0 20px; }
.episodes-list > h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}
.episodes-list > h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}
.episode-card {
    display: flex;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    background: var(--bg);
    transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s;
    position: relative;
    overflow: hidden;
}
.episode-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.18s;
}
.episode-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border-color: rgba(26,107,84,0.4);
    transform: translateY(-1px);
}
.episode-card:hover::before { opacity: 1; }
.episodes-list > a.episode-card:first-of-type {
    padding: 24px 22px;
    background: linear-gradient(135deg, rgba(26,107,84,0.05) 0%, rgba(2,128,144,0.03) 100%);
    border-color: rgba(26,107,84,0.2);
}
.episodes-list > a.episode-card:first-of-type .episode-number {
    background: var(--primary);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 14px;
}
.episodes-list > a.episode-card:first-of-type .episode-content h3 { font-size: 1.15rem; }
.episode-number {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(26,107,84,0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-align: center;
    line-height: 1.2;
    flex-direction: column;
}
.episode-content { flex: 1; min-width: 0; }
.episode-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.episode-guest { font-size: 0.82rem; color: var(--text-secondary); margin: 0 0 6px; }
.episode-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.episode-meta { display: flex; align-items: center; gap: 8px; }
.episode-duration {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--bg-secondary, #f4f4f4);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}
.podcast-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px 0;
}
.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.18s, color 0.18s;
}
.pagination-btn:hover { background: var(--primary); color: #fff; }
.pagination-info { font-size: 0.85rem; color: var(--text-secondary); }
.podcast-guest-cta {
    text-align: center;
    padding: 56px 40px;
    background: linear-gradient(135deg, rgba(26,107,84,0.05) 0%, rgba(2,128,144,0.03) 100%);
    border: 1px solid rgba(26,107,84,0.15);
    border-radius: 20px;
    margin-top: 48px;
}
.podcast-guest-cta h2 { margin: 0 0 12px; font-size: 1.65rem; font-weight: 700; }
.podcast-guest-cta p { color: var(--text-secondary); max-width: 560px; margin: 0 auto 24px; line-height: 1.65; }

/* ── Episode Detail Page ── */
.episode-detail-page { padding: 0 0 60px; }
.ep-hero {
    background: linear-gradient(135deg, #1A6B54 0%, #028090 100%);
    padding: 44px 0 38px;
    margin-bottom: 40px;
}
.ep-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 500;
    margin-bottom: 22px;
    transition: color 0.15s;
    letter-spacing: 0.01em;
}
.ep-back-btn:hover { color: #fff; }
.ep-back-btn svg { flex-shrink: 0; }
.ep-hero-inner { display: flex; align-items: flex-start; gap: 24px; }
.ep-hero-num {
    flex-shrink: 0;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fff;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 4px;
}
.ep-hero-text h1 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 14px;
    letter-spacing: -0.015em;
}
.ep-meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ep-date { font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.ep-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}
.ep-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}
.ep-main { min-width: 0; }
.ep-player-wrap {
    background: var(--bg-secondary, #f8f8f8);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 28px;
}
.ep-player-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ep-player-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}
.episode-player { margin: 0; }
.episode-player audio { width: 100%; border-radius: 8px; }
.ep-platforms {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}
.ep-platforms-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.listen-platforms { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.subscribe-link:hover { border-color: var(--primary); color: var(--primary); background: rgba(26,107,84,0.05); }
.ep-notes { margin-bottom: 28px; }
.ep-notes h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ep-notes h2::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
    display: block;
    flex-shrink: 0;
}
.episode-show-notes { font-size: 0.93rem; line-height: 1.75; color: var(--text-secondary); }
.episode-show-notes p { margin-bottom: 12px; }
.episode-show-notes ul { padding-left: 22px; margin-bottom: 12px; }
.episode-show-notes li { margin-bottom: 5px; }
.episode-show-notes h4 { font-size: 0.95rem; font-weight: 700; margin: 18px 0 8px; color: var(--text); }
.episode-show-notes strong { color: var(--text); }
.episode-share { padding-top: 24px; border-top: 1px solid var(--border-light); }
.episode-share p {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: opacity 0.18s, transform 0.15s;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-btn.twitter { background: #0f0f0f; }
.share-btn.facebook { background: #1877F2; }
.share-btn.linkedin { background: #0A66C2; }
.ep-sidebar { position: sticky; top: 76px; }
.ep-subscribe-card {
    background: var(--bg-secondary, #f8f9f8);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 16px;
}
.ep-subscribe-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.ep-subscribe-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.ep-subscribe-label strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--text); }
.ep-subscribe-label span { font-size: 0.78rem; color: var(--text-secondary); }
.subscribe-links { display: flex; flex-direction: column; gap: 8px; }
.ep-nav-card {
    background: var(--bg-secondary, #f8f9f8);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px 22px;
}
.ep-nav-card-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.episode-navigation { display: flex; flex-direction: column; gap: 8px; }
.nav-prev, .nav-next {
    display: block;
    padding: 10px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    transition: border-color 0.18s, color 0.18s;
}
.nav-prev:hover, .nav-next:hover { border-color: var(--primary); color: var(--primary); }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

/* Dark mode */
[data-theme="dark"] .pc-hero { background: var(--bg); border-color: var(--border-light); }
[data-theme="dark"] .podcast-label { background: rgba(26,107,84,0.2); color: #4ade80; }
[data-theme="dark"] .pc-title em { color: #4ade80; }
[data-theme="dark"] .pc-show-card { box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
[data-theme="dark"] .pc-waveform-bar { background: #4ade80; }
[data-theme="dark"] .pc-stat-sep { background: var(--border-light); }
[data-theme="dark"] .episode-card { background: var(--surface); border-color: var(--border-light); }
[data-theme="dark"] .episode-card:hover { border-color: rgba(74,222,128,0.4); }
[data-theme="dark"] .episodes-list > a.episode-card:first-of-type { background: rgba(26,107,84,0.1); border-color: rgba(26,107,84,0.3); }
[data-theme="dark"] .episode-number { background: rgba(26,107,84,0.2); color: #4ade80; }
[data-theme="dark"] .episodes-list > a.episode-card:first-of-type .episode-number { background: var(--primary); color: #fff; }
[data-theme="dark"] .episode-duration { background: var(--surface); }
[data-theme="dark"] .episodes-list > h2 { color: var(--text-primary); border-color: var(--border-light); }
[data-theme="dark"] .episode-content h3 { color: var(--text-primary); }
[data-theme="dark"] .podcast-guest-cta { background: rgba(26,107,84,0.08); border-color: rgba(26,107,84,0.2); }
[data-theme="dark"] .ep-player-wrap { background: var(--surface); border-color: var(--border-light); }
[data-theme="dark"] .ep-subscribe-card { background: var(--surface); border-color: var(--border-light); }
[data-theme="dark"] .ep-nav-card { background: var(--surface); border-color: var(--border-light); }
[data-theme="dark"] .ep-subscribe-header { border-color: var(--border-light); }
[data-theme="dark"] .ep-platforms { border-color: var(--border-light); }
[data-theme="dark"] .nav-prev, [data-theme="dark"] .nav-next { border-color: var(--border-light); }
[data-theme="dark"] .subscribe-link { border-color: var(--border-light); color: var(--text); }
[data-theme="dark"] .subscribe-link:hover { color: var(--primary); border-color: var(--primary); }
[data-theme="dark"] .episode-show-notes { color: var(--text-secondary); }
[data-theme="dark"] .episode-show-notes h4 { color: var(--text-primary); }
[data-theme="dark"] .episode-show-notes strong { color: var(--text-primary); }
[data-theme="dark"] .ep-notes h2 { color: var(--text-primary); }
[data-theme="dark"] .episode-share { border-color: var(--border-light); }
[data-theme="dark"] .myth-card h3 a { color: var(--text-primary); }
[data-theme="dark"] .myth-card h3 a:hover { color: var(--primary); }
[data-theme="dark"] .az-item h3 { color: var(--text-primary); }
[data-theme="dark"] .az-letter { color: var(--primary); border-color: var(--primary); }

/* Mobile */
@media (max-width: 900px) {
    .ep-layout { grid-template-columns: 1fr; }
    .ep-sidebar { position: static; }
}
@media (max-width: 768px) {
    .pc-hero { padding: 40px 0 36px; }
    .pc-hero-inner { grid-template-columns: 1fr; }
    .pc-hero-visual { display: none; }
    .podcast-subscribe { flex-direction: column; }
    .subscribe-btn { width: fit-content; }
    .episode-card { flex-direction: column; gap: 10px; padding: 16px 18px; }
    .episode-number { width: 44px; height: 44px; font-size: 0.68rem; }
    .episodes-list > a.episode-card:first-of-type { padding: 18px; }
    .episodes-list > a.episode-card:first-of-type .episode-number { width: 50px; height: 50px; }
    .ep-hero { padding: 28px 0 24px; }
    .ep-hero-inner { flex-direction: column; gap: 12px; }
    .ep-hero-num { font-size: 0.8rem; padding: 9px 14px; }
    .ep-hero-text h1 { font-size: 1.2rem; }
    .episode-navigation { flex-direction: row; flex-wrap: wrap; gap: 8px; }
}

/* ─── Ask a Question Widget ──────────────────────── */
.ask-question-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(26,107,84,0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    font-family: var(--font-sans);
}
.ask-question-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26,107,84,0.45);
}
.ask-question-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 24px 90px 0;
}
.ask-question-modal-overlay.open { display: flex; }
.ask-question-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.ask-question-modal h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}
.ask-question-modal > p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}
.ask-question-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 4px 6px;
}
.ask-question-close:hover { color: var(--text); }
.ask-question-form .aq-field { margin-bottom: 14px; }
.ask-question-form .aq-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ask-question-form .aq-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    font-family: var(--font-sans);
    transition: border-color 0.2s;
    resize: none;
}
.ask-question-form .aq-input:focus {
    outline: none;
    border-color: var(--primary);
}
.ask-question-form .aq-submit {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background 0.2s;
    margin-top: 4px;
}
.ask-question-form .aq-submit:hover { background: var(--primary-dark); }
.ask-question-success {
    text-align: center;
    padding: 16px 0 8px;
    display: none;
}
.ask-question-success h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.ask-question-success p { font-size: 13px; color: var(--text-secondary); margin-bottom: 0; }
@media (max-width: 480px) {
    .ask-question-btn { bottom: 16px; right: 16px; padding: 11px 16px 11px 14px; font-size: 13px; }
    .ask-question-modal-overlay { padding: 0 12px 80px 12px; }
    .ask-question-modal { max-width: 100%; padding: 22px; }
}
