/* =========================================================
   VEIC 2027 — HERO / PAGE BANNER STYLES
   File: assets/css/hero.css
   Rendered automatically on every page via functions.php
   (Part D). Background image itself comes from the inline
   <style id="veic-hero-bg-inline"> injected in Part B.
   ========================================================= */

.veic-hero-row{
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
}

.veic-hero-container{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}


/* =========================================================
   HOMEPAGE — full hero
   ========================================================= */
.veic-hero-home{
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.veic-hero-home .veic-hero-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.veic-hero-text{
    max-width: 640px;
}

.veic-hero-eyebrow{
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.veic-hero-title{
    font-size: 44px;
    font-weight: 700;
    line-height: 1.25;
    color: #FFFFFF;
    margin: 0 0 18px;
}

.veic-hero-title sup{
    font-size: 60%;
}

.veic-hero-theme{
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    color: var(--veic-accent, #00C8FF);
    border-bottom: 2px solid var(--veic-accent, #00C8FF);
    padding-bottom: 6px;
    margin-bottom: 25px;
}

.veic-hero-meta{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
    color: #E5ECF7;
    margin-bottom: 35px;
}

.veic-hero-meta-item{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.veic-hero-meta-item .dashicons{
    color: var(--veic-accent, #00C8FF);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.veic-hero-meta-sep{
    color: rgba(255,255,255,0.3);
    margin: 0 6px;
}

.veic-hero-date-highlight{
    color: #FF6B4A;
}

.veic-hero-buttons{
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.veic-hero-btn{
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.veic-hero-btn-primary{
    background: var(--veic-accent, #00C8FF);
    color: var(--veic-primary, #0A2E73);
}

.veic-hero-btn-primary:hover{
    background: #FFFFFF;
    color: var(--veic-primary, #0A2E73);
    transform: translateY(-1px);
}

.veic-hero-btn-outline{
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    padding: 12px 32px; /* 2px less to account for border, keeps buttons visually aligned */
}

.veic-hero-btn-outline:hover{
    background: #FFFFFF;
    color: var(--veic-primary, #0A2E73);
}

.veic-hero-countdown-wrap{
    flex-shrink: 0;
}


/* =========================================================
   INNER PAGES — image band (Featured Image is the background)
   Locked to the 1400x450 ratio so it always displays at that
   proportion regardless of screen width, instead of a fixed
   pixel height that distorted the crop. `position:relative`
   makes it the positioning context for the title overlay.
   ========================================================= */
.veic-hero-inner-page{
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1400 / 450;
    background-color: var(--veic-primary, #0A2E73); /* shows briefly while the image loads, never a tinted overlay */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0;
    overflow: hidden;
}


/* =========================================================
   INNER PAGES — conference intro + breadcrumb + title overlaid
   bottom-left on the image itself.
   -------------------------------------------------------
   Diagonal scrim: strongest over the left/lower area where all
   the text sits, fading out toward the upper-right of the
   image so the photo itself still reads clearly there. This is
   deliberately scoped to .veic-page-title-overlay only (never
   the shared .veic-hero-row base class), so it can't leak onto
   the homepage hero the way the old bug did.
   ========================================================= */
.veic-page-title-overlay{
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(
        115deg,
        rgba(4,14,36,0.90) 0%,
        rgba(4,14,36,0.78) 40%,
        rgba(4,14,36,0.30) 72%,
        rgba(4,14,36,0) 92%
    );
    pointer-events: none; /* clicks pass through the scrim; links below re-enable it */
}

.veic-page-title-overlay-inner{
    pointer-events: auto;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 28px;
    box-sizing: border-box;
}

.veic-page-title{
    font-size: 40px;
    font-weight: 800;
    color: #00C8FF;
    margin: 0 0 16px;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35); /* extra safety margin for legibility on busy photos */
}

.veic-breadcrumb{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
}

.veic-breadcrumb-home-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--veic-primary, #0A2E73);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.veic-breadcrumb-home-badge .dashicons{
    font-size: 17px;
    width: 17px;
    height: 17px;
}

.veic-breadcrumb-home-badge:hover{
    transform: translateY(-1px);
}

.veic-breadcrumb-home-text,
.veic-breadcrumb a{
    color: var(--veic-gold, #F5C242);
    text-decoration: none;
    transition: color 0.2s ease;
}

.veic-breadcrumb-home-text:hover,
.veic-breadcrumb a:hover{
    color: #FFFFFF;
}

.veic-breadcrumb-sep{
    color: #FFFFFF;
    font-weight: 700;
}

.veic-breadcrumb-current{
    color: var(--veic-gold, #F5C242);
    font-weight: 700;
}


/* =========================================================
   INNER PAGES — compact conference intro
   -------------------------------------------------------
   Reuses the homepage's .veic-hero-eyebrow / .veic-hero-title /
   .veic-hero-theme / .veic-hero-meta classes (defined above,
   for the homepage) but scaled down. Every rule here is scoped
   under .veic-page-banner-intro, so it only ever overrides
   those classes when they appear inside this specific block —
   the homepage's own hero, using the same classes directly
   under .veic-hero-home, is completely unaffected.
   ========================================================= */
.veic-page-banner-intro{
    margin-bottom: 22px;
}

.veic-page-banner-intro .veic-hero-eyebrow{
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.veic-page-banner-intro .veic-hero-title{
    font-size: 26px;
    line-height: 1.3;
    margin: 0 0 14px;
}

.veic-page-banner-intro .veic-hero-title sup{
    font-size: 60%;
}

.veic-page-banner-intro .veic-hero-theme{
    font-size: 15px;
    padding-bottom: 3px;
    margin-bottom: 14px;
}

.veic-page-banner-intro .veic-hero-meta{
    font-size: 12.5px;
    margin-bottom: 0;
    gap: 6px;
}


/* =========================================================
   INNER PAGES — compact countdown, bottom-right of the banner
   -------------------------------------------------------
   Uses a dedicated class (.veic-countdown-page-banner) instead
   of the shared "veic-countdown-hero" class used elsewhere, so
   this can't collide with or affect however the homepage's own
   countdown is currently positioned. .veic-hero-inner-page is
   already position:relative (see above), so this anchors to
   the banner itself, not the whole row.
   ========================================================= */
.veic-hero-inner-page .veic-countdown-page-banner{
    position: absolute;
    z-index: 5;
    right: 20px;
    bottom: 20px;
}

.veic-countdown-page-banner .veic-countdown{
    gap: 8px;
}

.veic-countdown-page-banner .veic-countdown-box{
    width: 60px;
    padding: 8px 0;
    border-radius: 6px;
}

.veic-countdown-page-banner .veic-countdown-number{
    font-size: 18px;
}

.veic-countdown-page-banner .veic-countdown-label{
    font-size: 8.5px;
    margin-top: 2px;
}


/* =========================================================
   INNER PAGES ONLY — hide the compact conference intro below
   tablet width. This targets .veic-page-banner-intro, a class
   that only ever exists on inner-page banners (never on the
   homepage hero), so this rule cannot affect the homepage at
   any breakpoint. Keeps just the page title + breadcrumb on
   smaller screens, avoiding cramped/clipped text against the
   shorter aspect-ratio-constrained banner height.
   ========================================================= */
@media (max-width: 900px){
    .veic-page-banner-intro{ display: none; }
}

/* Countdown card needs even more room than the intro text does
   (it sits to the right, competing with the image + text below
   it), so it's hidden a bit earlier, at tablet width, to avoid
   overlapping the breadcrumb/title on shorter banners. */
@media (max-width: 768px){
    .veic-countdown-page-banner{ display: none; }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px){
    .veic-hero-home .veic-hero-container{
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .veic-hero-title{ font-size: 36px; }
    .veic-page-title{ font-size: 36px; }
}

@media (max-width: 768px){
    .veic-hero-home{
        min-height: auto;
        padding: 50px 0;
    }

    .veic-hero-text{
        padding-top: 50px;
    }

    .veic-hero-title{ font-size: 28px; }
    .veic-hero-theme{ font-size: 17px; }
    .veic-hero-meta{ font-size: 13px; }

    .veic-page-title-overlay-inner{
        padding: 16px 20px 20px;
    }

    .veic-page-title{ font-size: 32px; margin-bottom: 12px; }
    .veic-breadcrumb{ font-size: 14px; }
    .veic-breadcrumb-home-badge{ width: 28px; height: 28px; }
    .veic-breadcrumb-home-badge .dashicons{ font-size: 14px; width: 14px; height: 14px; }
}

@media (max-width: 480px){
    .veic-hero-inner-page{ min-height: 220px; }

    .veic-hero-title{ font-size: 23px; }
    .veic-hero-buttons{ flex-direction: column; }
    .veic-hero-btn{ text-align: center; }

    .veic-hero-meta{ flex-direction: column; align-items: flex-start; gap: 6px; }
    .veic-hero-meta-sep{ display: none; }

    .veic-page-title{ font-size: 26px; }
    .veic-breadcrumb{ font-size: 13px; gap: 6px; }
}
