/* ============================================================
   FATA University — Main Stylesheet
   Brand: Navy #0a2342 | Gold #c9933a | White #ffffff
   ============================================================ */

:root {
  --navy:      #0a2342;
  --navy-dark: #071829;
  --navy-mid:  #0e3060;
  --gold:      #c9933a;
  --gold-light:#e8b56a;
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-500:  #64748b;
  --gray-700:  #334155;
  --gray-900:  #0f172a;
  --font-body: 'Inter', sans-serif;
  --font-head: 'Merriweather', serif;
  --radius:    6px;
  --shadow:    0 2px 12px rgba(10,35,66,.12);
  --shadow-lg: 0 8px 32px rgba(10,35,66,.18);
  --transition: .2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Top Bar ───────────────────────────────────────────────────────────── */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar-left { display: flex; gap: 20px; }
.topbar-left span i, .topbar-right a i { margin-right: 5px; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-right a {
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.topbar-right a:hover { color: var(--gold); }
.btn-top-admin {
  background: var(--gold);
  color: var(--white) !important;
  padding: 3px 12px;
  border-radius: 3px;
  font-weight: 500;
}
.btn-top-admin:hover { background: var(--gold-light); color: var(--navy) !important; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  padding: 10px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.logo-circle {
  width: 80px; height: 80px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-weight: 700; font-size: 1.4rem;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.site-logo-img {
  height: 90px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-circle-sm {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-weight: 700; font-size: .8rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.brand-tagline {
  font-size: .82rem;
  color: var(--gray-500);
  font-style: italic;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  margin-left: auto;
  align-self: center;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s ease;
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* dropdown open on mobile */
.nav-item.dropdown-open > .dropdown { display: block; }

/* ── Navigation ────────────────────────────────────────────────────────── */
.main-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.main-nav > .container {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.nav-list {
  display: flex;
  align-items: stretch;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 16px;
  color: rgba(255,255,255,.9);
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.nav-link i { font-size: .65rem; }
.nav-item:hover > .nav-link,
.nav-link:hover {
  background: var(--gold);
  color: var(--white);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%; left: 0;
  background: var(--white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  display: none;
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: .88rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover {
  background: var(--gray-50);
  color: var(--navy);
  padding-left: 24px;
}
.dropdown-divider { border-top: 1px solid var(--gray-200); margin: 4px 0; }

/* ── Hero Slider ────────────────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 480px;
  background: var(--navy-dark);
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(7,24,41,.85));
  padding: 40px 40px 32px;
  z-index: 2;
}
.slide-caption h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 6px;
}
.slide-caption p { color: rgba(255,255,255,.8); font-size: 1rem; }

.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.4);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.slider-btn:hover { background: var(--gold); border-color: var(--gold); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.slider-dots {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 3; display: flex; gap: 8px;
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background var(--transition);
}
.dot.active { background: var(--gold); }

/* Fallback hero if no slider images */
.hero-static {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.hero-static h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--white);
}
.hero-static p { font-size: 1.1rem; color: rgba(255,255,255,.8); }

/* ── Stats Bar ──────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--gold);
  padding: 18px 0;
}
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 36px;
  border-right: 1px solid rgba(255,255,255,.3);
}
.stat-item:last-child { border-right: none; }
.stat-item i { font-size: 1.4rem; color: var(--navy); }
.stat-info { display: flex; flex-direction: column; line-height: 1.2; }
.stat-num { font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.stat-label { font-size: .75rem; color: var(--navy); opacity: .8; }

/* ── Section Common ─────────────────────────────────────────────────────── */
.section { padding: 60px 0; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.section-divider {
  width: 56px; height: 3px;
  background: var(--gold);
  margin: 0 auto;
}

/* ── News Cards ─────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img {
  height: 190px;
  overflow: hidden;
  background: var(--gray-100);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 18px; }
.card-meta {
  font-size: .78rem;
  color: var(--gray-500);
  margin-bottom: 6px;
  display: flex; gap: 12px;
}
.card-meta i { color: var(--gold); }
.card-title {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: .95rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-text {
  font-size: .85rem;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.card-link {
  font-size: .83rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.card-link i { margin-left: 4px; }

/* ── Events Grid ────────────────────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  overflow: hidden;
}
.event-date {
  background: var(--navy);
  color: var(--white);
  min-width: 72px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12px 8px;
  text-align: center;
}
.event-date .day { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-date .month { font-size: .75rem; text-transform: uppercase; opacity: .8; }
.event-info { padding: 14px 16px; flex: 1; }
.event-info h4 { font-weight: 600; color: var(--navy); font-size: .9rem; margin-bottom: 6px; line-height: 1.3; }
.event-info .venue { font-size: .8rem; color: var(--gray-500); }
.event-info .venue i { color: var(--gold); margin-right: 4px; }

/* ── Leadership Cards ───────────────────────────────────────────────────── */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 28px;
}
.leader-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  padding: 24px;
  border-left: 4px solid var(--gold);
}
.leader-photo {
  width: 90px; height: 110px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-100);
}
.leader-photo-placeholder {
  width: 90px; height: 110px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 2rem;
  flex-shrink: 0;
}
.leader-info h3 { font-family: var(--font-head); color: var(--navy); font-size: 1rem; margin-bottom: 2px; }
.leader-info .role { font-size: .8rem; color: var(--gold); font-weight: 600; text-transform: uppercase; margin-bottom: 10px; }
.leader-info p { font-size: .85rem; color: var(--gray-500); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Departments ────────────────────────────────────────────────────────── */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.dept-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
  transition: all .25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(10,35,66,.15);
}
.dept-card:hover {
  background: #0d2d56;
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(10,35,66,.25);
}
.dept-card i { font-size: 1.8rem; margin-bottom: 10px; opacity: .85; }
.dept-card h4 { font-size: .9rem; font-weight: 700; line-height: 1.3; }

/* ── Notice Board ───────────────────────────────────────────────────────── */
.notice-list { display: flex; flex-direction: column; gap: 0; }
.notice-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
}
.notice-item:last-child { border-bottom: none; }
.notice-icon {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .8rem;
  flex-shrink: 0;
}
.notice-text h5 { font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.notice-text { flex: 1; min-width: 0; }
.notice-text h5 a { color: var(--navy); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-text span { font-size: .77rem; color: var(--gray-500); }

/* ── Page Banner ────────────────────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 40px 0;
  color: var(--white);
}
.page-banner h1 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.5); }

/* ── Faculty Table ──────────────────────────────────────────────────────── */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.faculty-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
  transition: transform var(--transition);
}
.faculty-card:hover { transform: translateY(-4px); }
.faculty-card .photo {
  width: 100%; height: 200px;
  object-fit: cover;
  background: var(--gray-100);
}
.faculty-card .photo-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--gold);
}
.faculty-card .fc-body { padding: 16px 12px; }
.faculty-card .fc-name { font-weight: 600; color: var(--navy); margin-bottom: 4px; font-size: .95rem; }
.faculty-card .fc-desig { font-size: .8rem; color: var(--gold); font-weight: 500; margin-bottom: 4px; }
.faculty-card .fc-qual { font-size: .78rem; color: var(--gray-500); }

/* ── Office Cards ───────────────────────────────────────────────────────── */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.office-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  border-top: 3px solid var(--navy);
  transition: border-color var(--transition), transform var(--transition);
}
.office-card:hover { border-top-color: var(--gold); transform: translateY(-3px); }
.office-card .oc-icon { font-size: 1.8rem; color: var(--navy); }
.office-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.office-card p { font-size: .85rem; color: var(--gray-500); flex: 1; }
.office-card .oc-link {
  font-size: .83rem; font-weight: 600;
  color: var(--gold); text-transform: uppercase; letter-spacing: .5px;
}

/* ── Table ──────────────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--gray-50); }
.data-table tr:last-child td { border-bottom: none; }

/* ── Badges / Pills ─────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .76rem;
  font-weight: 600;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-info    { background: #dbeafe; color: #1e40af; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary  { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-mid); color: var(--white); }
.btn-gold     { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-outline  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm       { padding: 5px 12px; font-size: .8rem; }
.btn-danger   { background: #dc2626; color: var(--white); }
.btn-danger:hover { background: #b91c1c; color: var(--white); }

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem;
  position: relative;
}
.alert i { font-size: 1.1rem; }
.alert-success { background: #dcfce7; color: #166534; border-left: 4px solid #22c55e; }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-close   { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1.1rem; opacity: .6; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .88rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--gray-700);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,35,66,.08); }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 120px; resize: vertical; }
.validation-summary-errors ul { list-style: disc; padding-left: 20px; font-size: .85rem; color: #dc2626; }
.field-validation-error { font-size: .8rem; color: #dc2626; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Admin Panel Layout ─────────────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: calc(100vh - 170px); }
.admin-sidebar {
  width: 240px;
  background: var(--navy-dark);
  flex-shrink: 0;
  padding-top: 20px;
}
.admin-sidebar .sidebar-section { margin-bottom: 8px; }
.admin-sidebar .sidebar-heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  padding: 8px 20px 4px;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,.8);
  font-size: .87rem;
  transition: background var(--transition), color var(--transition);
}
.admin-sidebar a i { width: 16px; text-align: center; color: var(--gold); }
.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255,255,255,.08);
  color: var(--white);
}
.admin-content { flex: 1; padding: 28px; background: var(--gray-50); }
.admin-page-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.admin-page-header h1 { font-size: 1.3rem; color: var(--navy); font-weight: 700; }
.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.stat-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex; align-items: center; gap: 14px;
  border-left: 4px solid var(--navy);
}
.stat-card-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem;
  flex-shrink: 0;
}
.stat-card-info .num { font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-card-info .label { font-size: .78rem; color: var(--gray-500); }

/* ── Downloads List ─────────────────────────────────────────────────────── */
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.dl-item:hover { transform: translateX(4px); }
.dl-icon { font-size: 1.6rem; color: var(--gold); flex-shrink: 0; }
.dl-info { flex: 1; }
.dl-info h4 { font-size: .92rem; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.dl-info span { font-size: .78rem; color: var(--gray-500); }
.dl-btn {
  background: var(--navy);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: background var(--transition);
}
.dl-btn:hover { background: var(--gold); color: var(--white); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { margin-top: auto; }
.footer-main {
  background: var(--navy-dark);
  padding: 48px 0 32px;
  color: rgba(255,255,255,.75);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
}
.footer-address { font-size: .83rem; margin: 10px 0; }
.footer-address i { color: var(--gold); margin-right: 6px; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.footer-socials a:hover { background: var(--gold); color: var(--white); }
.footer-col h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-col ul li {
  margin-bottom: 8px;
  font-size: .85rem;
}
.footer-col ul a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact li {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; margin-bottom: 10px;
}
.footer-contact i { color: var(--gold); width: 16px; }
.footer-bottom {
  background: #040f1e;
  padding: 14px 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 36px;
}
.pagination a, .pagination span {
  padding: 7px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--gray-700);
  transition: all var(--transition);
}
.pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── Content Detail Page ────────────────────────────────────────────────── */
.detail-content {
  max-width: 820px;
}
.detail-content h2, .detail-content h3 { font-family: var(--font-head); color: var(--navy); margin: 20px 0 10px; }
.detail-content p { margin-bottom: 14px; line-height: 1.8; }
.detail-content ul, .detail-content ol { padding-left: 22px; margin-bottom: 14px; }
.detail-content ul li, .detail-content ol li { margin-bottom: 6px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .leadership-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav { position: static; top: 0; }
  .main-nav .container {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-list.open {
    display: flex;
  }
  .nav-link { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .dropdown { position: static; box-shadow: none; border-top: none; background: rgba(255,255,255,.08); width: 100%; }
  .dropdown li a { color: rgba(255,255,255,.85); padding: 10px 32px; }
  .topbar-left { display: none; }
  .hero-slider { height: 280px; }
  .slide-caption h2 { font-size: 1.3rem; }
  .stats-grid { gap: 0; }
  .stat-item { padding: 8px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .admin-wrapper { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}

/* ── Map + Facebook responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .map-fb-grid { grid-template-columns: 1fr !important; }
}

/* ── Leadership message text — force white regardless of DB HTML content ── */
.leader-msg-text,
.leader-msg-text p,
.leader-msg-text span,
.leader-msg-text li,
.leader-msg-text div {
  color: #ffffff !important;
  font-size: .92rem !important;
  line-height: 1.7;
}
.leader-msg-text {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 10.2em;
}

/* ── Dropdown group label (non-clickable section header) ── */
.dropdown-group-label {
  padding: 8px 18px 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10,35,66,.04);
  cursor: default;
  pointer-events: none;
}

/* ── Gallery grid ───────────────────────────────────────────────────────── */
.gallery-overlay { display: flex; align-items: flex-end; }
div:hover > .gallery-overlay { opacity: 1 !important; }
div:hover > img[style*="object-fit:cover"] { transform: scale(1.05); }

/* Lightbox */
#galleryLightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}
#galleryLightbox.active { display: flex; }
#galleryLightbox img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
#galleryLightbox p { color: var(--white); font-size: .9rem; }
#lightboxClose {
  position: absolute; top: 18px; right: 24px;
  color: var(--white); font-size: 2rem; cursor: pointer; background: none; border: none;
}

@media (max-width: 768px) {
  div[style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
}

/* ── Mobile responsive grids ─────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Events + Jobs/Tenders | Map + Facebook */
  .two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Leadership cards — reduce min width */
  .leadership-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* Leadership card photo + name row — stack on small screens */
  .leadership-cards-grid > div > div:first-child {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Gallery — 2 cols on mobile instead of 3 */
  .gallery-home-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Jobs & Tenders notice items — prevent overflow */
  .notice-item { flex-wrap: wrap; }
  .notice-badge { font-size: .7rem; padding: 2px 8px; white-space: nowrap; }

  /* Facebook card — reduce height */
  .fb-card-inner { height: 280px !important; padding: 20px !important; }
  .fb-icon-circle { width: 60px !important; height: 60px !important; }
  .fb-icon-circle i { font-size: 1.8rem !important; }

  /* Map section — reduce height */
  .two-col-grid iframe { height: 280px !important; }

  /* Section padding reduction */
  .section { padding: 36px 0; }
}

@media (max-width: 480px) {
  .gallery-home-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .two-col-grid { gap: 24px !important; }
}

/* ── Gallery image auto-adjust ──────────────────────────────────────────── */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  cursor: pointer;
  background: var(--gray-200);
}
.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
  display: block;
}
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,35,66,.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }

/* ── Online Admission Button ─────────────────────────────────────────────── */
.btn-admission {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--gold) 0%, #e8a020 100%);
    color: var(--navy) !important;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .4px;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(201,147,58,.4);
    transition: all .25s ease;
    white-space: nowrap;
}
.btn-admission:hover {
    background: var(--white);
    color: var(--gold) !important;
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(201,147,58,.5);
    transform: translateY(-1px);
}
.btn-admission i {
    font-size: .85rem;
}

@media (max-width: 768px) {
    .btn-admission {
        font-size: .72rem;
        padding: 5px 10px;
    }
    .btn-admission span { display: none; }
}
