/* ==========================================================================
   ST. PAUL'S MUTOLERE SECONDARY SCHOOL - CORE STYLESHEET
   Excellence Through Discipline, Faith & Knowledge
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --primary-color: #0c4a24;
  /* Rich Forest Green */
  --primary-light: #166534;
  /* Medium Forest Green */
  --primary-dark: #062f14;
  /* Dark Deep Green */
  --gold-color: #b58d2f;
  /* Classic Gold */
  --gold-light: #d4af37;
  /* Vibrant Gold */
  --gold-dark: #8a661c;
  /* Darker Gold */
  --text-dark: #1e293b;
  /* Charcoal for readability */
  --text-muted: #64748b;
  /* Slate gray for secondary text */
  --bg-light: #f8fafc;
  /* Off-white background */
  --bg-card: #ffffff;
  /* Clean white cards */
  --accent-red: #dc2626;
  /* Crimson red for Apply Now CTA */
  --accent-red-hover: #b91c1c;
  /* Darker Crimson */
  --accent-red-glow: rgba(220, 38, 38, 0.4);

  /* Fonts */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px rgba(12, 74, 36, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 35px 80px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 8px 24px rgba(220, 38, 38, 0.3);
  --shadow-gold: 0 8px 24px rgba(181, 141, 47, 0.3);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Typography
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, #edf5ef 0%, #f1f5f9 100%);
  color: var(--text-dark);
  line-height: 1.6;
  padding: 30px 15px;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* --------------------------------------------------------------------------
   3. Layout Structure
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.7) 0%, rgba(255, 255, 255, 0.7) 100%), var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

section {
  padding: 80px 60px;
  position: relative;
}

section:nth-child(even) {
  background-color: rgba(219, 234, 254, 0.35);
  /* fading soft bluish overlay for sections */
}

/* --------------------------------------------------------------------------
   4. Sticky Responsive Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: white;
  border-radius: 50%;
  border: 3px solid var(--gold-color);
  padding: 4px;
}

.brand-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  line-height: 1.15;
  display: block;
}

.brand-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-color);
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

/* Dropdown styling */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-normal);
  padding: 10px 0;
  z-index: 1010;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  list-style: none;
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.dropdown-link:hover {
  background-color: #edf5ef;
  color: var(--primary-color);
  padding-left: 25px;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 1001;
}

/* --------------------------------------------------------------------------
   5. Buttons & Calls to Action
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-color), var(--gold-light));
  color: white;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(181, 141, 47, 0.5);
}

.btn-light {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.btn-apply {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-hover));
  color: white !important;
  box-shadow: var(--shadow-red);
}

.btn-apply:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--accent-red-glow);
}

/* --------------------------------------------------------------------------
   6. Hero Banner Component
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero>* {
  position: relative;
  z-index: 2;
}

/* Hero Badge */
.badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 650px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero .actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Large Circular Logo */
.hero-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-circle {
  width: 290px;
  height: 290px;
  background: white;
  border-radius: 50%;
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  border: 8px solid rgba(181, 141, 47, 0.35);
  animation: pulseGlow 4s infinite alternate;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 0px rgba(181, 141, 47, 0.2);
  }

  100% {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 15px rgba(181, 141, 47, 0);
  }
}

/* Jubilee Watermark */
.jubilee-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-size: 7.5rem;
  font-weight: 900;
  letter-spacing: 12px;
  color: rgba(255, 215, 0, 0.035);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Jubilee Gold Badge */
.jubilee-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ffd700, #e6b800);
  color: #1e293b;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
  font-size: 0.9rem;
}

/* Floating Particles */
.gold-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.gold-particles span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 10px #ffd700;
  animation: floatGold 9s linear infinite;
  opacity: 0;
}

@keyframes floatGold {
  0% {
    transform: translateY(110%) scale(0.3);
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  80% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-110%) scale(1.2);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   7. Typography & Headings
   -------------------------------------------------------------------------- */
.title-container {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-subtitle {
  color: var(--gold-color);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
}

.title {
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gold-color);
  border-radius: var(--radius-full);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   8. Cards Grid & Interactive Cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.card {
  padding: 35px 30px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(12, 74, 36, 0.15);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin-bottom: 25px;
  box-shadow: 0 10px 20px rgba(12, 74, 36, 0.15);
  transition: var(--transition-normal);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, var(--gold-color), var(--gold-light));
}

.card h3 {
  color: var(--primary-color);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Alumni & Team Cards (Grid & Person Profiles)
   -------------------------------------------------------------------------- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.person-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px;
  border-left: 5px solid var(--gold-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-right: 1px solid rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.person-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--primary-color);
}

.person-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: #f1f5f9;
}

/* Circular SVG Placeholder for missing photos */
.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2.5rem;
}

.person-card h4 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.person-role {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.person-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.profile-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-color);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.profile-link:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   10. Interactive Tabs Component (About Us Subsections)
   -------------------------------------------------------------------------- */
.tabs-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 15px;
  list-style: none;
}

.tab-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--primary-color);
  background-color: rgba(12, 74, 36, 0.05);
}

.tab-btn.active {
  color: white;
  background: var(--primary-color);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline component for head teachers */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #cbd5e1;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-color);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-date {
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.timeline-content {
  background: var(--bg-light);
  padding: 20px 25px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
}

.timeline-content h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* --------------------------------------------------------------------------
   11. Media Gallery with Filter Category Buttons
   -------------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  list-style: none;
}

.filter-btn {
  background: white;
  border: 1px solid #cbd5e1;
  color: var(--text-dark);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 74, 36, 0.9), rgba(0, 0, 0, 0.2));
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: var(--transition-fast);
  color: white;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.gallery-overlay span {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  object-fit: contain;
}

.lightbox-pdf {
  width: 90vw;
  max-width: 950px;
  height: 75vh;
  border: none;
  background: white;
  border-radius: var(--radius-sm);
  display: none;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2010;
}

/* --------------------------------------------------------------------------
   12. Mockup Form (Alumni Registration)
   -------------------------------------------------------------------------- */
.form-container {
  max-width: 650px;
  margin: 40px auto 0;
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.form-input {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: white;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(12, 74, 36, 0.1);
}

/* --------------------------------------------------------------------------
   13. Contact & Footer Sections
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.contact-box {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary-color);
  transition: var(--transition-normal);
}

.contact-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-box-icon {
  font-size: 1.8rem;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.contact-box h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.contact-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-box a {
  color: var(--primary-color);
  font-weight: 700;
}

.contact-box a:hover {
  color: var(--gold-color);
}

/* Footer Section */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 40px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 400px;
}

.footer-links h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  font-size: 0.85rem;
}

.footer-bottom p {
  opacity: 0.7;
  margin-bottom: 10px;
}

.footer-link {
  color: var(--gold-color);
  font-weight: 700;
}

.footer-link:hover {
  text-decoration: underline;
  color: white;
}

/* --------------------------------------------------------------------------
   14. Responsive Styles & Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  body {
    padding: 15px 5px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 40px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .logo-circle {
    width: 220px;
    height: 220px;
    padding: 25px;
  }

  .hero .actions {
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 1080px) {
  .site-header {
    padding: 15px 25px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 79px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 79px);
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
  }

  /* Dropdowns on mobile */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid #e2e8f0;
    margin-left: 20px;
    padding: 5px 0 5px 10px;
    display: none;
  }

  .nav-item.open .dropdown-menu {
    display: block;
  }

  .btn-apply {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  section {
    padding: 50px 25px;
  }

  .title {
    font-size: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }
}

/* --------------------------------------------------------------------------
   15. Sponsors & Partners Styles
   -------------------------------------------------------------------------- */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.sponsor-card {
  background: var(--bg-card);
  padding: 35px 25px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sponsor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-color);
}

.sponsor-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.sponsor-card:hover .sponsor-icon {
  color: var(--gold-color);
  transform: scale(1.1);
}

.sponsor-card h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.sponsor-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   16. Pre-header & AJAX Search Styles (American Standards)
   -------------------------------------------------------------------------- */
.pre-header {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  padding: 8px 40px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pre-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.pre-header a {
  color: rgba(255, 255, 255, 0.85);
  margin-left: 15px;
  transition: var(--transition-fast);
}

.pre-header a:hover {
  color: var(--gold-light);
}

.search-item {
  list-style: none;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #f1f5f9;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  border: 1px solid #cbd5e1;
  transition: var(--transition-fast);
  max-width: 210px;
}

.search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(12, 74, 36, 0.1);
  background-color: white;
}

.search-input {
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-dark);
  width: 100%;
  padding-right: 5px;
}

.search-btn {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.search-btn:hover {
  color: var(--primary-color);
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 1020;
  max-height: 280px;
  overflow-y: auto;
  margin-top: 8px;
}

.search-results-dropdown a {
  display: block;
  padding: 10px 15px;
  font-size: 0.85rem;
  color: var(--text-dark);
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.search-results-dropdown a:hover {
  background-color: #edf5ef;
  color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   17. Hero Slider Styles
   -------------------------------------------------------------------------- */
.slider-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 520px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 40px;
  left: 40px;
  max-width: 580px;
  background: rgba(12, 74, 36, 0.7);
  /* 70% Faded Greenish Background */
  color: white;
  padding: 25px 35px;
  z-index: 3;
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-lg);
}

.slide-caption h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-caption p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 20px;
  max-width: 800px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.slide-caption .btn-apply {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-hover));
  color: white !important;
  box-shadow: var(--shadow-red);
}

.slider-dots {
  position: absolute;
  bottom: 25px;
  right: 40px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.dot.active,
.dot:hover {
  background-color: var(--gold-light);
  transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   18. Spotted Statistics & Tour Video Styles
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.stat-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.stat-spotted-dot {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, var(--gold-light) 20%, transparent 60%);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-color);
  animation: pulseGold 2s infinite alternate;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -1px;
}

.stat-year {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

#tour-video {
  padding-top: 40px;
  padding-bottom: 40px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--primary-color);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 1080px) {
  .pre-header {
    display: none;
  }

  .slider-container {
    height: 400px;
  }

  .slide-caption {
    padding: 20px 25px;
    bottom: 20px;
    left: 20px;
    max-width: calc(100% - 40px);
  }

  .slide-caption h2 {
    font-size: 1.5rem;
  }

  .slide-caption p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .search-box {
    max-width: 100%;
    margin: 10px 0;
  }
}

/* --------------------------------------------------------------------------
   19. Back to Top Button & Slider Grid Overlay
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--gold-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Dotted grid pattern overlay on hero slider images */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1px);
  background-size: 4px 4px;
  z-index: 2;
  /* above images (z-index 1), below captions (z-index 3) */
  pointer-events: none;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(12, 74, 36, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition-fast);
  z-index: 15;
}

.slider-arrow:hover {
  background-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
  left: 25px;
}

.next-arrow {
  right: 25px;
}

@media (max-width: 768px) {
  .slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .prev-arrow {
    left: 10px;
  }

  .next-arrow {
    right: 10px;
  }
}

/* --------------------------------------------------------------------------
   20. Tour Video & Advert Grid Layout
   -------------------------------------------------------------------------- */
.tour-advert-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; /* 2 Column Split */
  gap: 30px;
  align-items: stretch;
  margin-top: 30px;
  width: 100%;
}

.tour-column {
  width: 100%;
}

.advert-column {
  width: 100%;
  display: flex;
}

/* Advert Card Styling */
.advert-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, #052612 100%);
  color: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold-light);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.advert-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(212, 175, 55, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.advert-badge {
  background-color: var(--gold-light);
  color: var(--primary-color);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.advert-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.advert-desc {
  font-size: 0.92rem;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 20px;
}

.advert-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.advert-features li {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.95;
}

.advert-features li i {
  color: var(--gold-light);
  font-size: 0.95rem;
}

.btn-apply-advert {
  display: inline-block;
  width: 100%;
  background-color: var(--red-accent);
  color: white;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(185, 28, 28, 0.3);
  border: none;
}

.btn-apply-advert:hover {
  background-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(185, 28, 28, 0.4);
}

/* --------------------------------------------------------------------------
   21. OBs Alumni Registry Filter Controls
   -------------------------------------------------------------------------- */
.alumni-filter-controls {
  max-width: 800px;
  margin: 0 auto 30px auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  width: 100%;
}

.alumni-search-box {
  position: relative;
  width: 100%;
}

.alumni-search-box input {
  width: 100%;
  padding: 12px 20px 12px 45px; /* extra padding on left for icon */
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  background-color: white;
  color: var(--text-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.alumni-search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(12, 74, 36, 0.15);
}

.alumni-search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1rem;
  pointer-events: none;
}

.alumni-cohort-input-wrapper {
  position: relative;
  width: 100%;
}

.alumni-cohort-input-wrapper input {
  width: 100%;
  padding: 12px 20px 12px 45px; /* extra padding on left for icon */
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  background-color: white;
  color: var(--text-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.alumni-cohort-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(12, 74, 36, 0.15);
}

.alumni-cohort-input-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1rem;
  pointer-events: none;
}

/* Responsive grid query */
@media (max-width: 960px) {
  .tour-advert-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .advert-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .alumni-filter-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}