/* =====================================================================
   ASTS Hub — program dashboard
   Crisp AURORA-flavored program tiles. Scoped to the dashboard page
   (af-aurora.css is loaded in this page's extra_head, not globally).
   ===================================================================== */

.hub-dashboard {
    padding: clamp(1.5rem, 4vw, 3rem) 0 3.5rem;
}

/* ---- Hero header ---- */
.hub-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--af-r-xl, 24px);
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 3rem);
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
    color: #fff;
    background:
        radial-gradient(1100px 340px at 12% -20%, rgba(255, 199, 44, .18), transparent 60%),
        linear-gradient(135deg, #0A1733 0%, #003087 54%, #06245f 100%);
    box-shadow: var(--af-shadow-hero, 0 30px 70px -28px rgba(10, 23, 51, .6));
}
.hub-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #FFC72C 30%, #FFD98A 50%, #FFC72C 70%, transparent);
}
.hub-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #FFD24A;
    margin-bottom: .7rem;
}
.hub-hero h1 {
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.03;
    font-size: clamp(1.9rem, 5vw, 3rem);
    margin: 0 0 .5rem;
}
.hub-hero p {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: rgba(255, 255, 255, .82);
    margin: 0;
    max-width: 46ch;
}

/* ---- Program tiles ---- */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

a.card-link {
    text-decoration: none;
    display: block;
}

.program-card {
    position: relative;
    overflow: hidden;
    min-height: 264px;
    border-radius: var(--af-r-lg, 18px);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.4rem;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 40px -28px rgba(10, 23, 51, .65);
    transition: transform .3s var(--af-ease, ease), box-shadow .3s ease;
    isolation: isolate;
}
/* Legibility + brand tint overlay on top of whatever background is set inline */
.program-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 23, 51, .12) 0%, rgba(10, 23, 51, .55) 55%, rgba(6, 20, 51, .9) 100%);
    transition: opacity .3s ease;
}
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -26px rgba(10, 23, 51, .7);
}
.program-card:hover::before {
    background: linear-gradient(180deg, rgba(10, 23, 51, .1) 0%, rgba(10, 23, 51, .5) 55%, rgba(6, 20, 51, .88) 100%);
}

/* Big faded watermark icon top-right — gives tiles depth even without a photo */
.program-ico {
    position: absolute;
    top: .6rem;
    right: .9rem;
    font-size: 3.4rem;
    line-height: 1;
    color: rgba(255, 255, 255, .16);
    z-index: -1;
    transition: transform .3s var(--af-ease, ease), color .3s ease;
}
.program-card:hover .program-ico {
    transform: scale(1.08) rotate(-4deg);
    color: rgba(255, 199, 44, .28);
}

.program-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.01em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
    margin: 0;
}
.program-desc {
    margin: .35rem 0 0;
    font-size: .9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, .85);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}
.program-go {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .95rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #0A1733;
    background: linear-gradient(135deg, #FFC72C, #F2C14E);
    border-radius: 100px;
    padding: .4rem .9rem;
    align-self: flex-start;
    box-shadow: 0 6px 16px -8px rgba(255, 199, 44, .7);
    transition: gap .25s var(--af-ease, ease);
}
.program-card:hover .program-go {
    gap: .7rem;
}

/* Themed (photo-less) tiles — richer than a flat color, ready to swap for a
   real photo by replacing the inline background-image. */
.program-card.tile-bls {
    background-image: radial-gradient(120% 120% at 80% 0%, #b3202f 0%, #7a1620 45%, #0A1733 100%);
}
.program-card.tile-personnel {
    background-image: radial-gradient(120% 120% at 80% 0%, #0f766e 0%, #124a5c 45%, #0A1733 100%);
}

/* ---- Admin access pill (kept from before, refreshed) ---- */
.admin-access-row {
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(10, 23, 51, .1);
    text-align: center;
}
.admin-access-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.5rem;
    border: 1px solid rgba(10, 23, 51, .35);
    border-radius: 999px;
    color: #0A1733;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.admin-access-link:hover,
.admin-access-link:focus {
    background-color: #0A1733;
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(10, 23, 51, .5);
}
.admin-access-caption {
    margin-top: .5rem;
    font-size: .85rem;
    color: #52607a;
}

@media (max-width: 575px) {
    .program-card { min-height: 200px; }
}
