/* CSS Design System - UCHALKOOD SCHOOL */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Color variables based on logo and prospectus colors */
:root {
  --primary: #0a1d37;        /* Premium Deep Navy Blue */
  --primary-light: #183153;  /* Lighter Navy Blue */
  --accent: #ea580c;         /* Vibrant Orange matching Logo */
  --accent-light: #fff7ed;   /* Soft Orange Tint */
  --gold: #facc15;           /* Warm Golden Yellow */
  --gold-light: #fef9c3;     /* Soft Yellow Tint */
  --text-dark: #0a1d37;      /* Custom Dark Navy font for text matching theme */
  --text-muted: #4e617d;     /* Lighter navy-grey for muted text */
  --bg-light: #fffbeb;       /* Soft Grid Warm Yellow background */
  --bg-white: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --border: rgba(234, 88, 12, 0.15);
  
  --font-body: 'Fredoka', 'Inter', sans-serif;
  --font-heading: 'Fredoka', 'Outfit', sans-serif;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 16px rgba(10, 29, 55, 0.06);
  --shadow-lg: 0 20px 40px rgba(10, 29, 55, 0.12);
  --shadow-accent: 0 10px 25px rgba(70, 181, 209, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 90px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: #fffbeb;
  background-image: 
    linear-gradient(rgba(234, 88, 12, 0.05) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(234, 88, 12, 0.05) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}

.section-bg-white {
  background-color: transparent;
}

.section-bg-gradient {
  background: transparent;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-subtitle {
  color: var(--accent);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ea580c 0%, var(--gold) 100%);
  margin: 12px auto 0;
  border-radius: var(--radius-full);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background-color: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

.btn-outline-blue {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-blue:hover {
  background-color: rgba(10, 53, 124, 0.05);
  transform: translateY(-2px);
}

.btn-outline-orange {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-orange:hover {
  background-color: rgba(249, 115, 22, 0.05);
  transform: translateY(-2px);
}

/* Pre-header */
.pre-header {
  background-color: var(--primary);
  color: var(--bg-white);
  font-size: 0.85rem;
  padding: 8px 0;
  font-weight: 500;
}

.pre-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pre-header-contact {
  display: flex;
  gap: 20px;
}

.pre-header-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pre-header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.pre-header-actions a:hover {
  color: var(--gold);
}

/* Main Header */
.main-header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.main-header.scrolled {
  height: 80px;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Logo Design */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon-svg {
  width: 50px;
  height: 50px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--primary);
  line-height: 1.0;
  text-transform: none;
}

.logo-subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-transform: none;
  margin-top: 2px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  padding: 8px 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--accent);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-white);
  min-width: 220px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.dropdown-link:hover {
  background-color: rgba(249, 115, 22, 0.08);
  color: var(--accent);
  padding-left: 20px;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  position: absolute;
  transition: var(--transition);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* Premium Hero Section */
.hero {
  background: transparent;
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  bottom: -200px;
  left: -200px;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-slide {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  position: relative;
  width: 100%;
}

.hero-slide.active {
  display: grid;
  animation: slideFadeIn 0.8s ease-in-out forwards;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-slider-dots {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.slider-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(10, 53, 124, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active, .slider-dot:hover {
  background-color: var(--accent);
  transform: scale(1.2);
}

.hero-content {
  max-width: 650px;
}

.hero-tag {
  background-color: var(--accent-light);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(90deg, #ea580c 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-img-wrapper {
  border-radius: 50% 50% 40% 60% / 55% 45% 55% 45%;
  overflow: hidden;
  border: 8px solid var(--bg-white);
  box-shadow: var(--shadow-lg);
  animation: morph-blob 8s ease-in-out infinite;
}

.hero-img-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

@keyframes morph-blob {
  0% { border-radius: 50% 50% 40% 60% / 55% 45% 55% 45%; }
  50% { border-radius: 40% 60% 50% 50% / 45% 55% 45% 55%; }
  100% { border-radius: 50% 50% 40% 60% / 55% 45% 55% 45%; }
}

.hero-badge {
  position: absolute;
  background-color: var(--bg-white);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  bottom: 30px;
  left: -20px;
  animation: float-badge 4s ease-in-out infinite;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-badge-icon {
  width: 44px;
  height: 44px;
  background-color: var(--gold-light);
  color: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.hero-badge-text h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.hero-badge-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Feature/Why Choose Us Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 0;
  background-color: var(--accent);
  left: 0;
  top: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
  background-color: var(--accent-light);
}

.feature-card:hover .feature-icon-wrapper svg {
  color: var(--accent);
  transform: scale(1.1);
}

.feature-card svg {
  color: var(--primary);
  width: 32px;
  height: 32px;
  transition: var(--transition);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-desc {
  color: var(--text-muted);
}

/* Programs Layout styling */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.program-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.program-card:hover .program-image img {
  transform: scale(1.05);
}

.program-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bg-white);
}

.program-badge-pre { background-color: var(--primary); }
.program-badge-nur { background-color: var(--primary-light); }
.program-badge-jr { background-color: var(--accent); }
.program-badge-sr { background-color: var(--gold); color: var(--text-dark); }

.program-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-age {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.program-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.program-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.program-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.program-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.program-link:hover {
  color: var(--accent);
}

/* Our Space (Grid Layout) */
.space-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.space-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.space-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.space-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 53, 124, 0.9) 0%, rgba(10, 53, 124, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: var(--transition);
}

.space-card:hover img {
  transform: scale(1.08);
}

.space-card:hover .space-overlay {
  background: linear-gradient(to top, rgba(249, 115, 22, 0.9) 0%, rgba(249, 115, 22, 0.3) 60%, transparent 100%);
}

.space-title {
  color: var(--bg-white);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.space-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Facility Styling */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.facility-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.facility-img {
  height: 240px;
  overflow: hidden;
}

.facility-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-info {
  padding: 30px;
}

.facility-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.facility-text {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.facility-list {
  list-style: none;
}

.facility-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.facility-list svg {
  color: var(--accent);
}

/* Call to Action Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--bg-white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(250, 204, 21, 0.15) 0%, transparent 40%);
}

.cta-title {
  color: var(--bg-white);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Premium Footer */
.main-footer {
  background-color: #0b1329;
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 30px;
  font-size: 0.95rem;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-column h3 {
  color: var(--bg-white);
  font-size: 1.2rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  position: absolute;
  bottom: 0;
  left: 0;
}

.footer-about .logo {
  margin-bottom: 20px;
}

.footer-about .logo-title {
  color: var(--bg-white);
}

.footer-about p {
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-contact-icon {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 3px;
}

.footer-contact-text h4 {
  color: var(--bg-white);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
  color: var(--bg-white);
}

/* Premium Admission Popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 19, 41, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: linear-gradient(135deg, var(--bg-white) 65%, #fff7ed 100%);
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 4px solid var(--primary);
}

.popup-overlay.show .popup-content {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(10, 53, 124, 0.08);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 10;
}

.popup-close:hover {
  background-color: var(--accent);
  color: var(--bg-white);
}

.popup-badge {
  background-color: var(--accent);
  color: var(--bg-white);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}

.popup-body {
  padding: 48px;
  text-align: center;
}

.popup-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--primary);
}

.popup-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.popup-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.popup-highlight-item {
  background-color: rgba(10, 53, 124, 0.04);
  padding: 16px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.popup-highlight-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.popup-highlight-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Scroll-to-Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  color: var(--bg-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 90;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--bg-white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(10, 53, 124, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* KG Students Page / Specific Program styling looks as per logo color */
.program-detail-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--bg-white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.program-detail-header h1 {
  color: var(--bg-white);
  font-size: 3rem;
  margin-bottom: 16px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumbs span {
  color: rgba(255, 255, 255, 0.5);
}

.program-section-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: start;
}

.program-detail-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: 30px;
  position: relative;
}

.program-detail-card.accent-theme {
  border-left: 8px solid var(--accent);
}

.program-detail-card.primary-theme {
  border-left: 8px solid var(--primary);
}

.program-detail-card.gold-theme {
  border-left: 8px solid var(--gold);
}

.program-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
  list-style: none;
}

.program-features-list li {
  background-color: var(--bg-light);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--primary);
}

.program-features-list.accent-theme li {
  background-color: var(--accent-light);
  color: #ea580c;
}

.program-features-list li svg {
  color: var(--accent);
}

/* Sidebar Info Card */
.sidebar-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: sticky;
  top: 110px;
}

.sidebar-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 10px;
}

.sidebar-info-list {
  list-style: none;
  margin-bottom: 30px;
}

.sidebar-info-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-light);
  font-size: 0.95rem;
}

.sidebar-info-list li span:first-child {
  font-weight: 600;
  color: var(--text-muted);
}

.sidebar-info-list li span:last-child {
  font-weight: 700;
  color: var(--primary);
}

/* Tab Layout for Our Space */
.space-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.space-tab-btn {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.space-tab-btn:hover, .space-tab-btn.active {
  background-color: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

.space-tab-content {
  display: none;
}

.space-tab-content.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.space-detail-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.space-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.space-detail-img {
  height: 200px;
  overflow: hidden;
}

.space-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space-detail-body {
  padding: 24px;
}

.space-detail-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.space-detail-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .features-grid, .facility-grid, .space-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .space-tab-content.active {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  .main-header.scrolled {
    height: 70px;
  }
  .pre-header {
    display: none; /* Hide top bar on mobile */
  }
  .hamburger {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    overflow-y: auto;
  }
  .nav-menu.open {
    left: 0;
  }
  .nav-item {
    width: 100%;
    text-align: center;
  }
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background-color: var(--bg-light);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease;
  }
  .nav-item.dropdown-open .dropdown-menu {
    max-height: 500px;
    padding: 10px 0;
  }
  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .hero-content {
    order: 1;
    max-width: 100%;
  }
  .hero-visual {
    order: 2;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero-img-wrapper img {
    height: 320px;
  }
  .hero-badge {
    bottom: 20px;
    left: -10px;
    padding: 10px 14px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .program-section-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-card {
    position: static;
    margin-top: 30px;
  }
}

@media (max-width: 580px) {
  .features-grid, .facility-grid, .programs-grid, .space-grid, .space-tab-content.active, .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cta-title {
    font-size: 2rem;
  }
  .popup-highlights {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .popup-body {
    padding: 30px 20px;
  }
  .popup-title {
    font-size: 1.6rem;
  }
}

/* Reveal on Scroll Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 95px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: #25d366;
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  z-index: 90;
  transition: var(--transition);
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

/* Hero Image Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
}

.carousel-slide.active {
  opacity: 1;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dots .dot.active, .carousel-dots .dot:hover {
  background-color: var(--accent);
  transform: scale(1.2);
}

/* Grid and Playful Scribble Theme Updates */
.grid-bg {
  background-color: #fffbeb !important; /* Soft grid background */
  background-image: 
    linear-gradient(rgba(249, 115, 22, 0.05) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.05) 1.5px, transparent 1.5px) !important;
  background-size: 28px 28px !important;
}

/* Playful hand-drawn organic scribble frame for images */
.scribble-img-wrapper {
  position: relative;
  border: 5px solid var(--accent) !important;
  border-radius: 255px 25px 225px 25px/25px 225px 25px 255px !important; /* Sketch/hand-drawn look */
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.scribble-img-wrapper:hover {
  transform: scale(1.02) rotate(1deg);
  border-color: var(--primary) !important;
}

.scribble-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Playful cards */
.playful-card {
  background-color: var(--bg-white);
  border: 4px solid var(--primary);
  border-radius: 30px 10px 30px 10px/10px 30px 10px 30px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.playful-card.accent-border {
  border-color: var(--accent);
}

/* Header highlight text */
.trust-banner {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 10px;
  padding: 6px;
  background-color: var(--accent-light);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Playful list icon styling */
.playful-list {
  list-style: none;
}

.playful-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 500;
}

.playful-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
}

/* ==========================================
   Notice Board & Announcements Styling
   ========================================== */
.notices-wrapper {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.notice-spotlight {
  flex: 1.4;
  display: flex;
}

.notice-spotlight-card {
  background-color: var(--bg-white);
  border: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  width: 100%;
  transition: var(--transition);
}

.notice-spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(10, 53, 124, 0.15);
}

.notice-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.notice-badge {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  color: var(--bg-white);
  letter-spacing: 0.8px;
}

.badge-urgent {
  background-color: #ef4444; /* Vivid Red */
}

.badge-event {
  background-color: var(--accent); /* Brand Orange */
}

.badge-general {
  background-color: var(--primary); /* Brand Navy */
}

.badge-holiday {
  background-color: #eab308; /* Brand Yellow/Gold */
  color: var(--text-dark) !important;
}

.notice-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.notice-spotlight-title {
  font-size: 1.8rem;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 800;
}

.notice-spotlight-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.notices-list {
  flex: 1;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notices-list-header {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.notices-list-items {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px 24px;
}

/* Custom Scrollbar for Notices List */
.notices-list-items::-webkit-scrollbar {
  width: 6px;
}

.notices-list-items::-webkit-scrollbar-track {
  background: rgba(10, 53, 124, 0.03);
}

.notices-list-items::-webkit-scrollbar-thumb {
  background: rgba(10, 53, 124, 0.15);
  border-radius: 3px;
}

.notices-list-items::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.notice-list-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.notice-list-item:last-child {
  border-bottom: none;
}

.notice-list-item:hover {
  padding-left: 5px;
}

.notice-list-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.notice-list-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .notices-wrapper {
    flex-direction: column;
  }
  .notice-spotlight, .notices-list {
    width: 100%;
  }
}

/* ==========================================
   School Tour Video Section Styling
   ========================================== */
.tour-videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .tour-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-card {
  background-color: var(--bg-white);
  border: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.video-card.accent-border {
  border-color: var(--accent);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(10, 53, 124, 0.15);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000;
  overflow: hidden;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card-body {
  padding: 24px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-card-title {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 1.3rem;
  font-family: var(--font-heading);
}

.video-card-desc {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}





