/*
Theme Name: PL Muslim National School
Theme URI: https://plmns.online
Author: TDS / PL Muslim National School
Author URI: https://plmns.online
Description: Official Custom WordPress Theme for PL/Muslim National School, Kaduruwela, Polonnaruwa with Modern Typography & Download Center.
Version: 1.3.0
License: GNU General Public License v2 or later
Text Domain: plmns
*/

:root {
  --maroon: #6B1A2A;
  --maroon-dark: #4A0F1C;
  --maroon-light: #8B2A3E;
  --gold: #D4A017;
  --gold-light: #F0C040;
  --gold-pale: #FFF3C4;
  --white: #FFFFFF;
  --off-white: #FAF8F5;
  --text-dark: #1A0A0E;
  --text-mid: #5A3A42;
  --text-light: #9A7A82;
  --border: rgba(107,26,42,0.12);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--maroon); border-radius: 3px; }

/* ── TOP BAR ── */
.topbar {
  background: var(--maroon-dark);
  color: var(--gold-light);
  font-size: 0.78rem;
  padding: 7px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.03em;
  font-family: var(--font-main);
}
.topbar a { color: var(--gold-light); text-decoration: none; }
.topbar-right { display: flex; gap: 20px; }

/* ── HEADER ── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(107,26,42,0.12);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.logo-emblem {
  width: 64px;
  height: 64px;
  background: var(--maroon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.logo-emblem::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(212,160,23,0.4);
}
.logo-emblem span {
  font-family: var(--font-heading);
  color: var(--gold-light);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  z-index: 1;
}
.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--maroon-dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.logo-text p {
  font-family: var(--font-main);
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 600;
}

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  white-space: nowrap;
}
nav a:hover, nav a.active {
  color: var(--maroon);
  background: var(--gold-pale);
}
.nav-cta {
  background: var(--maroon) !important;
  color: var(--white) !important;
  padding: 9px 18px !important;
  border-radius: 8px !important;
  margin-left: 8px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--maroon-light) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--maroon);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 50%, #8B1A2E 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A017' fill-opacity='0.05'%3E%3Cpath d='M40 0L80 40L40 80L0 40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,160,23,0.15) 0%, transparent 70%);
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.4);
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  font-family: var(--font-main);
  font-weight: 700;
}
.hero-badge::before { content: '★'; color: var(--gold); }
.hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--white);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero h2 em {
  color: var(--gold-light);
  font-style: normal;
  display: block;
}
.hero-sub {
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
  font-weight: 400;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--maroon-dark);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(212,160,23,0.35);
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(212,160,23,0.45); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label { font-family: var(--font-main); font-size: 0.72rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; font-weight: 600; }
.stat-divider { width: 1px; background: rgba(255,255,255,0.15); }

.hero-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: 20px;
  padding: 36px;
}
.hero-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212,160,23,0.2);
}
.announcement-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.announcement-item:last-child { border: none; padding-bottom: 0; }
.ann-date {
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  min-width: 48px;
  flex-shrink: 0;
  font-family: var(--font-main);
}
.ann-date-day { font-size: 1.1rem; font-weight: 800; color: var(--gold-light); line-height: 1; }
.ann-date-mon { font-size: 0.62rem; text-transform: uppercase; color: rgba(255,255,255,0.6); letter-spacing: 0.05em; margin-top: 2px; font-weight: 700; }
.ann-text { font-family: var(--font-main); font-size: 0.85rem; color: rgba(255,255,255,0.85); line-height: 1.5; }
.ann-text strong { color: var(--white); display: block; margin-bottom: 2px; font-weight: 700; }

/* ── SECTION COMMON ── */
section { padding: 80px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--maroon-dark);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-family: var(--font-main);
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 50px;
  font-weight: 400;
}
.divider-gold {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 14px 0 24px;
}

/* ── QUICK LINKS STRIP ── */
.quick-strip {
  background: var(--maroon);
  padding: 0;
}
.quick-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
  text-align: center;
}
.quick-link:last-child { border-right: none; }
.quick-link:hover { background: rgba(212,160,23,0.15); color: var(--gold-light); }
.quick-icon { font-size: 1.8rem; }
.quick-label { font-family: var(--font-main); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* ── ABOUT ── */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon-light) 100%);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  font-family: var(--font-main);
}
.about-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A017' fill-opacity='0.08'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.about-img-placeholder .big-icon { font-size: 4rem; position: relative; }
.about-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--maroon-dark);
  padding: 18px 22px;
  border-radius: 14px;
  font-family: var(--font-heading);
  text-align: center;
  box-shadow: 0 8px 32px rgba(212,160,23,0.4);
}
.about-badge-float .big { font-size: 1.8rem; font-weight: 900; line-height: 1; display: block; }
.about-badge-float .small { font-family: var(--font-main); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

.vm-cards { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.vm-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
}
.vm-card h4 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--maroon);
  font-size: 1rem;
  margin-bottom: 6px;
}
.vm-card p { font-family: var(--font-main); color: var(--text-mid); font-size: 0.95rem; line-height: 1.6; }

/* ── ACADEMICS ── */
.academics-section { background: var(--off-white); }
.academics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.subject-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.subject-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.subject-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(107,26,42,0.12); }
.subject-card:hover::before { transform: scaleX(1); }
.subject-icon { font-size: 2.2rem; margin-bottom: 14px; display: block; }
.subject-card h3 {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--maroon-dark);
  margin-bottom: 8px;
}
.subject-card p { font-family: var(--font-main); font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; }

/* ── NEWS & EVENTS ── */
.news-section { background: var(--white); }
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
.news-featured {
  background: var(--maroon);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.news-featured-img {
  width: 100%;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.news-featured-body { padding: 28px; }
.news-tag {
  background: var(--gold);
  color: var(--maroon-dark);
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}
.news-featured h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 10px;
}
.news-featured p { font-family: var(--font-main); font-size: 0.88rem; color: rgba(255,255,255,0.8); line-height: 1.6; }
.news-meta { font-family: var(--font-main); font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 14px; font-weight: 600; }

.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 14px;
  transition: all 0.2s;
  cursor: pointer;
}
.news-item:hover { border-color: var(--gold); background: var(--gold-pale); }
.news-item-date {
  background: var(--maroon);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  min-width: 46px;
  flex-shrink: 0;
  font-family: var(--font-main);
}
.news-item-date .day { font-size: 1.1rem; font-weight: 800; line-height: 1; }
.news-item-date .mon { font-size: 0.6rem; text-transform: uppercase; opacity: 0.75; margin-top: 2px; font-weight: 700; }
.news-item-text h4 { font-family: var(--font-main); font-size: 0.88rem; font-weight: 700; color: var(--maroon-dark); margin-bottom: 4px; line-height: 1.4; }
.news-item-text p { font-family: var(--font-main); font-size: 0.78rem; color: var(--text-light); }

/* ── STAFF ── */
.staff-section { background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%); }
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.staff-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  transition: all 0.25s;
}
.staff-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(107,26,42,0.1); }
.staff-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  border: 3px solid var(--gold-pale);
}
.staff-card h3 { font-family: var(--font-main); font-weight: 700; font-size: 1.05rem; color: var(--maroon-dark); margin-bottom: 4px; }
.staff-card .role { font-family: var(--font-main); font-size: 0.78rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.staff-card .dept { font-family: var(--font-main); font-size: 0.82rem; color: var(--text-light); }

/* ── GALLERY & PHOTO ALBUM SLIDER ── */
.gallery-section { background: var(--maroon-dark); padding: 80px 40px; position: relative; }
.gallery-section .section-title { color: var(--white); }
.gallery-section .section-label { color: var(--gold-light); }
.gallery-section .section-subtitle { color: rgba(255,255,255,0.7); margin-bottom: 25px; }

.gallery-album-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}
.gallery-album-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gallery-nav-btn {
  background: rgba(212,160,23,0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.25s ease;
  user-select: none;
}
.gallery-nav-btn:hover {
  background: var(--gold);
  color: var(--maroon-dark);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(212,160,23,0.4);
}

.gallery-album-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 5px 25px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(107,26,42,0.5);
}
.gallery-album-track::-webkit-scrollbar {
  height: 8px;
}
.gallery-album-track::-webkit-scrollbar-track {
  background: rgba(107,26,42,0.5);
  border-radius: 4px;
}
.gallery-album-track::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

.gallery-item, .gallery-album-card {
  flex: 0 0 310px;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--maroon);
  scroll-snap-align: start;
  border: 2px solid rgba(212,160,23,0.35);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover, .gallery-album-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 14px 35px rgba(0,0,0,0.5);
}
.gallery-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s;
  background: linear-gradient(135deg, rgba(107,26,42,0.8), rgba(74,15,28,0.9));
  color: rgba(255,255,255,0.7);
  font-size: 2.2rem;
  font-family: var(--font-main);
}
.gallery-inner span { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.8); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(58,11,22,0.95) 0%, rgba(58,11,22,0.25) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay, .gallery-album-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-text { font-family: var(--font-main); font-size: 0.92rem; color: var(--white); font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* ── PAPERS & DOWNLOAD CENTER ── */
.papers-section { background: var(--off-white); }
.papers-filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.paper-tab-btn {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
}
.paper-tab-btn:hover, .paper-tab-btn.active {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--maroon);
}
.papers-table-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(107,26,42,0.06);
}
.papers-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--font-main);
}
.papers-table th {
  background: var(--maroon-dark);
  color: var(--gold-light);
  padding: 16px 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.papers-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(107,26,42,0.08);
  font-size: 0.9rem;
  color: var(--text-dark);
}
.papers-table tr:hover td {
  background: var(--gold-pale);
}
.papers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.paper-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.paper-card:hover { border-color: var(--maroon); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(107,26,42,0.1); }
.paper-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.paper-card h3 { font-family: var(--font-main); font-size: 0.98rem; font-weight: 700; color: var(--maroon-dark); margin-bottom: 6px; }
.paper-card p { font-family: var(--font-main); font-size: 0.82rem; color: var(--text-light); }
.paper-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: var(--maroon);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.paper-badge:hover {
  background: var(--gold);
  color: var(--maroon-dark);
}

/* ── FAQ ── */
.faq-section { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 20px;
  background: var(--off-white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--maroon-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--gold-pale); }
.faq-q .chevron { color: var(--gold); font-size: 1.1rem; transition: transform 0.3s; }
.faq-a { padding: 16px 20px; font-family: var(--font-main); font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; display: none; border-top: 1px solid var(--border); }
.faq-item.open .faq-a { display: block; }
.faq-item.open .chevron { transform: rotate(180deg); }

/* ── CONTACT ── */
.contact-section { background: var(--maroon-dark); position: relative; overflow: hidden; }
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A017' fill-opacity='0.04'%3E%3Cpath d='M40 0L80 40L40 80L0 40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.contact-section .section-title { color: var(--white); }
.contact-section .section-label { color: var(--gold-light); }
.contact-section .section-subtitle { color: rgba(255,255,255,0.7); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  position: relative;
  z-index: 1;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(212,160,23,0.15);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item-text h4 { font-family: var(--font-main); color: var(--gold-light); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-item-text p { font-family: var(--font-main); color: rgba(255,255,255,0.85); font-size: 0.92rem; line-height: 1.5; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--font-main); font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--maroon-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  width: 100%;
  font-family: var(--font-main);
}
.btn-submit:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: #1A0508; padding: 60px 40px 0; font-family: var(--font-main); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text h1 { color: var(--white); font-size: 1.1rem; font-family: var(--font-heading); }
.footer-brand .logo-text p { color: rgba(255,255,255,0.4); }
.footer-desc {
  font-family: var(--font-main);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); }
.footer-col h4 {
  font-family: var(--font-main);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom span { color: var(--gold); font-weight: 700; }

/* ── PRINCIPAL MESSAGE ── */
.principal-section { background: var(--gold-pale); border-top: 1px solid rgba(212,160,23,0.2); border-bottom: 1px solid rgba(212,160,23,0.2); }
.principal-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: center;
}
.principal-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  flex-shrink: 0;
  border: 4px solid var(--gold);
  box-shadow: 0 8px 32px rgba(212,160,23,0.25);
}
.principal-content { flex: 1; }
.principal-quote {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--maroon-dark);
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.principal-quote::before { content: '\201C'; color: var(--gold); font-size: 2.2rem; line-height: 0; vertical-align: -0.4rem; margin-right: 4px; }
.principal-name { font-family: var(--font-main); font-weight: 800; color: var(--maroon); font-size: 0.95rem; }
.principal-title { font-family: var(--font-main); font-size: 0.82rem; color: var(--text-light); margin-top: 2px; }

/* ── HISTORY ── */
.history-section { background: var(--off-white); }
.timeline { position: relative; padding-left: 40px; display: flex; flex-direction: column; gap: 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--maroon), var(--gold), var(--maroon));
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--maroon);
}
.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--maroon);
  margin-bottom: 4px;
}
.timeline-text { font-family: var(--font-main); font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }

/* ── MAP ── */
.map-section { background: var(--white); padding: 80px 40px; }
.map-container {
  max-width: 1200px;
  margin: 0 auto;
}
.map-placeholder {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon-light) 100%);
  border-radius: 16px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(212,160,23,0.1)' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='25' fill='none' stroke='rgba(212,160,23,0.08)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.map-pin { font-size: 4rem; }
.map-placeholder h3 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--white); font-weight: 700; }
.map-placeholder p { font-family: var(--font-main); font-size: 0.9rem; text-align: center; max-width: 360px; }
.map-btn {
  background: var(--gold);
  color: var(--maroon-dark);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 8px;
  display: inline-block;
  transition: all 0.2s;
}
.map-btn:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ── ACHIEVEMENTS ── */
.achievements-strip {
  background: var(--maroon);
  padding: 50px 40px;
}
.achievements-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.achieve-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}
.achieve-label { font-family: var(--font-main); font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .academics-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .papers-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .quick-strip-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 20px; }
  .topbar { padding: 7px 20px; font-size: 0.7rem; }
  .header-inner { padding: 12px 20px; }
  nav { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 20px; }
  .hero-card { display: none; }
  .quick-strip-inner { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge-float { bottom: -10px; right: 10px; }
  .academics-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item:first-child { grid-column: auto; grid-row: auto; }
  .papers-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .principal-inner { flex-direction: column; text-align: center; }
  .achievements-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--maroon-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--gold-light); }
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ── SCROLL REVEAL - Always visible by default ── */
.reveal {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
