/* =====================================================
   Covenant Treasures International School — Main Stylesheet
   Palette: Warm White + Deep Brown (Elegant/Minimal) + Gold accent
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,500&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg: #FAF6F0;
    --surface: #EDE5D8;
    --surface-dark: #E2D6C3;
    --accent: #6E1F3D;
    --accent-gold: #B8962E;
    --text-dark: #1A1008;
    --text-muted: #6B5C4A;
    --text-on-accent: #FAF6F0;
    --white: #FFFFFF;
    --error: #A83232;
    --success: #3E6B3E;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-subhead: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lato', 'Trebuchet MS', sans-serif;

    --radius: 6px;
    --shadow-soft: 0 4px 20px rgba(26, 16, 8, 0.08);
    --shadow-lift: 0 8px 30px rgba(26, 16, 8, 0.14);
    --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }

.subhead {
    font-family: var(--font-subhead);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Editorial Design System (hero, courses, gallery, footer) ── */
.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 16px;
}
.editorial-heading {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    color: var(--accent);
}
.editorial-heading em {
    font-family: var(--font-subhead);
    font-style: italic;
    font-weight: 500;
    color: var(--accent-gold);
}
.watermark-text {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent);
    opacity: 0.06;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}
.arch-frame {
    position: relative;
    border-radius: 50% 50% 0 0 / 30% 30% 0 0;
    overflow: hidden;
}
.arch-frame.arch-small {
    border-radius: 50% 50% 0 0 / 40% 40% 0 0;
}
.vertical-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-gold); }

img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}
.btn:hover { background: var(--accent-gold); color: var(--text-on-accent); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--text-on-accent); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }

/* ── Header / Nav ── */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-top {
    background: var(--accent);
    color: var(--text-on-accent);
    font-size: 0.85rem;
    padding: 8px 0;
}
.header-top .container {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}
.header-top a { color: var(--text-on-accent); }

.nav-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}
.nav-logo-mark {
    width: 32px; height: 32px;
    border: 1px solid var(--accent-gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; color: var(--accent);
    flex-shrink: 0;
}
.nav-logo-sub { display: block; font-size: 0.6rem; letter-spacing: 1px; color: var(--accent-gold); font-weight: 700; }
.nav-logo img { height: 48px; width: auto; }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.nav-links a.active { color: var(--accent); }
.nav-links a:hover { color: var(--accent-gold); }
.nav-link-underline { text-decoration: underline; text-decoration-color: var(--accent-gold); text-underline-offset: 4px; }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 32px;
        gap: 24px;
        box-shadow: var(--shadow-lift);
        transition: right 0.3s ease;
        z-index: 150;
    }
    .nav-links.open { right: 0; }
    .nav-toggle {
        display: block;
        background: none; border: none;
        font-size: 1rem; color: var(--accent);
        cursor: pointer;
        padding: 8px 14px;
        border: 1px solid var(--accent);
        border-radius: var(--radius);
    }
    .header-top .container { justify-content: center; font-size: 0.75rem; gap: 16px; }
}

/* ── Pre-Footer Bento (books/stat/photo editorial block) ── */
.bento-block { padding: 0 24px; margin-top: 60px; }
.bento-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
    align-items: stretch;
}
.bento-photo { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.bento-photo .ctis-img, .bento-photo .img-placeholder { width: 100%; height: 100%; }
.bento-stat {
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 24px;
}
.bento-stat .stat-number-lg { font-family: var(--font-subhead); font-style: italic; font-size: 2.2rem; color: var(--accent-gold); margin-bottom: 8px; }
.bento-stat .stat-label-sm { font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.bento-arch-photo {
    aspect-ratio: 1/1; border-radius: 50%; overflow: hidden;
    border: 3px solid var(--accent-gold); max-width: 220px; margin: 0 auto;
}
.bento-arch-photo .ctis-img, .bento-arch-photo .img-placeholder { width: 100%; height: 100%; }

@media (max-width: 860px) {
    .bento-grid { grid-template-columns: 1fr; }
}

/* ── Footer (Editorial, wine reversed, watermark) ── */
.site-footer {
    background: var(--accent);
    color: var(--surface);
    padding: 70px 0 24px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}
.footer-watermark {
    bottom: -0.15em;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(6rem, 18vw, 14rem);
    color: var(--white);
    opacity: 0.06;
}
.footer-lead { position: relative; z-index: 2; margin-bottom: 40px; }
.footer-lead h2 { color: var(--white); }
.footer-lead h2 em { color: var(--accent-gold); font-style: italic; font-family: var(--font-subhead); }
.footer-lead p { color: var(--surface); opacity: 0.85; max-width: 420px; margin-top: 12px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social-link {
    width: 34px; height: 34px; border: 1px solid var(--accent-gold);
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: var(--accent-gold);
}
.footer-social-link:hover { background: var(--accent-gold); color: var(--accent); }
.footer-grid {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h4 {
    color: var(--accent-gold);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: var(--surface); opacity: 0.85; }
.footer-grid a:hover { opacity: 1; color: var(--accent-gold); }
.footer-bottom {
    position: relative; z-index: 2;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* ── Sample Images (shown until admin uploads the real photo) ── */
.img-placeholder {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.sample-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--text-on-accent);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    z-index: 2;
}
.ctis-img { border-radius: var(--radius); }

/* ── Hero (Editorial Split Layout) ── */
.hero {
    position: relative;
    padding: 60px 24px 100px;
    overflow: hidden;
    background: var(--bg);
}
.hero-split {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}
.hero-vertical-label {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}
.hero-text-col { position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: 20px; }
.hero-heading { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 24px; }
.hero-heading .line { display: block; }
.hero-desc { font-family: var(--font-subhead); font-style: italic; font-size: 1.15rem; color: var(--text-muted); max-width: 420px; margin-bottom: 32px; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media-col { position: relative; }
.hero-arch-media { aspect-ratio: 3/4; max-width: 480px; margin-left: auto; }
.hero-arch-media .ctis-img, .hero-arch-media .img-placeholder { width: 100%; height: 100%; }
.hero-arch-small {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 90px;
    height: 130px;
    border: 2px solid var(--accent-gold);
    border-radius: 50% 50% 0 0 / 40% 40% 0 0;
    z-index: 3;
}
.hero-watermark {
    top: 40px;
    right: -20px;
    font-size: clamp(3rem, 9vw, 7rem);
}

@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; }
    .hero-vertical-label { display: none; }
    .hero-arch-media { margin: 0 auto; }
}

/* ── Educational Pathway (Programs, numbered card style) ── */
.section-programs { padding: 90px 24px; position: relative; }
.pathway-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 16px;
}
.pathway-link { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.pathway-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 1px solid var(--surface-dark); }
.pathway-card {
    background: var(--white);
    padding: 32px 28px;
    border-right: 1px solid var(--surface-dark);
    transition: var(--transition);
}
.pathway-card:last-child { border-right: none; }
.pathway-card:hover { background: var(--surface); }
.pathway-number { font-family: var(--font-subhead); font-style: italic; font-size: 1.3rem; color: var(--accent-gold); display: block; margin-bottom: 16px; }
.pathway-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.pathway-sub { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.3px; }

@media (max-width: 700px) {
    .pathway-grid { grid-template-columns: 1fr; }
    .pathway-card { border-right: none; border-bottom: 1px solid var(--surface-dark); }
}

/* ── Stats ── */
.section-stats { background: var(--accent); padding: 56px 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--accent-gold); }
.stat-label { color: var(--surface); font-size: 0.9rem; margin-top: 6px; letter-spacing: 0.5px; }

/* ── Mission/Vision ── */
.section-mission { padding: 80px 24px; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.mission-block p { color: var(--text-muted); margin-top: 16px; line-height: 1.8; }

/* ── Features ── */
.section-features { background: var(--surface); padding: 80px 24px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.feature-card { background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow-soft); text-align: center; }
.feature-card p { color: var(--text-muted); margin-top: 10px; font-size: 0.9rem; }

/* ── CTA Banner ── */
.cta-banner { background: var(--text-dark); color: var(--white); padding: 64px 24px; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 24px; }

@media (max-width: 860px) {
    .mission-grid { grid-template-columns: 1fr; }
    .hero-content h1 { padding: 0 16px; }
}

/* ── Page Banner (About, Courses, Our Teachers, Gallery, Events, Contact, Admissions, Pay Fees) ── */
.page-banner { position: relative; color: var(--white); }
.page-banner-media { position: relative; width: 100%; height: 300px; overflow: hidden; }
.page-banner-media .ctis-img, .page-banner-media .img-placeholder { width: 100%; height: 100%; border-radius: 0; }
.page-banner-content {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; z-index: 2; width: 100%;
}
.page-banner-content h1 { color: var(--white); }
.page-banner-content .subhead { color: var(--surface); margin-top: 8px; }

/* ── Our Story (About) ── */
.section-story { padding: 80px 24px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story-text p { color: var(--text-muted); margin-top: 16px; line-height: 1.8; }

/* ── Values (About) ── */
.section-values { background: var(--surface); padding: 80px 24px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.value-card { background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow-soft); border-top: 3px solid var(--accent-gold); }
.value-card p { color: var(--text-muted); margin-top: 10px; font-size: 0.9rem; }

/* ── Accreditation (About) ── */
.section-accreditation { padding: 80px 24px; }
.accreditation-box { background: var(--accent); color: var(--white); padding: 48px; border-radius: var(--radius); text-align: center; max-width: 800px; margin: 0 auto; }
.accreditation-box h2 { color: var(--white); }
.accreditation-box p { margin-top: 16px; opacity: 0.9; line-height: 1.8; }

/* ── Proprietor (About) ── */
.section-proprietor { background: var(--surface); padding: 80px 24px; }
.proprietor-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.proprietor-media img, .proprietor-media .img-placeholder { border-radius: 50%; aspect-ratio: 1/1 !important; }
.proprietor-quote { font-family: var(--font-subhead); font-style: italic; font-size: 1.3rem; color: var(--text-dark); line-height: 1.7; margin: 16px 0; }
.proprietor-name { font-weight: 700; color: var(--accent); }

@media (max-width: 860px) {
    .story-grid, .proprietor-grid { grid-template-columns: 1fr; }
    .proprietor-media { max-width: 200px; margin: 0 auto; }
}

/* ── Courses ── */
.section-courses { padding: 80px 24px; }
.course-block {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
    align-items: center; margin-bottom: 90px;
}
.course-block:last-child { margin-bottom: 0; }
.course-block.reversed { direction: rtl; }
.course-block.reversed > * { direction: ltr; }
.course-age-badge {
    display: inline-block; background: var(--surface); color: var(--accent);
    padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 700;
    margin: 12px 0;
}
.course-desc { color: var(--text-muted); line-height: 1.8; margin-top: 8px; }

@media (max-width: 860px) {
    .course-block, .course-block.reversed { grid-template-columns: 1fr; direction: ltr; gap: 28px; }
}

/* ── Our Teachers ── */
.section-teachers { padding: 80px 24px; }
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.teacher-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); text-align: center; transition: var(--transition); }
.teacher-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.teacher-photo { aspect-ratio: 1/1; }
.teacher-photo .ctis-img, .teacher-photo .img-placeholder { border-radius: 0; }
.teacher-info { padding: 20px; }
.teacher-role { color: var(--accent-gold); font-size: 0.85rem; font-weight: 700; margin-top: 4px; }
.teacher-bio { color: var(--text-muted); font-size: 0.88rem; margin-top: 10px; line-height: 1.6; }

/* ── Gallery ── */
.section-gallery { padding: 80px 24px; }
.gallery-editorial-intro {
    display: flex; justify-content: flex-end;
    padding-bottom: 60px; border-bottom: 1px solid var(--surface-dark); margin-bottom: 48px;
}
.gallery-editorial-intro .intro-col { max-width: 420px; text-align: left; }
.gallery-editorial-intro p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-top: 16px; }
.gallery-filters { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
    padding: 10px 22px; border: 2px solid var(--accent); background: transparent;
    color: var(--accent); border-radius: 24px; font-family: var(--font-body);
    font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery-item { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(26,16,8,0.85), transparent);
    color: var(--white); padding: 20px 14px 12px; font-size: 0.85rem;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ── Contact ── */
.section-contact { padding: 80px 24px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-detail { margin: 20px 0; }
.contact-detail strong { display: block; color: var(--accent); font-size: 0.95rem; margin-bottom: 4px; }
.contact-detail p { color: var(--text-muted); }
.contact-map { margin-top: 24px; }
.contact-form-wrap .form-group { margin-bottom: 18px; }
.contact-form-wrap label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.contact-form-wrap input, .contact-form-wrap textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--surface-dark);
    border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem;
}
.contact-form-wrap input:focus, .contact-form-wrap textarea:focus { outline: none; border-color: var(--accent); }
.alert-success { background: #EAF5EA; color: var(--success); padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }
.alert-error { background: #FBEAEA; color: var(--error); padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }
.alert-warn { background: #FFF6E5; color: #8A6D1D; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }

@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ── Admissions Form ── */
.section-admissions { padding: 80px 24px; }
.admission-form { max-width: 800px; margin: 0 auto; }
.form-section { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow-soft); margin-bottom: 24px; }
.form-section h3 { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admission-form .form-group { margin-bottom: 18px; }
.admission-form label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.admission-form input, .admission-form select, .admission-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--surface-dark);
    border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem;
}
.admission-form input:focus, .admission-form select:focus, .admission-form textarea:focus { outline: none; border-color: var(--accent); }
.doc-help { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.btn-block-submit { width: 100%; padding: 16px; font-size: 1.05rem; }

.application-success { max-width: 600px; margin: 0 auto; text-align: center; padding: 40px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.success-icon {
    width: 64px; height: 64px; background: var(--success); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 700; margin: 0 auto 20px;
}
.reference-code-box {
    background: var(--surface); border: 2px dashed var(--accent);
    padding: 16px; border-radius: var(--radius); font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-top: 20px;
    letter-spacing: 1px;
}

@media (max-width: 700px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ── Payment Page ── */
.section-payment { padding: 80px 24px; }
.payment-box { max-width: 560px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.payment-box .form-group { margin-bottom: 18px; }
.payment-box label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.payment-box input, .payment-box select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--surface-dark);
    border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem;
}
.payment-box input:focus, .payment-box select:focus { outline: none; border-color: var(--accent); }

/* ── Events ── */
.section-events { padding: 80px 24px; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 24px; }
.event-card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: var(--transition); }
.event-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.event-card.past { opacity: 0.6; }
.event-date-badge {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    background: var(--white); border-radius: var(--radius);
    padding: 8px 14px; text-align: center; box-shadow: var(--shadow-soft);
}
.event-day { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
.event-month { display: block; font-size: 0.7rem; text-transform: uppercase; color: var(--accent-gold); font-weight: 700; letter-spacing: 0.5px; }
.event-card-body { padding: 20px; }
.event-meta { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }
.event-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; line-height: 1.6; }

/* ── Admin Login ── */
.login-box {
    background: var(--white); padding: 48px 40px; border-radius: 8px;
    box-shadow: var(--shadow-lift); width: 100%; max-width: 400px;
    margin: 100px auto;
}
.login-box h1 { font-size: 1.6rem; text-align: center; margin-bottom: 24px; }
.login-box input {
    width: 100%; padding: 12px 14px; margin-bottom: 16px; border: 1px solid var(--surface-dark);
    border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem;
}
.login-box input:focus { outline: none; border-color: var(--accent); }
.btn-block { width: 100%; }
