/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f4f5f8; color: #222; min-height: 100vh; display: flex; flex-direction: column; }

:root {
  --navy:  #1a3a5c;
  --navy2: #0f2540;
  --gold:  #c8972a;
  --gold2: #e8b84b;
  --light: #f4f5f8;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
}

/* ── Navbar ───────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy2);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo  { height: 52px; width: 52px; object-fit: contain; border-radius: 50%; border: 2px solid var(--gold); }
.nav-title-group { display: flex; flex-direction: column; }
.nav-title  { color: var(--white); font-size: 1.1rem; font-weight: 700; letter-spacing: .5px; }
.nav-tagline { color: var(--gold2); font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,0.8); text-decoration: none;
  padding: 8px 16px; border-radius: 6px;
  font-size: 0.9rem; font-weight: 500; letter-spacing: .3px;
  transition: all .2s;
}
.nav-link:hover, .nav-link.active {
  background: var(--gold); color: var(--navy2); font-weight: 700;
}
.nav-hamburger {
  display: none; background: none; border: none; color: white;
  font-size: 1.6rem; cursor: pointer; padding: 4px 8px;
}

/* ── Pages ────────────────────────────────────────────────────────────── */
.page { display: none; min-height: calc(100vh - 74px); }
.page.active { display: block; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 92vh;
  background: url('church.png') center center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,25,47,0.88) 0%, rgba(15,37,64,0.75) 60%, rgba(200,151,42,0.25) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 40px 24px;
  max-width: 720px;
}
.hero-logo {
  width: 240px; height: 240px; object-fit: contain;
  border-radius: 50%; border: 4px solid var(--gold);
  box-shadow: 0 0 40px rgba(200,151,42,0.5);
  margin-bottom: 24px;
}
.hero-title {
  color: var(--white); font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800; letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 10px;
}
.hero-sub {
  color: var(--gold2); font-size: 1.1rem;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-verse {
  color: rgba(255,255,255,0.75); font-style: italic;
  font-size: 0.95rem; line-height: 1.6; margin-bottom: 36px;
  border-left: 3px solid var(--gold); padding-left: 16px; text-align: left;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--gold); color: var(--navy2);
  border: none; padding: 14px 36px; border-radius: 6px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  letter-spacing: .5px; transition: all .2s;
  box-shadow: 0 4px 15px rgba(200,151,42,0.4);
}
.btn-hero-primary:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-hero-secondary {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.6); padding: 14px 36px;
  border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.btn-hero-secondary:hover { border-color: var(--gold2); color: var(--gold2); transform: translateY(-2px); }

/* ── Home Cards ───────────────────────────────────────────────────────── */
.home-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px; padding: 60px 40px; max-width: 1100px; margin: 0 auto;
}
.home-card {
  background: var(--white); border-radius: 12px; padding: 36px 28px;
  box-shadow: var(--shadow); text-align: center;
  border-top: 4px solid var(--gold);
  transition: transform .2s, box-shadow .2s;
}
.home-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.14); }
.home-card-icon { font-size: 2.4rem; margin-bottom: 14px; }
.home-card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 10px; }
.home-card p  { color: #555; line-height: 1.7; font-size: 0.93rem; }

/* ── Page Header ──────────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, var(--navy2), var(--navy));
  padding: 28px 40px; color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.page-header-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; border: 2px solid var(--gold); }
.page-header h2 { font-size: 1.7rem; color: white; }
.page-header p  { color: var(--gold2); font-size: 0.88rem; letter-spacing: 1px; margin-top: 2px; }

/* ── Content Block ────────────────────────────────────────────────────── */
.content-block { max-width: 1000px; margin: 0 auto; padding: 48px 32px; }

/* ── Philosophy ───────────────────────────────────────────────────────── */
.phil-card {
  border-radius: 12px; padding: 32px; margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.phil-card h3  { font-size: 1.2rem; margin-bottom: 12px; }
.phil-card p   { line-height: 1.8; font-size: 0.95rem; }
.accent-gold   { background: linear-gradient(135deg, #fffbf0, #fff8e0); border-left: 5px solid var(--gold); }
.accent-gold h3 { color: #8a6400; }
.accent-navy   { background: linear-gradient(135deg, #eef2f8, #e4eaf5); border-left: 5px solid var(--navy); }
.accent-navy h3 { color: var(--navy); }

.phil-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-bottom: 32px;
}
.phil-value {
  background: white; border-radius: 10px; padding: 24px 20px;
  box-shadow: var(--shadow); text-align: center;
}
.phil-value-icon { font-size: 2rem; margin-bottom: 10px; }
.phil-value h4   { color: var(--navy); margin-bottom: 8px; font-size: 0.95rem; }
.phil-value p    { color: #555; font-size: 0.85rem; line-height: 1.6; }

.scripture-banner {
  background: var(--navy2); border-radius: 12px; padding: 36px;
  text-align: center; box-shadow: var(--shadow);
}
.scripture-banner blockquote {
  color: rgba(255,255,255,0.9); font-style: italic;
  font-size: 1.05rem; line-height: 1.8;
}
.scripture-banner cite {
  display: block; color: var(--gold2);
  margin-top: 12px; font-style: normal; font-size: 0.9rem; letter-spacing: 1px;
}

/* ── Application ──────────────────────────────────────────────────────── */
.app-intro { margin-bottom: 36px; }
.app-intro h3  { color: var(--navy); font-size: 1.3rem; margin-bottom: 12px; }
.app-intro p   { color: #555; line-height: 1.8; }
.app-requirements { margin-bottom: 36px; }
.app-requirements h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 18px; }
.req-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.req-item {
  background: white; border-radius: 8px; padding: 14px 18px;
  box-shadow: var(--shadow); font-size: 0.93rem; color: #333;
  border-left: 4px solid var(--gold);
}
.app-cta-box {
  background: linear-gradient(135deg, var(--navy2), var(--navy));
  border-radius: 14px; padding: 44px; text-align: center;
  box-shadow: var(--shadow);
}
.app-cta-box h3 { color: white; font-size: 1.4rem; margin-bottom: 12px; }
.app-cta-box p  { color: rgba(255,255,255,0.75); margin-bottom: 28px; line-height: 1.7; }
.btn-apply {
  display: inline-block; background: var(--gold); color: var(--navy2);
  padding: 16px 44px; border-radius: 8px; text-decoration: none;
  font-size: 1.05rem; font-weight: 700; letter-spacing: .5px;
  transition: all .2s; box-shadow: 0 4px 15px rgba(200,151,42,0.4);
}
.btn-apply:hover { background: var(--gold2); transform: translateY(-2px); }
.app-note { color: rgba(255,255,255,0.5); font-size: 0.82rem; margin-top: 18px; margin-bottom: 0; }

/* ── Training ─────────────────────────────────────────────────────────── */
.training-download {
  display: flex; align-items: center; gap: 28px;
  background: white; border-radius: 12px; padding: 32px;
  box-shadow: var(--shadow); margin-bottom: 36px;
  border-left: 5px solid var(--navy);
}
.download-icon { font-size: 3rem; flex-shrink: 0; }
.training-download h3 { color: var(--navy); margin-bottom: 8px; }
.training-download p  { color: #555; font-size: 0.9rem; margin-bottom: 16px; line-height: 1.6; }
.btn-download {
  display: inline-block; background: var(--navy); color: white;
  padding: 12px 28px; border-radius: 6px; text-decoration: none;
  font-weight: 600; font-size: 0.92rem; transition: background .2s;
}
.btn-download:hover { background: var(--navy2); }

.training-calendar {
  background: white; border-radius: 12px; padding: 32px;
  box-shadow: var(--shadow); margin-bottom: 36px;
}
.training-calendar h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.15rem; }
.training-note { color: #888; font-size: 0.88rem; margin-bottom: 20px; }
.no-events {
  text-align: center; padding: 40px; color: #aaa;
  border: 2px dashed #ddd; border-radius: 8px; font-size: 0.93rem;
}

.training-topics h3 { color: var(--navy); margin-bottom: 20px; font-size: 1.15rem; }
.topic-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.topic-card {
  background: white; border-radius: 10px; padding: 24px 20px;
  box-shadow: var(--shadow); text-align: center;
  border-top: 3px solid var(--gold); transition: transform .2s;
}
.topic-card:hover { transform: translateY(-3px); }
.topic-icon { font-size: 2rem; margin-bottom: 10px; }
.topic-card h4 { color: var(--navy); margin-bottom: 8px; font-size: 0.95rem; }
.topic-card p  { color: #666; font-size: 0.84rem; line-height: 1.6; }

/* ── Schedule ─────────────────────────────────────────────────────────── */
#schedule-body { padding: 32px 24px; max-width: 1000px; margin: 0 auto; }
.sunday-card { background: white; border-radius: 12px; margin-bottom: 20px; box-shadow: var(--shadow); overflow: hidden; }
.sunday-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; cursor: pointer;
  background: linear-gradient(90deg, var(--navy), #2a5a8c);
  transition: background .2s;
}
.sunday-header:hover { background: linear-gradient(90deg, var(--navy2), var(--navy)); }
.sunday-date { color: white; font-size: 1.1rem; font-weight: 700; }
.sunday-meta { color: var(--gold2); font-size: 0.83rem; margin-top: 2px; }
.sunday-toggle { color: white; font-size: 1rem; transition: transform .25s; }
.sunday-toggle.open { transform: rotate(180deg); }
.sunday-body { display: none; }
.sunday-body.open { display: block; }
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th {
  background: var(--navy2); color: white;
  padding: 12px 16px; text-align: center; font-size: 0.88rem;
}
.schedule-table th:first-child { text-align: left; }
.schedule-table td { padding: 11px 16px; border-bottom: 1px solid #eee; text-align: center; font-size: 0.9rem; }
.schedule-table td:first-child { text-align: left; font-weight: 500; color: #333; }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: #f8f9fc; }
.btn-signup {
  background: var(--navy); color: white; border: none;
  padding: 7px 18px; border-radius: 20px; font-size: 0.82rem;
  cursor: pointer; font-weight: 600; transition: all .2s;
}
.btn-signup:hover { background: var(--gold); color: var(--navy2); transform: scale(1.05); }
.slot-filled { color: #2e7d32; font-weight: 600; font-size: 0.88rem; }
.empty-state { text-align: center; padding: 60px 20px; color: #888; }
.empty-state h3 { color: var(--navy); margin-bottom: 8px; }
.loading { text-align: center; padding: 40px; color: #888; }

/* ── Modal ────────────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 20px;
}
.modal.hidden { display: none; }
.modal-content {
  background: white; border-radius: 14px; padding: 36px;
  max-width: 440px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-content h2 { color: var(--navy); margin-bottom: 8px; }
.slot-desc { color: #666; font-size: 0.88rem; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: #444; margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 11px 14px; border: 1.5px solid #ddd;
  border-radius: 8px; font-size: 0.95rem; transition: border-color .2s;
}
.form-group input:focus { outline: none; border-color: var(--navy); }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.btn-primary {
  background: var(--navy); color: white; border: none;
  padding: 11px 28px; border-radius: 8px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; transition: background .2s;
}
.btn-primary:hover { background: var(--navy2); }
.btn-secondary {
  background: #f0f0f0; color: #555; border: none;
  padding: 11px 24px; border-radius: 8px; font-size: 0.95rem;
  cursor: pointer; transition: background .2s;
}
.btn-secondary:hover { background: #e0e0e0; }

/* ── Toast ────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #333; color: white; padding: 13px 28px; border-radius: 8px;
  font-size: 0.93rem; opacity: 0; transition: all .35s; z-index: 3000;
  white-space: nowrap; box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #2e7d32; }
.toast.error   { background: #c62828; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy2); color: rgba(255,255,255,0.6);
  text-align: center; padding: 32px 24px; font-size: 0.88rem; line-height: 1.8;
}
.footer-logo { width: 48px; height: 48px; border-radius: 50%; margin-bottom: 10px; border: 1px solid var(--gold); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; gap: 4px;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--navy2); padding: 12px 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .nav-inner { flex-wrap: wrap; position: relative; }
  .hero { min-height: 80vh; }
  .hero-logo { width: 110px; height: 110px; }
  .home-cards { padding: 36px 20px; }
  .page-header { padding: 20px 20px; }
  .content-block { padding: 32px 20px; }
  .training-download { flex-direction: column; text-align: center; }
  .schedule-table { font-size: 0.8rem; }
  .schedule-table th, .schedule-table td { padding: 8px 8px; }
}

/* ── Admin Panel ──────────────────────────────────────────────────────────── */
.admin-subtab {
  padding: 14px 22px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .3px;
}
.admin-subtab:hover { color: var(--navy); }
.admin-subtab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
  background: rgba(26,58,92,0.05);
}

.btn-admin-action {
  padding: 10px 20px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.btn-admin-action:hover { background: var(--navy2); }
