/* Home-page styles for the vision conferences (CVPR, ICCV, WACV).
   Copied from colm.css so the vision sites can diverge from COLM's look.
   Loaded via a <link> in each conference's Conferences/<year>/index.html;
   scoped to that page. */

    :root {
        --primary-dark: #334155;
        --primary: #475569;
        --primary-light: #64748b;
        --accent: #0ea5e9;
        --text-dark: #1e293b;
        --text-muted: #64748b;
        --bg-light: #f8fafc;
        --bg-white: #ffffff;
    }

    .hero-section {
        position: relative;
    }

    /* Break out of the shared centered .container wrapper in
       document-snippet.html so the hero and main content span the full
       viewport width. The inner .container-fluid then re-applies the exact
       same gutter used by the navbar / yearly menubar, so everything lines
       up with the menus above. */
    .full-bleed {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    /* The yearly menubar (Dates/FAQ/Calls) renders as a card nested two
       .container-fluid levels deep, so its left edge lands at 2 x 0.75rem =
       1.5rem. Match that here so the hero and content cards line up with the
       menu card above. */
    .page-gutter {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    /* The exhibitors document renders with trailing bottom spacing; collapse it
       so the Past Years subsection sits directly beneath it. */
    .exhibitors-body,
    .exhibitors-body *:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* The rounded, clipped hero box. Sits inside .page-gutter so its
       left/right edges match the menu card; border-radius matches the cards
       below (.content-card is 12px). overflow:hidden clips the image and
       the parallax overscan to the rounded rectangle. */
    .hero-inset {
        min-height: 35vh;
        border-radius: 12px;
    }

    /* Overscan the background so the parallax translate never exposes a gap
       at the top as the hero scrolls. Fills the rounded inset box. */
    .hero-background {
        top: -50% !important;
        left: 0;
        height: 150% !important;
        background-position: center center;
    }

    /* Dark gradient scrim: strongest behind the text on the left, fading to
       the right so the photo stays visible while keeping copy readable. */
    .hero-overlay {
        top: 0;
        left: 0;
        z-index: 1;
        background: linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.55) 40%, rgba(15, 23, 42, 0.10) 80%, rgba(15, 23, 42, 0) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.35) 100%);
        pointer-events: none;
    }

    .hero-content-height {
        min-height: 30vh;
    }

    /* Conference logo pinned to the hero's top-right corner. It lives outside
       .hero-background, so the parallax transform and background cover-crop
       can't move or clip it. Sits above the scrim and the text row. */
    .hero-logo {
        position: absolute;
        top: clamp(0.75rem, 2.5vw, 1.75rem);
        right: clamp(0.75rem, 2.5vw, 2rem);
        z-index: 3;
        width: clamp(110px, 24%, 340px);
        height: auto;
        pointer-events: none;
    }

    /* Below lg the text column spans the full width, so an overlaid logo would
       cover the title. Keep it top-right but in flow, pushing the text below. */
    @media (max-width: 991.98px) {
        .hero-logo {
            position: relative;
            top: auto;
            right: auto;
            display: block;
            width: clamp(110px, 30%, 220px);
            margin: 0.75rem 0.75rem -0.5rem auto;
        }
    }

    .hero-content h1 {
        letter-spacing: -0.5px;
    }

    .text-shadow {
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
    }

    .hero-content .fs-5 {
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    }

    .content-card {
        background: var(--bg-white);
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(226, 232, 240, 0.8);
        transition: all 0.3s ease;
        position: relative;
    }

    .content-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    /* Past Years heading links: blue like other links, underline on hover. */
    .past-year-link {
        color: var(--accent);
        text-decoration: none;
    }

    .past-year-link:hover {
        text-decoration: underline;
    }

    .content-card-large {
        background: var(--bg-white);
        border-radius: 12px;
        padding: 2rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(226, 232, 240, 0.8);
    }

    .content-card-accent {
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        border-radius: 12px;
        padding: 2rem;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .content-card-primary {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
        border-radius: 12px;
        padding: 2rem;
        color: white;
    }

    .text-primary-dark {
        color: var(--primary-dark) !important;
    }

    .text-accent {
        color: var(--accent) !important;
    }

    .mission-content, .about-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .dates-modern .date-card {
        border-left-color: var(--accent) !important;
    }

    .dates-modern .date-countdown {
        color: var(--accent) !important;
    }

    .card-title.text-primary {
        color: var(--text-dark) !important;
    }

    .content-card .text-accent {
        color: var(--accent) !important;
    }

    .badge-custom {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        font-size: 0.9rem;
    }

    /* Underline the badge links (Moscone, dates) on hover. !important is
       needed to beat the inline text-decoration: none on the anchors. */
    .badge-custom a:hover,
    .badge-custom a:focus {
        text-decoration: underline !important;
    }

    /* Single shared style for every hero action button (Register, Pricing,
       Cancellation Policy, Share). All use the same glass look and the same
       hover: underline the link text. */
    .hero-btn {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
    }

    .hero-btn:hover,
    .hero-btn:focus {
        color: white;
        background: rgba(255, 255, 255, 0.15);
        text-decoration: underline;
    }

    .qr-card {
        backdrop-filter: blur(20px);
    }

    /* Modern section headers: centered title with a short accent underline. */
    .section-heading {
        display: inline-block;
        position: relative;
        padding-bottom: 0.6rem;
    }

    .section-heading::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 48px;
        height: 3px;
        border-radius: 999px;
        background: var(--accent);
    }

    /* Give the accent (gradient) cards the same lift-on-hover as .content-card
       so every card behaves consistently. */
    .content-card-accent {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .content-card-accent:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    /* Scroll-reveal. Only active once JS adds .js-anim to the root, so with
       JS disabled the content is always visible (progressive enhancement). */
    .js-anim .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        will-change: opacity, transform;
    }

    .js-anim .reveal.is-visible {
        opacity: 1;
        transform: none;
    }

    @media (prefers-reduced-motion: reduce) {
        .js-anim .reveal {
            opacity: 1;
            transform: none;
            transition: none;
        }
    }

    @media (max-width: 768px) {
        .hero-inset {
            min-height: 30vh;
        }

        .hero-content-height {
            min-height: 25vh;
        }

        .display-4 {
            font-size: 2rem;
        }

        .content-card, .content-card-large, .content-card-accent, .content-card-primary {
            padding: 1.25rem;
        }

        .hero-background {
            background-attachment: scroll !important;
        }

        .badge-custom {
            font-size: 0.8rem;
            padding: 0.5rem 0.75rem !important;
        }

        .btn-lg {
            padding: 0.75rem 1.25rem !important;
            font-size: 0.95rem !important;
        }

        .hero-actions .d-flex {
            justify-content: center;
        }
    }

    @media (max-width: 576px) {
        .hero-inset {
            min-height: 25vh;
        }

        .hero-content-height {
            min-height: 20vh;
        }

        .hero-actions .d-flex {
            flex-direction: column;
            align-items: center;
            gap: 0.5rem !important;
        }

        .hero-actions .btn {
            width: 100%;
            max-width: 280px;
        }
    }
