/* ============================================================
   FORE Alumni Network — Styled to match FORE School of Management
   Design: Maroon / Gold / Navy — matching main website
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;800&family=Inter:wght@300;400;600;700&family=Bebas+Neue&display=swap');

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

:root {
  --primary:      #8B1A1A;
  --primary-dark: #6b1010;
  --navy:         #1A1A2E;
  --gold:         #D4A853;
  --gold-light:   #f5e6c8;
  --dark:         #1A1A2E;
  --mid:          #5a5a7a;
  --light-bg:     #FAFAFA;
  --white:        #ffffff;
  --border:       #e0dfe8;
  --font-main:    'Inter', 'Segoe UI', Arial, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-stat:    'Bebas Neue', Impact, sans-serif;
  --transition:   0.25s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.6;
  background: var(--light-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--primary-dark); }
code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  background: #f3ede2;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--primary);
}

/* ─── topbar ───────────────────────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: #f7f7f8;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.topbar .brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  border-radius: 7px;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}
.brand-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.topbar nav {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
  align-items: center;
}
.topbar nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  padding: 0.3rem 0;
}
.topbar nav a:hover { color: var(--gold); text-decoration: none; }
.topbar nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.topbar nav a:hover::after { width: 100%; }

/* ─── main container ──────────────────────────────────────────────────── */
main {
  max-width: 1240px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}

/* ─── footer ──────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  color: var(--mid);
  font-size: 0.8rem;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  background: #fff;
}
footer a { color: var(--gold); font-weight: 600; }
footer a:hover { color: var(--primary); }

/* ─── hero ─────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a1828 50%, var(--primary) 100%);
  color: #f7f9ff;
  border-radius: 16px;
  padding: 3.5rem 3rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(139,26,26,0.15);
}
.hero.short { padding: 2.5rem 3rem; }
.hero::before {
  content: '';
  position: absolute;
  top: -60%; right: -15%;
  width: 70%; height: 220%;
  background: radial-gradient(circle, rgba(212,168,83,0.15), transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: 10%;
  width: 40%; height: 100%;
  background: radial-gradient(circle, rgba(139,26,26,0.2), transparent 50%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 3;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero .hero-text {
  position: relative;
  z-index: 3;
}
.hero .tagline {
  font-size: 1.05rem;
  max-width: 65ch;
  color: rgba(255,255,255,0.85);
  margin: 0 0 1.6rem;
  position: relative;
  line-height: 1.7;
}
.hero-search {
  display: flex;
  gap: 0.6rem;
  max-width: 640px;
  position: relative;
}
.hero-search input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: 0;
  border-radius: 10px;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.95);
  color: var(--dark);
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.hero-search input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.hero-search button {
  padding: 0.85rem 1.6rem;
  background: var(--gold);
  color: var(--navy);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(212,168,83,0.3);
}
.hero-search button:hover {
  background: #c89a3e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,168,83,0.4);
}
.hero-chips {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
}
.chip {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(212,168,83,0.3);
  color: rgba(255,255,255,0.85);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all var(--transition);
  font-weight: 500;
}
.chip:hover {
  background: rgba(212,168,83,0.2);
  border-color: var(--gold);
  color: #fff;
  text-decoration: none;
}

/* ─── KPIs ─────────────────────────────────────────────────────────────── */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--border);
  border-radius: 4px 0 0 4px;
}
.kpi.ok::before { background: var(--gold); }
.kpi-num {
  font-family: var(--font-stat);
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.1;
}
.kpi.ok .kpi-num { color: var(--primary); }
.kpi-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-top: 0.5rem;
  font-weight: 600;
}
.kpi-sub { font-size: 0.78rem; color: #999; margin-top: 0.3rem; }

/* ─── cards ───────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.card-sub {
  color: var(--mid);
  font-size: 0.82rem;
  margin: 0 0 1.2rem;
}

/* ─── chart cards ─────────────────────────────────────────────────────── */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.charts-row .wide { grid-column: 1 / -1; }
.chart-card { padding-bottom: 1.6rem; }
.chart-card canvas { max-height: 280px; }

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

/* ─── mini table (recent) ───────────────────────────────────────────── */
table.mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.mini th {
  text-align: left;
  font-weight: 600;
  color: var(--mid);
  padding: 0.5rem 0.8rem 0.6rem;
  border-bottom: 2px solid var(--border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
table.mini td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #f1f2f5;
}
table.mini tr:last-child td { border-bottom: 0; }
table.mini tr:hover { background: #fdfaf5; }
table.mini .when {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--mid);
  font-size: 0.85rem;
}
table.mini .muted { color: #999; font-size: 0.85rem; }

/* ─── progress ─────────────────────────────────────────────────────────── */
.progress-card .progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
}
.progress-stat {
  font-family: var(--font-stat);
  color: var(--primary);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.progress {
  background: #ebe5d8;
  border-radius: 8px;
  height: 14px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}
.progress .bar {
  background: linear-gradient(90deg, var(--primary), var(--gold));
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 8px;
}

/* ─── filters ────────────────────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  background: #fff;
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.filters input[type="search"],
.filters input[type="text"] {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.filters input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,83,0.15);
}
.filters input[type="search"] { flex: 1 1 240px; }
.filters input[type="text"]   { flex: 0 1 150px; }
.filters label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--mid);
  font-weight: 500;
}
.filters button {
  padding: 0.6rem 1.4rem;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transition);
}
.filters button:hover { background: var(--primary-dark); }
.filters .clear { align-self: center; font-size: 0.85rem; color: var(--mid); }
.meta { color: var(--mid); font-size: 0.85rem; margin: 0.6rem 0 0.8rem; font-weight: 500; }

/* ─── alumni table ────────────────────────────────────────────────────── */
table.alumni {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.88rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
table.alumni th {
  text-align: left;
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
table.alumni td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f1f2f5;
}
table.alumni tbody tr:hover { background: #fdfaf5; }
table.alumni tbody tr:last-child td { border-bottom: 0; }
table.alumni td.empty {
  text-align: center;
  color: #999;
  padding: 3rem;
  font-style: italic;
}
table.alumni td a { color: var(--primary); font-weight: 500; }
table.alumni td a:hover { color: var(--primary-dark); }

.status {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
}
.status-yes   { background: #e8f5e9; color: #2e7d32; }
.status-error { background: #fce4ec; color: #c62828; }
.status-empty { background: var(--gold-light); color: #8a6d00; }
.status-no    { background: #f3f4f6; color: #6b7280; }
.status-timeout { background: #fce4ec; color: #c62828; }

.pager {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  color: var(--mid);
  font-size: 0.9rem;
}
.pager a {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: all var(--transition);
}
.pager a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-decoration: none;
}

/* ─── detail page ─────────────────────────────────────────────────────── */
h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.muted { color: var(--mid); margin-top: 0; }
.meta-card dl {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.4rem 1rem;
}
.meta-card dt {
  color: var(--mid);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.meta-card dd { margin: 0; font-size: 0.9rem; word-break: break-all; }
section.card { margin-top: 1rem; }

.card-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.card.kv {
  flex: 1 1 160px;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--gold);
}
.card.kv .lbl {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.btn-edit {
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-edit:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ─── edit form ───────────────────────────────────────────────────────── */
.edit-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
}
.edit-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--mid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.edit-form label.full { grid-column: 1 / -1; }
.edit-form input[type="text"],
.edit-form input[type="email"],
.edit-form textarea {
  font: inherit;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--dark);
  background: #fff;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color var(--transition);
}
.edit-form input:focus,
.edit-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,83,0.15);
}
.edit-form textarea { font-family: inherit; resize: vertical; }
.edit-form .actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.2rem;
}
.edit-form button.primary {
  padding: 0.65rem 1.8rem;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transition);
}
.edit-form button.primary:hover { background: var(--primary-dark); }
.edit-form .cancel { color: var(--mid); font-size: 0.9rem; }
.edit-form .hint { font-size: 0.8rem; color: var(--mid); margin-top: 0.8rem; }

.banner {
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.banner.ok { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }

/* ─── about / features pages ──────────────────────────────────────────── */
.bullet, .numbered { padding-left: 1.4rem; margin: 0.6rem 0; list-style: disc; }
.numbered { list-style: decimal; }
.bullet li, .numbered li { margin-bottom: 0.5rem; line-height: 1.7; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 0.5rem;
}
table.compare th {
  text-align: left;
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  padding: 0.7rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
table.compare td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #f1f2f5;
  vertical-align: top;
}
table.compare tr:last-child td { border-bottom: 0; }
table.compare td:first-child { font-weight: 600; color: var(--navy); }
table.compare tr:hover { background: #fdfaf5; }

.stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 1rem; }
.tech {
  background: var(--gold-light);
  color: var(--navy);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.cta {
  background: linear-gradient(135deg, #fdf8f0 0%, var(--gold-light) 100%);
  border: 1px solid rgba(212,168,83,0.3);
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  margin-right: 0.5rem;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(139,26,26,0.2);
}
.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ─── features page ───────────────────────────────────────────────────── */
.phase-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.phase-header h3 { margin: 0; }
.phase-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
}
.phase-tag.live    { background: #e8f5e9; color: #2e7d32; }
.phase-tag.next    { background: var(--gold-light); color: #8a6d00; }
.phase-tag.later   { background: #e8eaf6; color: #283593; }
.phase-tag.stretch { background: #f3e5f5; color: #6a1b9a; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.feature {
  background: #fdfaf5;
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  transition: all var(--transition);
}
.feature:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(212,168,83,0.1);
  transform: translateY(-1px);
}
.feature h4 {
  margin: 0 0 0.5rem;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy);
}
.feature p {
  margin: 0;
  color: var(--mid);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ─── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .topbar {
    padding: 0 1rem;
    flex-wrap: wrap;
    height: auto;
    padding: 0.8rem 1rem;
    gap: 0.8rem;
  }
  .topbar nav { gap: 1rem; flex-wrap: wrap; }
  .hero { padding: 2rem 1.5rem; border-radius: 12px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-search { flex-direction: column; }
  main { padding: 0 1rem 2rem; }
  .card { padding: 1.2rem; }
  .edit-form .form-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  table.alumni { font-size: 0.8rem; }
  table.alumni th, table.alumni td { padding: 0.5rem 0.6rem; }
}

@media (max-width: 480px) {
  .kpis { grid-template-columns: 1fr; }
  .topbar nav { gap: 0.6rem; }
  .topbar nav a { font-size: 0.8rem; }
}
