/* ========================================================
   DAWNHOUSE SCHOOL - SPECIAL EDUCATION INSTITUTION STYLES
   ======================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Colors */
  --primary-navy: #0f172a;
  --navy-dark: #090d16;
  --navy-surface: #1e293b;
  --navy-border: #334155;
  
  --primary-blue: #1d4ed8;
  --blue-hover: #2563eb;
  --blue-subtle: rgba(29, 78, 216, 0.08);
  --blue-glow: rgba(37, 99, 235, 0.35);

  --accent-gold: #d97706;
  --gold-light: #f59e0b;
  --gold-subtle: rgba(245, 158, 11, 0.12);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-focus: #3b82f6;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 24px rgba(37, 99, 235, 0.28);

  /* Dimensions */
  --header-height: 76px;
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

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

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Layouts --- */
.section {
  padding: 96px 0;
  position: relative;
}

.section-title-wrap {
  margin-bottom: 56px;
}

.text-center {
  text-align: center;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-blue);
  background-color: var(--blue-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 16px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--gold-light));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.btn-primary:hover {
  background-color: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.4);
  color: var(--text-white);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background-color: var(--text-white);
  color: var(--primary-navy);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ========================================================
   1. MENU ON TOP (Sticky, does not hide upon scrolling)
   ======================================================== */
.top-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.top-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-navy);
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
  color: var(--text-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.1;
  color: var(--primary-navy);
}

.brand-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--accent-gold);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-blue);
  background-color: var(--blue-subtle);
}

.nav-link.active {
  color: var(--primary-blue);
  font-weight: 600;
  background-color: var(--blue-subtle);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--primary-blue);
  border-radius: 2px;
}

/* Right Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger for Mobile */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary-navy);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.mobile-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}


/* ========================================================
   1.b SCROLLING CAROUSEL (Hero Showcase)
   ======================================================== */
.section-hero {
  padding: 0;
  background-color: var(--navy-dark);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: 560px;
  max-height: 820px;
  overflow: hidden;
  background-color: var(--navy-dark);
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.slide-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 7s ease-out;
}

.carousel-slide.active .slide-img {
  transform: scale(1.0);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(9, 13, 22, 0.88) 0%, 
    rgba(9, 13, 22, 0.65) 55%, 
    rgba(9, 13, 22, 0.35) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 5;
  max-width: 820px;
  padding: 0 40px;
  margin-left: 8%;
  margin-right: auto;
  color: var(--text-white);
}

.slide-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  background-color: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease 0.2s;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease 0.3s;
}

.slide-description {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 640px;
  margin-bottom: 32px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease 0.4s;
}

.slide-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease 0.5s;
}

/* Slide Content Entrance Animation */
.carousel-slide.active .slide-badge,
.carousel-slide.active .slide-title,
.carousel-slide.active .slide-description,
.carousel-slide.active .slide-buttons {
  transform: translateY(0);
  opacity: 1;
}

/* Carousel Control Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
}

.carousel-arrow:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--text-white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
}

.carousel-arrow.prev {
  left: 28px;
}

.carousel-arrow.next {
  right: 28px;
}

/* Dots Indicators */
.carousel-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  background-color: rgba(15, 23, 42, 0.5);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.carousel-dot.active {
  width: 32px;
  border-radius: var(--radius-full);
  background-color: var(--gold-light);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* Play/Pause Button */
.carousel-play-pause {
  position: absolute;
  bottom: 32px;
  right: 32px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  z-index: 10;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.carousel-play-pause:hover {
  background-color: var(--primary-blue);
  color: var(--text-white);
}


/* ========================================================
   2. ABOUT US (Strictly Text Only Layout)
   ======================================================== */
.section-about {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.about-text-content {
  max-width: 960px;
  margin: 0 auto;
}

.lead-narrative {
  margin-bottom: 48px;
}

.lead-paragraph {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  line-height: 1.7;
  color: var(--primary-navy);
  margin-bottom: 20px;
}

.secondary-paragraph {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #475569;
}

/* Institutional Pillars Cards (Pure Text) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.text-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--primary-blue);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.text-card:nth-child(2) {
  border-top-color: var(--accent-gold);
}

.text-card:nth-child(3) {
  border-top-color: #0d9488;
}

.text-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

.pillar-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 14px;
}

.pillar-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Foundational Values List */
.values-section {
  background-color: #f1f5f9;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 56px;
}

.values-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 28px;
  text-align: center;
}

.values-text-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.value-item {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.value-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.value-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* --- Special Needs Areas of Focus Layout (Pure Text) --- */
.focus-areas-container {
  margin-bottom: 56px;
}

.focus-main-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
  text-align: center;
}

.focus-main-sub {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.focus-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  border-left: 5px solid var(--primary-blue);
}

.focus-card:nth-child(2) {
  border-left-color: #0d9488; /* Teal */
}

.focus-card:nth-child(3) {
  border-left-color: var(--accent-gold); /* Warm Amber */
}

.focus-card:nth-child(4) {
  border-left-color: #7c3aed; /* Purple */
}

.focus-card:nth-child(5) {
  border-left-color: #0284c7; /* Sky */
}

.focus-card:nth-child(6) {
  border-left-color: #e11d48; /* Rose */
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.focus-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-blue);
  background-color: var(--blue-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.focus-card:nth-child(2) .focus-badge {
  color: #0d9488;
  background-color: rgba(13, 148, 136, 0.1);
}

.focus-card:nth-child(3) .focus-badge {
  color: var(--accent-gold);
  background-color: var(--gold-subtle);
}

.focus-card:nth-child(4) .focus-badge {
  color: #7c3aed;
  background-color: rgba(124, 58, 237, 0.1);
}

.focus-card:nth-child(5) .focus-badge {
  color: #0284c7;
  background-color: rgba(2, 132, 199, 0.1);
}

.focus-card:nth-child(6) .focus-badge {
  color: #e11d48;
  background-color: rgba(225, 29, 72, 0.1);
}

.focus-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
  line-height: 1.35;
}

.focus-overview {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.focus-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.focus-point-item {
  font-size: 0.875rem;
  color: #334155;
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.focus-point-item::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

.focus-card:nth-child(2) .focus-point-item::before { color: #0d9488; }
.focus-card:nth-child(3) .focus-point-item::before { color: var(--accent-gold); }
.focus-card:nth-child(4) .focus-point-item::before { color: #7c3aed; }
.focus-card:nth-child(5) .focus-point-item::before { color: #0284c7; }
.focus-card:nth-child(6) .focus-point-item::before { color: #e11d48; }

/* Responsive adjustments for focus grid */
@media (max-width: 768px) {
  .focus-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .focus-card {
    padding: 22px 18px;
  }
}


/* Statistics Text Block */
.stats-text-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Dean Quote */
.text-quote {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-white);
  padding: 44px 48px;
  border-radius: var(--radius-lg);
  border-left: 6px solid var(--gold-light);
  box-shadow: var(--shadow-lg);
}

.quote-body {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 16px;
  color: #f8fafc;
}

.quote-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}


/* ========================================================
   3. GALLERY (Thumbnails, Hover Highlight & Lightbox Modal)
   ======================================================== */
.section-gallery {
  background-color: #f8fafc;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  background-color: var(--blue-subtle);
}

.filter-btn.active {
  background-color: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* 3.b Image Thumbnails & Mouse-Over Highlight */
.gallery-item {
  position: relative;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid transparent; /* Ready for border highlight */
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  outline: none;
  transition: 
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.gallery-item:focus-visible {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

/* Thumbnail Wrapper */
.thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--navy-dark);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

/* Overlay that appears on hover (Icon only, no text) */
.thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 2;
}

.overlay-icon {
  width: 54px;
  height: 54px;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transform: scale(0.7);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* 3.b HIGHLIGHT ON MOUSE OVER */
.gallery-item:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--primary-blue);
  box-shadow: 
    0 18px 36px -6px rgba(15, 23, 42, 0.22),
    0 0 24px rgba(37, 99, 235, 0.4);
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.12);
  filter: brightness(1.06);
}

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

.gallery-item:hover .overlay-icon {
  transform: scale(1);
}

/* 3.a FULLSCREEN LIGHTBOX MODAL */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox-container {
  position: relative;
  z-index: 2010;
  width: 90%;
  max-width: 980px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: lightboxScaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxScaleIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-content {
  background-color: var(--primary-navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-figure-wrap {
  width: 100%;
  max-height: 82vh;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Lightbox Controls */
.lightbox-btn {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
  z-index: 2020;
}

.lightbox-btn:hover {
  background-color: var(--primary-blue);
  color: #ffffff;
  transform: scale(1.1);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 42px;
  height: 42px;
}

.lightbox-prev {
  position: absolute;
  top: 50%;
  left: -60px;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.lightbox-next {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}


/* ========================================================
   4. CONTACT SECTION (Contact Form & Google Map Location)
   ======================================================== */
.section-contact {
  background-color: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.contact-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.card-header {
  margin-bottom: 28px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.card-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* 4.a Contact Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.required-star {
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--text-main);
  background-color: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background-color: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: #ef4444;
  background-color: #fff1f2;
}

.error-msg {
  display: none;
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 6px;
  font-weight: 500;
}

.error-msg.visible {
  display: block;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form Success Alert */
.form-feedback.success-message {
  background-color: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.feedback-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #22c55e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.feedback-text strong {
  display: block;
  font-size: 1.125rem;
  color: #14532d;
  margin-bottom: 4px;
}

.feedback-text p {
  font-size: 0.9375rem;
  color: #166534;
}

.btn-text-reset {
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: underline;
  cursor: pointer;
}

/* Loading Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 4.b Google Map Location Styles */
.map-column {
  background-color: #f8fafc;
}

.map-embed-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 28px;
  background-color: #e2e8f0;
}

.map-embed-wrapper iframe {
  display: block;
  width: 100%;
}

.campus-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.detail-info strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.detail-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ========================================================
   FOOTER STYLES
   ======================================================== */
.site-footer {
  background-color: var(--primary-navy);
  color: #94a3b8;
  padding: 80px 0 32px;
  border-top: 1px solid var(--navy-border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  background: linear-gradient(135deg, var(--gold-light), var(--accent-gold));
  color: var(--primary-navy);
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

.footer-motto {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 320px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
}

.footer-note {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 0.875rem;
  color: #64748b;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  font-weight: 600;
  transition: transform var(--transition-fast);
}

.back-to-top:hover {
  transform: translateY(-2px);
  color: #ffffff;
}


/* ========================================================
   RESPONSIVE DESIGN (Media Queries)
   ======================================================== */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .stats-text-block {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Mobile Slide-down Navigation */
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 20px 24px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    z-index: 999;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 10px 16px;
    font-size: 1rem;
  }

  .nav-cta {
    display: none;
  }

  /* Carousel */
  .carousel-container {
    height: 520px;
  }

  .slide-content {
    margin-left: 0;
    padding: 0 24px;
    text-align: center;
  }

  .slide-buttons {
    justify-content: center;
  }

  .carousel-arrow {
    display: none; /* Swipe & dots take over on mobile */
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Values */
  .values-text-list {
    grid-template-columns: 1fr;
  }

  .values-section {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }

  .section-heading {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stats-text-block {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px 18px;
  }

  .lightbox-container {
    width: 95%;
  }

  .lightbox-details {
    padding: 18px;
  }
}
