/* ==========================================================================
   Delegate — delegate.html
   Laid out after nbfc100.eletsonline.com/delegate.html, section for section:
   stats strip, video hero with a "delegate pass" card, participating
   institutions, eligible leadership profiles, what participants gain,
   discussion topics over an event photo, closing call, and the form.
   Colours are this site's: the council band's navy #0C091D, the violet
   #6844ED on light bands and the hero green #00E58F on dark ones. Headings
   are one face with a colour accent, as on advisory.html — no Playfair
   italic. The pinned header comes from shared.css (.page-delegate).
   ========================================================================== */

/* The purple contact band overhangs the footer (.cta has a -138px bottom
   margin), so its top half sits on the page itself. The form band above it
   is this colour too, so the two run on without a seam. */
.page-delegate {
    background: #FBFAFF;
}

/* ---- section heads ----------------------------------------------------- */
.dlg-head {
    max-width: 780px;
    margin: 0 auto 48px;
    text-align: center;
}

.dlg-title {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: #030014;
    text-wrap: balance;
}

.dlg-title span {
    color: #6844ED;
}

.dlg-sub {
    margin: 12px 0 0;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(3, 0, 20, .6);
}

.dlg-sub em {
    font-style: normal;
    font-weight: 700;
    color: #6844ED;
}

.dlg-dark .dlg-title {
    color: #fff;
}

.dlg-dark .dlg-title span,
.dlg-dark .dlg-sub em {
    color: #00E58F;
}

.dlg-dark .dlg-sub {
    color: rgba(255, 255, 255, .66);
}

.dlg-cta {
    margin-top: 44px;
    text-align: center;
}


/* ---- stats strip ------------------------------------------------------- */
.dlg-strip {
    /* clears the pinned 105px bar */
    margin-top: 105px;
    background: #0B0D14;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* Each item is sized to its own text and held to one line (client request):
   equal quarter columns wrapped the two long labels onto a second line.
   flex-grow shares out whatever width is left, so the rules between items
   still fall evenly. One row needs ~1100px, so below 1200px the strip
   becomes a 2 x 2 grid, and on a phone each number sits over its label. */
.dlg-strip__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dlg-strip__list li {
    flex: 1 1 auto;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    padding: 18px 20px;
    text-align: center;
    white-space: nowrap;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.1px;
    line-height: 1.4;
    text-transform: uppercase;
}

.dlg-strip__list li + li {
    border-left: 1px solid rgba(255, 255, 255, .08);
}

.dlg-strip__list strong {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0;
    color: #00E58F;
}

/* at 1200-1399px the 1140px container leaves the last label under the
   fixed Brochure/Agenda dock on the right edge, so the row runs tighter */
@media (min-width: 1200px) and (max-width: 1399px) {
    .dlg-strip__list li {
        padding: 18px 12px;
        font-size: 11.5px;
        letter-spacing: .9px;
    }

    .dlg-strip__list strong {
        font-size: 20px;
    }
}

@media (max-width: 1199px) {
    .dlg-strip__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 2 x 2: rules between the columns and between the rows only */
    .dlg-strip__list li:nth-child(odd) {
        border-left: 0;
    }

    .dlg-strip__list li:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
}


/* ---- hero -------------------------------------------------------------
   The home page's event footage under a navy wash that is heaviest behind
   the copy and lifts toward the pass card. */
.dlg-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 96px 0 104px;
    background: #0C091D;
}

.dlg-hero__video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dlg-hero__wash {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 45% 70% at 85% 35%, rgba(104, 68, 237, .34), transparent 70%),
        linear-gradient(90deg, rgba(12, 9, 29, .95) 0%, rgba(12, 9, 29, .87) 50%, rgba(12, 9, 29, .64) 100%);
}

.dlg-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr);
    gap: 56px;
    align-items: center;
}

.dlg-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 7px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .86);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .3px;
    line-height: 1.4;
}

.dlg-hero__tag::before {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00E58F;
    box-shadow: 0 0 0 4px rgba(0, 229, 143, .18);
}

.dlg-hero h1 {
    margin: 0 0 22px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(32px, 3.7vw, 52px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.025em;
    color: #fff;
    text-wrap: balance;
}

.dlg-hero h1 span {
    color: #00E58F;
}

.dlg-hero__lede {
    max-width: 62ch;
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .76);
}

.dlg-hero__actions {
    margin-top: 30px;
}

/* the pass: date and venue up top, a dashed tear, the invitation below */
.dlg-pass {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(18, 14, 40, .74);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.dlg-pass__top {
    padding: 28px 30px 24px;
    background: linear-gradient(135deg, rgba(104, 68, 237, .32), rgba(104, 68, 237, 0) 70%);
}

.dlg-pass__label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00E58F;
}

.dlg-pass__date {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0 18px;
}

.dlg-pass__day {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 72px;
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.03em;
    color: #fff;
}

.dlg-pass__month {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.dlg-pass__month small {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, .6);
}

.dlg-pass__venue {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .86);
}

.dlg-pass__venue svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #00E58F;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dlg-pass__tear {
    margin: 0 30px;
    border-top: 1.5px dashed rgba(255, 255, 255, .22);
}

.dlg-pass__bottom {
    padding: 22px 30px 28px;
}

.dlg-pass__ask {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.55;
    color: #fff;
}


/* ---- participating institutions --------------------------------------- */
.dlg-inst {
    padding: 96px 0;
    background: #FBFAFF;
}

.dlg-inst__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dlg-inst__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 30px 18px 26px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(3, 0, 20, .08);
    border-radius: 18px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.dlg-inst__item:hover {
    transform: translateY(-4px);
    border-color: rgba(104, 68, 237, .28);
    box-shadow: 0 20px 40px -18px rgba(104, 68, 237, .28);
}

.dlg-inst__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6844ED, #8E6BFF);
    box-shadow: 0 10px 22px -10px rgba(104, 68, 237, .7);
}

.dlg-inst__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dlg-inst__name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #030014;
}


/* ---- eligible leadership profiles -------------------------------------
   One flat list. Column flow keeps the seven chiefs in the left column and
   the seven heads in the right. */
.dlg-prof {
    padding: 96px 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(104, 68, 237, .28), transparent 70%),
        #0C091D;
}

.dlg-prof__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(7, auto);
    grid-auto-flow: column;
    gap: 14px 40px;
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 36px;
    list-style: none;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}

.dlg-prof__list li {
    position: relative;
    padding-left: 18px;
    font-size: 15.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .85);
}

.dlg-prof__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00E58F;
}


/* ---- why be in the room ------------------------------------------------ */
.dlg-why {
    padding: 96px 0;
    background: #fff;
}

.dlg-why__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dlg-why__card {
    position: relative;
    height: 100%;
    padding: 28px 24px 26px;
    border-radius: 18px;
    background: #FBFAFF;
    border: 1px solid rgba(3, 0, 20, .07);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}

/* violet-to-green bar that draws across the top on hover */
.dlg-why__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6844ED, #00E58F);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.dlg-why__card:hover {
    transform: translateY(-4px);
    background: #fff;
    border-color: rgba(104, 68, 237, .2);
    box-shadow: 0 20px 40px -20px rgba(104, 68, 237, .3);
}

.dlg-why__card:hover::before {
    transform: scaleX(1);
}

.dlg-why__num {
    display: block;
    margin-bottom: 18px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: #6844ED;
}

/* outlined numerals where the browser can stroke text */
@supports (-webkit-text-stroke: 1px #000) {
    .dlg-why__num {
        color: transparent;
        -webkit-text-stroke: 1.5px #6844ED;
    }
}

.dlg-why__title {
    margin: 0 0 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #030014;
}

.dlg-why__desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(3, 0, 20, .64);
}


/* ---- what the room will talk about ------------------------------------
   A full-house photo from a past edition under a heavy navy wash, with the
   topics as two columns of diamond-marked rows. The photo is decorative. */
.dlg-topics {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 110px 0;
    background: #0C091D;
}

.dlg-topics__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dlg-topics::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(12, 9, 29, .93) 0%, rgba(12, 9, 29, .84) 50%, rgba(12, 9, 29, .95) 100%);
}

.dlg-topics__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.dlg-topics__list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

.dlg-topics__list li::before {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    border: 1.5px solid #00E58F;
    background: rgba(0, 229, 143, .18);
}


/* ---- closing call ------------------------------------------------------ */
.dlg-close {
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background:
        radial-gradient(ellipse 55% 70% at 50% 100%, rgba(104, 68, 237, .34), transparent 70%),
        #0B0D14;
}

.dlg-close .dlg-head {
    margin-bottom: 0;
}

.dlg-close__lede {
    max-width: 64ch;
    margin: 18px auto 0;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .72);
}

.dlg-close__meta {
    margin: 26px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.dlg-close .dlg-cta {
    margin-top: 34px;
}


/* ---- the form ----------------------------------------------------------
   The white hairline panel from shared.css (.pform__frame). The iframe's
   real height comes from Zoho once the form loads (the script after the
   iframe in delegate.html sets it inline); these per-breakpoint heights are only
   what it starts at, roughly the form's length, so the page below doesn't
   jump much when the form arrives. */
.dlg-apply {
    padding: 96px 0 70px;
    background: #FBFAFF;
    /* the Apply Now buttons jump here; clear the pinned bar */
    scroll-margin-top: 105px;
}

.dlg-apply .dlg-head {
    margin-bottom: 32px;
}

.dlg-apply .pform__frame iframe {
    height: 2900px;
}


/* ---- responsive -------------------------------------------------------- */
@media (max-width: 991px) {
    /* the bar is 62px below 991px */
    .dlg-strip {
        margin-top: 62px;
    }

    .dlg-apply {
        scroll-margin-top: 62px;
    }

    .dlg-hero {
        padding: 72px 0 80px;
    }

    .dlg-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dlg-pass {
        max-width: 480px;
    }

    .dlg-inst,
    .dlg-prof,
    .dlg-why,
    .dlg-apply {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .dlg-topics,
    .dlg-close {
        padding: 80px 0;
    }

    .dlg-why__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dlg-apply .pform__frame iframe {
        height: 3000px;
    }
}

@media (max-width: 767px) {
    .dlg-head {
        margin-bottom: 32px;
    }

    .dlg-sub,
    .dlg-hero__lede,
    .dlg-close__lede {
        font-size: 16px;
    }

    /* too narrow for number and label side by side: stack them, and let
       the label wrap inside its cell rather than run out of it */
    .dlg-strip__list li {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 14px 10px;
        white-space: normal;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .dlg-strip__list strong {
        font-size: 18px;
    }

    .dlg-hero {
        padding: 56px 0 64px;
    }

    .dlg-pass__day {
        font-size: 60px;
    }

    .dlg-inst,
    .dlg-prof,
    .dlg-why,
    .dlg-apply {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .dlg-topics,
    .dlg-close {
        padding: 64px 0;
    }

    .dlg-inst__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .dlg-inst__item {
        padding: 24px 12px 20px;
    }

    .dlg-inst__name {
        font-size: 15px;
    }

    .dlg-prof__list {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
        gap: 12px;
        padding: 24px 22px;
    }

    .dlg-prof__list li {
        font-size: 15px;
    }

    .dlg-topics__list {
        grid-template-columns: 1fr;
    }

    .dlg-topics__list li {
        font-size: 16px;
        padding: 15px 2px;
    }

    .dlg-apply .pform__frame iframe {
        height: 3200px;
    }
}

@media (max-width: 575px) {
    .dlg-why__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dlg-inst__item,
    .dlg-why__card,
    .dlg-why__card::before {
        transition: none;
    }

    .dlg-inst__item:hover,
    .dlg-why__card:hover {
        transform: none;
    }
}
