@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

/* --- Grid System Utilities --- */
.grid {
    display: grid;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.hidden {
    display: none !important;
}

@media (min-width: 1024px) {
    .lg\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .lg\:col-span-8 {
        grid-column: span 8 / span 8;
    }

    .lg\:col-span-4 {
        grid-column: span 4 / span 4;
    }

    .lg\:block {
        display: block !important;
    }

    .lg\:flex {
        display: flex !important;
    }

    .lg\:hidden {
        display: none !important;
    }
}

:root {
    /* --- Primary: Orange (Action) --- */
    --hue-orange-10: #FDF2E9;
    --hue-orange-20: #FAE5D3;
    --hue-orange-30: #F5CBA7;
    --hue-orange-40: #F0B27A;
    --hue-orange-50: #E67E22;
    /* Brand Base */
    --hue-orange-60: #D35400;
    --hue-orange-70: #BA4A00;
    --hue-orange-80: #A04000;
    --hue-orange-90: #6E2C00;

    /* --- Secondary: Steel Blue (Clinical) --- */
    --hue-blue-10: #F2F4F4;
    --hue-blue-20: #E5E8E8;
    --hue-blue-30: #D0D3D4;
    --hue-blue-40: #AAB7B8;
    --hue-blue-50: #85929E;
    /* Brand Base */
    --hue-blue-60: #707B7C;
    --hue-blue-70: #5D6D7E;
    /* Body Text Color */
    --hue-blue-80: #34495E;
    --hue-blue-90: #212F3D;

    /* --- UI Specifics --- */
    --hue-surface: #FFFFFF;
    --hue-background: #F8F9FB;
    --hue-foreground: #2C3E50;
    --hue-border: var(--hue-blue-20);
    --hue-error: #E74C3C;
    --hue-success: #27AE60;

    /* --- Typography --- */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--hue-blue-70);
    background-color: var(--hue-background);
    overscroll-behavior-x: none;
    overflow-x: hidden;
    /* Hard-prevents Chrome/Edge back-forward gesture globally */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--hue-foreground);
    line-height: 1.25;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

@media (min-width: 1024px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    body {
        font-size: 1.125rem;
    }
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Standardized Spacing Utilities */
.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.mb-12 {
    margin-bottom: 3rem !important;
}

.mb-16 {
    margin-bottom: 4rem !important;
}

.mb-24 {
    margin-bottom: 6rem !important;
}

.py-16 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-20 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.py-24 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Standardized to 5rem for better momentum */
.py-32 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.pt-24 {
    padding-top: 5rem !important;
}

.pb-24 {
    padding-bottom: 5rem !important;
}

.pt-12 {
    padding-top: 2rem !important;
}

.pb-12 {
    padding-bottom: 2rem !important;
}

.pt-32 {
    padding-top: 8rem !important;
}

.pb-32 {
    padding-bottom: 8rem !important;
}

.no-pt {
    padding-top: 0 !important;
}

.no-pb {
    padding-bottom: 0 !important;
}

.section-header p {
    margin-bottom: 3rem;
    /* Extra headspace between description and content */
}

.desktop-only {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-only {
        display: block;
    }
}

/* --- Hero Section & Brand Visuals --- */
.hero-section {
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
    background-color: var(--hue-surface);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    align-items: center;
}

.hero-header {
    grid-column: span 2;
}

.hero-body {
    grid-column: 1;
}

.hero-benefits-box {
    grid-column: 1;
}

.hero-visual-box {
    grid-column: 2;
    grid-row: 2 / span 2;
    /* Side-by-side with body and benefits rows */
    align-self: start;
}

.hero-actions {
    grid-column: span 2;
}

.hero-title {
    font-size: clamp(1.4rem, 6vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 0.8rem;
    color: var(--hue-blue-70);
    line-height: 1.5;
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--hue-orange-10);
    color: var(--hue-orange-60);
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--hue-orange-20);
    margin-bottom: 0.75rem !important;
}

.hero-benefits-stacked {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hero-benefits-stacked .benefit-item {
    font-size: 0.75rem;
    gap: 0.5rem;
    font-weight: 700;
}

.hero-benefits-stacked .benefit-item i {
    font-size: 0.85rem;
    color: var(--hue-orange-50);
}

/* --- Professional Feature Cards (Visual Focus) --- */
.feat-card {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hue-blue-10);
    height: 100%;
}

.feat-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--hue-orange-20);
}

.feat-visual {
    width: 100%;
    aspect-ratio: 1.4;
    /* Standard clinical ratio */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--hue-blue-10);
}

.feat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-wrapper {
    aspect-ratio: 1;
    /* Match the user's 1024x1024 source */
    border-radius: 24px;
    overflow: hidden;
    background: var(--hue-blue-10);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.visual-placeholder.taller {
    aspect-ratio: 0.7;
    /* Side-by-side portrait impact */
    border-radius: 18px;
    background: var(--hue-blue-10);
    border: 2px dashed var(--hue-blue-20);
}

.btn-group-row {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
}

.btn-group-row .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.75rem 0.5rem;
}

@media (min-width: 1024px) {
    .hero-section {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
        min-height: calc(100vh - 80px);
        /* Restoring premium desktop height */
        display: flex;
        align-items: center;
    }

    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 1.5rem;
        /* Reduced from 2rem for tighter desktop feel */
    }

    .hero-header,
    .hero-body,
    .hero-benefits-box,
    .hero-actions {
        grid-column: 1;
        /* Stacked on the left for desktop */
    }

    .hero-visual-box {
        grid-column: 2;
        grid-row: 1 / span 4;
        align-self: center;
    }

    .hero-title {
        font-size: 3.25rem;
        /* Reduced from 4rem for clean 2-line layout */
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .hero-benefits-stacked {
        flex-direction: row;
        gap: 3rem;
        margin-bottom: 1.75rem;
    }

    .hero-benefits-stacked .benefit-item {
        font-size: 1.125rem;
        /* Scaled up for large screens */
        gap: 0.75rem;
    }

    .hero-benefits-stacked .benefit-item i {
        font-size: 1.25rem;
    }

    .hero-image-wrapper {
        aspect-ratio: 1;
        /* Keep it square for the professional portrait */
        border-radius: 32px;
    }

    .visual-placeholder.taller {
        aspect-ratio: 1.2;
    }

    .btn-group-row {
        width: auto;
    }

    .btn-group-row .btn {
        flex: none;
        padding: 0.85rem 2.5rem;
        font-size: 1.05rem;
    }
}

.text-primary {
    color: var(--hue-orange-50);
}

.bg-primary {
    background-color: var(--hue-orange-50);
}

.text-secondary {
    color: var(--hue-blue-50);
}

.bg-secondary {
    background-color: var(--hue-blue-50);
}

.color-secondary {
    color: var(--hue-blue-70);
}

/* Typography */
.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

/* --- Navigation & Header --- */
.header {
    height: 80px;
    /* Condensed for maximum branding punch */
    background: white;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-box img {
    height: 52px;
    /* Balanced scale: ensures branding prominence without overcrowding the header */
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .header {
        height: 64px;
    }

    .logo-box img {
        height: 32px;
    }
}

.desktop-nav {
    display: none;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }

    .hamburger {
        display: none;
    }
}

.desktop-nav a {
    text-decoration: none;
    color: var(--hue-blue-90);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.desktop-nav a:hover {
    color: var(--hue-orange-50);
}

.hamburger {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--hue-blue-90);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .hamburger {
        font-size: 1.5rem;
        padding: 0.25rem;
    }
}

.mobile-menu-logo {
    height: 32px;
    width: auto;
    display: block;
}

/* --- Global Spacing & Layout --- */
section {
    padding: 5rem 0;
    /* Standardized to 5rem as per Design System */
}

.py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

/* --- Premium Sticky Lead Bar --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--hue-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* Vertically center all CTAs */
    padding: 0.5rem 1rem;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    height: 70px;
    /* Standardize height */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--hue-blue-70);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 4px;
    transition: color 0.2s;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item:hover {
    color: var(--hue-orange-50);
}

.nav-item-primary {
    background: var(--hue-orange-50);
    color: white !important;
    padding: 0 1.5rem;
    border-radius: 2rem;
    display: flex;
    /* Ensure flex for alignment */
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Professional spacing between icon and text */
    flex-direction: row;
    font-size: 0.85rem;
    height: 3.5rem;
    /* Standard mobile button height */
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2);
}

.nav-item-primary:hover {
    background: var(--hue-orange-60);
    transform: translateY(-2px);
}

@media (min-width: 1024px) {
    .bottom-nav {
        display: none;
        /* Already handled by desktop CTA headers usually, but let's keep it clean */
    }
}

.block {
    display: block;
}

.w-full {
    width: 100%;
}

.mr-2 {
    margin-right: 0.5rem;
}

.p-0 {
    padding: 0;
}

.p-8 {
    padding: 2rem;
}

.overflow-hidden {
    overflow: hidden;
}

/* --- Buttons (Whistle.in Inspired) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    /* Reduced for better mobile fit */
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .btn {
        padding: 0.85rem 2.5rem;
        font-size: 1.05rem;
        border-radius: 14px;
    }
}

.btn-primary {
    background-color: var(--hue-orange-50);
    color: white !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: var(--hue-orange-60);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--hue-blue-20);
    color: var(--hue-blue-90);
}

.btn-outline:hover {
    border-color: var(--hue-blue-90);
    background-color: var(--hue-blue-10);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

/* Card Overhaul */
.testimonial-card,
.service-card {
    background: white;
    padding: 3.5rem;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover,
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08);
    border-color: var(--hue-orange-20);
}

/* --- Unified Clinical Card Architecture --- */
.clinical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.clinical-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--hue-blue-10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    /* Added for stretched link */
}

.clickable-card {
    cursor: pointer;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.clinical-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--hue-orange-20);
}

/* --- Article Specific Layouts & Rich Text --- */
.article-hero h1 {
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.rich-text h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: var(--hue-blue-90);
    border-bottom: 3px solid var(--hue-orange-10);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.rich-text h3 {
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--hue-blue-80);
    font-weight: 800;
}

.rich-text p {
    margin-bottom: 1.75rem;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--hue-blue-80);
}

.rich-text blockquote {
    border-left: 6px solid var(--hue-orange-50);
    padding: 2.5rem;
    background: var(--hue-orange-10);
    border-radius: 0 24px 24px 0;
    margin: 4rem 0;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--hue-blue-90);
    line-height: 1.7;
    position: relative;
}

.rich-text blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    opacity: 0.1;
    font-family: serif;
}

.rich-text ul,
.rich-text ol {
    margin-bottom: 2.5rem;
    padding-left: 2rem;
    color: var(--hue-blue-80);
}

.rich-text li {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.rich-text img {
    border-radius: 20px;
    margin: 3rem 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

/* Carousel Utilities */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-container {
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-container .clinical-card {
    scroll-snap-align: start;
    flex-shrink: 0;
}

.card-visual {
    width: 100%;
    aspect-ratio: 1.4;
    /* 4:3 Classical Clinical Ratio */
    background: var(--hue-blue-10);
    overflow: hidden;
}

/* High-Impact Variant (1:1 Ratio for USP Cards) */
.card-visual.impact {
    aspect-ratio: 1;
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Professional full-frame fill */
    display: block;
    transition: transform 0.5s ease;
}

.clinical-card:hover .card-visual img {
    transform: scale(1.05);
}

.card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--hue-foreground);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--hue-blue-70);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Feature List (Optional for Services) */
.card-features {
    list-style: none;
    padding: 0;
    margin: -0.5rem 0 2rem 0;
}

.card-features li {
    font-size: 0.85rem;
    color: var(--hue-blue-80);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-features li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--hue-orange-50);
    font-size: 0.75rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.card-actions .btn {
    flex: 1;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    text-align: center;
}

/* --- Journey Cards (Process Steps) --- */
.journey-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .journey-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Single line on desktop */
    }
}

.journey-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--hue-blue-10);
    display: flex;
    flex-direction: column;
}

.journey-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--hue-orange-20);
}

.journey-visual {
    width: 100%;
    aspect-ratio: 1.4;
    background: var(--hue-blue-10);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.journey-number {
    position: absolute;
    top: -1.25rem;
    left: 2rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--hue-orange-50);
    background: white;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hue-blue-10);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.journey-card:hover .journey-number {
    transform: translateY(-5px) scale(1.1);
    background: var(--hue-orange-50);
    color: white;
    border-color: var(--hue-orange-50);
}

.journey-content {
    padding: 2.5rem 2rem 2rem;
    /* Increased top padding for the bridging number */
    text-align: left;
    position: relative;
}

.journey-content h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--hue-foreground);
}

.journey-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--hue-blue-70);
}

.testimonial-card p {
    line-height: 1.8;
}

/* Specific spacing for card headers */
.testimonial-card h3 {
    margin-bottom: 0.5rem;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    /* Ensure full width on mobile */
}

.btn-group .btn {
    width: 100%;
    /* Force uniform size on mobile */
}

@media (min-width: 768px) {
    .btn-group {
        flex-direction: row;
        justify-content: center;
        width: auto;
    }

    .btn-group .btn {
        width: auto;
    }
}

/* --- Layout Utilities --- */
.grid {
    display: grid;
}

.flex {
    display: flex;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.h-full {
    height: 100%;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.py-24 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* --- Trust Marquee & Social Proof (Floating & Clear) --- */
.trust-bar {
    padding: 1.5rem 0 !important;
    /* Extremely tight to pull adjacent sections closer */
    background: transparent;
    border: none;
}

.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-wrapper {
    display: flex;
    gap: 6rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    white-space: nowrap;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.cert-badge:hover {
    opacity: 1;
}

.cert-badge img {
    height: 32px;
    width: auto;
    filter: grayscale(1);
    transition: filter 0.3s;
}

.cert-badge:hover img {
    filter: grayscale(0);
}

.cert-badge i {
    font-size: 2.25rem;
    /* Chunkier, taller icon */
    color: var(--hue-orange-50);
    filter: drop-shadow(0 4px 10px rgba(230, 126, 34, 0.15));
}

.cert-text {
    font-size: 1rem;
    /* Bolder, clearer text */
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hue-blue-90);
    font-family: var(--font-heading);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 3rem));
    }
}

@media (min-width: 1024px) {
    .trust-bar {
        padding: 2.5rem 0 !important;
        /* Balanced for floating effect on desktop */
    }
}

/* Certifications Carousel */
.cert-carousel {
    display: flex;
    overflow-x: auto;
    gap: 3rem;
    padding: 2rem 0;
    scrollbar-width: none;
    align-items: center;
    justify-content: center;
}

.cert-item {
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s;
    flex-shrink: 0;
}

.cert-item:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Google Reviews / GMB Carousel */
.testimonial-carousel-wrapper {
    margin: 1.5rem -1.5rem 0;
    /* Reduced from 3rem for mobile */
    padding: 1rem 1.5rem 1rem;
    /* Tighter padding */
}

@media (min-width: 1024px) {
    .testimonial-carousel-wrapper {
        margin-top: 3rem;
        padding-bottom: 1.5rem;
    }
}

.testimonial-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 2rem 0 3rem;
    overscroll-behavior-x: none;
    /* Block browser back/forward cues */
}

/* Structural Spacers for Centering */
.testimonial-carousel::before,
.testimonial-carousel::after {
    content: '';
    flex: 0 0 calc(50vw - 160px);
}

@media (min-width: 1024px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        flex: 0 0 calc(50vw - 200px);
    }
}

/* Hide scrollbar but keep functionality */
.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonial-item {
    flex: 0 0 300px;
    /* Slightly narrower on mobile */
    scroll-snap-align: center;
    background: white;
    padding: 2rem;
    /* Tighter padding on mobile */
    border-radius: 20px;
    border: 1px solid var(--hue-blue-10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 360px;
    /* Reduced for better viewport fit on mobile */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (min-width: 1024px) {
    .testimonial-item {
        flex: 0 0 400px;
        min-height: 420px;
        padding: 2.5rem;
    }

    .testimonial-carousel {
        justify-content: flex-start;
        flex-wrap: nowrap;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
    }
}

/* Compact Mobile Overrides */
@media (max-width: 1023px) {
    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .section-header.mb-16 {
        margin-bottom: 2rem !important;
    }

    .testimonial-carousel {
        margin-top: 0;
        padding-top: 0.5rem;
        padding-bottom: 1.5rem;
    }
}

.gmb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.gmb-logo {
    width: 32px;
    height: 32px;
    background: #f1f3f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4285F4;
    /* Google Blue */
    font-size: 1.25rem;
}

.gmb-stars {
    color: #FBBC05;
    /* Google Star Yellow */
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--hue-blue-80);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid var(--hue-blue-10);
    padding-top: 1.5rem;
}

.testimonial-author strong {
    display: block;
    font-size: 1rem;
    color: var(--hue-foreground);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.75rem;
    color: var(--hue-blue-50);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.GMB-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    background: white;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 500px;
    text-decoration: none;
    font-weight: 700;
    color: #3C4043;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #DADCE0;
    font-size: 0.95rem;
}

.gmb-btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #f1f3f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4285F4;
    font-size: 1.15rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.GMB-premium-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #4285F4;
}

.GMB-premium-btn:hover .gmb-btn-icon {
    background: #4285F4;
    color: white;
}

/* YouTube Tour Section Layout */
.tour-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .tour-grid {
        grid-template-columns: 1fr 1.1fr;
        /* More balanced split */
        text-align: left;
    }
}

/* YouTube Tour Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: #000;
}

/* Square Video Wrapper for Shorts - Optimized for 1:1 Precision */
.video-square-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .video-square-wrapper {
        width: 360px;
        /* Balanced mobile-like size for desktop */
        margin-left: auto;
        margin-right: 0;
        /* Align to right in grid layouts */
    }
}

.video-square-wrapper iframe {
    position: absolute;
    /* Scale and reposition to hide all YouTube UI and bars */
    width: 101%;
    /* Slight overscale for safety */
    height: 180%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    /* Aggressive vertical over-scale to hide top-bar UI entirely */
    pointer-events: none;
    /* Removes YouTube UI on hover (share, watch later, etc) */
    background: #000;
}

.mobile-only {
    display: block;
}

/* --- Professional CTA Button Logic --- */
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    /* No margin-top here, handled by prefixing element's margin-bottom */
}

.cta-actions .btn {
    min-width: 250px;
}

@media (max-width: 768px) {
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .mobile-only {
        display: none;
    }
}

/* --- High-Contrast CTA Refinement --- */
.bg-blue-90 {
    background-color: var(--hue-blue-90);
    color: white;
}

.bg-blue-90 h2,
.bg-blue-90 h3 {
    color: white !important;
}

.text-blue-30 {
    color: var(--hue-blue-30);
}

/* --- Footer Refinement --- */
.footer {
    padding: 5rem 0 8rem;
    background: var(--hue-blue-90);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer-text {
    color: var(--hue-blue-30);
}

.footer-heading {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--hue-blue-30);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hue-blue-80);
    text-align: center;
}

.footer-copyright {
    color: var(--hue-blue-50);
    font-size: 0.85rem;
}

/* Base resets extension */
img {
    max-width: 100%;
    height: auto;
}

/* Popups / Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--hue-blue-50);
}

/* --- FAQ Clinical Styling --- */
.faq-category-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--hue-orange-50);
    letter-spacing: 2px;
    margin: 4rem 0 2rem;
    text-align: center;
}

.faq-card {
    background: white;
    border: 1px solid var(--hue-blue-10);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    /* Space between cards to prevent hover overlap */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.faq-card:hover {
    border-color: var(--hue-orange-50);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.faq-summary {
    padding: 1.25rem 2rem;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--hue-blue-90);
}

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

.faq-summary i {
    transition: transform 0.3s ease;
}

details[open] .faq-summary i {
    transform: rotate(45deg);
    color: var(--hue-orange-50);
}

.faq-content {
    padding: 0 2rem 1.5rem;
    color: var(--hue-blue-70);
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .faq-summary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .faq-content {
        padding: 0 1.5rem 1.25rem;
    }

    .faq-category-title {
        margin: 3rem 0 1.5rem;
    }
}

/* --- Wireframe Restoration Styles --- */

/* Professional Search Bar */
.search-container-wrapper {
    max-width: 700px;
    margin: 0rem auto 3rem;
    padding: 0 1.5rem;
}

.search-bar-inner {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--hue-blue-10);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.search-bar-inner:focus-within {
    border-color: var(--hue-orange-50);
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.1);
}

.search-bar-inner i.search-icon {
    color: var(--hue-orange-50);
    font-size: 1.25rem;
    margin-right: 1rem;
}

.search-bar-inner input {
    width: 100%;
    border: none;
    outline: none;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-family: var(--font-body);
    background: transparent;
}

/* Cards consolidated into .clinical-card system above */

/* Desktop Sticky Footer */
.sticky-footer-desktop {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: white;
    border-top: 2px solid var(--hue-blue-10);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
}

.sticky-footer-desktop span {
    font-weight: 600;
    color: var(--hue-blue-90);
    font-size: 1rem;
}

@media (min-width: 992px) {
    .sticky-footer-desktop {
        display: flex;
    }
}

/* --- Story Style Scroll (Buildbites Inspired) --- */
.story-scroll-wrapper {
    width: 100%;
}

.story-scroll-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 1.5rem 3rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.story-scroll-container::-webkit-scrollbar {
    display: none;
}

.story-card {
    flex: 0 0 85%;
    min-height: 480px;
    background: white;
    border-radius: 32px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    scroll-snap-align: start;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

@media (min-width: 1024px) {
    .story-card {
        flex: 0 0 350px;
        min-height: 520px;
    }

    .story-scroll-container {
        padding-left: calc(50vw - 600px + 1.5rem);
        padding-right: 1.5rem;
    }

    .story-scroll-container::after {
        content: '';
        flex: 0 0 calc(50vw - 600px);
    }
}

.story-index {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--hue-blue-90);
    opacity: 0.05;
    position: absolute;
    top: 2rem;
    right: 2.5rem;
}

.story-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    z-index: 2;
    color: var(--hue-foreground);
}

.story-card p {
    font-size: 1.1rem;
    color: var(--hue-blue-70);
    line-height: 1.6;
    margin-bottom: auto;
    z-index: 2;
}

.story-visual {
    margin-top: 2rem;
    font-size: 4rem;
    color: var(--hue-orange-50);
}

.story-card.bg-orange-10 {
    background-color: var(--hue-orange-10);
    border: none;
}

.story-card.bg-blue-10 {
    background-color: var(--hue-blue-10);
    border: none;
}

.story-card.bg-surface.border {
    border: 1px solid var(--hue-blue-20);
}

.bg-orange-10 {
    background-color: var(--hue-orange-10);
}

.bg-blue-10 {
    background-color: var(--hue-blue-10);
}

.border {
    border: 1px solid var(--hue-blue-20);
}

/* --- About Page Refinements & Utilities --- */

@media (max-width: 768px) {
    .mobile-title-refine {
        font-weight: 600 !important;
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.items-start {
    align-items: flex-start;
}

.self-center {
    align-self: center;
}

.gap-4 {
    gap: 1rem;
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.z-10 {
    z-index: 10;
}

/* Sizing */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-32 {
    height: 8rem;
}

.max-w-4xl {
    max-width: 56rem;
}

/* Visuals */
.rounded-2xl {
    border-radius: 1rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.object-cover {
    object-fit: cover;
}

.border-blue-70 {
    border-color: var(--hue-blue-70);
}

/* Gradients */
.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-white {
    --tw-gradient-from: #fff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0));
}

.to-transparent {
    --tw-gradient-to: transparent;
}

.text-green-600 {
    color: #16a34a;
}

/* Story Scroll Refinements */
.story-card {
    border: 1px solid var(--hue-blue-20);
    /* Default border for better visibility */
}

/* --- Essential Utilities --- */
.bg-blue-90 {
    background-color: var(--hue-blue-90) !important;
}

.bg-blue-10 {
    background-color: var(--hue-blue-10) !important;
}

.text-white {
    color: #ffffff !important;
}

/* Responsive Video Wrapper */
/* Responsive Video Wrapper - Strict 16:9 to avoid black bars */
.video-responsive-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-responsive-wrapper iframe {
    position: absolute;
    /* Scale video to hide UI bars */
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    border: 0;
    pointer-events: none;
}

/* Specialist Card Refinement */
.specialist-card-visual {
    background-color: var(--hue-blue-90);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    aspect-ratio: 0.8;
}

.specialist-card-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-position: bottom;
    object-fit: cover;
    mix-blend-mode: normal;
}

/* Specialist Credentials Refinement */
.credentials-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
    border-top: 1px solid var(--hue-blue-20);
    padding-top: 2rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--hue-blue-80);
    font-weight: 500;
}

.credential-item .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--hue-blue-10);
    /* Subtle background for icon alignment */
    flex-shrink: 0;
}

.credential-item i {
    font-size: 1rem;
    /* Original icon styling preserved via HTML classes, just structural alignment here */
}

/* White Outline Button for Dark Backgrounds */
.btn-outline-white {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white !important;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--hue-blue-90) !important;
    border-color: white;
    transform: translateY(-3px);
}

/* --- Blog / Insights Styles --- */
.blog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--hue-blue-10);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: white;
    border: 1.5px solid var(--hue-blue-10);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hue-blue-70);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--hue-blue-90);
    color: white;
    border-color: var(--hue-blue-90);
}

.clinical-select {
    width: 100%;
    padding: 0.8rem 1.25rem;
    border-radius: 14px;
    border: 1.5px solid var(--hue-blue-10);
    background: white;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hue-blue-90);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232C3E50'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.clinical-select:focus {
    outline: none;
    border-color: var(--hue-blue-90);
    box-shadow: 0 0 0 4px var(--hue-blue-10);
}

.mobile-filter-container {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* --- Mobile Bottom Nav --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1.5px solid var(--hue-blue-10);
    z-index: 2000;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.06);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--hue-blue-90);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    flex: 1;
}

.bottom-nav .nav-item i {
    font-size: 1.25rem;
    color: var(--hue-blue-50);
}

.bottom-nav .nav-item-primary i {
    color: white;
}

@media (min-width: 992px) {
    .bottom-nav {
        display: none;
    }
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hue-blue-50);
}

.sort-link {
    color: var(--hue-blue-70);
    text-decoration: none;
    transition: color 0.2s;
}

.sort-link.active,
.sort-link:hover {
    color: var(--hue-orange-50);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 5rem;
}

.pagination-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--hue-blue-10);
    color: var(--hue-blue-70);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-link:hover,
.pagination-link.active {
    background: var(--hue-blue-90);
    color: white;
    border-color: var(--hue-blue-90);
}

.pagination-arrow {
    padding: 0 1.25rem;
    width: auto;
}

@media (max-width: 768px) {
    .blog-filter-bar {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .filter-group {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        width: 100vw;
        margin-left: -1rem;
        /* Offset container padding */
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .filter-group::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

/* --- Article Specific Components --- */
.article-masthead {
    border-bottom: 2px solid var(--hue-blue-90);
    padding-bottom: 3rem;
    margin-bottom: 4rem;
}

.clinical-kicker {
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: var(--hue-orange-50);
    margin-bottom: 1.5rem;
    display: block;
}

.clinical-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--hue-blue-10);
    color: var(--hue-blue-70);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--hue-blue-20);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.clinical-chip:hover {
    background: var(--hue-blue-90);
    color: white;
    border-color: var(--hue-blue-90);
    transform: translateY(-2px);
}

.sidebar-insight-card {
    display: block;
    background: white;
    border: 1px solid var(--hue-blue-10);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.sidebar-insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--hue-blue-20);
}

.sidebar-insight-card img {
    width: 100%;
    aspect-ratio: 1.8;
    object-fit: cover;
    border-bottom: 1px solid var(--hue-blue-10);
}

.sidebar-insight-card h5 {
    padding: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--hue-blue-90);
    font-weight: 700;
}

@media (max-width: 1023px) {
    .mobile-hidden {
        display: none !important;
    }
}

/* --- Mobile Article Drawer --- */
.drawer-toggle-btn.glass-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-right: none;
    padding: 1rem 0.5rem 1rem 1rem;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    color: var(--hue-blue-50);
    cursor: pointer;
    transition: all 0.3s ease;
}

.drawer-toggle-btn.glass-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) translateX(-2px);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 90vw;
    background: var(--hue-surface);
    z-index: 1700;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    overflow-y: auto;
}

.drawer-menu.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.drawer-close-btn {
    font-size: 2.5rem;
    line-height: 1;
    color: var(--hue-blue-50);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}