:root {
    --black: #050505;
    --graphite: #111318;
    --graphite-2: #1b1e25;
    --line: rgba(255,255,255,.12);
    --text: #f7f7f2;
    --muted: #b9bdc7;
    --gold: #c9a24a;
    --gold-2: #f3d27a;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--text);
    background: var(--black);
    font-family: "Segoe UI", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5,5,5,.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.brand-lockup img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(201,162,74,.5); }
.navbar .nav-link { color: rgba(255,255,255,.78); font-weight: 600; }
.navbar .nav-link:hover { color: var(--gold-2); }
.btn { border-radius: 6px; font-weight: 800; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border: 0; color: #101010; box-shadow: 0 12px 30px rgba(201,162,74,.22); }
.btn-gold:hover { color: #101010; filter: brightness(1.06); }
.btn-outline-light { border-color: rgba(255,255,255,.35); }

.hero-section {
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-section:after, .page-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 25%, rgba(201,162,74,.2), transparent 28%), linear-gradient(180deg, transparent 70%, var(--black));
}
.hero-content { position: relative; z-index: 1; max-width: 850px; padding: 90px 12px; }
.eyebrow { color: var(--gold-2); text-transform: uppercase; font-size: .78rem; font-weight: 900; letter-spacing: .12em; margin-bottom: 12px; }
h1, h2, h3 { font-weight: 900; letter-spacing: 0; }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 5.9rem); line-height: .96; max-width: 900px; text-transform: uppercase; }
.hero-lead { max-width: 660px; color: #e1e4ea; font-size: 1.25rem; margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.section { padding: 92px 0; background: #f6f4ed; color: #111; }
.section-dark {
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(201,162,74,.08), transparent 35%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px),
        var(--graphite);
}
.section h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; margin-bottom: 20px; }
.section p { color: inherit; opacity: .78; font-size: 1.03rem; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.text-link { color: var(--gold); font-weight: 900; }

.stats-grid, .feature-grid, .unit-grid, .testimonial-grid, .admin-grid {
    display: grid;
    gap: 18px;
}
.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid div, .feature-grid article, .unit-grid div, .testimonial-grid article, .mission-card, .contact-panel, .form-card, .admin-tile, .admin-form {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.05);
    border-radius: 8px;
}
.stats-grid div { padding: 28px; }
.stats-grid strong { display: block; color: var(--gold-2); font-size: 3rem; line-height: 1; }
.stats-grid span { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .8rem; }

.feature-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.feature-grid article { background: #fff; border-color: rgba(0,0,0,.08); padding: 26px; min-height: 210px; box-shadow: 0 18px 50px rgba(0,0,0,.08); }
.feature-grid i, .unit-grid i, .admin-tile i { color: var(--gold); font-size: 2.4rem; margin-bottom: 20px; display: inline-block; }
.feature-grid h3, .unit-grid h3 { font-size: 1.15rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.program-card {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.program-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.program-card div { padding: 24px; }
.program-card h3, .program-card h2 { font-size: 1.45rem; margin-bottom: 12px; }
.program-card a:not(.btn) { color: var(--gold-2); font-weight: 900; }
.program-card.large { display: grid; grid-template-columns: 45% 1fr; grid-column: span 3; align-items: center; }
.program-card.large img { height: 100%; aspect-ratio: auto; }

.unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.unit-grid div { padding: 30px; background: #fff; color: #111; border-color: rgba(0,0,0,.08); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-item { position: relative; border: 0; padding: 0; overflow: hidden; border-radius: 8px; background: #111; cursor: pointer; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item span { position: absolute; left: 14px; bottom: 14px; background: rgba(0,0,0,.74); color: #fff; padding: 7px 10px; border-radius: 5px; font-weight: 800; }
.gallery-modal { background: #090909; border: 1px solid var(--line); }
.gallery-modal img { width: 100%; max-height: 78vh; object-fit: contain; }
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.category-pills a { border: 1px solid var(--line); padding: 9px 14px; border-radius: 6px; color: var(--text); font-weight: 800; }
.category-pills a.active, .category-pills a:hover { background: var(--gold); color: #111; }

.testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.testimonial-grid article { background: #fff; color: #111; border-color: rgba(0,0,0,.08); padding: 28px; box-shadow: 0 18px 50px rgba(0,0,0,.08); }
.testimonial-grid p { font-size: 1.08rem; opacity: .85; }

.cta-final { padding: 80px 0; text-align: center; background: linear-gradient(135deg, #080808, #202020); border-top: 1px solid var(--line); }
.cta-final h2 { font-size: clamp(2rem, 5vw, 4rem); text-transform: uppercase; }
.cta-final p { color: var(--muted); }
.page-hero { position: relative; padding: 130px 0 95px; background: linear-gradient(135deg, #030303, #1d1f25); overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 5rem); text-transform: uppercase; max-width: 950px; }
.page-hero p:not(.eyebrow) { color: var(--muted); max-width: 700px; font-size: 1.2rem; }
.mission-card { padding: 22px; margin-bottom: 16px; }

.contact-panel, .form-card { padding: 30px; }
.contact-line { display: flex; gap: 12px; align-items: center; padding: 14px 0; color: var(--gold-2); font-weight: 900; }
.form-control, .form-select { border-radius: 6px; min-height: 48px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { padding: 50px 0; background: #050505; border-top: 1px solid var(--line); }
.site-footer h2 { font-size: 1.45rem; }
.site-footer p { color: var(--muted); margin-bottom: 0; }
.footer-label { color: var(--gold-2) !important; font-weight: 900; text-transform: uppercase; }
.footer-link { display: block; color: var(--text); font-weight: 800; margin-bottom: 8px; }

.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at center, rgba(201,162,74,.18), transparent 30%), #050505; padding: 20px; }
.login-card { width: min(420px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: #111318; }
.login-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; margin: 0 auto 20px; }
.login-card h1 { text-align: center; font-size: 1.7rem; margin-bottom: 26px; }
.admin-body { background: #0c0d10; }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: #050505; border-right: 1px solid var(--line); padding: 24px; }
.admin-brand { display: block; color: var(--gold-2); font-size: 1.4rem; font-weight: 900; margin-bottom: 28px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 6px; color: var(--muted); font-weight: 800; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-content { padding: 34px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.admin-header h1 { margin: 0; }
.admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-tile { padding: 28px; color: #fff; }
.admin-table, .admin-form { background: #111318; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; }
.preview-admin { max-width: 420px; border-radius: 8px; border: 1px solid var(--line); }

@media (max-width: 991px) {
    .hero-section { min-height: 760px; background-position: center right; }
    .feature-grid, .card-grid, .gallery-grid, .gallery-grid.compact, .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .program-card.large { grid-template-columns: 1fr; grid-column: span 2; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }
}

@media (max-width: 640px) {
    .hero-section { min-height: 690px; }
    .hero-content { padding: 70px 12px; }
    .hero-actions .btn { width: 100%; }
    .section { padding: 64px 0; }
    .stats-grid, .feature-grid, .card-grid, .gallery-grid, .gallery-grid.compact, .unit-grid, .testimonial-grid, .admin-grid { grid-template-columns: 1fr; }
    .program-card.large { grid-column: span 1; }
    .admin-content { padding: 22px; }
    .admin-header { align-items: flex-start; flex-direction: column; }
}
