:root {
    --navy: #123b73;
    --navy-deep: #0a2850;
    --blue: #1d69b5;
    --sky: #eaf4ff;
    --gold: #d9a928;
    --ink: #172033;
    --muted: #64748b;
    --line: #dbe3ee;
    --soft: #f5f8fc;
    --white: #fff;
    --success: #16794f;
    --warning: #9a6700;
    --danger: #b42318;
    --info: #1769aa;
    --shadow: 0 14px 40px rgba(22, 45, 78, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--white); line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--navy-deep); font-weight: 800; line-height: 1.15; }
.brand img { width: 108px; height: 46px; object-fit: contain; }
.brand small { display: block; color: var(--gold); font-size: .7rem; letter-spacing: .12em; margin-bottom: 3px; }
.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav a { color: #334155; padding: 10px 12px; border-radius: 9px; font-weight: 650; font-size: .93rem; }
.site-nav a:hover, .site-nav a.active { background: var(--sky); color: var(--navy); }
.nav-toggle { display: none; border: 1px solid var(--line); background: white; border-radius: 9px; padding: 8px 11px; font-size: 1.2rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 18px; background: var(--navy); color: white !important; font-weight: 750; cursor: pointer; box-shadow: 0 7px 18px rgba(18,59,115,.18); }
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-secondary { background: white; color: var(--navy) !important; border: 1px solid var(--line); box-shadow: none; }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }
.btn-sm { padding: 8px 12px !important; font-size: .86rem !important; }
.btn-block { width: 100%; }
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #082956 0%, #124b89 58%, #1a6bb1 100%); color: white; padding: 82px 0 70px; }
.hero::after { content: ""; position: absolute; inset: auto -10% -42% 42%; height: 420px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .75fr; gap: 52px; align-items: center; }
.eyebrow { display: inline-block; color: var(--gold); font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.15rem, 4.6vw, 4.35rem); line-height: 1.02; letter-spacing: -.04em; margin: 16px 0 20px; max-width: 850px; }
.hero .lead { color: #dbeafe; font-size: 1.1rem; max-width: 750px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .btn-secondary { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: white !important; }
.event-card { background: white; color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: 0 25px 65px rgba(0,0,0,.2); }
.event-card .date { display: grid; grid-template-columns: 70px 1fr; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.date-badge { background: var(--sky); color: var(--navy); border-radius: 12px; padding: 9px; text-align: center; }
.date-badge strong { display: block; font-size: 1.7rem; line-height: 1; }
.event-list { display: grid; gap: 13px; font-size: .95rem; }
.event-list div { display: grid; grid-template-columns: 25px 1fr; }
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.12; margin: 9px 0 12px; color: var(--navy-deep); }
.section-head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 9px 25px rgba(22,45,78,.05); }
.card h3 { color: var(--navy); margin: 8px 0; }
.icon-box { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sky); color: var(--navy); font-weight: 900; }
.schedule { display: grid; gap: 18px; }
.schedule-day { display: grid; grid-template-columns: 190px 1fr; gap: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; padding: 22px; }
.schedule-day h3 { margin: 0; color: var(--navy); }
.schedule-day time { color: var(--muted); font-size: .92rem; }
.schedule-day ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 40px; }
.schedule-day li { break-inside: avoid; margin-bottom: 7px; }
.syllabus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.syllabus-item { display: grid; grid-template-columns: 46px 1fr; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.syllabus-item strong { color: var(--navy); display: block; margin-bottom: 4px; }
.cta { padding: 36px; border-radius: 20px; background: linear-gradient(120deg, var(--navy-deep), var(--blue)); color: white; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.cta h2 { margin: 0 0 5px; }
.cta p { margin: 0; color: #dbeafe; }
.site-footer { border-top: 1px solid var(--line); padding: 35px 0; color: var(--muted); font-size: .9rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 25px; }
.footer-grid p { margin: 7px 0 0; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 46px 0; }
.page-hero h1 { color: var(--navy-deep); margin: 8px 0 7px; font-size: clamp(1.8rem, 4vw, 3rem); }
.page-hero p { color: var(--muted); margin: 0; max-width: 760px; }
.content-narrow { max-width: 920px; }
.form-card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: white; box-shadow: var(--shadow); margin-bottom: 24px; }
.form-card h2, .form-card h3 { color: var(--navy-deep); margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; color: #334155; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 12px; font: inherit; color: var(--ink); background: white; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(29,105,181,.13); border-color: var(--blue); }
.field textarea { min-height: 92px; resize: vertical; }
.divider { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.participant-card { border: 1px solid var(--line); border-radius: 15px; padding: 22px; margin-bottom: 16px; background: #fbfdff; }
.participant-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.participant-head h3 { margin: 0; }
.remove-btn { border: 0; background: #feeceb; color: var(--danger); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.summary-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: space-between; gap: 18px; align-items: center; border: 1px solid #b9d5ef; background: rgba(239,248,255,.96); backdrop-filter: blur(10px); border-radius: 14px; padding: 16px 20px; margin-top: 20px; box-shadow: var(--shadow); }
.summary-bar strong { color: var(--navy); font-size: 1.15rem; }
.alert { margin-top: 18px; border-radius: 10px; padding: 13px 15px; border: 1px solid; }
.alert-success { color: #0f6844; background: #e9f8f0; border-color: #bce5ce; }
.alert-danger { color: #9b231c; background: #fff0ef; border-color: #f6c2be; }
.alert-warning { color: #7f5800; background: #fff8dd; border-color: #f0dfa0; }
.alert-info { color: #115f99; background: #edf7ff; border-color: #bcdcf4; }
.notice { background: #fff9e8; border: 1px solid #f0dfa0; border-left: 5px solid var(--gold); border-radius: 10px; padding: 14px 16px; }
.status { display: inline-flex; border-radius: 999px; padding: 5px 10px; font-size: .78rem; font-weight: 800; }
.status-success { background: #dff5e9; color: var(--success); }
.status-warning { background: #fff1c2; color: var(--warning); }
.status-danger { background: #fee5e3; color: var(--danger); }
.status-info { background: #dff1ff; color: var(--info); }
.status-muted { background: #edf1f5; color: #596579; }
.data-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.data-table { width: 100%; border-collapse: collapse; background: white; font-size: .91rem; }
.data-table th { background: #f1f5f9; color: #334155; text-align: left; font-size: .77rem; text-transform: uppercase; letter-spacing: .04em; }
.data-table th, .data-table td { padding: 12px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .actions { white-space: nowrap; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar form { display: flex; gap: 9px; flex-wrap: wrap; }
.toolbar input, .toolbar select { border: 1px solid var(--line); padding: 9px 10px; border-radius: 9px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 19px; }
.stat-card span { color: var(--muted); font-size: .86rem; }
.stat-card strong { display: block; color: var(--navy-deep); font-size: 1.8rem; margin-top: 5px; }
.progress { height: 10px; background: #e4eaf2; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #f0c856); }
.admin-body { background: #f4f7fb; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.admin-sidebar { background: var(--navy-deep); color: white; padding: 21px 14px; display: flex; flex-direction: column; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; color: white; font-weight: 850; }
.admin-brand img { width: 74px; height: 38px; object-fit: contain; background: white; border-radius: 5px; }
.admin-brand small { display: block; color: #a9c9e8; font-weight: 500; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar nav a { color: #dbeafe; border-radius: 9px; padding: 10px 12px; font-size: .91rem; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,.11); color: white; }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.15); padding: 16px 10px 0; display: grid; gap: 5px; font-size: .83rem; }
.sidebar-foot a { color: #bcd7f0; }
.admin-main { min-width: 0; padding: 27px 30px 50px; }
.admin-topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.admin-topbar small { color: var(--muted); }
.admin-topbar h1 { margin: 0; font-size: 1.8rem; color: var(--navy-deep); }
.admin-panel { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 22px; margin-bottom: 20px; }
.admin-panel h2 { margin: 0 0 18px; color: var(--navy-deep); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-list { display: grid; grid-template-columns: 175px 1fr; gap: 9px 15px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 650; }
.login-body, .install-body { min-height: 100vh; background: linear-gradient(135deg, #edf5ff, #f8fbff 55%, #fff9e8); display: grid; place-items: center; padding: 25px; }
.login-card, .install-card { width: min(480px, 100%); background: white; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.install-card { width: min(760px, 100%); }
.login-card > img, .install-card > img { width: 150px; display: block; margin-bottom: 20px; }
.login-card h1, .install-card h1 { color: var(--navy-deep); margin: 8px 0; }
.login-card p, .install-card p { color: var(--muted); }
.track-box { max-width: 700px; margin: 0 auto; }
.reference-box { border: 2px dashed #a8c9e8; background: var(--sky); border-radius: 13px; padding: 18px; text-align: center; }
.reference-box strong { display: block; color: var(--navy); font-size: 1.35rem; letter-spacing: .04em; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check-item { text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.check-item strong { display: block; font-size: 1.25rem; color: var(--navy); }
.mt-0 { margin-top: 0; }.mt-1 { margin-top: 10px; }.mt-2 { margin-top: 20px; }.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }.text-right { text-align: right; }.nowrap { white-space: nowrap; }
@media (max-width: 960px) {
    .nav-toggle { display: inline-block; }
    .site-nav { display: none; position: absolute; top: 70px; left: 18px; right: 18px; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); padding: 10px; }
    .site-nav.open { display: flex; }
    .hero-grid { grid-template-columns: 1fr; }
    .event-card { max-width: 600px; }
    .cards { grid-template-columns: 1fr 1fr; }
    .schedule-day { grid-template-columns: 1fr; }
    .admin-shell { display: block; }
    .admin-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 260px; transform: translateX(-101%); transition: transform .2s ease; }
    .admin-sidebar.open { transform: translateX(0); box-shadow: 10px 0 35px rgba(0,0,0,.2); }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .container { width: min(100% - 24px, 1160px); }
    .brand span { display: none; }
    .hero { padding: 58px 0 48px; }
    .hero h1 { font-size: 2.35rem; }
    .section { padding: 50px 0; }
    .cards, .syllabus-grid, .form-grid, .two-col, .stat-grid, .check-grid { grid-template-columns: 1fr; }
    .schedule-day ul { columns: 1; }
    .cta, .footer-grid, .summary-bar { align-items: stretch; flex-direction: column; }
    .footer-right { align-items: flex-start; }
    .form-card { padding: 20px; }
    .admin-main { padding: 20px 14px 40px; }
    .detail-list { grid-template-columns: 1fr; gap: 2px; }
    .detail-list dd { margin-bottom: 9px; }
}
@media print {
    .site-header, .site-footer, .admin-sidebar, .admin-topbar, .toolbar, .no-print { display: none !important; }
    body, .admin-body { background: white; }
    .admin-main { padding: 0; }
    .admin-panel, .form-card { box-shadow: none; border: 0; }
}
