:root {
    --primary: #064b9b;
    --primary-dark: #03366f;
    --accent: #0d9a92;
    --success: #159447;
    --ink: #17324d;
    --muted: #6f7f90;
    --surface: #ffffff;
    --surface-soft: #f4f8fc;
    --line: #e3ebf3;
    --shadow: 0 14px 36px rgba(13, 55, 96, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--surface-soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    overflow-x: hidden;
}
a { color: inherit; }

.site-navbar {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(227,235,243,.9);
    box-shadow: 0 5px 20px rgba(13,55,96,.05);
    z-index: 1000;
}
.nav-brand-image { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; }
.brand-wordmark { color: var(--primary); font-weight: 800; letter-spacing: .02em; }

.hero-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(2.5rem, 6vw, 5.5rem) 0;
    background: radial-gradient(circle at 85% 15%, rgba(13,154,146,.4), transparent 33%), linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.hero-section::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -140px;
    bottom: -180px;
    border: 38px solid rgba(255,255,255,.09);
    border-radius: 50%;
    pointer-events: none;
}
.hero-visual { position: relative; z-index: 1; }
.hero-brand-image {
    width: min(100%, 250px);
    aspect-ratio: 1;
    object-fit: cover;
    background: #fff;
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
}
.eyebrow { color: #aee8df; font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-label { color: #d8fff5; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; }
.hero-description { max-width: 650px; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; color: rgba(255,255,255,.9); font-size: .95rem; }
.hero-contact i { color: #8fe4d8; }

main { min-height: 50vh; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-kicker { margin: 0 0 .35rem; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.next-live-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.next-live-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--accent), #29c8b4); font-size: 1.25rem; }
.small-label { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.countdown-box { min-width: 145px; padding: .55rem .8rem; border-radius: 12px; background: #eef8f7; }
.countdown-value { display: block; color: var(--primary); font-variant-numeric: tabular-nums; font-size: 1.45rem; letter-spacing: .04em; }

.program-list { min-height: 80px; }
.program-card {
    margin-bottom: 1rem;
    padding: 1.1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(13,55,96,.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.program-card:hover { transform: translateY(-4px); border-color: rgba(6,75,155,.25); box-shadow: var(--shadow); }
.program-time { color: var(--primary); font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.program-module { margin: .2rem 0 .4rem; font-size: 1.06rem; font-weight: 750; line-height: 1.35; }
.program-meta { color: var(--muted); font-size: .9rem; }
.program-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .65rem; border-radius: 999px; color: var(--primary); background: #edf4fb; font-size: .75rem; font-weight: 700; }
.join-btn { min-width: 142px; }
.loading-state, .empty-state { padding: 2.5rem 1rem; color: var(--muted); text-align: center; }

.weekly-section { padding: 1.4rem; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.schedule-badge { padding: .4rem .7rem; border-radius: 999px; color: var(--accent); background: #eaf9f7; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.weekly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.day-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; animation: rise-in .55s both; }
.day-card-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; color: #fff; background: linear-gradient(135deg, var(--primary), #1675c8); }
.day-card-header h3 { margin: 0; font-size: 1rem; }
.day-card-header span { font-size: .75rem; opacity: .85; }
.day-session { display: grid; grid-template-columns: 88px 1fr; gap: .8rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.day-session:last-child { border-bottom: 0; }
.day-session-time { color: var(--primary); font-size: .78rem; font-weight: 800; }
.day-session-title { margin: 0 0 .25rem; font-size: .9rem; font-weight: 750; line-height: 1.35; }
.day-session-info { color: var(--muted); font-size: .76rem; }
.day-session-link { display: inline-flex; margin-top: .45rem; color: var(--success); font-size: .78rem; font-weight: 750; text-decoration: none; }
.day-session-link:hover { text-decoration: underline; }

.site-footer { margin-top: 3rem; color: #fff; background: #073b76; }
.footer-link { color: #b9fff1; text-decoration: none; }
.footer-link:hover { color: #fff; text-decoration: underline; }

.reveal { animation: rise-in .7s both; }
.reveal-delay-1 { animation-delay: .1s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-live { 0%, 100% { box-shadow: 0 0 0 0 rgba(21,148,71,.2); } 50% { box-shadow: 0 0 0 8px rgba(21,148,71,0); } }
#next-live-link { animation: pulse-live 2.4s infinite; }

@media (max-width: 767.98px) {
    .site-navbar .container { padding-top: .55rem !important; padding-bottom: .55rem !important; }
    .brand-wordmark { font-size: .9rem; }
    .nav-brand-image { width: 38px; height: 38px; }
    .hero-section { padding: 2.4rem 0 2.8rem; }
    .hero-brand-image { width: 170px; border-radius: 22px; }
    .hero-section h1 { font-size: 2rem; }
    .hero-description { font-size: .95rem; }
    .hero-actions .btn { width: 100%; }
    .hero-contact { justify-content: center; gap: .5rem .8rem; font-size: .82rem; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .section-heading > .btn { width: 100%; }
    .next-live-card { align-items: flex-start; flex-wrap: wrap; padding: 1rem; }
    .next-live-icon { width: 40px; height: 40px; flex-basis: 40px; }
    .countdown-box { width: 100%; margin-left: 0; }
    .next-live-card .btn { width: 100%; justify-content: center; }
    .program-card { padding: 1rem; }
    .program-card .row { gap: .8rem; }
    .program-time { display: inline-block; margin-bottom: .2rem; }
    .join-btn { width: 100%; }
    .weekly-section { padding: 1rem; }
    .weekly-grid { grid-template-columns: 1fr; }
    .schedule-badge { white-space: normal; }
}

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