/* =====================================================================
   APCERSST – Session Tracks section
   Plain CSS (no build step). Theme colours from the APCERSST logo.
   Each tab / panel sets --c to its track colour.
   ===================================================================== */

.st-section {
    --st-navy: #0b3a8f;
    --st-navy-dark: #061a42;
    --st-red: #c8102e;
    --st-ink: #0f172a;
    --st-text: #475569;
    --st-muted: #94a3b8;
    --st-line: #e2e8f0;
    --st-soft: #f8fafc;
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0;
    background: #f8fafc;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 640px)  { .st-section { padding: 4.5rem 0; } }
@media (min-width: 1024px) { .st-section { padding: 5.5rem 0; } }

.st-section *, .st-section *::before, .st-section *::after { box-sizing: border-box; }

.st-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(30rem 18rem at 0% 0%, rgb(197 25 45 / .07), transparent 70%),
        radial-gradient(30rem 18rem at 100% 100%, rgb(10 151 217 / .08), transparent 70%);
}

.st-container {
    position: relative;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px)  { .st-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .st-container { padding: 0 2rem; } }

/* ---------- Heading ---------- */
.st-header { max-width: 48rem; margin: 0 auto 2rem; text-align: center; }
@media (min-width: 640px)  { .st-header { margin-bottom: 2.5rem; } }
@media (min-width: 1024px) { .st-header { margin-bottom: 3rem; } }
.st-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .75rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--st-red);
}
.st-eyebrow::before {
    content: ""; width: 1.75rem; height: 3px; border-radius: 9999px;
    background: linear-gradient(90deg, var(--st-red), #fcc30b);
}
.st-title {
    margin: 0; font-size: 1.75rem; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--st-ink);
}
@media (min-width: 640px)  { .st-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .st-title { font-size: 2.6rem; } }
.st-title span {
    background: linear-gradient(90deg, #173fb0, #1f4fd6, var(--st-red));
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: st-shimmer 6s ease-in-out infinite alternate;
}
.st-lead { margin: 1rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--st-text); }
@media (min-width: 640px) { .st-lead { font-size: 1.125rem; } }

/* ---------- Layout ---------- */
.st-layout { display: grid; gap: 1.5rem; }
.st-layout > * { min-width: 0; }
@media (min-width: 1024px) {
    .st-layout { grid-template-columns: 5fr 7fr; gap: 2rem; align-items: start; }
}

/* ---------- Tabs ---------- */
.st-tabs {
    display: flex; gap: .75rem;
    margin: 0 -1rem; padding: 0 1rem .5rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.st-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
    .st-tabs { flex-direction: column; margin: 0; padding: 0; overflow: visible; }
}

.st-tab {
    position: relative; display: flex; align-items: center; gap: 1rem;
    flex: 0 0 78%; scroll-snap-align: start;
    padding: 1rem; overflow: hidden; cursor: pointer; text-align: left; font: inherit;
    background: #fff; border: 1px solid var(--st-line); border-radius: 1rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / .05);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
@media (min-width: 640px)  { .st-tab { flex-basis: 46%; } }
@media (min-width: 1024px) { .st-tab { flex-basis: auto; width: 100%; padding: 1.25rem; } }

.st-tab::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px;
    background: var(--c); transform: scaleY(0); transform-origin: top; transition: transform .5s ease;
}
.st-tab::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease;
    background: linear-gradient(110deg, color-mix(in srgb, var(--c) 10%, white), #fff 70%);
}
.st-tab > * { position: relative; z-index: 1; }
.st-tab:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 10px 30px -12px rgb(15 23 42 / .18); }
@media (min-width: 1024px) { .st-tab:hover { transform: translateX(4px); } }
.st-tab:focus-visible { outline: 3px solid #fcc30b; outline-offset: 2px; }

.st-tab.is-active { border-color: transparent; box-shadow: 0 18px 36px -18px var(--c); }
.st-tab.is-active::before { transform: scaleY(1); }
.st-tab.is-active::after { opacity: 1; }

.st-tab__icon {
    display: grid; place-items: center; flex-shrink: 0; width: 3rem; height: 3rem; border-radius: .75rem;
    font-size: 1.125rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white);
    transition: transform .5s ease, background .3s ease, color .3s ease;
}
.st-tab:hover .st-tab__icon { transform: rotate(6deg) scale(1.05); }
.st-tab.is-active .st-tab__icon { color: #fff; background: var(--c); }

.st-tab__text { flex: 1; min-width: 0; }
.st-tab__num {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--st-muted);
    transition: color .3s ease;
}
.st-tab.is-active .st-tab__num { color: var(--c); }
.st-tab__title { display: block; margin-top: 2px; font-size: .95rem; font-weight: 700; line-height: 1.35; color: var(--st-ink); }
@media (min-width: 640px) { .st-tab__title { font-size: 1rem; } }

.st-tab__count {
    display: grid; place-items: center; flex-shrink: 0; min-width: 2rem; height: 2rem; padding: 0 .5rem; border-radius: 9999px;
    font-size: .75rem; font-weight: 700; color: #475569; background: #f1f5f9; transition: background .3s ease, color .3s ease;
}
.st-tab.is-active .st-tab__count { color: #fff; background: var(--c); }

/* ---------- Panels ---------- */
.st-panel {
    overflow: hidden; background: #fff; border: 1px solid var(--st-line); border-radius: 1.5rem;
    box-shadow: 0 10px 30px -12px rgb(15 23 42 / .18);
}
.st-panel[hidden] { display: none; }
.st-panel.is-active { animation: st-panel-in .55s cubic-bezier(.22, 1, .36, 1); }

.st-panel__head {
    position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; overflow: hidden;
    background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #061a42));
}
@media (min-width: 640px) { .st-panel__head { flex-direction: row; align-items: center; padding: 2rem; } }
.st-panel__head::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2;
    background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 16px 16px;
}
.st-panel__big {
    position: absolute; right: 1rem; bottom: -1.5rem; pointer-events: none;
    font-size: 7rem; font-weight: 800; line-height: 1; color: rgb(255 255 255 / .1);
}
@media (min-width: 640px) { .st-panel__big { font-size: 9rem; } }
.st-panel__icon {
    position: relative; z-index: 1; display: grid; place-items: center; flex-shrink: 0; width: 4rem; height: 4rem;
    border-radius: 1rem; font-size: 1.5rem; color: #fff; background: rgb(255 255 255 / .2);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); backdrop-filter: blur(6px);
    animation: st-float 4s ease-in-out infinite;
}
.st-panel__intro { position: relative; z-index: 1; }
.st-panel__meta { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgb(255 255 255 / .75); }
.st-panel__title { margin: .25rem 0 0; font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: #fff; }
@media (min-width: 640px) { .st-panel__title { font-size: 1.75rem; } }
.st-panel__desc { max-width: 28rem; margin: .5rem 0 0; font-size: .875rem; line-height: 1.55; color: rgb(255 255 255 / .85); }

/* ---------- Topics ---------- */
.st-topics { display: grid; gap: .625rem; margin: 0; padding: 1.25rem; list-style: none; }
@media (min-width: 640px) { .st-topics { grid-template-columns: 1fr 1fr; padding: 1.5rem; } }
.st-topic {
    display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 1rem;
    font-size: .95rem; font-weight: 500; line-height: 1.45; color: #334155;
    background: rgb(248 250 252 / .6); border: 1px solid #f1f5f9; border-radius: .75rem;
    transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.st-topic:hover {
    transform: translateY(-2px); background: #fff; box-shadow: 0 1px 3px rgb(15 23 42 / .08);
    border-color: color-mix(in srgb, var(--c) 35%, white);
}
.st-topic i {
    display: grid; place-items: center; flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: .15rem;
    border-radius: 9999px; font-size: 10px; color: #fff; background: var(--c);
}
.st-panel.is-active .st-topic {
    animation: st-topic-in .5s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(var(--k) * 60ms + 120ms);
}

/* ---------- Buttons ---------- */
.st-actions { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; border-top: 1px solid #f1f5f9; }
@media (min-width: 640px) { .st-actions { flex-direction: row; padding: 1.5rem; } }
.st-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; overflow: hidden;
    padding: .75rem 1.5rem; border-radius: 9999px; font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}
.st-btn i { font-size: .75rem; transition: transform .3s ease; }
.st-btn:hover { transform: translateY(-2px); }
.st-btn:hover i { transform: translateX(3px); }
.st-btn:active { transform: scale(.97); }
.st-btn::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / .35), transparent); transition: transform .7s ease;
}
.st-btn:hover::after { transform: translateX(120%) skewX(-20deg); }
.st-btn--solid { color: #fff; background: var(--st-red); box-shadow: 0 10px 20px -8px rgb(200 16 46 / .5); }
.st-btn--solid:hover { background: #a50d27; }
.st-btn--outline { color: var(--st-navy); border: 2px solid var(--st-navy); }
.st-btn--outline:hover { color: #fff; background: var(--st-navy); }

/* ---------- Animations ---------- */
@keyframes st-panel-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes st-topic-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes st-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes st-shimmer { to { background-position: 200% center; } }

@media (prefers-reduced-motion: reduce) {
    .st-section *, .st-section *::before, .st-section *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
    }
}
