/* ==========================================================================
   grayfuturecandidates.tv /internships/v2/ - Gray Media Training Program
   Original single-card layout on the GFC v2 token system.
   ========================================================================== */

:root {
    /* Brand (GFC token palette) */
    --g-blue:      #009cdb;
    --g-dark-blue: #1b2845;

    --accent:       var(--g-blue);
    --accent-hover: #0082b8;
    --accent-soft:  #e3f4fc;
    --ring:         rgba(0, 156, 219, .22);

    --surface:      #ffffff;
    --sunken:       #f6f8fb;
    --border-light: #eef0f5;
    --border:       #e3e7ef;

    --radius: 4px;

    --text:        #2a3447;
    --text-strong: var(--g-dark-blue);
    --text-muted:  #5e6678;

    --shadow-card: 0 18px 50px rgba(2, 8, 23, .12);
    --shadow-soft: 0 10px 22px rgba(2, 8, 23, .06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--surface);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ring);
    border-radius: var(--radius);
}

/* ----------------------------------------------------------------- header */

.interns-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}
.interns-header__inner {
    max-width: 1100px; margin: 0 auto; padding: 14px 18px;
    display: flex; align-items: center;
}
.interns-header__logo { display: inline-flex; align-items: center; }
.interns-header__logo img { height: 34px; width: auto; }

/* ------------------------------------------------------------------- page */

.page { min-height: 100vh; display: flex; flex-direction: column; }

.content {
    flex: 1; display: flex; justify-content: center;
    padding: 64px 18px 90px;
    background:
        radial-gradient(900px 420px at 20% 0%, rgba(0, 156, 219, .10), transparent 55%),
        radial-gradient(900px 420px at 85% 10%, rgba(27, 40, 69, .06), transparent 55%),
        var(--surface);
}

.content__card {
    width: 100%; max-width: 980px;
    background: rgba(255, 255, 255, .92);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    padding: 44px;
    text-align: left;
}

.card-topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}

.content__pill {
    display: inline-flex; align-items: center;
    padding: 8px 12px; border-radius: var(--radius);
    font-size: 12px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-strong);
    background: var(--accent-soft);
    border: 1px solid rgba(0, 156, 219, .18);
}

.content__title {
    margin: 0 0 14px;
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
    color: var(--text-strong);
    text-wrap: balance;
}
.content__h3, .track__title, .pillar__title { text-wrap: balance; }

.content__lede {
    margin: 0 0 14px; max-width: 860px;
    color: var(--text-muted); font-size: 18px; line-height: 1.7;
}

.content__h3 {
    margin: 18px 0 12px; font-size: 16px; font-weight: 700;
    letter-spacing: -.01em; color: var(--text-strong);
}

.divider { height: 1px; background: var(--border-light); margin: 26px 0; }

/* -------------------------------------------------------------------- cta */

.cta {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 26px; border-radius: var(--radius);
    border: 1px solid var(--accent);
    background: var(--accent); color: #fff;
    font-weight: 700; font-size: 18px; text-decoration: none;
    min-width: 260px;
}
.cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; }

.cta--top { padding: 10px 16px; font-size: 14px; min-width: 0; }

/* ------------------------------------------------------------------ video */

.card-video {
    margin: 18px 0 6px;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
    background: #0b1220;
    position: relative;
}
.card-video video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }

.video-overlay {
    position: absolute; inset: 0; z-index: 3;
    display: grid; place-items: center;
    cursor: pointer; user-select: none; border: 0; padding: 0; width: 100%;
    background:
        radial-gradient(800px 280px at 50% 70%, rgba(0, 0, 0, .35), transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .35));
    transition: opacity .2s ease;
    font-family: inherit;
}
.video-overlay.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; }

.video-overlay__btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 18px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .30);
    backdrop-filter: blur(10px);
    color: #fff; font-weight: 700; letter-spacing: .01em;
}
.video-overlay:hover .video-overlay__btn { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .40); }

.video-overlay__icon {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: var(--accent);
    flex: 0 0 auto; position: relative;
}
.video-overlay__icon::before {
    content: ""; display: block; width: 0; height: 0;
    border-left: 12px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

/* ---------------------------------------------------------------- pillars */

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.pillar {
    display: flex; gap: 12px; padding: 16px;
    border-radius: var(--radius);
    background: var(--sunken);
    border: 1px solid var(--border-light);
}
.pillar__icon {
    width: 42px; height: 42px; border-radius: var(--radius);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-soft);
    border: 1px solid rgba(0, 156, 219, .18);
    flex: 0 0 auto;
}
.pillar__icon img { width: 22px; height: 22px; }
.pillar__title { font-weight: 700; font-size: 14px; color: var(--text-strong); margin-bottom: 4px; }
.pillar__text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

/* ----------------------------------------------------------------- tracks */

.tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }

.track {
    padding: 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}
.track__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.track__badge {
    display: inline-flex; align-items: center; width: fit-content;
    padding: 6px 10px; border-radius: var(--radius);
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    background: var(--sunken); color: var(--text-muted);
    border: 1px solid var(--border-light);
}
.track__title { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--text-strong); }
.track__text { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.65; }

.content__closer {
    margin: 22px 0 0; padding-top: 18px;
    border-top: 1px dashed var(--border);
    color: var(--text-muted); font-size: 16px; line-height: 1.7;
}

/* -------------------------------------------------------------- apply bar */

.cta-row--full { margin-top: 18px; }

.apply-top {
    position: sticky; top: 12px; z-index: 5;
    margin: 8px 0 16px; padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    box-shadow: var(--shadow-soft);
}
.apply-top__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.apply-top__label {
    font-weight: 700; font-size: 13px; color: var(--text-strong);
    letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.apply-top__sub {
    font-size: 12px; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.apply-top__btn {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 14px; border-radius: var(--radius);
    border: 1px solid rgba(0, 156, 219, .35);
    background: var(--accent-soft); color: var(--accent-hover);
    font-weight: 700; font-size: 14px; text-decoration: none;
}
.apply-top__btn:hover { background: #d4eefa; border-color: rgba(0, 156, 219, .5); text-decoration: none; }

.privacy-note { text-align: center; margin: 40px 0 0; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 991px) {
    .content { padding-top: 52px; }
    .content__card { padding: 36px 26px; }
    .pillars, .tracks { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .interns-header__logo img { height: 30px; }
    .content { padding: 46px 14px 70px; }
    .content__card { padding: 28px 18px; }
    .content__lede { font-size: 16px; }
    .cta { width: 100%; min-width: 0; }
    .video-overlay__btn { gap: 10px; padding: 12px 14px; }
    .video-overlay__icon { width: 40px; height: 40px; }

    .card-topbar { flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 8px; }
    .card-topbar .content__pill {
        width: 100%; justify-content: center; text-align: center;
        padding: 10px 14px; font-size: 11.5px; line-height: 1.2; letter-spacing: .06em; margin: 0;
    }
    .cta--top { width: 100%; padding: 10px 14px; font-size: 15px; line-height: 1.2; }
    .content__title { margin-top: 20px; }

    .apply-top { top: 10px; flex-direction: column; align-items: stretch; text-align: left; }
    .apply-top__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .video-overlay { transition: none; }
}
