/* =========================================
   1. VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
  /* Colors - Light Theme (Default) */
  --clr-navy: #0f172a;
  --clr-navy-light: #1e293b;
  --clr-accent: #0ea5e9;
  --clr-accent-dark: #0284c7;

  --clr-bg: #f8fafc;
  --clr-bg-white: #ffffff;
  --clr-bg-light: #f1f5f9;

  --clr-text-main: #334155;
  --clr-text-dark: #0f172a;
  --clr-text-light: #64748b;
  --clr-text-white: #ffffff;

  /* Fonts */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing & Layout */
  --container-width: 1200px;
  --section-spacing: 5rem;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition: all 0.3s ease-in-out;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Base Reveal Class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, transform;
}

/* Specific Reveal Types */
.reveal.reveal-left {
  transform: translateX(-30px);
}

.reveal.reveal-right {
  transform: translateX(30px);
}

.reveal.reveal-zoom {
  transform: scale(0.95);
}

/* Active State (Entrance) */
.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Exit State (Optional for scrolling away) */
.reveal.exiting {
  opacity: 0;
  transition: all 0.5s ease-out;
}
.reveal.exiting.reveal-left {
  transform: translateX(-30px);
}
.reveal.exiting.reveal-right {
  transform: translateX(30px);
}
.reveal.exiting.reveal-zoom {
  transform: scale(0.95);
}
.reveal.exiting {
  transform: translateY(30px);
} /* Default exit down */

/* Stagger Delays */
.stagger-delay:nth-child(1) {
  transition-delay: 0.1s;
}
.stagger-delay:nth-child(2) {
  transition-delay: 0.2s;
}
.stagger-delay:nth-child(3) {
  transition-delay: 0.3s;
}
.stagger-delay:nth-child(4) {
  transition-delay: 0.4s;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .slide,
  .anim-element {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--clr-text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--clr-accent);
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

button,
input,
textarea {
  font-family: inherit;
}

/* =========================================
   3. UTILITIES
   ========================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--clr-accent);
  color: var(--clr-text-white);
}

.btn-primary:hover {
  background: var(--clr-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}

.btn-secondary:hover {
  background: var(--clr-accent);
  color: var(--clr-text-white);
}

.btn-white {
  background: white;
  color: var(--clr-navy);
}

.btn-white:hover {
  background: var(--clr-bg-light);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid white;
  color: white;
  /* background: transparent; */
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: var(--section-spacing) 0;
}

.text-center {
  text-align: center;
}
.bg-light {
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
}

/* =========================================
   4. HEADER & NAV
   ========================================= */
.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #dbeafe 100%);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background: linear-gradient(90deg, #0f172a 0%, #334155 100%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info a,
.social-links a {
  color: inherit;
  margin-right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info a:hover,
.social-links a:hover {
  color: var(--clr-accent);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--clr-navy);
}

.brand-text {
  line-height: 1.1;
}

.brand-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-location {
  font-size: 0.875rem;
  color: var(--clr-text-light);
}

.primary-nav .nav-list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-list > li {
  position: relative;
  padding: 1rem 0; /* Increase hit area for hover */
}

.nav-list a {
  color: var(--clr-text-main);
  font-weight: 500;
}

.nav-list a:not(.btn):hover,
.nav-list a.active,
.has-dropdown:hover > a {
  color: var(--clr-accent);
}

.mobile-close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--clr-navy);
  cursor: pointer;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.5rem;
  z-index: 10;
}

/* Dropdown Menu */
/* Simple Dropdown */
.simple-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background: white;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1002;
  border-top: 3px solid var(--clr-accent);
}

.has-dropdown:hover .simple-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.simple-dropdown li {
  display: block;
}

.simple-dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  color: var(--clr-text-main);
  border-left: 2px solid transparent;
}

.simple-dropdown a:hover {
  background: var(--clr-bg-light);
  color: var(--clr-accent);
  border-left-color: var(--clr-accent);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: clamp(300px, 90vw, 900px);
  background: white;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1002;
  border-top: 3px solid var(--clr-accent);
}

.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.mega-grid-3 {
  grid-template-columns: 1.5fr 1fr 1fr;
}

.mega-col h4 {
  color: var(--clr-navy);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.mega-col ul li {
  margin-bottom: 0.5rem;
}

.mega-col ul a {
  color: var(--clr-text-light);
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
}

.mega-col ul a:hover {
  color: var(--clr-accent);
  transform: translateX(3px);
}

.about-col p {
  font-size: 0.9rem;
  color: var(--clr-text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.learn-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-accent);
}

.learn-more:hover {
  color: var(--clr-accent-dark);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--clr-navy);
}
.italic {
  font-style: italic;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
  position: relative;
  height: 600px; /* Reduced from fullscreen for better content visibility */
  background: #000;
  color: white;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transform: translateX(100%);
  transition: transform 0.8s ease-in-out;
  z-index: 1;
}

.slide.active {
  transform: translateX(0);
  z-index: 2;
}

.slide.exit-left {
  transform: translateX(-100%);
  z-index: 1;
}

.slide.exit-right {
  transform: translateX(100%);
  z-index: 1;
}

.slide.from-left {
  transform: translateX(-100%);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.4) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding-top: 2rem;
  text-align: center;
}

.slide-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.text-highlight {
  color: var(--clr-accent);
}

.slide-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

.stats-section {
  background: linear-gradient(135deg, #eef2ff 0%, #bae6fd 100%);
  padding: 1.5rem 0;
}

.stats-section .grid-3 {
  gap: 1rem; /* Increased gap between cards */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
@media (max-width: 720px) {
  .stats-section .grid-3 {
    flex-direction: column;
  }
}

.stat-card {
  width: 210px;
  background: white;
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: row; /* Horizontal layout */
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: left;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card i {
  font-size: 2rem;
  color: var(--clr-accent);
  margin-bottom: 0; /* Remove bottom margin */
}

.stat-card div {
  display: flex;
  flex-direction: column;
}

.stat-card strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--clr-navy);
  line-height: 1.2;
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--clr-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* =========================================
   6. TICKER & ANNOUNCEMENTS
   ========================================= */
.announcement-bar {
  background: var(--clr-navy-light);
  color: white;
  padding: 0.75rem 0;
  margin-top: 30px; /* Space for statistics overlap */
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.ticker-label {
  background: var(--clr-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  /* Add alignment for marquee text */
  display: flex;
  align-items: center;
}

#announcement-marquee {
  width: 100%;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
}

/* =========================================
   7. SECTIONS (ABOUT, PROGRAMS, NEWS)
   ========================================= */
.section-badge {
  display: inline-block;
  color: var(--clr-accent);
  background: rgba(14, 165, 233, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--clr-text-light);
  margin-bottom: 2rem;
}

.features-list {
  margin-bottom: 2rem;
}

.feature {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature i {
  font-size: 1.25rem;
  color: var(--clr-accent);
  margin-top: 0.25rem;
}

.feature h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.experience-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.experience-badge strong {
  display: block;
  font-size: 2rem;
  color: var(--clr-accent);
  font-family: var(--font-heading);
  line-height: 1;
}

/* Programmes */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  color: var(--clr-text-light);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--clr-navy);
  color: white;
  border-color: var(--clr-navy);
}

.programme-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
}

.programme-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-accent);
}

.programme-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.dept-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-accent);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.programme-card p {
  color: var(--clr-text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* News Grid */
.grid-news {
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.news-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.news-date {
  background: var(--clr-bg-light);
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 80px;
  height: fit-content;
}

.news-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-navy);
}

.news-date .month {
  font-size: 0.875rem;
  color: var(--clr-text-light);
  text-transform: uppercase;
}

.news-content h3 a {
  color: var(--clr-navy);
  text-decoration: none;
}

.news-content h3 a:hover {
  color: var(--clr-accent);
}

/* Calendar Sidebar */
.events-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.calendar-widget {
  margin: 1.5rem 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.calendar-days span.dim {
  color: #cbd5e1;
}

.event-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--clr-navy) 0%, #1e293b 100%);
  color: white;
  text-align: center;
  padding: 5rem 0;
}

.cta-content h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.cta-btns {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-btns .btn-outline-white:hover {
  border: solid 1px var(--clr-accent-dark) !important;
  transform: translateY(-2px);
}

/* Contact */
.modern-form {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.block-btn {
  width: 100%;
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-list i {
  width: 40px;
  height: 40px;
  background: var(--clr-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
}

.info-list a {
  color: var(--clr-text-main);
}

.info-list a:hover {
  color: var(--clr-accent);
}

.map-embed {
  margin-top: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* =========================================
   8. FOOTER
   ========================================= */
.site-footer {
  background: linear-gradient(135deg, #020617 0%, #334155 100%);
  color: white;
  padding-top: 4rem;
}

.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
}

.footer-brand h4 {
  color: white;
  margin-top: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links h5,
.footer-newsletter h5 {
  color: white;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--clr-accent);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: white;
  font-size: 0.875rem;
  flex: 1;
  min-width: 0;
}

.newsletter-form button {
  background: var(--clr-accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  width: 40px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Footer Search */
.footer-search-wrap {
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 0.75rem;
}
.footer-search input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: white;
}
.footer-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.footer-search button {
  background: var(--clr-accent);
  border: none;
  color: white;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}
.footer-search-results {
  max-width: 900px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
}
.footer-newsletter .footer-search-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.footer-newsletter .footer-search-inline input[type="search"] {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: white;
}
.footer-newsletter .footer-search-inline button {
  background: var(--clr-accent);
  border: none;
  color: white;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
}
.footer-search-results .no-results {
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.7);
}
.footer-search-results .search-result {
  display: block;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: inherit;
}
.footer-search-results .search-result:hover {
  background: rgba(255, 255, 255, 0.02);
}
.footer-search-results .sr-title {
  font-weight: 700;
  color: white;
}
.footer-search-results .sr-excerpt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.bottom-links {
  display: flex;
  gap: 1.5rem;
}

.bottom-links a {
  color: inherit;
}

/* =========================================
   9. MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
  .announcement-bar {
    margin-top: 0;
  }
  .grid-news {
    grid-template-columns: 1fr;
  }
  .hero-section {
    height: auto;
    min-height: 500px;
  }
  .slide-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 820px) {
  /* Mega Menu Responsive (Tablet/Mobile) */
  .mega-menu {
    position: static;
    width: 100%;
    transform: none;
    box-shadow: none;
    padding: 0;
    border: none;
    border-top: 1px solid #f1f5f9;
    opacity: 1;
    visibility: visible;
    display: none; /* Hidden by default */
    margin-top: 1rem;
  }

  /* Simple Dropdown Mobile */
  .simple-dropdown {
    position: static;
    width: 100%;
    transform: none;
    box-shadow: none;
    padding: 0;
    border: none;
    border-top: 1px solid #f1f5f9;
    opacity: 1;
    visibility: visible;
    display: none;
    margin-top: 0.5rem;
  }

  .has-dropdown.dropdown-active .simple-dropdown {
    display: block;
    animation: slideDown 0.3s ease forwards;
  }

  /* Show when active class is added by JS */
  .has-dropdown.dropdown-active .mega-menu {
    display: block;
    animation: slideDown 0.3s ease forwards;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mega-col {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .mega-col h4 {
    margin-bottom: 0.5rem;
    color: var(--clr-accent);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 820px) {
  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 2rem;
    padding-top: 5rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: flex-start;
    overflow-y: auto;
    z-index: 99999;
    pointer-events: none;
  }

  .mobile-close-btn {
    display: block;
    top: 1.5rem;
    right: 1.5rem;
  }

  .nav-list.active {
    transform: translateX(0);
    pointer-events: auto;
  }

  .mobile-toggle {
    display: block;
    z-index: 1001;
  }

  .top-bar-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .slide {
    padding: 4rem 0;
  }
  .slide-content h1 {
    font-size: 2rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* =========================================
   10. PAGE-SPECIFIC STYLES
   ========================================= */

/* Page Hero Section */
.page-hero {
  height: 300px;
  background: linear-gradient(135deg, var(--clr-navy) 0%, #1e293b 100%);
}

.page-hero-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* Breadcrumb Navigation */
.breadcrumb {
  margin-bottom: 1rem;
}

.breadcrumb ol {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb .current {
  color: white;
}

/* Page Title */
.page-title {
  color: white;
  font-size: 3rem;
  margin: 0;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Content Sections */
.content-text {
  line-height: 1.8;
  color: var(--clr-text-light);
  text-align: justify;
}

.content-section {
  max-width: 900px;
  margin: 0 auto;
}

.content-box {
  margin-top: 4rem;
  background: var(--clr-bg-light);
  padding: 3rem;
  border-radius: var(--radius-lg);
}

/* Timeline Styles */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.timeline-item {
  text-align: center;
}

.timeline-badge {
  background: var(--clr-accent);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.timeline-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--clr-text-light);
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   11. TEAM / OFFICERS STYLES
   ========================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.team-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid #f1f5f9;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-accent);
}

.team-image {
  width: 100%;
  height: 320px;
  background-color: #e2e8f0; /* Placeholder color */
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-placeholder-icon {
  font-size: 5rem;
  color: #cbd5e1;
}

.team-info {
  padding: 1.5rem;
}

.team-role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--clr-navy);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.team-qualifications {
  font-size: 0.85rem;
  color: var(--clr-text-light);
  margin-bottom: 1rem;
  font-style: italic;
}

.team-bio-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-navy);
}

.team-bio-link:hover {
  color: var(--clr-accent);
  text-decoration: underline;
}

/* =========================================
   12. RECTOR'S WELCOME
   ========================================= */
#rector-welcome {
  background-color: white;
  padding: 5rem 0;
}

.align-center {
  align-items: center;
}

.rector-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl); /* Enhanced shadow */
  border: 4px solid white; /* Border for picture frame effect */
}

.rector-img-style {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.rector-image:hover .rector-img-style {
  transform: scale(1.02);
}

.rector-name-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.9); /* Navy with opacity */
  color: white;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.rector-name-tag strong {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
}

.rector-name-tag span:first-of-type {
  font-size: 0.9rem;
  color: var(--clr-accent);
  font-style: italic;
}

.rector-name-tag span:nth-of-type(2) {
  display: block;
  font-size: 0.85rem;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.rector-content {
  padding-left: 2rem;
}

.rector-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--clr-navy);
}

.rector-content .content-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem; /* Slightly larger for readability */
}

@media (max-width: 900px) {
  .rector-content {
    padding-left: 0;
    margin-top: 2rem;
  }
}

/* =========================================
   13. MOBILE RESPONSIVENESS FIXES
   ========================================= */
@media (max-width: 640px) {
  /* Fix Grid Overflow */
  .grid-2,
  .grid-3,
  .grid-4,
  .mega-grid,
  .mega-grid-3,
  .timeline-grid,
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Fix Stats Section specifically to ensure it stacks */
  .stats-section .grid-3 {
    flex-direction: column;
    width: 100%;
  }

  /* Reduce Container Padding to gain space */
  .container {
    padding: 0 1rem;
  }

  /* Adjust Section Spacing */
  .section {
    padding: 3rem 0;
  }

  .hero-section {
    height: auto;
    min-height: 60vh;
    padding-bottom: 3rem;
  }

  /* Center content in Hero for better mobile feel */
  .slide {
    text-align: center;
    justify-content: center;
  }

  .slide-content {
    margin: 0 auto;
    padding-top: 4rem; /* Add space for header */
  }

  .slide-content h1 {
    font-size: 2/2rem;
    font-size: 2.25rem;
  }

  .slide-content p {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* Rector Section Fix */
  .rector-content {
    padding-left: 0;
    margin-top: 2rem;
    text-align: center;
  }

  .rector-content h2 {
    font-size: 1.75rem;
  }

  /* Buttons on mobile - stack them */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }

  .hero-actions .btn {
    max-width: 70%;
    justify-content: center;
    margin: auto;
  }

  /* Stats Cards - Full width */
  .stat-card {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .stat-card i {
    margin-bottom: 0.5rem;
  }

  .stat-card div {
    align-items: center;
  }

  /* Filter Buttons - scrollable or stacked */
  .filter-bar {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    flex: 1 1 auto; /* Grow to fill space */
  }
}

/* Fix for very small screens */
@media (max-width: 380px) {
  .slide-content h1 {
    font-size: 1.75rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 640px) {
  .page-title {
    font-size: 2rem !important;
  }
  .page-hero {
    height: auto !important;
    min-height: 250px;
    padding: 4rem 0 2rem;
  }
}

/* =========================================
   14. MOBILE OVERFLOW AND Z-INDEX FIXES
   ========================================= */
@media (max-width: 820px) {
  body {
    overflow-x: hidden;
  }

  .hero-section {
    overflow: hidden;
  }

  .hero-slider {
    overflow: hidden;
  }
}

/* Mobile Nav Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 999;
  pointer-events: none;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
