/* =====================================================================
   College Alumni Portal — Design System
   Palette: Ink navy (#1B2A4A), Parchment (#FAF7F0), Brass (#C9A227),
            Maroon (#7A1F2B), Slate (#33404F)
   Type: "Poppins" (display / headings), "Inter" (body / UI)
   Signature: circular "seal" emblem + ribbon dividers evoking a diploma
===================================================================== */

:root {
  --ink: #1B2A4A;
  --ink-light: #2B3E63;
  --parchment: #FAF7F0;
  --parchment-dark: #F0EAD9;
  --brass: #C9A227;
  --brass-light: #E4C766;
  --maroon: #7A1F2B;
  --slate: #33404F;
  --slate-light: #6B7688;
  --white: #FFFFFF;
  --success: #2E7D4F;
  --danger: #B3261E;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 12px 32px rgba(27, 42, 74, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--parchment);
  color: var(--slate);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  margin-top: 0;
  letter-spacing: -0.01em;
}

a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--brass);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white) !important;
  text-decoration: none;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav a {
  color: #E7E1CF;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.main-nav a:hover { color: var(--brass-light); }
.main-nav .btn-nav {
  background: var(--brass);
  color: var(--ink) !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
}
.main-nav .btn-nav:hover { background: var(--brass-light); }
.main-nav .admin-link {
  border: 1px solid #4A5A80;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #B8C2D9;
}

/* ---------------- Layout ---------------- */
.page-content { padding: 40px 24px 64px; min-height: 60vh; }

/* Ribbon divider — the signature motif */
.ribbon-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 32px;
}
.ribbon-divider::before,
.ribbon-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.ribbon-divider .seal {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  color: var(--brass);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-light) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border: 2px solid rgba(201,162,39,0.35);
  border-radius: 50%;
}
.hero::before {
  content: "";
  position: absolute;
  right: 10px; top: 10px;
  width: 140px; height: 140px;
  border: 2px dashed rgba(201,162,39,0.25);
  border-radius: 50%;
}
.hero h1 {
  color: var(--white);
  font-size: 2.4rem;
  max-width: 640px;
  margin-bottom: 12px;
}
.hero p {
  color: #C9D2E3;
  max-width: 560px;
  font-size: 1.05rem;
}
.hero .cta-row { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-light); text-decoration: none; }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.btn-maroon { background: var(--maroon); color: var(--white); }
.btn-maroon:hover { background: #611821; text-decoration: none; }
.btn-secondary { background: var(--parchment-dark); color: var(--ink); }
.btn-secondary:hover { background: #E4DBC2; text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------------- Cards ---------------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border-top: 3px solid var(--brass);
}
.card + .card { margin-top: 20px; }
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.stat-card {
  text-align: center;
  padding: 24px;
}
.stat-card .num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--maroon);
}
.stat-card .label { color: var(--slate-light); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: 18px; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.hint { font-size: 0.8rem; color: var(--slate-light); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=url], input[type=file], select, textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #DDD5C0;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--slate);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
}
fieldset {
  border: 1.5px solid var(--parchment-dark);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
legend {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--maroon);
  padding: 0 8px;
  font-size: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

.otp-inputs { display: flex; gap: 10px; }
.otp-inputs input {
  width: 48px; height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
}

/* ---------------- Alerts ---------------- */
.alert {
  padding: 13px 18px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  border-left: 4px solid;
}
.alert-success { background: #E7F5EC; color: var(--success); border-color: var(--success); }
.alert-error, .alert-danger { background: #FBEAE9; color: var(--danger); border-color: var(--danger); }
.alert-info { background: #E9EFFA; color: var(--ink); border-color: var(--ink); }
.alert-warning { background: #FDF3DC; color: #8A6512; border-color: var(--brass); }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
  background: var(--ink);
  color: var(--white);
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  white-space: nowrap;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--parchment-dark); }
tbody tr:hover { background: var(--parchment); }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-active { background: #E7F5EC; color: var(--success); }
.badge-blocked { background: #FBEAE9; color: var(--danger); }

/* ---------------- Auth pages ---------------- */
.auth-wrap {
  max-width: 440px;
  margin: 20px auto;
}
.auth-wrap .card { padding: 36px 32px; }
.auth-wrap h1 { font-size: 1.5rem; text-align: center; }
.auth-wrap .sub { text-align: center; color: var(--slate-light); margin-bottom: 24px; font-size: 0.9rem; }
.auth-links { text-align: center; margin-top: 16px; font-size: 0.88rem; }

/* ---------------- Profile ---------------- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}
.profile-photo {
  width: 92px; height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brass);
  background: var(--parchment-dark);
}
.profile-header h2 { margin-bottom: 4px; }
.profile-header .meta { color: var(--slate-light); font-size: 0.9rem; }

.detail-list dt { font-weight: 600; color: var(--ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 14px; }
.detail-list dd { margin: 3px 0 0; color: var(--slate); }

/* ---------------- Filters bar (admin) ---------------- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.filter-bar .form-group { margin-bottom: 0; min-width: 160px; }

/* ---------------- Map ---------------- */
#alumniMap { width: 100%; height: 520px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: #9FAAC4;
  text-align: center;
  padding: 22px;
  font-size: 0.85rem;
}

/* ---------------- Utility ---------------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 20px; }
.text-center { text-align: center; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.muted { color: var(--slate-light); }
.pagination { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 7px 13px; border-radius: 6px; font-size: 0.85rem;
  background: var(--white); border: 1px solid var(--parchment-dark); color: var(--slate);
}
.pagination .current { background: var(--ink); color: var(--white); }
