:root {
    --navy: #092f52;
    --navy-deep: #06243f;
    --blue: #0a77d5;
    --blue-soft: #eaf4fd;
    --gold: #f4b942;
    --ink: #162331;
    --muted: #5f6d79;
    --line: #dce4eb;
    --paper: #ffffff;
    --off: #f6f8fa;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(13, 40, 65, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 12px; top: -60px; padding: 10px 14px; background: white; color: var(--navy); z-index: 9999; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.brand-bar { background: var(--navy-deep); color: #fff; }
.brand-row { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand-mark { width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(145deg, var(--gold), #ffd879); display: inline-grid; place-items: center; color: var(--navy-deep); font-weight: 900; font-size: 25px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); flex: 0 0 auto; }
.brand-mark-small { width: 35px; height: 35px; border-radius: 10px; font-size: 18px; }
.brand-text { display: grid; gap: 2px; }
.brand-text strong { font-size: clamp(20px, 2.4vw, 30px); letter-spacing: .02em; line-height: 1.15; }
.brand-text small { color: rgba(255,255,255,.7); font-size: 12px; letter-spacing: .04em; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-link { text-decoration: none; color: #fff; font-weight: 700; font-size: 14px; }
.header-link:hover { color: var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; text-decoration: none; font-weight: 800; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 28px rgba(244,185,66,.22); }
.button-blue { background: var(--blue); color: white; box-shadow: 0 10px 28px rgba(10,119,213,.18); }
.button-outline { background: transparent; color: var(--navy); border-color: #a9bfd1; }
.button-small { min-height: 42px; padding: 0 17px; font-size: 14px; }

.primary-nav { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); position: sticky; top: 0; z-index: 60; backdrop-filter: blur(10px); }
.nav-row { display: flex; min-height: 66px; align-items: stretch; }
.nav-item { position: relative; display: flex; }
.nav-link { border: 0; background: none; color: #2f3944; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 28px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .015em; cursor: pointer; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--blue); background: #f3f7fb; }
.dropdown-menu { position: absolute; left: 0; top: 100%; min-width: 245px; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; }
.dropdown-menu::before { content: ""; position: absolute; top: -7px; left: 36px; width: 12px; height: 12px; transform: rotate(45deg); background: white; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.dropdown-menu a { display: block; text-decoration: none; padding: 10px 12px; border-radius: 9px; color: #33404d; font-size: 14px; }
.dropdown-menu a:hover { background: var(--blue-soft); color: var(--blue); }
.has-dropdown:hover > .dropdown-menu, .has-dropdown:focus-within > .dropdown-menu, .has-dropdown.dropdown-open > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-toggle { display: none; width: 45px; height: 45px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.08); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: white; }

.hero { position: relative; overflow: hidden; color: white; background: linear-gradient(120deg, rgba(6,36,63,.98), rgba(8,72,119,.91)); }
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,36,63,.92) 0%, rgba(6,36,63,.75) 48%, rgba(6,36,63,.35) 100%); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(244,185,66,.20), rgba(244,185,66,0) 68%); right: -120px; top: -170px; }
.hero-grid { position: relative; z-index: 2; min-height: 590px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; padding: 70px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 900; text-transform: uppercase; letter-spacing: .11em; font-size: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { margin: 14px 0 18px; font-size: clamp(42px, 6vw, 74px); line-height: 1.02; letter-spacing: -.035em; max-width: 850px; }
.hero p { margin: 0; max-width: 690px; color: rgba(255,255,255,.82); font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero .button-outline { color: white; border-color: rgba(255,255,255,.38); }
.hero-card { padding: 28px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; backdrop-filter: blur(10px); box-shadow: 0 24px 70px rgba(0,0,0,.18); }
.hero-card h2 { margin: 0 0 10px; font-size: 22px; }
.hero-card p { font-size: 14px; }
.hero-points { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.hero-points li { position: relative; padding-left: 29px; color: rgba(255,255,255,.92); font-weight: 700; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 900; }

.section { padding: 88px 0; }
.section-soft { background: var(--off); }
.section-dark { background: var(--navy-deep); color: white; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.kicker { color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.section h2, .page-hero h1 { margin: 8px 0 12px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.025em; }
.section-head p, .lead { color: var(--muted); font-size: 18px; }
.section-dark .section-head p, .section-dark .lead { color: rgba(255,255,255,.72); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 8px 30px rgba(18,48,72,.05); }
.card h3 { margin: 12px 0 7px; font-size: 21px; }
.card p { margin: 0; color: var(--muted); }
.icon-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 21px; font-weight: 900; }
.number-box { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: white; font-weight: 900; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-panel { border-radius: 26px; min-height: 390px; background: linear-gradient(145deg, var(--navy), #0a619f); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.feature-panel::before, .feature-panel::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); }
.feature-panel::before { width: 310px; height: 310px; top: -80px; right: -70px; }
.feature-panel::after { width: 210px; height: 210px; left: -80px; bottom: -60px; background: rgba(244,185,66,.16); }
.feature-panel-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; color: white; z-index: 2; }
.feature-panel strong { font-size: 30px; line-height: 1.1; }
.feature-panel span { color: rgba(255,255,255,.76); margin-top: 8px; }
.check-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 800; text-decoration: none; }

.calendar-strip { background: linear-gradient(100deg, #edf7ff, #fff7e6); border: 1px solid #d9e9f6; border-radius: 26px; padding: 34px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; }
.calendar-strip .calendar-icon { width: 62px; height: 62px; border-radius: 18px; background: var(--navy); color: white; display: grid; place-items: center; font-weight: 900; font-size: 25px; }
.calendar-strip h3 { margin: 0 0 4px; font-size: 24px; }
.calendar-strip p { margin: 0; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 25px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); }
.stat strong { display: block; font-size: 30px; color: var(--gold); }
.stat span { color: rgba(255,255,255,.74); }

.page-hero { padding: 72px 0 68px; color: white; background: linear-gradient(115deg, var(--navy-deep), #0a5b96); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -140px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.page-hero .shell { position: relative; z-index: 2; }
.page-hero p { max-width: 760px; color: rgba(255,255,255,.78); font-size: 18px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.66); text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb a { color: inherit; text-decoration: none; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.prose h2 { margin-top: 0; font-size: 32px; line-height: 1.15; }
.prose h3 { margin-top: 32px; font-size: 22px; }
.prose p, .prose li { color: #4e5c68; }
.sidebar-card { position: sticky; top: 94px; background: var(--off); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.sidebar-card h3 { margin-top: 0; }
.sidebar-card a { display: block; color: var(--blue); text-decoration: none; font-weight: 800; margin: 9px 0; }

.course-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.course-group { border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.course-group h3 { margin: 0 0 10px; }
.course-group p { color: var(--muted); margin: 0; }
.notice { border-left: 4px solid var(--gold); background: #fff9eb; padding: 18px 20px; border-radius: 0 12px 12px 0; color: #4b4b45; }

.calendar-viewer { margin-top: 28px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.calendar-toolbar { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.calendar-toolbar h2 { margin: 0; font-size: 20px; }
.calendar-embed { width: 100%; height: 760px; border: 0; display: block; background: #f3f5f7; }
.archive-list { display: grid; gap: 12px; margin-top: 20px; }
.archive-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; }
.archive-item strong { display: block; }
.archive-item small { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: white; }
.contact-card strong { display: block; margin-bottom: 6px; }
.contact-card a { color: var(--blue); word-break: break-word; }

.site-footer { background: #061f36; color: white; padding: 62px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 42px; }
.footer-grid h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 15px; color: var(--gold); }
.footer-grid p { color: rgba(255,255,255,.62); }
.footer-grid a { display: block; color: rgba(255,255,255,.76); text-decoration: none; margin: 7px 0; }
.footer-grid a:hover { color: white; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-size: 18px; }
.footer-portal { color: var(--gold) !important; font-weight: 800; }
.footer-address { white-space: normal; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.50); font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,.50); text-decoration: none; }

@media (max-width: 1000px) {
    .nav-link { padding: 0 18px; font-size: 13px; }
    .hero-grid { grid-template-columns: 1fr; gap: 34px; min-height: auto; }
    .hero-card { max-width: 640px; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .brand-row { min-height: 86px; }
    .brand-text small, .header-actions { display: none; }
    .nav-toggle { display: flex; }
    .primary-nav { position: relative; display: none; }
    .primary-nav.open { display: block; }
    .nav-row { display: block; padding: 10px 0 16px; }
    .nav-item { display: block; }
    .nav-link { width: 100%; min-height: 48px; justify-content: space-between; padding: 0 8px; }
    .dropdown-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 12px; background: var(--off); padding: 6px 10px; margin: 0 0 8px; }
    .dropdown-menu::before { display: none; }
    .has-dropdown.dropdown-open > .dropdown-menu { display: block; }
    .has-dropdown:hover > .dropdown-menu { display: none; }
    .has-dropdown.dropdown-open:hover > .dropdown-menu { display: block; }
    .cards-3, .stats, .contact-grid { grid-template-columns: 1fr; }
    .two-col, .content-grid { grid-template-columns: 1fr; }
    .sidebar-card { position: static; }
    .calendar-strip { grid-template-columns: auto 1fr; }
    .calendar-strip .button { grid-column: 1 / -1; justify-self: start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: auto; }
}

@media (max-width: 640px) {
    .shell { width: min(100% - 28px, 1180px); }
    .brand-mark { width: 41px; height: 41px; }
    .brand-text strong { font-size: 20px; }
    .hero-grid { padding: 54px 0; }
    .hero h1 { font-size: 44px; }
    .section { padding: 65px 0; }
    .course-groups { grid-template-columns: 1fr; }
    .calendar-toolbar, .archive-item { align-items: flex-start; flex-direction: column; }
    .calendar-embed { height: 570px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}
