/* =========================================================
   New Vision Educational Center — Design System
   ========================================================= */

:root {
  /* Color palette — forest green + yellow */
  --color-primary: #14532d;
  --color-primary-dark: #0b3a1f;
  --color-primary-light: #1f7a3f;
  --color-accent: #f2c230;
  --color-accent-dark: #d4a017;
  --color-success: #2e7d4f;
  --color-danger: #c0392b;
  --color-warning: #b8860b;
  --color-info: #2b7cc0;

  --color-bg: #ffffff;
  --color-bg-alt: #f7f9fb;
  --color-border: #e2e8ef;
  --color-text: #24303d;
  --color-text-muted: #5c6b7a;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(20, 83, 45, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 83, 45, 0.12);
  --shadow-lg: 0 16px 40px rgba(20, 83, 45, 0.16);

  --transition: all 0.2s ease-in-out;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.25;
  font-weight: 600;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header .eyebrow {
  color: var(--color-accent-dark);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}
.section-header h2 { font-size: 2.1rem; margin-top: 8px; }
.section-header p { color: var(--color-text-muted); margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary { background: var(--color-accent); color: var(--color-primary-dark); }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-2px); }

.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--color-primary-dark); }

.btn-secondary { background: var(--color-primary); color: #fff; }
.btn-secondary:hover { background: var(--color-primary-light); }

.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: 44px; border-radius: 50%; object-fit: cover; }
.brand-text strong { display: block; font-size: 1.05rem; color: var(--color-primary-dark); }
.brand-text span { font-size: .72rem; color: var(--color-text-muted); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-weight: 500; color: var(--color-text); font-size: .95rem; }
.nav-links a.active, .nav-links a:hover { color: var(--color-primary); }
.nav-cta { margin-left: 8px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 26px; height: 3px; background: var(--color-primary-dark); border-radius: 2px; transition: var(--transition); }

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 20px; gap: 16px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(242,194,48,0.18), transparent 55%);
}
.hero-inner { position: relative; max-width: 680px; }
.hero .eyebrow { color: var(--color-accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.hero h1 { color: #fff; font-size: 2.8rem; margin: 14px 0 18px; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 2rem; }
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card .icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(242,194,48,0.15); color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 700; font-family: var(--font-heading);
  margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--color-text-muted); font-size: .95rem; }

.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); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; border-left: 4px solid; }
.alert-success { background: #eaf7ef; border-color: var(--color-success); color: #1e5c37; }
.alert-danger  { background: #fdecea; border-color: var(--color-danger); color: #8f2a20; }
.alert-warning { background: #fff8e6; border-color: var(--color-warning); color: #8a660b; }
.alert-info    { background: #eaf4fc; border-color: var(--color-info); color: #1f5a85; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.required::after { content: " *"; color: var(--color-danger); }
input, select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .95rem;
  transition: var(--transition); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(20,83,45,0.1); }
textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: .8rem; color: var(--color-text-muted); margin-top: 4px; }
.form-error { font-size: .82rem; color: var(--color-danger); margin-top: 4px; }
fieldset { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px; }
legend { font-weight: 700; padding: 0 10px; color: var(--color-primary-dark); font-family: var(--font-heading); }

/* Step indicator for the application wizard */
.steps { display: flex; justify-content: space-between; margin-bottom: 40px; list-style: none; gap: 8px; flex-wrap: wrap; }
.steps li {
  flex: 1; text-align: center; padding: 10px 6px; border-bottom: 3px solid var(--color-border);
  color: var(--color-text-muted); font-size: .82rem; font-weight: 600;
}
.steps li.active { border-color: var(--color-accent); color: var(--color-primary-dark); }
.steps li.done { border-color: var(--color-success); color: var(--color-success); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--color-border); font-size: .92rem; }
th { background: var(--color-bg-alt); font-weight: 700; color: var(--color-primary-dark); }
tr:hover td { background: #fafcfe; }
.table-responsive { overflow-x: auto; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-pending { background: #fff3d6; color: #8a660b; }
.badge-review  { background: #e2ecfa; color: #1f5a85; }
.badge-approved{ background: #dff3e6; color: #1e5c37; }
.badge-rejected{ background: #fbe2e0; color: #8f2a20; }
.badge-waitlisted{ background: #f1e6fb; color: #6a2a9e; }

/* ---------- Footer ---------- */
footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.8); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; margin-bottom: 40px; }
footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: rgba(255,255,255,0.75); }
footer a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: .85rem; color: rgba(255,255,255,0.55); }
.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery / Lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; cursor: pointer; position: relative; aspect-ratio: 1/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; justify-content: center; }
.gallery-filters button {
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--color-border);
  background: #fff; cursor: pointer; font-weight: 600; font-size: .85rem; transition: var(--transition);
}
.gallery-filters button.active, .gallery-filters button:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.lightbox {
  position: fixed; inset: 0; background: rgba(10,20,30,0.92); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius-sm); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 24px; color: #fff; text-align: center; width: 100%; font-size: .9rem; }

/* ---------- Admin layout ---------- */
.admin-body { background: var(--color-bg-alt); min-height: 100vh; }
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px; background: var(--color-primary-dark); color: rgba(255,255,255,0.85);
  flex-shrink: 0; padding: 24px 0;
}
.admin-sidebar .brand-text strong, .admin-sidebar .brand-text span { color: #fff; }
.admin-sidebar-header { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.admin-nav { list-style: none; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 24px;
  color: rgba(255,255,255,0.7); font-size: .92rem; font-weight: 500;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.08); color: #fff; border-left: 3px solid var(--color-accent); padding-left: 21px; }
.admin-main { flex: 1; padding: 28px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-size: 1.5rem; }

.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 32px; }
.stat-card { background: #fff; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--color-primary); }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; color: var(--color-primary-dark); }
.stat-card .stat-label { color: var(--color-text-muted); font-size: .82rem; margin-top: 4px; }
@media (max-width: 1100px) { .stat-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } .admin-sidebar { position: fixed; left: -260px; z-index: 999; height: 100%; transition: var(--transition); } .admin-sidebar.open { left: 0; } }

.admin-panel { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 24px; }
.filters-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filters-bar select, .filters-bar input { width: auto; min-width: 160px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
