/* ==========================================================================
   1. IMPORTS & CSS VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary-deep: #1E3A8A;
  --primary-light: #3B82F6;
  --primary-bg: #EFF6FF;
  --accent-warm: #F59E0B;
  --accent-light: #FEF3C7;
  --accent-hover: #D97706;

  --text-dark: #1F2937;
  --text-medium: #4B5563;
  --text-light: #9CA3AF;
  --bg-main: #FAFAFA;
  --bg-card: #FFFFFF;
  --border-color: #E5E7EB;

  /* Fonts */
  --font-heading: 'Quicksand', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --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 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 25px -5px rgba(30, 58, 138, 0.08), 0 10px 10px -5px rgba(30, 58, 138, 0.04);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Offsets the height of your sticky header */
}

/* Force hardware acceleration on section anchors to stop scroll lag */
#programs,
#admissions,
#gallery,
#events,
#about {
  will-change: transform;
  transform: translateZ(0);
}

/* ==========================================================================
   2. BASE STYLES & RESETS
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

body.preloader-hidden {
  overflow: visible;
}

body.preloader-active {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1.25;
}

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

ul {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* ==========================================================================
   3. TYPOGRAPHY & UTILITIES
   ========================================================================== */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-deep);
}

.text-accent {
  color: var(--accent-warm);
}

.text-muted {
  color: var(--text-medium);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  display: block;
}

.section-title::after {
  content: '';
  display: block;
  width: 0;
  height: 4px;
  background-color: var(--accent-warm);
  border-radius: var(--radius-full);
  margin: 0.5rem auto 0 auto;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.section-title.show-anim::after {
  width: 80px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-deep);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.3);
}

.btn-accent {
  background-color: var(--accent-warm);
  color: var(--primary-deep);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary-deep);
  background-color: transparent;
  color: var(--primary-deep);
}

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

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.top-bar {
  background-color: var(--primary-deep);
  color: white;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 1.5rem;
}

.top-bar-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-socials {
  display: flex;
  gap: 1rem;
}

.top-bar-socials a:hover {
  color: var(--accent-warm);
  transform: scale(1.1);
}

header {
  background-color: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  transform: translateY(0);
}

header.header-hidden {
  transform: translateY(-100%);
}

header.scrolled {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 96%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 0;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

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

.logo-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-deep);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-menu-buttons {
  display: none;
}

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

.nav-link {
  position: relative;
  color: var(--primary-deep);
  font-weight: 600;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-warm);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--bg-card);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: var(--radius-md);
  top: 100%;
  left: 0;
  padding: 0.5rem 0;
}

.dropdown-content a {
  color: var(--text-dark);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: var(--bg-alt);
  color: var(--primary-deep);
}

@media (min-width: 1101px) {
  .nav-dropdown:hover .dropdown-content,
  .nav-dropdown.open .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
  }
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-deep);
  border-radius: var(--radius-full);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  height: 700px;
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0.15) 100%);
  z-index: 2;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: var(--transition-normal);
}

.hero-bg-1 {
  object-position: center 30%;
}

.hero-bg-2 {
  object-position: center 20%;
}

.hero-bg-3 {
  object-position: center 40%;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: white;
  max-width: 650px;
  padding: 0 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: var(--shadow-sm);
  animation: fadeInUp 0.8s ease forwards;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: var(--shadow-sm);
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  animation-fill-mode: both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  animation-fill-mode: both;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: white;
  border-radius: var(--radius-full);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-prev:hover,
.slider-next:hover {
  background-color: var(--accent-warm);
  color: var(--primary-deep);
}

.slider-prev {
  left: 2rem;
}

.slider-next {
  right: 2rem;
}

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--accent-warm);
  width: 28px;
}

/* ==========================================================================
   6. QUICK LINKS SECTION
   ========================================================================== */
.quick-links-section {
  background-color: var(--bg-card);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}

.quick-links-label {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.quick-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border: 1.5px solid var(--primary-deep);
  border-radius: var(--radius-full);
  color: var(--primary-deep);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.quick-link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--primary-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: var(--radius-full);
}

.quick-link-btn:hover::before {
  transform: scaleX(1);
}

.quick-link-btn:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.2);
}

.quick-link-btn svg {
  transition: transform var(--transition-fast);
}

.quick-link-btn:hover svg {
  transform: scale(1.2) rotate(-5deg);
}

/* ==========================================================================
   7. ABOUT & PHILOSOPHY
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.about-image-wrapper {
  position: relative;
}

.about-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  z-index: 2;
  position: relative;
}

.about-shape {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 150px;
  height: 150px;
  background-color: var(--accent-warm);
  border-radius: var(--radius-md);
  z-index: 1;
  opacity: 0.3;
}

.about-features {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.about-feat-icon {
  background-color: var(--accent-light);
  color: var(--accent-warm);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feat-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.about-feat-text p {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* ==========================================================================
   8. PROGRAMS SECTION
   ========================================================================== */
.programs-bg {
  background-color: var(--primary-bg);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.program-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
}

.program-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

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

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

.program-age {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-warm);
  color: var(--primary-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

.program-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.program-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.program-info p {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.program-details {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-medium);
}

.program-details span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   9. STATS SECTION
   ========================================================================== */
.stats {
  background-color: var(--primary-deep);
  color: white;
  padding: 5rem 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--accent-warm);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ==========================================================================
   10. ADMISSIONS SECTION
   ========================================================================== */
.admissions-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.admissions-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.admissions-info p {
  color: var(--text-medium);
  margin-bottom: 2rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step-item {
  display: flex;
  gap: 1rem;
}

.step-num {
  background-color: var(--primary-bg);
  color: var(--primary-deep);
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.step-text p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin: 0;
}

.inquiry-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}

.form-header {
  margin-bottom: 2rem;
}

.form-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2rem;
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
  transform: translateY(-50%);
}

.progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-deep);
  z-index: 1;
  transform: translateY(-50%);
  transition: width var(--transition-normal);
}

.progress-step {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
  transition: all var(--transition-normal);
  color: var(--text-medium);
}

.progress-step.active {
  border-color: var(--primary-deep);
  background-color: var(--primary-deep);
  color: white;
}

.progress-step.completed {
  border-color: var(--primary-deep);
  background-color: var(--accent-warm);
  color: var(--primary-deep);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  background-color: var(--bg-main);
}

.form-control:focus {
  border-color: var(--primary-deep);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.form-success-msg {
  text-align: center;
  padding: 2rem 0;
}

.form-success-msg svg {
  width: 60px;
  height: 60px;
  color: var(--accent-warm);
  margin-bottom: 1rem;
}

/* ==========================================================================
   11. GALLERY SECTION
   ========================================================================== */
.gallery-bg {
  background-color: var(--primary-bg);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background-color: var(--bg-card);
  color: var(--text-dark);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 250px;
  transition: transform var(--transition-normal);
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(30, 58, 138, 0.9), rgba(30, 58, 138, 0.3));
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
}

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

.gallery-overlay h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  font-size: 0.85rem;
  opacity: 0.9;
}

.gallery-item.gallery-hidden {
  display: none !important;
}

.gallery-cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.gallery-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2.2rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
}

.gallery-cta-btn svg {
  transition: transform 0.3s ease;
}

.gallery-cta-btn:hover svg {
  transform: translateY(3px);
}

.gallery-cta-btn.expanded svg {
  transform: rotate(180deg);
}

/* ==========================================================================
   12. MISSION SECTION
   ========================================================================== */
.mission-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.mission-header {
  text-align: center;
  margin-bottom: 3rem;
}

.mission-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.program-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.program-card.program-hidden {
  display: none !important;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
}

.mission-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
}

.mission-card-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mission-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--bg-card);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.mission-card-img svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition-normal);
}

.mission-card:hover .mission-card-img svg {
  transform: scale(1.15) rotate(-5deg);
}

.mission-card-body {
  padding: 1.75rem 2rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mission-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--primary-deep);
}

.mission-card-body p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.mission-card-btn {
  align-self: flex-start;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   13. CALENDAR & SOCIAL FEED SECTION
   ========================================================================== */
.calendar-social-bg {
  background-color: var(--primary-bg);
}

.calendar-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin-top: 1rem;
}

.events-calendar,
.social-feed-column,
.parent-reviews-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-height: 535px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.parent-reviews-column {
  padding: 0;
}

.parent-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary-deep), #3155a8);
  color: white;
}

.parent-reviews-header h3 {
  color: white;
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.parent-reviews-eyebrow {
  display: block;
  color: var(--accent-warm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.parent-reviews-icon {
  font-size: 1.8rem;
}

.parent-review-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 0;
  max-height: 440px;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.parent-review-card {
  padding: 0.25rem 0 1rem;
  border-bottom: 1px solid var(--border-color);
}

.parent-review-card:last-child {
  border-bottom: 0;
}

.parent-review-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.parent-review-emoji {
  font-size: 1.7rem;
}

.parent-review-stars {
  color: var(--accent-warm);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.parent-review-feedback {
  display: -webkit-box;
  margin: 0.35rem 0;
  overflow: hidden;
  color: var(--text-medium);
  font-size: 0.86rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.parent-review-author {
  color: var(--primary-deep);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
}

.parent-review-empty {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 1.5rem;
  color: var(--text-medium);
  font-size: 0.9rem;
  text-align: center;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  background: var(--primary-deep);
  color: white;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.calendar-header h3 {
  color: white;
  font-size: 1.2rem;
  margin: 0;
}

.view-all-link {
  color: var(--accent-warm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.view-all-link:hover {
  color: white;
  letter-spacing: 0.5px;
}

.event-list {
  flex: 1;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-fast);
}

.event-item:last-child {
  border-bottom: none;
}

.event-item:hover {
  background-color: var(--primary-bg);
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 56px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 1.5px solid var(--accent-warm);
}

.event-month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-warm);
  font-family: var(--font-heading);
}

.event-day {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-deep);
  font-family: var(--font-heading);
  line-height: 1;
}

.event-info h4 {
  font-size: 1rem;
  color: var(--primary-deep);
  margin-bottom: 0.25rem;
}

.event-info p {
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.event-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--primary-bg);
  color: var(--primary-deep);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.events-headline-popup {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1100;
  width: min(390px, calc(100vw - 2rem));
  padding: 1.55rem 1.65rem 1.6rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.18), transparent 42%),
    rgba(22, 47, 120, 0.28);
  color: white;
  border: 1px solid rgba(245, 158, 11, 0.8);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.28), 0 0 0 5px rgba(245, 158, 11, 0.06);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  cursor: grab;
  touch-action: none;
  animation: eventsHeadlineIn 0.45s ease both;
}

.events-headline-popup.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.events-headline-toggle {
  display: none;
}

.events-headline-popup.is-collapsed {
  width: 82px;
  height: 82px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  animation: eventsHeadlineCollapse 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.events-headline-popup.is-collapsed::before {
  top: -36px;
  right: -36px;
  width: 150px;
  height: 150px;
  opacity: 0.3;
  animation: eventsLogoOrbit 5s linear infinite;
}

.events-headline-popup.is-collapsed::after {
  right: 15px;
  bottom: 10px;
  width: 50px;
  border-radius: 50%;
  animation: eventsLogoPulse 1.8s ease-in-out infinite;
}

.events-headline-popup.is-collapsed .events-headline-toggle {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.8rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.events-headline-popup.is-collapsed .events-headline-toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: eventsLogoFloat 2.4s ease-in-out infinite;
}

.events-headline-popup.is-collapsed > :not(.events-headline-toggle) {
  display: none;
}

@keyframes eventsHeadlineCollapse {
  from {
    border-radius: 22px;
    opacity: 0.7;
    transform: scale(0.8) rotate(-8deg);
  }
  to {
    border-radius: 50%;
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes eventsLogoFloat {
  0%, 100% {
    transform: rotate(-3deg) scale(0.94);
  }
  50% {
    transform: rotate(3deg) scale(1);
  }
}

@keyframes eventsLogoOrbit {
  to {
    transform: rotate(372deg);
  }
}

@keyframes eventsLogoPulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.2);
  }
}

.events-headline-popup::before {
  position: absolute;
  top: -42px;
  right: -46px;
  width: 235px;
  height: 235px;
  background: url('../images/logo-white-wreath.svg') center / contain no-repeat;
  content: '';
  opacity: 0.22;
  transform: rotate(12deg);
  pointer-events: none;
}

.events-headline-popup::after {
  position: absolute;
  right: 1.2rem;
  bottom: 0.8rem;
  width: 115px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-warm));
  content: '';
  opacity: 0.8;
}

.events-headline-popup[hidden] {
  display: none;
}

.events-headline-popup h2 {
  position: relative;
  z-index: 1;
  margin: 0.3rem 2rem 1.1rem 0;
  color: white;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.events-headline-eyebrow {
  position: relative;
  z-index: 1;
  color: var(--accent-warm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.events-headline-close {
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  right: 0.7rem;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.events-headline-close:hover {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  color: var(--primary-deep);
  transform: rotate(90deg);
}

.events-headline-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.events-headline-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.62rem 0.8rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 3px solid var(--accent-warm);
  border-radius: 0 10px 10px 0;
  backdrop-filter: blur(4px);
}

.events-headline-item strong {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.events-headline-item span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.79rem;
}

.events-headline-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 1.15rem;
  color: var(--accent-warm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.events-headline-link:hover {
  color: white;
  transform: translateX(3px);
}

@keyframes eventsHeadlineIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.social-feed-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1 1 auto;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-deep);
  font-size: 1rem;
}

.social-feed-brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instagram-follow-button {
  flex: 0 0 auto;
  min-width: 88px;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.social-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  flex: 1;
}

.social-photo-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.social-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.social-photo-item:hover img {
  transform: scale(1.08);
}

.social-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(30, 58, 138, 0.85), transparent);
  padding: 0.5rem;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.social-photo-overlay span {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.social-photo-item:hover .social-photo-overlay {
  transform: translateY(0);
}

.social-feed-cta {
  padding: 1rem 1.5rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-medium);
  text-align: center;
}

.social-feed-cta strong {
  color: var(--primary-deep);
}

/* ==========================================================================
   14. TESTIMONIALS SECTION
   ========================================================================== */
.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonial-slider-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  background-color: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  text-align: center;
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.testimonial-rating {
  color: var(--accent-warm);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-medium);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--accent-light);
}

.testimonial-user-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
}

.testimonial-user-info p {
  font-size: 0.85rem;
  color: var(--text-medium);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.testimonial-dot.active {
  background-color: var(--primary-deep);
  transform: scale(1.2);
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding: 5rem 0 2rem 0;
  font-size: 0.95rem;
}

footer h3,
footer h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.footer-logo img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.footer-logo .logo-title {
  color: white;
}

.footer-logo .logo-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.footer-desc {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.footer-socials a:hover {
  background-color: var(--accent-warm);
  color: var(--primary-deep);
  transform: translateY(-3px);
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--accent-warm);
  margin-top: 0.2rem;
}

.footer-newsletter p {
  margin-bottom: 1.2rem;
}

.newsletter-form {
  display: flex;
  border-radius: var(--radius-full);
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem;
}

.newsletter-form input {
  background-color: transparent;
  color: white;
  padding: 0.6rem 1rem;
  flex-grow: 1;
}

.newsletter-form button {
  background-color: var(--accent-warm);
  color: var(--primary-deep);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--accent-hover);
  color: white;
}

.map-container {
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

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

/* ==========================================================================
   16. PRELOADER & LIGHTBOX MODAL
   ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-card);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.preloader-logo {
  animation: pulseLogo 2s infinite;
}

.loading-bar-container {
  width: 250px;
  height: 4px;
  background-color: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--accent-warm);
  border-radius: var(--radius-full);
  animation: loadingBarAnim 1.5s ease-in-out infinite;
}

.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-content {
  max-width: 85%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-premium);
  object-fit: contain;
  animation: fadeIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #ffffff;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--accent-warm);
}

.lightbox-nav {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.lightbox-nav button {
  background: var(--accent-warm);
  color: var(--primary-deep);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav button:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
}

/* ==========================================================================
   17. ANIMATIONS & TRANSITIONS
   ========================================================================== */
.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.slide-in-left.show-anim,
.slide-in-right.show-anim,
.animate-on-scroll.show-anim {
  opacity: 1;
  transform: translate(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes pulseLogo {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes loadingBarAnim {
  0% {
    left: -100%;
    width: 100%;
  }

  100% {
    left: 100%;
    width: 100%;
  }
}

/* Lock body scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ==========================================================================
   18. CONSOLIDATED RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Laptop / Desktop Scaled Viewports */
@media (max-width: 1300px) {
  .logo img {
    width: 45px;
    height: 45px;
  }

  .logo-title {
    font-size: 1.05rem;
  }

  .logo-subtitle {
    font-size: 0.75rem;
  }

  .nav-menu {
    gap: 1.25rem;
  }
}

/* Tablet Landscape & Mobile Drawer Trigger */
@media (max-width: 1100px) {

  .header-buttons,
  .nav-actions,
  .top-bar {
    display: none;
  }

  .mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 1rem;
  }

  .mobile-menu-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 65px);
    background-color: var(--bg-card);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }

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

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
  }

  /* Mobile Campuses Dropdown: Click-activated floating card */
  .nav-dropdown {
    position: relative;
    display: inline-block;
    width: auto;
  }

  .nav-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 175px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    z-index: 1000;
    padding: 0.5rem 0;
    overflow: hidden;
  }

  .nav-dropdown .dropdown-content a {
    color: var(--text-dark);
    padding: 10px 18px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .nav-dropdown .dropdown-content a:hover {
    background-color: var(--bg-alt);
    color: var(--primary-deep);
  }

  /* Do NOT open on hover in mobile menu; ONLY open on click */
  .nav-dropdown:hover .dropdown-content {
    display: none;
  }

  .nav-dropdown.open .dropdown-content,
  .nav-dropdown.open:hover .dropdown-content {
    display: block !important;
    animation: fadeIn 0.25s ease;
  }
}

/* Tablet Portrait */
@media (max-width: 1024px) {

  .about-grid,
  .admissions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }

  .programs-grid,
  .footer-grid,
  .stats-grid,
  .mission-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

}

@media (max-width: 900px) {
  .calendar-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .calendar-social-grid {
    grid-template-columns: 1fr;
  }

  .events-headline-popup {
    right: 0.75rem;
    bottom: 0.75rem;
    width: min(360px, calc(100vw - 1.5rem));
  }

  /* Prevent hero slider dots from overlapping with buttons */
  .hero {
    height: 560px;
    position: relative;
    overflow: hidden;
  }

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

  .hero-slide {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }

  .hero-bg {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .hero-content {
    padding: 2.5rem 1.5rem 3.25rem 1.5rem;
    justify-content: flex-end;
    height: 100%;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 0;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.25rem;
  }

  .slider-prev,
  .slider-next {
    top: 40%;
    width: 40px;
    height: 40px;
  }

  .slider-prev {
    left: 0.75rem;
  }

  .slider-next {
    right: 0.75rem;
  }

  .slider-dots {
    bottom: 1.25rem;
    z-index: 10;
  }

  .programs-grid,
  .gallery-grid,
  .mission-cards-grid {
    grid-template-columns: 1fr;
  }

  .social-feed-header {
    padding: 1rem;
  }

  .social-feed-brand {
    font-size: 0.85rem;
  }

  .instagram-follow-button {
    min-width: 84px;
    padding-inline: 0.65rem;
  }

  .gallery-filters {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .section {
    padding: 3.5rem 1rem;
  }

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

/* Small Mobile Screens */
@media (max-width: 480px) {
  .logo-title {
    font-size: 0.95rem;
  }

  .logo-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }

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

  .inquiry-card {
    padding: 1.5rem;
  }

  .quick-links-grid {
    gap: 0.5rem;
  }

  .quick-link-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
  }
}

.events-announcement-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: announcementBackdropIn 0.3s ease both;
}

.events-announcement-modal[hidden] {
  display: none;
}

.events-announcement-card {
  position: relative;
  width: min(480px, 100%);
  overflow: hidden;
  padding: 2rem;
  color: white;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.16), transparent 42%),
    rgba(30, 58, 138, 0.28);
  border: 1px solid rgba(245, 158, 11, 0.8);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  animation: announcementCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.events-announcement-card::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 390px;
  height: 390px;
  background: url('../images/logo.svg') center / contain no-repeat;
  content: '';
  opacity: 0.14;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.events-announcement-card::after {
  position: absolute;
  right: 2rem;
  bottom: 1rem;
  width: 105px;
  height: 3px;
  background: var(--accent-warm);
  border-radius: var(--radius-full);
  content: '';
  opacity: 0.8;
}

.events-announcement-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.events-announcement-close:hover {
  color: var(--primary-deep);
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  transform: rotate(90deg);
}

.events-announcement-eyebrow,
.events-announcement-card h2,
.events-announcement-list,
.events-announcement-link {
  position: relative;
  z-index: 1;
}

.events-announcement-eyebrow {
  display: block;
  color: var(--accent-warm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.events-announcement-card h2 {
  max-width: 340px;
  margin: 0.35rem 2rem 1.25rem 0;
  color: white;
  font-size: 1.75rem;
  line-height: 1.2;
}

.events-announcement-list {
  display: grid;
  gap: 0.7rem;
}

.events-announcement-list .events-headline-item {
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 3px solid var(--accent-warm);
  border-radius: 0 12px 12px 0;
}

.events-announcement-list .events-headline-item strong {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.events-announcement-list .events-headline-item span {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
}

.events-announcement-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: 1.35rem;
  color: var(--accent-warm);
  font-family: var(--font-heading);
  font-weight: 700;
}

.events-announcement-link:hover {
  color: white;
  transform: translateX(3px);
}

.events-announcement-cancel {
  display: none;
}

@keyframes announcementBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes announcementCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  .events-announcement-modal {
    place-items: center;
    padding: 1rem;
  }

  .events-announcement-card {
    width: min(350px, 100%);
    padding: 1.35rem;
    border-radius: 20px;
  }

  .events-announcement-card::before {
    width: 290px;
    height: 290px;
  }

  .events-announcement-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }

  .events-announcement-card h2 {
    max-width: 260px;
    margin-bottom: 1rem;
    font-size: 1.3rem;
  }

  .events-announcement-list .events-headline-item {
    padding: 0.65rem 0.75rem;
  }

  .events-announcement-link {
    margin-top: 1rem;
    font-size: 0.85rem;
  }

  .events-announcement-cancel {
    display: block;
    width: 100%;
    margin-top: 0.9rem;
    padding: 0.55rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
  }

  .events-announcement-cancel:hover {
    color: var(--primary-deep);
    background: white;
  }
}

.admissions-full-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.professional-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.08);
  border-top: 4px solid var(--primary-deep);
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-deep);
  border-bottom: 2px solid var(--accent-warm);
  padding-bottom: 0.5rem;
  margin: 2rem 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.professional-grid-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.professional-grid-form .half-width {
  flex: 1 1 calc(50% - 0.75rem);
}

.professional-grid-form .full-width {
  flex: 1 1 100%;
}

.row-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.signature-input {
  font-family: 'Brush Script MT', cursive, sans-serif;
  font-size: 1.5rem;
  padding: 1rem;
  border: 2px dashed #ccc;
  background: #fdfdfd;
}

.submit-btn-large {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.2rem;
  margin-top: 2rem;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .professional-grid-form .half-width {
    flex: 1 1 100%;
  }

  .professional-form-card {
    padding: 1.5rem;
  }
}


/* ==========================================================================
   EXTENDED RESPONSIVE FIXES — All Devices
   ========================================================================== */

/* --- Tablet (769px – 1023px) — fill the gaps ----------------------------- */
@media (max-width: 1023px) and (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Mobile (max 768px) additions --------------------------------------- */
@media (max-width: 768px) {
    #about .about-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 2.5rem;
    }

    #about .about-grid > * {
        min-width: 0;
    }

    #about .about-image-wrapper,
    #about .about-img {
        width: 100%;
    }

    /* Footer map height on mobile */
    .map-container {
        height: 180px;
    }

    /* Stats — shrink big numbers */
    .stat-item h3 {
        font-size: 2.2rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    /* Footer grid already handled at 480px, but map column should still work */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* About features grid inside about-grid */
    .about-features {
        grid-template-columns: 1fr;
    }

    /* Prevent horizontal overflow site-wide */
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Section headings scale down */
    .section-title {
        font-size: 1.75rem;
    }

    /* Programs / gallery grid single column (already set at 768px but ensure gallery too) */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Small Mobile (max 480px) additions ---------------------------------- */
@media (max-width: 480px) {
    /* Stat numbers smaller */
    .stat-item h3 {
        font-size: 1.8rem;
    }

    /* Hero height for small mobile */
    .hero {
        height: 520px;
    }

    .hero-content {
        padding: 2rem 1rem 2.85rem 1rem;
        justify-content: flex-end;
        height: 100%;
    }

    .hero h1 {
        font-size: 1.65rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.88rem;
        margin-bottom: 1.25rem;
        line-height: 1.45;
    }

    .hero-ctas {
        gap: 0.65rem;
    }

    .slider-prev,
    .slider-next {
        top: 38%;
        width: 36px;
        height: 36px;
    }

    .slider-prev {
        left: 0.5rem;
    }

    .slider-next {
        right: 0.5rem;
    }

    .slider-dots {
        bottom: 1rem;
    }

    /* Section title */
    .section-title {
        font-size: 1.5rem;
    }

    /* Buttons full width in hero */
    .btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.2rem;
    }

    /* Top bar info wrap on very small screens (when visible) */
    .top-bar-info {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Footer bottom text */
    .footer-bottom p {
        font-size: 0.8rem;
        text-align: center;
    }
}

/* --- Admissions paper form — mobile fix ---------------------------------- */
@media (max-width: 640px) {
    .pf-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .pf-logo-text h1 {
        font-size: 1.4rem;
    }

    .pf-logo-text h2 {
        font-size: 1rem;
    }

    .pf-sub-header {
        flex-direction: column;
        gap: 1rem;
    }

    .pf-photo-box {
        width: 80px;
        height: 96px;
    }

    .pf-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .pf-label {
        width: 100% !important;
        margin-bottom: 0.3rem;
    }

    .pf-input {
        width: 100%;
    }

    .pf-body {
        padding: 1rem;
    }

    .pf-signature-input {
        width: 100% !important;
    }

    .pf-signature-label {
        margin-right: 0;
        align-self: center;
    }

    .pf-signature-area {
        align-items: center;
        margin-top: 2rem;
    }

    .pf-checkbox-row {
        flex-wrap: wrap;
        font-size: 0.95rem;
    }
}

.footer-dev-credit {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.01em;
}

.footer-dev-credit a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
}

.footer-dev-credit a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
  transition: width 0.25s ease;
}

.footer-dev-credit a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.footer-dev-credit a:hover::after {
  width: 100%;
}
