/* ============================================================
   NJOSA Alumni Portal – Main Stylesheet
   Blue (#1a3c6e) + Gold (#c9a227) · Inter + Poppins
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --blue-900: #0d1f3c;
  --blue-800: #1a3c6e;
  --blue-700: #1f4d8c;
  --blue-600: #2563b0;
  --blue-400: #4a90d9;
  --blue-100: #dbeafe;

  --gold-600:  #c9a227;
  --gold-500:  #d4af37;
  --gold-400:  #e0c45a;
  --gold-100:  #fdf6d8;

  --gray-950: #0a0a0f;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    #3b82f6;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.15);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.20);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  30px;
  --radius-full: 9999px;

  --transition: .25s ease;

  --font-sans:    'Inter',    sans-serif;
  --font-heading: 'Poppins',  sans-serif;

  --nav-h: 72px;
}

/* Dark mode */
[data-theme="dark"] {
  --gray-50:  #111827;
  --gray-100: #1f2937;
  --gray-200: #374151;
  --gray-400: #6b7280;
  --gray-600: #9ca3af;
  --gray-700: #d1d5db;
  --gray-800: #e5e7eb;
  --gray-900: #f9fafb;
  --white:    #1f2937;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,60,110,.08);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.navbar__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.25rem; color: var(--blue-800);
}
.navbar__logo-img {
  width: 42px; height: 42px; object-fit: contain; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: var(--blue-100); color: var(--blue-800); }
.nav-links .btn-nav {
  background: var(--blue-800); color: var(--white);
  padding: 8px 20px; border-radius: var(--radius-full);
}
.nav-links .btn-nav:hover { background: var(--blue-700); color: var(--white); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: var(--transition); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
  padding-top: var(--nav-h);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: .18;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,162,39,.15) 0%, transparent 60%);
}
.hero__content {
  position: relative; z-index: 1;
  max-width: 700px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,162,39,.2);
  border: 1px solid rgba(201,162,39,.4);
  color: var(--gold-400);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: .85rem; font-weight: 600; margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); animation: pulse 2s infinite; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--gold-400); }
.hero p { color: rgba(255,255,255,.8); font-size: 1.2rem; margin-bottom: 36px; max-width: 560px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats-bar {
  background: var(--blue-900);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 28px 0;
}
.hero-stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-stats-bar__item {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}
.hero-stats-bar__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}
.hero-stats-bar__label {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-top: 6px;
}
.hero-stats-bar__divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full);
  font-weight: 600; font-size: .95rem; border: 2px solid transparent;
  transition: all var(--transition); cursor: pointer; white-space: nowrap;
}
.btn-primary   { background: var(--gold-500); color: var(--blue-900); border-color: var(--gold-500); }
.btn-primary:hover { background: var(--gold-400); border-color: var(--gold-400); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,162,39,.4); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-blue      { background: var(--blue-800); color: var(--white); border-color: var(--blue-800); }
.btn-blue:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline   { background: transparent; color: var(--blue-800); border-color: var(--blue-800); }
.btn-outline:hover { background: var(--blue-800); color: var(--white); }
.btn-danger    { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-sm        { padding: 8px 18px; font-size: .85rem; }
.btn-lg        { padding: 16px 40px; font-size: 1.05rem; }
.btn-block     { width: 100%; }
.btn:disabled  { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ── Section Headers ─────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { color: var(--gray-900); margin-bottom: 12px; }
.section-header p  { color: var(--gray-600); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }
.section-header .tag {
  display: inline-block; background: var(--blue-100); color: var(--blue-700);
  padding: 4px 14px; border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 12px;
}

/* ── Statistics section ──────────────────────────────────────── */
.stats-section { background: var(--blue-800); padding: 60px 0; }
.stats-grid    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat-card     { text-align: center; }
.stat-card__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.12); display: grid; place-items: center;
  margin: 0 auto 12px; font-size: 1.5rem;
}
.stat-card__num {
  font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800;
  color: var(--gold-400); display: block;
}
.stat-card__label { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__img  { width: 100%; height: 200px; object-fit: cover; }
.card__body { padding: 20px; }
.card__meta { display: flex; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.card__meta span { font-size: .8rem; color: var(--gray-600); display: flex; align-items: center; gap: 4px; }
.card__title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--gray-900); margin-bottom: 8px; }
.card__text  { font-size: .9rem; color: var(--gray-600); line-height: 1.6; }
.card__footer { padding: 16px 20px; border-top: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; }

/* ── Events Grid ─────────────────────────────────────────────── */
.events-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.event-card    { }
.event-card__date {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-100); color: var(--blue-700);
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 600; margin-bottom: 10px;
}
.event-badge {
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
}
.badge-upcoming  { background: var(--blue-100);  color: var(--blue-700); }
.badge-ongoing   { background: #d1fae5;           color: #065f46; }
.badge-completed { background: var(--gray-100);   color: var(--gray-600); }
.badge-cancelled { background: #fee2e2;           color: #991b1b; }

/* ── Progress Bar ────────────────────────────────────────────── */
.progress { height: 8px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; margin: 8px 0; }
.progress__bar { height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--blue-600), var(--gold-500)); transition: width .6s ease; }

/* ── Testimonials ────────────────────────────────────────────── */
.testimonials-section { background: var(--gray-50); }
.testimonials-slider  { overflow: hidden; position: relative; }
.testimonials-track   { display: flex; transition: transform .45s ease; }
.testimonial-card {
  min-width: 100%; width: 100%; background: var(--white);
  border-radius: var(--radius-md); padding: 40px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  flex-shrink: 0; box-sizing: border-box;
}
.testimonial-card__quote { font-size: 3rem; color: var(--blue-100); line-height: 1; margin-bottom: 12px; }
.testimonial-card__body  { font-size: .95rem; color: var(--gray-700); font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-card__name   { font-weight: 700; color: var(--gray-900); font-size: .95rem; }
.testimonial-card__year   { font-size: .8rem; color: var(--gray-600); }
.slider-controls { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--gray-200);
  display: grid; place-items: center; transition: var(--transition);
}
.slider-btn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gray-300); border: none; padding: 0; transition: var(--transition);
}
.slider-dot.active { background: var(--blue-600); width: 24px; border-radius: var(--radius-full); }

/* ── Gallery – Masonry ───────────────────────────────────────── */
.gallery-masonry {
  columns: 4; gap: 16px;
}
.gallery-item { break-inside: avoid; margin-bottom: 16px; cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.gallery-item img { width: 100%; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: rgba(26,60,110,.7);
  display: grid; place-items: center;
  opacity: 0; transition: opacity .3s;
  color: white; font-size: 1.5rem;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.93);
  display: none; place-items: center;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,.15); border: none; color: white;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: white;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem;
  cursor: pointer; transition: background var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── CTA Donation Banner ─────────────────────────────────────── */
.donate-cta {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  text-align: center; padding: 80px 24px;
  position: relative; overflow: hidden;
}
.donate-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(201,162,39,.25), transparent 60%);
}
.donate-cta h2   { color: var(--white); margin-bottom: 12px; position: relative; }
.donate-cta p    { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 32px; position: relative; }
.donate-cta .btn { position: relative; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group  { margin-bottom: 20px; }
.form-label  { display: block; font-weight: 600; font-size: .9rem; color: var(--gray-800); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); background: var(--white);
  color: var(--gray-800); font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,176,.15); }
.form-control.is-invalid { border-color: var(--danger); }
.form-hint  { font-size: .8rem; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: .82rem; color: var(--danger); margin-top: 4px; }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control   { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }

/* ── Auth Card ───────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  padding: 40px 24px;
}
.auth-card {
  width: 100%; max-width: 460px;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-xl);
}
.auth-card__logo { text-align: center; margin-bottom: 28px; }
.auth-card__logo h2 { color: var(--blue-800); font-size: 1.6rem; }
.auth-card__logo p  { color: var(--gray-500); font-size: .9rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider span { flex: 1; height: 1px; background: var(--gray-200); }
.auth-divider p    { color: var(--gray-500); font-size: .85rem; }
.auth-footer { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--gray-600); }
.auth-footer a { color: var(--blue-700); font-weight: 600; }

/* ── Alerts / Flash ──────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger);  }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info    { background: var(--blue-100); color: var(--blue-800); border-left: 4px solid var(--info); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: var(--blue-900); color: rgba(255,255,255,.75); }
.footer__top { padding: 64px 0 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.footer__brand h3 { color: var(--white); font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 12px; }
.footer__brand p { font-size: .9rem; line-height: 1.7; }
.footer__col h4  { color: var(--gold-400); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col ul  { display: flex; flex-direction: column; gap: 10px; }
.footer__col li a { font-size: .9rem; opacity: .8; transition: opacity var(--transition); }
.footer__col li a:hover { opacity: 1; color: var(--gold-400); }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: grid; place-items: center;
  transition: background var(--transition);
}
.footer__social a:hover { background: var(--gold-500); color: var(--blue-900); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; flex-wrap: wrap; gap: 8px; }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.page-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); background: var(--white);
  display: grid; place-items: center; font-size: .9rem;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--blue-800); color: var(--white); border-color: var(--blue-800); }

/* ── Utilities ───────────────────────────────────────────────── */
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-gold     { color: var(--gold-500); }
.text-blue     { color: var(--blue-800); }
.text-muted    { color: var(--gray-500); }
.text-sm       { font-size: .875rem; }
.text-xs       { font-size: .8rem; }
.fw-bold       { font-weight: 700; }
.fw-semibold   { font-weight: 600; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }
.d-flex      { display: flex; }
.align-center{ align-items: center; }
.gap-2       { gap: 8px; }
.gap-3       { gap: 16px; }
.gap-4       { gap: 24px; }
.flex-wrap   { flex-wrap: wrap; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
@keyframes spin { to{ transform: rotate(360deg); } }
.animate-fade-up { animation: fadeInUp .5s ease forwards; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { columns: 3; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); padding: 16px 24px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .events-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 28px; }
  .gallery-masonry { columns: 2; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero-stats-bar__inner { flex-wrap: wrap; gap: 0; }
  .hero-stats-bar__item { min-width: 50%; padding: 14px 0; }
  .hero-stats-bar__divider { display: none; }
}
@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
  .hero__actions { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .auth-card { padding: 28px 20px; }
}
