:root {
    --bg: #fbf7ec;
    --ink: #17213a;
    --muted: #687086;
    --primary: #1e315b;
    --primary-soft: #eef2fb;
    --gold: #e4bd54;
    --terracotta: #b45d32;
    --cream: #f5ecd5;
    --card: #ffffff;
    --border: #e9dfc8;
    --danger: #b42318;
    --shadow: 0 16px 42px rgba(30, 49, 91, .12);
    --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--primary); font-family: Fraunces, Georgia, serif; line-height: 1.08; margin: 0; }
p { line-height: 1.7; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(233, 223, 200, .8);
    background: rgba(251, 247, 236, .92);
    backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand strong { display: block; color: var(--primary); font-family: Fraunces, Georgia, serif; font-size: 19px; }
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.brand-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}
.brand-logo {
    border-radius: 8px;
    display: block;
    max-height: 54px;
    max-width: 170px;
    object-fit: contain;
}
.footer-logo { background: rgba(255,255,255,.08); padding: 6px; }
.brand-icon.gold { background: var(--gold); color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { border-radius: 999px; color: rgba(23, 33, 58, .82); font-size: 14px; font-weight: 600; padding: 10px 13px; }
.main-nav a:hover, .main-nav a.active { background: var(--primary); color: #fff; }
.menu-toggle { display: none; }
.btn {
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    padding: 12px 20px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-gold { background: linear-gradient(90deg, var(--gold), #f0d987); color: var(--ink); box-shadow: var(--shadow); }
.btn-outline { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.section { padding: 76px 0; }
.section-soft { background: rgba(245, 236, 213, .72); border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); }
.eyebrow { color: var(--terracotta); font-size: 12px; font-weight: 800; letter-spacing: .2em; margin-bottom: 12px; text-transform: uppercase; }
.section-title { max-width: 720px; margin-bottom: 34px; }
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title h2 { font-size: clamp(30px, 4vw, 44px); }
.section-title p { color: var(--muted); margin-bottom: 0; }
.underline::after { background: linear-gradient(90deg, var(--gold), #f0d987); border-radius: 3px; content: ""; display: block; height: 3px; margin-top: 14px; width: 64px; }
.hero {
    color: #fff;
    min-height: 620px;
    overflow: hidden;
    position: relative;
}
.hero img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.hero::after, .page-hero::after {
    background: linear-gradient(135deg, rgba(18, 32, 65, .92), rgba(30, 49, 91, .68) 58%, rgba(180, 93, 50, .38));
    content: "";
    inset: 0;
    position: absolute;
}
.hero-content { padding: 108px 0 80px; position: relative; z-index: 1; }
.pill { border: 1px solid rgba(228, 189, 84, .55); border-radius: 999px; color: var(--gold); display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .2em; padding: 8px 14px; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(40px, 6vw, 70px); max-width: 820px; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,.86); font-size: 18px; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 18px; }
.stat strong { color: var(--gold); display: block; font-family: Fraunces, Georgia, serif; font-size: 34px; }
.stat span { color: rgba(255,255,255,.76); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 24px; }
.icon-box { background: var(--primary); border-radius: 12px; color: #fff; display: grid; font-weight: 800; height: 44px; place-items: center; width: 44px; }
.icon-box.gold { background: var(--gold); color: var(--ink); }
.muted { color: var(--muted); }
.split { align-items: center; display: grid; gap: 54px; grid-template-columns: 1fr 1fr; }
.rounded-image { border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.rounded-image img { height: 100%; object-fit: cover; width: 100%; }
.page-hero { background: var(--primary); color: #fff; overflow: hidden; position: relative; }
.page-hero::before {
    background: radial-gradient(650px 220px at 10% 0, rgba(228,189,84,.35), transparent), radial-gradient(600px 260px at 90% 100%, rgba(180,93,50,.38), transparent);
    content: "";
    inset: 0;
    position: absolute;
}
.page-hero .container { padding: 82px 0; position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 58px); max-width: 760px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 760px; }
.image-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.notice-card { border-top: 4px solid var(--gold); }
.badge { background: rgba(228,189,84,.2); border-radius: 999px; color: var(--terracotta); display: inline-flex; font-size: 11px; font-weight: 800; letter-spacing: .12em; padding: 7px 10px; text-transform: uppercase; }
.timeline { position: relative; }
.timeline::before { background: var(--border); content: ""; height: 100%; left: 50%; position: absolute; width: 1px; }
.timeline-item { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; margin-bottom: 34px; position: relative; }
.timeline-item::after { background: var(--primary); border: 4px solid var(--bg); border-radius: 999px; content: ""; height: 14px; left: 50%; position: absolute; top: 8px; transform: translateX(-50%); width: 14px; }
.timeline-item:nth-child(odd) .timeline-content { text-align: right; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 2; }
.timeline-year { color: var(--gold); font-family: Fraunces, Georgia, serif; font-size: 34px; font-weight: 700; }
.event-card { align-items: center; display: flex; gap: 18px; padding: 18px; }
.event-date { background: var(--primary); border-radius: 14px; color: #fff; display: grid; height: 64px; place-items: center; text-align: center; width: 64px; }
.event-date small { color: var(--gold); display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.event-date strong { display: block; font-family: Fraunces, Georgia, serif; font-size: 24px; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.gallery img { aspect-ratio: 1 / 1; border-radius: 12px; object-fit: cover; width: 100%; }
.form-box { background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); display: grid; gap: 18px; padding: 28px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
label span { color: var(--primary); display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; margin-bottom: 8px; text-transform: uppercase; }
input, select, textarea {
    background: #fffdf8;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--ink);
    font: inherit;
    padding: 13px 14px;
    width: 100%;
}
textarea { resize: vertical; }
.alert { border-radius: 14px; margin-bottom: 18px; padding: 14px 16px; }
.alert-success { background: #e9f8ee; color: #146c2e; }
.alert-error { background: #fff0ef; color: var(--danger); }
.site-footer { background: var(--primary); color: #fff; margin-top: 80px; }
.footer-grid { display: grid; gap: 42px; grid-template-columns: 2fr 1fr 1fr; padding: 54px 0; }
.footer-about p, .footer-list { color: rgba(255,255,255,.76); }
.site-footer h4 { color: var(--gold); font-family: Inter, sans-serif; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: 10px 0; }
.footer-list a:hover { color: var(--gold); }
.footer-brand strong { color: #fff; }
.footer-brand small { color: rgba(255,255,255,.62); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.62); font-size: 12px; }
.footer-bottom .container { display: flex; justify-content: space-between; padding: 18px 0; }
.admin-layout { background: #f7f1e4; min-height: 100vh; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { background: var(--primary); color: #fff; flex: 0 0 250px; padding: 22px 16px; }
.admin-sidebar nav { display: grid; gap: 7px; margin-top: 24px; }
.admin-sidebar a { border-radius: 12px; color: rgba(255,255,255,.78); font-weight: 700; padding: 11px 13px; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,.1); color: var(--gold); }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { align-items: center; background: #fffdf8; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; padding: 20px 28px; }
.admin-content { padding: 28px; }
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--border); padding: 13px 15px; text-align: left; vertical-align: top; }
th { color: var(--primary); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-login { align-items: center; background: linear-gradient(135deg, var(--primary), #294474); display: grid; min-height: 100vh; padding: 24px; }
.login-card { background: var(--bg); border-radius: 24px; box-shadow: var(--shadow); margin: auto; max-width: 440px; padding: 34px; width: 100%; }
.settings-group { margin-bottom: 28px; }
.settings-group h2 { font-size: 28px; margin-bottom: 12px; }
.preview-image { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-top: 10px; max-height: 90px; max-width: 220px; object-fit: contain; padding: 8px; }

@media (max-width: 940px) {
    .header-inner { flex-wrap: wrap; }
    .menu-toggle { background: #fff; border: 1px solid var(--border); border-radius: 10px; display: block; margin-left: auto; padding: 10px 12px; }
    .main-nav { display: none; flex-basis: 100%; order: 3; }
    .main-nav.open { display: grid; gap: 4px; }
    .header-cta { display: none; }
    .grid-3, .grid-4, .stats, .footer-grid, .split { grid-template-columns: 1fr 1fr; }
    .timeline::before { left: 8px; }
    .timeline-item, .timeline-item:nth-child(even) .timeline-content { grid-template-columns: 1fr; grid-column: auto; padding-left: 32px; }
    .timeline-item:nth-child(odd) .timeline-content { text-align: left; }
    .timeline-item::after { left: 8px; }
}

@media (max-width: 680px) {
    .grid-2, .grid-3, .grid-4, .stats, .footer-grid, .split, .form-grid, .gallery { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .hero-content { padding: 74px 0; }
    .footer-bottom .container { display: grid; gap: 8px; }
    .admin-wrap { display: block; }
    .admin-sidebar { min-height: auto; }
}
