/* Reset and Global Design System Variables - White & Navy Theme */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;

  /* HSL Colors - Clearview Navy Official Palette */
  --primary-h: 218;
  --primary-s: 58%;
  --primary-l: 15%; /* Deep Navy Blue (#101e36) */
  
  --secondary-h: 218;
  --secondary-s: 58%;
  --secondary-l: 25%; /* Mid Navy Blue */
  
  --accent-h: 43;
  --accent-s: 100%;
  --accent-l: 50%; /* Clearview Gold/Amber */

  /* Semantic Colors */
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-light: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) + 12%));
  --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);
  
  --secondary: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.3);
  
  /* Light Theme Backgrounds */
  --bg: #ffffff;
  --bg-offset: #f8fafc;
  --bg-card: rgba(245, 248, 255, 0.88); /* Translucent glassy soft light-blue background */
  --bg-card-highlight: rgba(255, 250, 235, 0.9); /* Warm gold-cream tinted glassy background */
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border: rgba(16, 30, 54, 0.12); /* Defined borders */
  --border-hover: rgba(16, 30, 54, 0.24);
  
  --text: #0a0f1d; /* Solid dark color for high contrast AAA level readability */
  --text-muted: #1e293b; /* Higher contrast description text */
  --text-inverse: #ffffff;

  /* Shadows and Transitions */
  --shadow-sm: 0 6px 16px rgba(16, 30, 54, 0.04);
  --shadow-md: 0 12px 36px rgba(16, 30, 54, 0.06);
  --shadow-lg: 0 24px 50px rgba(16, 30, 54, 0.1);
  
  --radius-sm: 16px;
  --radius-md: 28px;
  --radius-lg: 38px;
  --radius-xl: 99px;
  
  --transition-fast: 150ms ease;
  --transition-normal: 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 700ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 20px; /* Increased base size for high legibility on desktops */
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

@media (max-width: 1200px) {
  html {
    font-size: 18px; /* Scale down slightly for laptops */
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px; /* Return to standard base for tablets/phones to preserve layout balance */
  }
}

body {
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-offset);
}
::-webkit-scrollbar-thumb {
  background: rgba(16, 30, 54, 0.15);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-offset);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 30, 54, 0.35);
}

/* Roots Canvas in the background */
#roots-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Behind content but in front of body background */
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 2; /* Content sits above canvas roots */
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1440px; /* Widen content area from 1200px to use screen space better */
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem; /* Maximize content area on mobile */
  }
}

section {
  padding: 8rem 0;
  position: relative;
  border-bottom: 1px solid rgba(16, 30, 54, 0.03);
}

/* Liquid Glass Cards (Light Mode) */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: var(--transition-normal);
  cursor: default;
}

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

/* Headings and Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

/* Reveal system classes */
.reveal-item {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  filter: blur(4px);
  transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1), transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), filter 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 30, 54, 0.25);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--bg-offset);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Top Agency Banner */
.top-ad-banner {
  background: #0f172a;
  color: #f1f5f9;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 500;
}

.top-ad-banner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: var(--transition-fast);
}

.top-ad-banner a:hover {
  color: white;
  border-bottom-color: white;
}

.top-ad-banner .close-banner-btn {
  position: absolute;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.top-ad-banner .close-banner-btn:hover {
  color: white;
}

/* Navigation Header */
header.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
  transition: var(--transition-normal);
}

header.site-header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 3rem;
  max-width: 1440px; /* Match new wider container */
  margin: 0 auto;
}

@media (max-width: 768px) {
  header.site-header .header-container {
    padding: 0.75rem 1.5rem;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-heading);
}

.logo-link img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

nav.main-nav ul li a {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  position: relative;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
}

nav.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-normal);
}

nav.main-nav ul li a.active,
nav.main-nav ul li a:hover {
  color: var(--primary);
}

nav.main-nav ul li a.active::after,
nav.main-nav ul li a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
}

/* Sibling School Link */
.sister-school-btn {
  font-size: 0.8rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  background: rgba(46, 125, 50, 0.07);
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-normal);
}

.sister-school-btn:hover {
  background: #2e7d32;
  color: white;
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* SEP Official Incorporation Card/Poster */
.sep-banner-wrapper {
  margin-top: 2rem;
  margin-bottom: -3rem;
}

.sep-card {
  background: linear-gradient(135deg, #ffffff, var(--bg-offset));
  border: 1px solid rgba(16, 30, 54, 0.1);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 1.75rem 2.2rem;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.sep-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(16, 30, 54, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.sep-seal-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(16, 30, 54, 0.2);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  background: rgba(16, 30, 54, 0.01);
}

.sep-seal-visual i {
  font-size: 2rem;
  color: var(--accent);
  filter: drop-shadow(0 0 3px var(--accent-glow));
}

.sep-seal-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0.25rem;
  letter-spacing: 0.5px;
}

.sep-card-content h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
  font-weight: 750;
}

.sep-card-content h3 span {
  color: var(--accent);
}

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

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 6rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}

.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-centered .hero-text-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
  max-width: 850px;
}

.hero-centered .hero-ctas {
  justify-content: center;
}

.hero-centered .hero-visual {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
}

.hero-centered .video-container-wrapper {
  box-shadow: 0 25px 60px rgba(16, 30, 54, 0.35), 0 0 50px rgba(255, 152, 0, 0.2);
  border: 2px solid rgba(16, 30, 54, 0.15);
  animation: videoGlow 6s infinite alternate ease-in-out;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}

@keyframes videoGlow {
  0% {
    box-shadow: 0 25px 60px rgba(16, 30, 54, 0.35), 0 0 40px rgba(255, 152, 0, 0.15);
  }
  100% {
    box-shadow: 0 25px 60px rgba(16, 30, 54, 0.45), 0 0 60px rgba(255, 152, 0, 0.3);
    border-color: rgba(255, 152, 0, 0.4);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 30, 54, 0.05);
  border: 1px solid rgba(16, 30, 54, 0.1);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
  letter-spacing: -0.8px;
  color: var(--primary);
}

.hero h1 span {
  color: var(--secondary);
  background: linear-gradient(120deg, var(--primary), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead-text {
  font-size: 1.12rem;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.video-container-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  background: #000;
}

.video-container-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Features Bento Grid Section */
.section-title {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 5rem auto;
}

.section-title h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  color: var(--primary);
}

.section-title p {
  font-size: 1.05rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.bento-card-large {
  grid-column: span 2;
}

.bento-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 300px;
}

.bento-feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

.feature-top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(16, 30, 54, 0.04);
  border: 1px solid rgba(16, 30, 54, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: var(--transition-normal);
}

.bento-feature-card:hover .feature-icon-wrapper {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.bento-feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.bento-feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Alternating Differentiators Rows Styling */
.alternating-features {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  margin-top: 4rem;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  padding: 3rem;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.feature-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-row:nth-child(even),
.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-row-text {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-row-text h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.feature-row-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature-bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--primary);
}

.feature-bullets li i {
  color: #2e7d32;
  font-size: 1rem;
}

.feature-row-image {
  flex: 0.9;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: white;
}

.feature-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.feature-row:hover .feature-row-image img {
  transform: scale(1.03);
}

.feature-row.glass-card-green .feature-bullets li i {
  color: #2e7d32;
}

/* Callout Box */
.callout-box {
  max-width: 1200px; /* Widened to match new container */
  margin: 5rem auto 0 auto;
  border-left: 4px solid var(--primary);
  padding: 2.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--bg-offset);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}

.callout-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.callout-box p {
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Educational Model / Curricular Map Section */
.model-block {
  margin-bottom: 3rem;
}

.model-subjects-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1.15fr; /* Three columns: Central subjects, visual banner, rotational subjects */
  gap: 2rem;
  align-items: stretch;
}

/* Card framing enhancement to make cards pop from background */
.bento-feature-card, .subject-item, .glass-card, .admission-step-item, .subjects-center-banner {
  border: 1px solid rgba(16, 30, 54, 0.12) !important;
  border-left: 6px solid var(--primary) !important;
  background: var(--bg-card) !important;
  backdrop-filter: blur(24px) saturate(160%) !important; /* Premium Glassmorphism blur */
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.75), var(--shadow-md) !important; /* Double shadow: inner glassy glow + outer drop shadow */
  border-radius: var(--radius-md) !important;
  transition: var(--transition-normal) !important;
}

.bento-feature-card:hover, .subject-item:hover, .glass-card:hover, .admission-step-item:hover, .subjects-center-banner:hover {
  border-left-color: var(--accent) !important; /* Glow gold on hover */
  transform: translateY(-6px);
  background: var(--bg-card-hover) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85), var(--shadow-lg), 0 0 20px rgba(255, 152, 0, 0.1) !important; /* Added gold glow aura */
}

/* Glass highlighted cards (slightly gold/cream tint for special content) */
.glass-card-highlight {
  background: var(--bg-card-highlight) !important;
  border-left: 6px solid var(--accent) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85), var(--shadow-md), 0 0 10px rgba(255, 152, 0, 0.05) !important;
}
.glass-card-highlight:hover {
  border-left-color: var(--primary) !important;
  background: rgba(255, 250, 235, 0.98) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), var(--shadow-lg), 0 0 25px rgba(255, 152, 0, 0.15) !important;
}

/* Glass green-tinted cards (for Sibling School reference) */
.glass-card-green {
  background: rgba(240, 248, 240, 0.9) !important;
  border-left: 6px solid #2e7d32 !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85), var(--shadow-md) !important;
}
.glass-card-green:hover {
  border-left-color: var(--accent) !important;
  background: rgba(240, 248, 240, 0.98) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), var(--shadow-lg), 0 0 20px rgba(46, 125, 50, 0.15) !important;
}

/* Bento Card layout splits for image content */
.bento-card-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
  height: 100%;
}

.bento-card-image {
  width: 100%;
  height: 100%;
  max-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  padding: 0.75rem;
}

.bento-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition-normal);
}

.bento-feature-card:hover .bento-card-image img {
  transform: scale(1.05);
}

/* Central Banner in Curricular Grid */
.subjects-center-banner {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.subjects-banner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.subjects-banner-card img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--border);
  padding: 0.5rem;
}

.subjects-banner-card h4 {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--primary);
  margin: 0.5rem 0 0 0;
}

.subjects-banner-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.subjects-banner-card .banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 30, 54, 0.05);
  border: 1px solid rgba(16, 30, 54, 0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xl);
  font-weight: 800;
  font-size: 0.72rem;
  margin-top: 0.5rem;
}

.subjects-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.subjects-list h4 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.subject-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition-normal);
}

.subject-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.subject-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  opacity: 0.45;
  width: 28px;
}

.subject-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
  text-transform: none;
  letter-spacing: 0;
}

.subject-info p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Three-Pillar Curricular Grid Styling */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  height: 100%;
}

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

.pillar-image-header {
  height: 180px;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.pillar-image-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.pillar-card:hover .pillar-image-header img {
  transform: scale(1.05);
}

.pillar-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-xl);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.pillar-content {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pillar-intro {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 500;
}

.pillar-subjects-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.pillar-subjects-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.pillar-subjects-list .sub-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  opacity: 0.35;
  width: 24px;
  margin-top: 2px;
}

.pillar-subjects-list h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.35rem 0;
}

.pillar-subjects-list p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* Campus Section and Blueprint Maps styling */
.campuses-wrapper {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: stretch;
}

.campus-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.campus-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.campus-card.active {
  border-color: var(--primary);
  background: white;
  box-shadow: var(--shadow-md);
}

.campus-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--primary);
}

.campus-card h3 span.badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.campus-card p.address {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.campus-details {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.campus-detail-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.campus-detail-item i {
  color: var(--primary);
}

/* Blueprint Styled Map Visualizer */
.map-visual-container {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: #f8fafc !important;
  height: 520px;
  position: relative;
  z-index: 10;
}

.map-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-header-title h4 {
  color: var(--primary);
  font-size: 1.1rem;
}

.map-header-title p {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 0.15rem;
}

.map-frame-box {
  flex-grow: 1;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
}

.vector-map-canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

.map-image-style {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: object-position 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.map-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16, 30, 54, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(16, 30, 54, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.8;
  pointer-events: none;
}

.map-svg-blueprint {
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1);
  transform-origin: center;
}

/* Blueprint layout elements styling (Light theme) */
.map-svg-blueprint rect, 
.map-svg-blueprint polygon, 
.map-svg-blueprint circle, 
.map-svg-blueprint line {
  stroke-width: 1.5;
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 10;
  cursor: pointer;
}

.map-pin svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
  fill: var(--primary);
  filter: drop-shadow(0 3px 6px rgba(16, 30, 54, 0.2));
  animation: bouncePin 2.2s infinite ease-in-out;
}

.map-pin-label {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.map-pin-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--primary);
}

.map-zoom-controls {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 5;
}

.map-zoom-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary);
  transition: var(--transition-fast);
}

.map-zoom-btn:hover {
  background: var(--bg-offset);
  border-color: var(--border-hover);
}

.map-footer-links {
  padding: 1rem 1.5rem;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-footer-links span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Portrait aspect ratio map layout for Guadalajara campus map */
.map-visual-container.map-portrait-mode {
  height: auto !important;
  align-self: start;
}
.map-visual-container.map-portrait-mode .map-frame-box {
  aspect-ratio: 704 / 1024;
  height: auto;
}
@media (max-width: 991px) {
  .map-visual-container.map-portrait-mode {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.7;
  color: var(--primary);
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 2rem;
}

.testimonial-quote::before {
  content: '“';
  position: absolute;
  left: 0;
  top: -15px;
  font-size: 4.5rem;
  color: var(--text-muted);
  font-family: var(--font-serif);
  opacity: 0.15;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.testimonial-author span {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Admission Step Checklist List */
.admission-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.admission-step-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.admission-step-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.admission-step-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  width: 32px;
  flex-shrink: 0;
}

.admission-step-info h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.admission-step-info p {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Expansion Section and Form styling */
.expansion-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4.5rem;
  align-items: flex-start;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(16, 30, 54, 0.15);
  background: white;
}

/* Footer Section styling */
footer.site-footer {
  background: var(--bg-offset);
  color: var(--text);
  padding: 5rem 0 3rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 5;
}

footer.site-footer h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1.0fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-links-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-links-list li i {
  color: var(--primary);
  width: 18px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: var(--transition-normal);
  text-decoration: none;
}

.social-circle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* Floating AI Chatbot Widget */
.chatbot-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(16, 30, 54, 0.15);
  transition: var(--transition-normal);
}

.chatbot-toggle:hover {
  transform: scale(1.05) rotate(5deg);
  background: var(--primary-light);
  box-shadow: 0 8px 25px rgba(16, 30, 54, 0.25);
}

.chatbot-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.chatbot-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  height: 460px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chatbot-panel.open {
  transform: scale(1);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  background: var(--primary);
  color: white;
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-header-info h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
}

.chatbot-header-info p {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.chatbot-body {
  flex-grow: 1;
  padding: 1.1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-offset);
}

.chat-message {
  max-width: 82%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.45;
  word-wrap: break-word;
}

.chat-message.bot {
  background: white;
  color: var(--text);
  align-self: flex-start;
  border-top-left-radius: 2px;
  border: 1px solid var(--border);
}

.chat-message.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-top-right-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.chatbot-input-area {
  padding: 0.7rem 1.1rem;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chatbot-input-area input {
  flex-grow: 1;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0.4rem 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.chatbot-input-area input:focus {
  outline: none;
}

.chatbot-send-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.chatbot-send-btn:hover {
  color: var(--primary-light);
  transform: scale(1.05);
}

/* Configdrawer Panel (Customizer Panel Admin - Light Mode) */
.customizer-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: white;
  border-left: 1px solid var(--border);
  box-shadow: -5px 0 25px rgba(16, 30, 54, 0.08);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.customizer-drawer.open {
  right: 0;
}

.customizer-header {
  background: var(--bg-offset);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.customizer-header h3 {
  color: var(--primary);
  font-size: 1.2rem;
}

.close-customizer-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.customizer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.customizer-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.customizer-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  font-weight: 700;
}

.customizer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  background: var(--bg-offset);
}

.customizer-footer .btn {
  flex: 1;
  padding: 0.75rem 1rem;
}

.admin-trigger-floating {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  opacity: 0.5;
}

.admin-trigger-floating:hover {
  opacity: 1;
  color: var(--primary);
  border-color: var(--border-hover);
  transform: rotate(45deg);
  box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes bouncePin {
  0%, 100% {
    transform: translate(-50%, -100%);
  }
  50% {
    transform: translate(-50%, -108%);
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  section {
    padding: 6rem 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-badge {
    margin-bottom: 1.5rem;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .bento-card-large {
    grid-column: span 1;
  }
  .bento-feature-card {
    min-height: auto;
    padding: 2.2rem;
  }
  .bento-card-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feature-row {
    flex-direction: column !important;
    gap: 2.5rem;
    padding: 2rem;
  }
  .feature-row.reverse {
    flex-direction: column !important;
  }
  .feature-row-image {
    height: 300px;
    width: 100%;
    order: 2;
  }
  .feature-row-text {
    order: 1;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .campuses-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .map-visual-container {
    height: 400px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .expansion-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  nav.main-nav {
    display: none; /* Collapsed */
  }
  .mobile-menu-toggle {
    display: block;
  }
  .header-actions {
    display: none;
  }
  .sep-card {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  .sep-seal-visual {
    width: 75px;
    height: 75px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .chatbot-panel {
    width: calc(100vw - 4rem);
    height: 400px;
  }
  .customizer-drawer {
    width: 100vw;
    right: -101vw;
  }
}

/* Floating Lateral Decorations */
.floating-decor-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Sits behind content, in front of canvas */
  overflow: visible;
}

.floating-decor {
  position: absolute;
  width: 130px;
  height: 130px;
  pointer-events: none;
  opacity: 0.85;
  user-select: none;
  transition: transform 0.8s ease, opacity 0.5s ease;
  filter: drop-shadow(0 12px 28px rgba(16, 30, 54, 0.12));
}

.floating-decor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Float animations and positions */
.floating-decor.float-left-1 {
  left: -130px;
  top: 15%;
  animation: floatSlowY 10s ease-in-out infinite;
}
.floating-decor.float-right-1 {
  right: -130px;
  top: 40%;
  animation: floatSlowYReverse 12s ease-in-out infinite;
}
.floating-decor.float-left-2 {
  left: -140px;
  top: 25%;
  animation: floatMediumY 8s ease-in-out infinite;
}
.floating-decor.float-right-2 {
  right: -140px;
  top: 65%;
  animation: floatMediumYReverse 9s ease-in-out infinite;
}

@keyframes floatSlowY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(3deg); }
}
@keyframes floatSlowYReverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(22px) rotate(-3deg); }
}
@keyframes floatMediumY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-2deg); }
}
@keyframes floatMediumYReverse {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(16px) rotate(-2deg); }
}

/* 100% Responsive: Hide lateral floating objects on screens under 1400px */
@media (max-width: 1400px) {
  .floating-decor {
    display: none;
  }
}

/* Campus Gallery Comparison */
.gallery-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .gallery-comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.gallery-card {
  overflow: hidden;
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
  border: 1px solid var(--border, rgba(226, 232, 240, 0.8));
  background: var(--bg-card, rgba(255, 255, 255, 0.7));
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gallery-image-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #f1f5f9;
}

@media (max-width: 480px) {
  .gallery-image-wrapper {
    height: 240px;
  }
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.04);
}

.gallery-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.badge-now {
  background: var(--primary, #0f172a);
}

.badge-project {
  background: #10b981; /* Premium green accent for the project render */
}

.gallery-info {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

/* ================= NEWS & NEWSLETTER SECTION ================= */
.news-section {
  padding: 6rem 0;
  position: relative;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
}

.section-header-row .section-title {
  margin-bottom: 0;
}

.btn-admin-news {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: rgba(16, 30, 54, 0.04);
  border: 1px solid var(--border);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-admin-news:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46, 125, 50, 0.3); /* Subtle green glow */
}

.news-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--primary);
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img {
  transform: scale(1.05);
}

.news-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.badge-tech { background: #3b82f6; }
.badge-academic { background: #8b5cf6; }
.badge-achievements { background: #10b981; }
.badge-events { background: #f59e0b; }
.badge-philosophy { background: #ec4899; }

.news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.news-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-color);
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}

.news-read-more-btn {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap 0.2s ease;
}

.news-read-more-btn:hover {
  gap: 0.4rem;
  color: #2e7d32;
}

/* Reader and Admin Modals */
#news-reader-modal,
#news-admin-modal {
  width: 90%;
  max-width: 600px;
  right: -650px;
  box-shadow: -10px 0 40px rgba(16, 30, 54, 0.15);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

#news-reader-modal.open,
#news-admin-modal.open {
  right: 0;
}

.admin-news-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.admin-news-table th,
.admin-news-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.admin-news-table th {
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-offset);
}

.admin-news-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-admin-action {
  background: none;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: transform 0.2s ease;
}

.btn-admin-action.edit { color: #3b82f6; }
.btn-admin-action.delete { color: #ef4444; }

.btn-admin-action:hover {
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .btn-admin-news {
    width: 100%;
    justify-content: center;
  }
}

/* General Map Section styling */
.general-map-wrapper {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-card) !important;
  border: 1px solid rgba(16, 30, 54, 0.12) !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
}

.general-map-img {
  width: 100%;
  height: auto;
  max-width: 850px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.general-map-img:hover {
  transform: scale(1.02);
}
