/* ==========================================================================
   ARTROSCOPIA HUB PAGE Styles (True to drardens.framer.website)
   ========================================================================== */

.hub-page {
    background-color: #f8fafc;
    color: #162030;
}

/* Hub page uses a light hero, so breadcrumb text must be dark. */
.hub-page .breadcrumbs a {
    color: rgba(15, 23, 42, 0.55);
}

.hub-page .breadcrumbs a:hover {
    color: #0f172a;
}

.hub-page .breadcrumbs .breadcrumb-separator {
    color: rgba(15, 23, 42, 0.3);
}

.hub-page .breadcrumbs .breadcrumb-current {
    color: #0f172a;
    font-weight: 600;
}

/* Ensure the standard shared header on the hub page is visible on the light background */
.hub-page header {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hub-page header .logo path,
.hub-page header .logo text {
    fill: #162030 !important; /* Dark Navy for transparent header logo */
    transition: fill 0.3s ease;
}

.hub-page header .logo circle {
    stroke: #162030 !important;
    transition: stroke 0.3s ease;
}

.hub-page header .nav-link {
    color: rgba(22, 32, 48, 0.8) !important; /* Dark slate text for links */
    transition: color 0.3s ease;
}

.hub-page header .nav-link:hover {
    color: #162030 !important;
}

.hub-page header .btn-secondary-link {
    color: #53667d !important;
    transition: color 0.3s ease;
}

.hub-page header .btn-secondary-link:hover {
    color: #162030 !important;
}

.hub-page header .btn-glass-sm {
    background: rgba(22, 32, 48, 0.05) !important;
    border: 1px solid rgba(22, 32, 48, 0.15) !important;
    color: #162030 !important;
    transition: all 0.3s ease;
}

.hub-page header .btn-glass-sm:hover {
    background: rgba(22, 32, 48, 0.1) !important;
    border-color: rgba(22, 32, 48, 0.25) !important;
}

/* Scrolled override to turn white on dark navy background */
.hub-page header.scrolled {
    background-color: rgba(12, 18, 27, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.hub-page header.scrolled .logo path,
.hub-page header.scrolled .logo text {
    fill: #ffffff !important;
}

.hub-page header.scrolled .logo circle {
    stroke: #ffffff !important;
}

.hub-page header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.hub-page header.scrolled .nav-link:hover {
    color: #ffffff !important;
}

.hub-page header.scrolled .btn-secondary-link {
    color: #bcc2d3 !important;
}

.hub-page header.scrolled .btn-secondary-link:hover {
    color: #ffffff !important;
}

.hub-page header.scrolled .btn-glass-sm {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   Scroll Reveal System — inherits from styles.css; local overrides only
   ========================================================================== */
/* (All .reveal, .reveal-fade, .reveal-scale, .reveal-blur and .delay-N rules
   are defined in styles.css. This block intentionally kept minimal.) */

/* Staggered entry animation delays (kept here so artroscopia.html picks them up) */
.delay-1 { transition-delay: 0.06s; }
.delay-2 { transition-delay: 0.12s; }
.delay-3 { transition-delay: 0.18s; }
.delay-4 { transition-delay: 0.24s; }
.delay-5 { transition-delay: 0.30s; }
.delay-6 { transition-delay: 0.36s; }
.delay-7 { transition-delay: 0.42s; }

/* Floating WhatsApp Button */
.btn-whatsapp-floating {
    position: fixed;
    bottom: calc(2.5rem + env(safe-area-inset-bottom));
    right: 2.5rem;
    width: 85px;
    height: 85px;
    z-index: 999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: whatsapp-pulse 2s infinite;
}

.btn-whatsapp-floating img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.btn-whatsapp-floating:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.1), 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile responsive alignment */
@media (max-width: 768px) {
    .btn-whatsapp-floating {
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
        right: 1.5rem;
        width: 75px;
        height: 75px;
    }
}

/* ==========================================================================
   ARTROSCOPIA HUB PAGE Styles (True to drardens.framer.website)
   ========================================================================== */

.hub-page {
    background-color: #f8fafc;
    color: #162030;
}
.hub-page .breadcrumbs {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.08s;
}

/* Ensure the standard shared header on the hub page is visible on the light background */
.hub-page header {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hub-page header .logo path,
.hub-page header .logo text {
    fill: #162030 !important; /* Dark Navy for transparent header logo */
    transition: fill 0.3s ease;
}

.hub-page header .logo circle {
    stroke: #162030 !important;
    transition: stroke 0.3s ease;
}

.hub-page header .nav-link {
    color: rgba(22, 32, 48, 0.8) !important; /* Dark slate text for links */
    transition: color 0.3s ease;
}

.hub-page header .nav-link:hover {
    color: #162030 !important;
}

.hub-page header .btn-secondary-link {
    color: #53667d !important;
    transition: color 0.3s ease;
}

.hub-page header .btn-secondary-link:hover {
    color: #162030 !important;
}

.hub-page header .btn-glass-sm {
    background: rgba(22, 32, 48, 0.05) !important;
    border: 1px solid rgba(22, 32, 48, 0.15) !important;
    color: #162030 !important;
    transition: all 0.3s ease;
}

.hub-page header .btn-glass-sm:hover {
    background: rgba(22, 32, 48, 0.1) !important;
    border-color: rgba(22, 32, 48, 0.25) !important;
}

/* Scrolled light glassmorphic header overlay */
.hub-page header.scrolled {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(22, 32, 48, 0.06) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 4px 25px rgba(22, 32, 48, 0.02) !important;
}

.hub-page header.scrolled .logo path,
.hub-page header.scrolled .logo text {
    fill: #162030 !important;
}

.hub-page header.scrolled .logo circle {
    stroke: #162030 !important;
}

.hub-page header.scrolled .nav-link {
    color: rgba(22, 32, 48, 0.8) !important;
}

.hub-page header.scrolled .nav-link:hover {
    color: #162030 !important;
}

.hub-page header.scrolled .btn-secondary-link {
    color: #53667d !important;
}

.hub-page header.scrolled .btn-secondary-link:hover {
    color: #162030 !important;
}

.hub-page header.scrolled .btn-glass-sm {
    background: rgba(22, 32, 48, 0.05) !important;
    border: 1px solid rgba(22, 32, 48, 0.15) !important;
    color: #162030 !important;
}

.hub-page header.scrolled .btn-glass-sm:hover {
    background: rgba(22, 32, 48, 0.1) !important;
    border-color: rgba(22, 32, 48, 0.25) !important;
}

/* ==================== HERO SECTION ==================== */
.hub-hero {
    position: relative;
    width: 100%;
    min-height: 100svh; /* svh = viewport with browser chrome visible — prevents iOS cutoff */
    min-height: 100dvh; /* dvh = dynamic, updates as chrome shows/hides */
    padding: 8rem 4rem 0 4rem; /* Bottom padding is 0 to allow bleed */
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align grid to the bottom */
    background-image: 
        linear-gradient(135deg, rgba(236, 72, 153, 0.06) 0%, rgba(30, 111, 253, 0.05) 50%, rgba(20, 184, 166, 0.08) 100%), 
        linear-gradient(rgba(248, 250, 252, 0.45), rgba(248, 250, 252, 0.45)), 
        url('../Assets/Slider-02_upscaled.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Animated background blobs */
.hub-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
    animation: blobPulse 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background-color: #53667d;
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background-color: #bcc2d3;
    bottom: -15%;
    right: -10%;
    animation-delay: 2s;
}

@keyframes blobPulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(30px, -30px); }
}

.hub-hero-bottom-overlay {
    display: none; /* Hide on desktop as requested to keep the doctor portrait crisp and un-faded */
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw; /* Spans full viewport width, breaking out of the grid constraints */
    height: 42vh; /* Covers the bottom third of the viewport, shielding the text overlay */
    background: linear-gradient(to top, #ffffff 15%, rgba(255, 255, 255, 0.92) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: 5; /* Sits between doctor cutout (z-index 1/2) and content text (z-index 10) */
    pointer-events: none;
}

/* Three-column hero layout grid (Full width of the page canvas) */
.hub-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.4fr; /* Pushes outer columns further to the margins */
    gap: 4rem;
    align-items: flex-end; /* Align columns content to the bottom */
    width: 100%;
    max-width: 1400px;
    height: calc(100svh - 8rem);
    height: calc(100dvh - 8rem); /* dvh accounts for iOS browser chrome */
    min-height: 620px;
    z-index: 5;
}

/* Left Column content */
.hub-hero-left {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between; /* Pushes badge/title to the top, ratings to the bottom */
    align-self: stretch; /* Stretches to the full height of the grid */
    height: 100%;
    padding-top: 3.5rem; /* Lowered down to avoid overlapping the header */
    padding-bottom: 5rem; /* Leaves the ratings badge at the bottom */
    z-index: 10;
}

.hub-hero-left-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(83, 102, 125, 0.15);
    border-radius: 50px;
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #53667d;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(22, 32, 48, 0.02);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.12s;
}

.badge-icon {
    width: 15px;
    height: 15px;
    color: #53667d;
}

.hub-hero-left h1.hub-title-semibold {
    font-family: 'Syne', sans-serif;
    font-size: 4.5rem; /* Balanced size for better composition */
    font-weight: 600; /* Semibold weight */
    line-height: 1.05;
    color: #162030;
    margin: 1.5rem 0 1.8rem 0; /* Balanced margin between badge and H1 */
    letter-spacing: -1.8px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.18s;
}

.hub-hero-left h1.hub-title-semibold span.text-blue {
    background: linear-gradient(135deg, #519eff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-size: 0.8em; /* Slightly smaller for premium typographic contrast */
}

.nobr {
    white-space: nowrap;
}

/* Bottom Left ratings badge - two lines layout with initials and doctoralia */
.hub-ratings-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.26s;
}

.hub-ratings-row-1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hub-ratings-row-2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-left: 0.2rem;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #53667d;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffffff;
    margin-right: -8px;
    box-shadow: 0 4px 10px rgba(22, 32, 48, 0.08);
}

.av-1 { background-color: #53667d; }
.av-2 { background-color: #3d4e61; }
.av-3 { background-color: #bcc2d3; color: #162030; }

.ratings-stars {
    color: #fbbc05;
    font-size: 1.15rem; /* Larger stars to match homepage */
    letter-spacing: 0.05em;
}

.ratings-label {
    font-size: 0.95rem; /* Match homepage clean rating size */
    font-weight: 600;
    color: #53667d;
    display: inline-block;
}

.hub-doctoralia-inline-link {
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    transition: opacity 0.3s ease;
}

.hub-doctoralia-inline-link:hover {
    opacity: 0.7;
}

.hub-doctoralia-inline-logo {
    height: 20px; /* Slightly larger, 20px to match homepage */
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Center Spacer Column */
.hub-hero-center-spacer {
    height: 100%;
}

/* Center Column Doctor Cutout Absolute Positioning (Bleeds the bottom edge) */
.hub-hero-portrait-absolute {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 720px; /* MUCH LARGER PORTRAIT */
    height: 95svh; /* svh = with chrome visible, prevents portrait being pushed up */
    height: 95dvh;
    z-index: 2;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hub-doctor-cutout {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(22, 32, 48, 0.08));
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.22s;
}

/* Right Column Content (Aligned right to push elements further to the margin) */
.hub-hero-right {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Pushed to the right boundary of the column */
    text-align: right; /* Flush right alignment for symmetrical layout */
    justify-content: flex-end;
    height: 90%;
    padding-bottom: 5rem; /* Aligns vertically with the left column content spacing */
    z-index: 10;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.28s;
}

.hub-description {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #53667d;
    margin-bottom: 2rem;
    max-width: 400px;
}



/* ==================== RESPONSIVE RULES ==================== */
@media (max-width: 1200px) {
    .hub-hero {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .hub-hero-grid {
        gap: 2.5rem;
    }
    .hub-hero-left h1.hub-title-semibold {
        font-size: 3.8rem;
    }
    .hub-hero-portrait-absolute {
        max-width: 580px;
    }
}

@media (max-width: 992px) {
    .hub-hero {
        padding: 0;
        height: 100dvh; /* Swapped 100vh -> 100dvh to prevent address bar overflow */
        min-height: 580px;
        display: flex;
        align-items: stretch;
        position: relative;
    }
    .hub-hero-bottom-overlay {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%; /* Overrides 100vw to prevent horizontal scrollbars */
        height: 45vh;
        background: linear-gradient(
            to top,
            #d5e8f4 0%,
            rgba(213, 232, 244, 0.97) 25%,
            rgba(213, 232, 244, 0.6) 65%,
            rgba(213, 232, 244, 0) 100%
        );
    }
    .hub-hero-grid {
        display: flex !important; /* Force flex to override grid rendering engine quirks on iOS Safari */
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        height: 100%;
        width: 100%;
        max-width: 100%;
        padding: 8rem 1.25rem 1.5rem 1.25rem;
        box-sizing: border-box;
        margin: 0;
        position: relative;
        z-index: 10;
        gap: 0;
    }
    .hub-hero-left,
    .hub-hero-right {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
        padding: 1.4rem 1.5rem;
        width: 100% !important;
        max-width: 100% !important; /* Enforce container limits to prevent stretch on iOS Safari */
        box-sizing: border-box;
    }
    .hub-hero-left {
        align-items: flex-start;
        text-align: left;
        padding-bottom: 0;
        height: auto;
        z-index: 10;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        margin-top: auto;
        margin-bottom: 0;
    }
    .hub-hero-left-top {
        align-items: flex-start;
    }
    .hub-hero-left h1.hub-title-semibold {
        font-size: 4.1rem; /* Slightly larger H1 font-size on mobile/tablet */
        text-align: left;
        margin: 0.5rem 0 0.1rem 0; /* Reduced margins to group badge & H1 tighter and lower */
        line-height: 1.1;
        letter-spacing: -1.2px;
    }
    
    /* Hide ratings and description in hero on mobile to match image exactly */
    .hub-ratings-left {
        display: none !important;
    }
    .hub-description {
        display: none !important;
    }
    .hub-hero-center-spacer {
        display: none !important;
    }
    
    /* Absolute overlay doctor background matching inspo.jpg mobile */
    .hub-hero-portrait-absolute {
        position: absolute;
        bottom: 15vh;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        overflow: hidden;
    }
    .hub-doctor-cutout {
        height: 70%;
        width: auto;
        max-width: none; /* Allow doctor portrait to scale wider than the screen */
        object-fit: contain;
        object-position: bottom center;
        display: block;
        opacity: 1; /* Keep crisp overlay image */
    }
    
    .hub-hero-right {
        align-items: center;
        text-align: center;
        padding-top: 0.6rem;
        padding-bottom: 0;
        height: auto;
        z-index: 10;
        margin-top: 0;
        width: 100%;
    }

}


@media (max-width: 576px) {
    .hub-hero-left h1.hub-title-semibold {
        font-size: clamp(34px, 11vw, 44px) !important; /* Balanced fluid typography to make the heading prominent on mobile */
        line-height: 1.1;
        letter-spacing: -1px;
    }
}

/* ==========================================================================
   ARTROSCOPIA HUB PAGE Dark Mode Overrides (Matching Homepage Hero Style)
   ========================================================================== */

/* Main dark background */
body.dark-mode {
    background-color: var(--bg-dark);
    color: #ffffff;
}

/* Hero background with homepage background image and cover setting */
.dark-mode .hub-hero {
    background-image: url('../Assets/Slider-02_upscaled.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-dark);
}

/* Neon glow lighting gradient matching homepage ::before layer */
.dark-mode .hub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18) 0%, rgba(30, 111, 253, 0.15) 50%, rgba(20, 184, 166, 0.35) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Subtle soft decorative blobs on dark mode - hidden to match homepage tone */
.dark-mode .hub-blob {
    display: none !important;
}

.dark-mode .avatar-circle {
    border-color: var(--bg-dark);
}

/* Position doctor portrait cutout on top of background & overlays, but behind grid content */
.dark-mode .hub-hero-portrait-absolute {
    z-index: 4;
}

/* Grid content sits firmly in the foreground */
.dark-mode .hub-hero-grid {
    z-index: 5;
}

/* Dark mode text colors */
.dark-mode .hub-hero-left h1.hub-title-semibold {
    color: #ffffff;
}

.dark-mode .ratings-label {
    color: var(--primary-light);
}

.dark-mode .avatar-circle {
    border-color: var(--bg-darker);
}

.dark-mode .hub-description {
    color: var(--primary-light);
}

/* Glassmorphic Badge */
.dark-mode .hub-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dark-mode .badge-icon {
    color: var(--primary-light);
}

/* Header overlays - transparent state (scroll Y = 0) */
.dark-mode.hub-page header .logo path,
.dark-mode.hub-page header .logo text {
    fill: #ffffff !important;
}

.dark-mode.hub-page header .logo circle {
    stroke: #ffffff !important;
}

.dark-mode.hub-page header .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dark-mode.hub-page header .nav-link:hover {
    color: #ffffff !important;
}

.dark-mode.hub-page header .btn-secondary-link {
    color: var(--primary-light) !important;
}

.dark-mode.hub-page header .btn-secondary-link:hover {
    color: #ffffff !important;
}

.dark-mode.hub-page header .btn-glass-sm {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.dark-mode.hub-page header .btn-glass-sm:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Hamburger spans (mobile navigation menu trigger) */
.hub-page header .hamburger-btn span {
    background: #162030;
}

.dark-mode.hub-page header .hamburger-btn span {
    background: #ffffff !important;
}

/* Scrolled navigation header overlay */
.dark-mode.hub-page header.scrolled {
    background-color: rgba(12, 18, 27, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode.hub-page header.scrolled .logo path,
.dark-mode.hub-page header.scrolled .logo text {
    fill: #ffffff !important;
}

.dark-mode.hub-page header.scrolled .logo circle {
    stroke: #ffffff !important;
}

.dark-mode.hub-page header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dark-mode.hub-page header.scrolled .nav-link:hover {
    color: #ffffff !important;
}

.dark-mode.hub-page header.scrolled .btn-secondary-link {
    color: var(--primary-light) !important;
}

.dark-mode.hub-page header.scrolled .btn-secondary-link:hover {
    color: #ffffff !important;
}

.dark-mode.hub-page header.scrolled .btn-glass-sm {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.dark-mode.hub-page header.scrolled .btn-glass-sm:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Mobile responsive bottom gradient overlay */
@media (max-width: 992px) {
    .dark-mode .hub-hero-bottom-overlay {
        display: block;
        background: linear-gradient(
            to top,
            #0c121b 0%,
            rgba(12, 18, 27, 0.75) 35%,
            rgba(12, 18, 27, 0) 100%
        );
    }
    .dark-mode .hub-hero-left,
    .dark-mode .hub-hero-right {
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
    }
}

/* ============================================================
   LOCATION BANNER â€” below hub hero
   ============================================================ */

.location-strip {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 24px;
    display: flex;
    justify-content: center;
}

.location-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.location-card-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.location-card-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.location-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.location-card-sub {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

.location-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.location-card-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.location-card-cta:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.4);
}

.location-card-cta:hover svg {
    transform: translateX(3px);
}

.location-strip-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.location-strip-pin {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.location-strip-label {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}

.location-strip-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.location-strip-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.location-strip-center {
    flex: 1;
}

.location-strip-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--primary-light);
    font-weight: 500;
}

.location-strip-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

.location-strip-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: var(--transition);
    flex-shrink: 0;
}

.location-strip-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.location-strip-cta:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.35);
}

.location-strip-cta:hover svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .location-strip {
        padding: 20px 24px;
    }

    .location-strip-inner {
        gap: 20px;
        justify-content: center;
    }

    .location-strip-divider {
        display: none;
    }

    .location-strip-center {
        width: 100%;
        flex: none;
        text-align: center;
    }
}

/* ============================================================
   QUÃ‰ ES / CUÃNDO â€” Two-column explainer
   ============================================================ */

.artr-explainer {
    background-color: var(--bg-darker);
    padding: 100px 0;
}

.artr-explainer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    grid-template-rows: auto auto;
    gap: 0 64px;
    align-items: start;
}

/* Full-width header spans all 3 grid columns */
.artr-section-header {
    grid-column: 1 / -1;
    margin-bottom: 64px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artr-eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.artr-section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 3.2vw, 46px);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.artr-section-sub {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    text-align: center;
}

/* --- Vertical divider -------------------------------------- */
.artr-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 15%,
        rgba(255, 255, 255, 0.1) 85%,
        transparent 100%
    );
}

/* --- Column shared styles ---------------------------------- */
/* --- Left col: image block --------------------------------- */
.artr-col-img-wrap {
    position: relative;
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
}

.artr-col-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.artr-col-img-wrap:hover .artr-col-img {
    transform: scale(1.03);
}

.artr-col-img-label {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(12, 18, 27, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.artr-col-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(83, 102, 125, 0.18);
    border: 1px solid rgba(83, 102, 125, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-light);
}

.artr-col-icon svg {
    width: 22px;
    height: 22px;
}

.artr-col-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 20px;
}

.artr-col-body {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

/* --- Left col: bullet list --------------------------------- */
.artr-col-bullets {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.artr-col-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--primary-light);
    font-weight: 500;
}

.bullet-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
}

/* --- Right col: numbered indicators ----------------------- */
.artr-indicators {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.artr-indicator {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.indicator-num {
    flex-shrink: 0;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.05em;
    padding-top: 2px;
    width: 24px;
}

.artr-indicator strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.artr-indicator p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- Mobile ------------------------------------------------ */
@media (max-width: 900px) {
    .artr-explainer {
        padding: 70px 0;
    }

    .artr-explainer-inner {
        grid-template-columns: 1fr;
        gap: 56px 0;
        padding: 0 24px;
    }

    .artr-section-header {
        margin-bottom: 48px;
    }

    .artr-divider {
        width: 100%;
        height: 1px;
        align-self: auto;
        background: linear-gradient(
            to right,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 15%,
            rgba(255, 255, 255, 0.1) 85%,
            transparent 100%
        );
    }
}

/* ============================================================
   PROCEDIMIENTOS ARTROSCÃ“PICOS â€” Sticky Stacked Cards
   Desktop: one card visible at a time as you scroll (sticky stack)
   Mobile:  horizontal snap carousel
   ============================================================ */

.proc-section {
    padding: 100px 0 120px;
    background-color: var(--bg-dark);
}

.proc-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Section header ---------------------------------------- */
.proc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 64px;
}

.proc-eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.proc-heading {
    font-family: 'Syne', sans-serif;
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    max-width: 560px;
}

.btn-proc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
}

.btn-proc-view-all:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.35);
}

/* --- Cards stack (desktop) --------------------------------- */
.proc-cards-stack {
    display: flex;
    flex-direction: column;
}

/* Each wrapper is sticky â€” later wrappers stack on top as you scroll */
.proc-card-wrap {
    position: sticky;
    top: 120px;
}

.proc-card-wrap:nth-child(1) { z-index: 1; }
.proc-card-wrap:nth-child(2) { z-index: 2; }
.proc-card-wrap:nth-child(3) { z-index: 3; }
.proc-card-wrap:nth-child(4) { z-index: 4; }
.proc-card-wrap:nth-child(5) { z-index: 5; }

/* Margin-bottom creates scroll dwell time before next card slides in */
.proc-card-wrap:not(:last-child) {
    margin-bottom: 55vh;
}

/* --- Individual card (flex row: image | info) -------------- */
.proc-card {
    display: flex;
    flex-direction: row;
    border-radius: 20px;
    background: #1a2840;  /* Solid opaque bg â€” must cover the card beneath during transition */
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    min-height: 520px;
}

/* --- Image column ------------------------------------------ */
.proc-card-image-col {
    flex: 0 0 44%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow: hidden;
}

.proc-card-image-col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 460px;
    border-radius: 12px;
}

/* --- Info column ------------------------------------------- */
.proc-card-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 44px 52px;
}

.proc-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.proc-card-num {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
}

.proc-card-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.proc-card-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.3s;
}

.proc-card-dots .dot.active {
    background: var(--primary);
}

.proc-card-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 14px;
}

.proc-card-desc {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 32px;
}

.proc-card-tags-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.proc-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.proc-card-tags span {
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(83, 102, 125, 0.22);
    border: 1px solid rgba(83, 102, 125, 0.4);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.btn-proc-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border-radius: 100px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    margin-top: auto;
    text-align: center;
}

.btn-proc-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(83, 102, 125, 0.35);
}

/* ============================================================
   MOBILE â€” Horizontal snap carousel (â‰¤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {

    .proc-section {
        padding: 70px 0 80px;
    }

    /* Remove inner padding â€” handled per child */
    .proc-inner {
        padding: 0;
    }

    .proc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 32px;
        padding: 0 24px;
    }

    /* Horizontal scroll carousel */
    .proc-cards-stack {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 24px;
        gap: 16px;
        padding: 0 24px 24px;
        scrollbar-width: none;
    }

    .proc-cards-stack::-webkit-scrollbar {
        display: none;
    }

    /* Override sticky â€” cards just flow horizontally */
    .proc-card-wrap {
        position: static;
        flex-shrink: 0;
        width: min(82vw, 360px);
        scroll-snap-align: start;
        margin-bottom: 0 !important; /* override desktop dwell margin */
    }

    .proc-card {
        flex-direction: column;
        min-height: unset;
        height: 100%;
    }

    .proc-card-image-col {
        flex: none;
        height: 210px;
        padding: 24px;
    }

    .proc-card-image-col img {
        max-height: 170px;
    }

    .proc-card-info-col {
        padding: 28px 24px;
    }

    .proc-card-title {
        font-size: 20px;
    }

    .proc-card-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .proc-card-tags {
        margin-bottom: 24px;
    }
}
/* ==========================================================================
   HUB PAGE MOBILE PERFORMANCE OVERRIDES
   Must be at end of file so they beat the !important rules above.
   ========================================================================== */
@media (max-width: 768px) {
    /* Kill backdrop-filter on scrolled header — biggest GPU consumer on iOS */
    .hub-page header.scrolled {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: rgba(255, 255, 255, 0.97) !important;
    }

    /* Kill backdrop-filter on the hero badge */
    .hub-badge {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }

    /* Reduce hub hero to static background — no image needed on small screens */
    .hub-hero {
        background-image:
            linear-gradient(135deg, rgba(236, 72, 153, 0.06) 0%, rgba(30, 111, 253, 0.05) 50%, rgba(20, 184, 166, 0.08) 100%),
            linear-gradient(rgba(248, 250, 252, 0.45), rgba(248, 250, 252, 0.45)) !important;
    }

    /* content-visibility removed — causes iOS Safari to miss IntersectionObserver triggers */
}