/* ==========================================================================
   Charter School Jobs(R) Fair landing page — overrides
   --------------------------------------------------------------------------
   This file does NOT restyle the page from scratch. The page is built on the
   purchased Boomerang 2 stylesheet (global-style.css) using its standard
   component classes: .slice / .wp-section, .base bands, .milestone-counter,
   .aside-feature.square, .short-feature, .btn-base, the Bootstrap navbar,
   accordion and modal. Everything below is a thin layer added on top via the
   cascade for the few things the template has no ready-made component for:
   the full-bleed cover hero + scrim, the event-format pill, the participating-
   schools logo strip, the numbered "how it works" steps, the registration-
   modal option cards and the navbar Quick-Register button.

   Accent is the theme .base blue (#3498db). Scoped under .csj-fair-page /
   .csj-event-header / .csj-register-modal so nothing leaks site-wide.
   ========================================================================== */

/* ---- 1. Hero — full-bleed cover photo with navy scrim ------------------ */
.csj-event-hero {
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    min-height: 460px;
    background-color: #16264a;   /* fallback behind the photo */
    background-size: cover;
    /* Anchor the photo subject toward the right so the left-aligned copy sits
       over the darker part of the scrim. */
    background-position: 68% top;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .csj-event-hero { min-height: 72vh; max-height: 820px; }
}

.csj-event-hero .csj-event-hero__overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, rgba(13, 25, 43, .88) 0%, rgba(13, 25, 43, .66) 45%, rgba(13, 25, 43, .30) 100%);
}

.csj-event-hero .container {
    position: relative;
    z-index: 1;
    padding-top: 60px;
    padding-bottom: 60px;
}

.csj-event-hero__intro { max-width: 760px; }

.csj-event-hero h1 {
    color: #fff;
    font-size: 38px;
    line-height: 1.15;
    margin: 14px 0 16px;
}
.csj-event-hero h1 sup { font-size: .5em; top: -.6em; }

.csj-event-hero__sub {
    color: rgba(255, 255, 255, .92);
    font-size: 18px;
    margin-bottom: 22px;
    max-width: 34em;
}

.csj-event-hero__chips { margin: 0 0 24px; padding: 0; }
.csj-event-hero__chips > li {
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 3px;
    padding: 8px 13px;
    margin: 0 6px 8px 0;
}
.csj-event-hero__chips > li i { margin-right: 7px; }

.csj-event-hero__actions { margin-bottom: 14px; }
.csj-event-hero__actions .btn { margin: 0 10px 10px 0; }

.csj-event-hero__note { color: rgba(255, 255, 255, .8); font-size: 13px; margin: 0; }

@media (max-width: 600px) {
    .csj-event-hero h1 { font-size: 28px; }
    .csj-event-hero__sub { font-size: 16px; }
}

/* ---- 2. Event-format pill ---------------------------------------------- */
.csj-format-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 3px;
    color: #fff;
}
.csj-format-pill--inperson { background: #3498db; }
.csj-format-pill--virtual { background: #34495e; }

/* ---- 3. Participating-schools logo strip ------------------------------- */
.csj-logos-slice { padding-top: 34px; padding-bottom: 34px; }
.csj-logos-title {
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 12px;
    margin-bottom: 18px;
}
.csj-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 26px 38px;
}
.csj-logos img {
    height: 56px;
    width: auto;
    opacity: .72;
    filter: grayscale(25%);
    transition: opacity .15s ease, filter .15s ease;
}
.csj-logos img:hover { opacity: 1; filter: grayscale(0); }

/* ---- 4. Stats band — tighten the default .milestone-counter spacing ---- */
.csj-stats .milestone-counter { margin-top: 18px; margin-bottom: 18px; }
.csj-stats .csj-stat-icon {
    font-size: 44px;        /* sized to read alongside the 48px number, not dwarfed by it */
    line-height: 1;
    opacity: .9;            /* .base i -> white */
    margin-bottom: 16px;
}
/* The count needs its own line-height — it inherits the body's 22px, so a 48px
   number overflows its line box and collides with the icon (worst on mobile). */
.csj-stats .milestone-count {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 6px;
}
/* Beat global `.milestone-counter h4.milestone-info` (specificity 0,0,2,1) with
   an equal-specificity selector so it wins on source order — global's 35px
   margin-top leaves too big a gap under the number. */
.csj-stats h4.milestone-info {
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: .03em;
    color: rgba(255, 255, 255, .9);
}

/* ---- 5. Section sub-heading under .section-title.center ---------------- */
.csj-section-sub {
    max-width: 760px;
    margin: -4px auto 0;
    color: #616161;
    font-size: 16px;
}

/* ---- 6. Roles (.aside-feature.square) minor rhythm --------------------- */
.csj-fair-page .aside-feature { margin: 12px 0; }
.csj-fair-page .aside-feature h4 { margin-top: 4px; }
/* Global `.aside-feature.square:hover .icon-feature` inverts the tile to white
   + blue border but leaves `.icon-feature i` pinned white (its own rule isn't
   overridden on hover), so the glyph vanishes white-on-white. Re-color it blue
   on hover to match the inverted tile. */
.csj-fair-page .aside-feature.square:hover .icon-feature i { color: #3498db; }

/* ---- 7. Bachelor's-degree callout note --------------------------------- */
.csj-note {
    max-width: 760px;
    margin: 26px auto 0;
    text-align: center;
    padding: 14px 20px;
    background: #eaf4fb;
    border-left: 3px solid #3498db;
    border-radius: 3px;
    color: #333;
    font-weight: 600;
}

/* ---- 8. "How it works" numbered steps ---------------------------------- */
.csj-step { margin-bottom: 20px; }
.csj-step__num {
    width: 54px;
    height: 54px;
    line-height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #3498db;
    color: #fff;
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
}
.csj-step h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; color: #333; }
.csj-step p { font-size: 14px; color: #999; margin: 0; }

/* ---- 9. CTA band ------------------------------------------------------- */
.csj-cta__copy h2 { margin-top: 0; }
.csj-cta__copy p { color: rgba(255, 255, 255, .9); margin-bottom: 0; }
.csj-cta__actions { padding-top: 10px; }
/* .base a sets links white; keep the white button's label blue. */
.csj-cta .btn-white,
.csj-cta .btn-white:hover,
.csj-cta .btn-white:focus { color: #258cd1; }
@media (max-width: 767px) {
    .csj-cta__actions { text-align: left !important; padding-top: 18px; }
}

/* ---- 10. FAQ accordion — +/- indicator on the panel titles ------------- */
.csj-faq .panel-title > a {
    display: block;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    position: relative;
    padding-right: 24px;
}
.csj-faq .panel-title > a:after {
    content: "\f068";              /* fa-minus (open) */
    font-family: FontAwesome;
    position: absolute;
    right: 0;
    top: 1px;
    color: #3498db;
}
.csj-faq .panel-title > a.collapsed:after { content: "\f067"; }   /* fa-plus (closed) */

/* ---- 11. Navbar Quick-Register button ---------------------------------- */
.csj-event-header .navbar-wp .navbar-nav > li.csj-nav-cta > a {
    margin: 18px 0 18px 8px;
    padding: 8px 18px;
    border-top: 0;
    border-radius: 3px;
    background: #3498db;
    color: #fff;
}
.csj-event-header .navbar-wp .navbar-nav > li.csj-nav-cta > a:hover,
.csj-event-header .navbar-wp .navbar-nav > li.csj-nav-cta > a:focus {
    border-top: 0;
    background: #258cd1;
    color: #fff;
}

/* ---- 12. Registration modal option cards ------------------------------- */
.csj-register-modal .modal-title { font-weight: 600; }
.csj-reg-option { padding: 18px 14px; }
.csj-reg-option__icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #eaf4fb;
    color: #3498db;
    font-size: 28px;
    text-align: center;
}
.csj-reg-option h3 { font-size: 18px; font-weight: 600; color: #333; margin: 0 0 6px; }
.csj-reg-option p { color: #616161; font-size: 14px; min-height: 40px; }

/* ---- Accessibility ----------------------------------------------------- */
.csj-fair-page a:focus-visible,
.csj-fair-page button:focus-visible,
.csj-event-header a:focus-visible {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .csj-fair-page *, .csj-event-header * { transition: none !important; }
}
