/* SDT Events: BAC College homepage section ([sdt_events_home]), 3.10.0 "Upcoming Events" design.
   Everything is scoped to .sdt-home. The accent comes from Corporate Identity (--sdt-ci-primary). */
.sdt-home {
    --home-accent: var(--sdt-ci-primary, #fdb913);
    --home-on-accent: #111;
    --home-ink: #1a1a1a;
    --home-muted: #545454;
    --home-label: #5c5c5c;
    --home-heading: #495057;
    --home-line: #ededed;
    --home-border: #e5e5e5;
    --home-feature: #111;
    --home-feature-2: #1f1f1f;
    --home-feature-text: #d4d4d4;
    --home-date-bg: #fff4d6;
    --home-date-ink: #6b4e00;
    --home-tile: #f6f6f4;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-block: clamp(32px, 5vw, 64px);
    font-family: Outfit, system-ui, -apple-system, sans-serif;
    color: var(--home-ink);
    line-height: 1.4;
}
.sdt-home *, .sdt-home *::before, .sdt-home *::after { box-sizing: border-box; }
.sdt-home [hidden] { display: none !important; }
.sdt-home a { color: inherit; text-decoration: none; }
.sdt-home h2, .sdt-home h3, .sdt-home p, .sdt-home ul { margin: 0; padding: 0; }
.sdt-home a:focus-visible { outline: 3px solid var(--home-accent); outline-offset: 3px; border-radius: 8px; }
.sdt-home svg { flex: none; }
.sdt-home .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Heading row */
.sdt-home-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: -20px; }
.sdt-home-title {
    padding-left: 12px !important;
    border-left: 3px solid var(--home-accent);
    font-family: Outfit, sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 33.28px;
    letter-spacing: -0.26px;
    color: var(--home-heading);
}
.sdt-home-all { font-size: 12px; font-weight: 700; line-height: 18px; letter-spacing: -0.15px; color: var(--home-accent) !important; white-space: nowrap; }

/* Featured + list */
.sdt-home-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: stretch; }

.sdt-home-feature { display: flex; height: 100%; background: var(--home-feature); border-radius: 20px; overflow: hidden; color: #fff; }
.sdt-home-poster { position: relative; flex: 0 0 360px; min-height: 420px; background: #262626; display: block; }
/* Whole poster visible (3.10.1): scaled to fit the box, never cropped; the box colour fills any spare space. */
.sdt-home-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.sdt-home-badge {
    position: absolute; top: 16px; left: 16px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--home-accent); color: var(--home-on-accent);
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.sdt-home-feature-body { flex: 1 1 auto; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.sdt-home-kicker { font-size: 14px; font-weight: 600; letter-spacing: .12em; color: var(--home-accent); }
.sdt-home-kicker-cd { display: none; }
.sdt-home-feature-title { font-size: 32px; font-weight: 600; line-height: 1.15; color: #fff; }
.sdt-home-feature-title a { color: #fff !important; }
.sdt-home-facts { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--home-feature-text); }
.sdt-home-facts li { display: flex; gap: 10px; align-items: center; margin: 0; }
.sdt-home-cd { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--home-feature-2); border-radius: 12px; }
.sdt-home-cd b { font-size: 28px; font-weight: 700; color: var(--home-accent); font-variant-numeric: tabular-nums; }
.sdt-home-cd span { font-size: 14px; line-height: 1.3; color: var(--home-feature-text); }
.sdt-home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.sdt-home-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 999px;
    background: var(--home-accent); color: var(--home-on-accent) !important;
    font-size: 15px; font-weight: 600;
}
.sdt-home-btn:hover { filter: brightness(1.05); }
.sdt-home-btn--ghost { background: transparent; border: 1.5px solid #5c5c5c; color: #fff !important; padding: 0 20px; font-weight: 500; }
.sdt-home-btn--ghost:hover { border-color: #fff; }

.sdt-home-list { display: flex; flex-direction: column; border: 1px solid var(--home-border); border-radius: 20px; padding: 8px 24px 16px; }
.sdt-home-list-label { padding: 18px 0 8px !important; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--home-label); }
.sdt-home-row { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--home-line); }
.sdt-home-row:hover .sdt-home-row-title { text-decoration: underline; }
.sdt-home-date {
    flex: 0 0 64px; height: 72px; border-radius: 12px;
    background: var(--home-date-bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.sdt-home-date span { font-size: 11px; font-weight: 600; color: var(--home-date-ink); }
.sdt-home-date b { font-size: 26px; font-weight: 700; line-height: 1; color: var(--home-ink); }
.sdt-home-row-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sdt-home-row-title { font-size: 18px; font-weight: 600; color: var(--home-ink); }
.sdt-home-row-meta { font-size: 14px; color: var(--home-muted); }
.sdt-home-chevron { color: var(--home-ink); display: inline-flex; }
.sdt-home-calendar {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 48px; margin-top: auto; padding-top: 16px;
    font-size: 15px; font-weight: 600;
}

.sdt-home-empty { padding: 32px; border: 1px dashed var(--home-border); border-radius: 20px; text-align: center; color: var(--home-muted); }

/* Every week on campus */
.sdt-home-week { display: flex; flex-direction: column; gap: 20px; }
.sdt-home-week-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sdt-home-week-title { font-size: 22px; font-weight: 600; color: var(--home-ink); }
.sdt-home-week-text { font-size: 15px; color: var(--home-muted); }
/* Full-width row (3.10.1): auto-fit stretches the cards across the whole row whatever their number. */
.sdt-home-week-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
/* Square poster card with the text over it (3.10.1). Without a poster the card is a dark tile. */
.sdt-home-pill { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--home-feature); outline: 2px solid transparent; outline-offset: -2px; }
.sdt-home-pill:hover, .sdt-home-pill.is-today { outline-color: var(--home-accent); }
.sdt-home-pill-media { position: absolute; inset: 0; display: block; }
/* Whole poster visible, never cropped */
.sdt-home-pill-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.sdt-home-pill:hover .sdt-home-pill-media img { transform: scale(1.03); }
.sdt-home-pill-body {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; gap: 4px;
    padding: 28px 14px 14px;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.72) 60%, rgba(0,0,0,0) 100%);
    color: #fff;
}
.sdt-home-pill b { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--home-accent); }
.sdt-home-pill.is-today b { display: inline-block; align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--home-accent); color: var(--home-on-accent); }
.sdt-home-pill-name { font-size: 17px; font-weight: 600; line-height: 1.2; color: #fff; }
.sdt-home-pill-meta { font-size: 13px; line-height: 1.3; color: rgba(255,255,255,.85); }

/* Full-width "View all events": phones only */
.sdt-home-all-btn { display: none; }

/* Tablet: card above the list */
@media (max-width: 1100px) {
    .sdt-home-grid { grid-template-columns: 1fr; }
}

/* Phones (390 artboard) */
@media (max-width: 640px) {
    .sdt-home { gap: 28px; padding-block: 40px; }
    .sdt-home-head { margin-bottom: -8px; }
    .sdt-home-feature { flex-direction: column; border-radius: 18px; }
    .sdt-home-poster { flex: none; min-height: 0; aspect-ratio: 1 / 1; }
    .sdt-home-badge { top: 14px; left: 14px; }
    .sdt-home-feature-body { padding: 22px 20px 24px; gap: 14px; }
    .sdt-home-kicker { font-size: 13px; }
    .sdt-home-kicker-cd { display: inline; }
    .sdt-home-feature-title { font-size: 26px; }
    .sdt-home-facts { gap: 8px; }
    .sdt-home-cd { display: none; }
    .sdt-home-actions { gap: 10px; margin-top: 6px; flex-wrap: nowrap; }
    .sdt-home-actions .sdt-home-btn { flex: 1 1 0; padding: 0 16px; }
    .sdt-home-btn--ghost { flex: 0 0 48px !important; width: 48px; padding: 0 !important; }
    .sdt-home-btn--ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
    .sdt-home-btn--ghost svg { width: 18px; height: 18px; }

    .sdt-home-list { border: 0; border-radius: 0; padding: 0; }
    .sdt-home-list-label { padding: 0 0 4px !important; font-size: 12px; }
    .sdt-home-row { gap: 14px; padding: 16px 0; }
    .sdt-home-date { flex-basis: 56px; height: 64px; }
    .sdt-home-date span { font-size: 10px; }
    .sdt-home-date b { font-size: 22px; }
    .sdt-home-row-body { gap: 4px; }
    .sdt-home-row-title { font-size: 16px; }
    .sdt-home-row-meta { font-size: 13px; }
    .sdt-home-chevron, .sdt-home-calendar { display: none; }

    .sdt-home-week { gap: 14px; }
    .sdt-home-week-title { font-size: 20px; }
    .sdt-home-week-text { display: none; }
    .sdt-home-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sdt-home-pill { border-radius: 12px; }
    .sdt-home-pill-body { gap: 2px; padding: 24px 12px 12px; }
    .sdt-home-pill-meta { font-size: 12px; }
    .sdt-home-pill b { font-size: 11px; }
    .sdt-home-pill-name { font-size: 16px; }

    .sdt-home-all-btn {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        min-height: 48px; border: 1.5px solid var(--home-ink); border-radius: 999px;
        font-size: 15px; font-weight: 600;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sdt-home * { transition: none !important; }
    .sdt-home-pill:hover .sdt-home-pill-media img { transform: none; }
}
