/* 
 * Kindergarten Website - Style Guide & Design System
 * Modern, colorful, and premium design for children's learning center
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:ital,wght@0,300..700;1,300..700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary: #FF6B6B;         /* Coral Orange */
  --primary-rgb: 255, 107, 107;
  --secondary: #4D96FF;       /* Sky Blue */
  --secondary-rgb: 77, 150, 255;
  --yellow: #FFD93D;          /* Warm Sun Yellow */
  --yellow-rgb: 255, 217, 61;
  --green: #6BCB77;           /* Playful Green */
  --green-rgb: 107, 203, 119;
  --purple: #9E78F0;          /* Fun Purple */
  --text-dark: #2C3E50;       /* Charcoal Blue */
  --text-muted: #7F8C8D;      /* Muted Gray */
  --bg-primary: #FFFDF9;      /* Warm Eggshell White */
  --bg-secondary: #F6F9FC;    /* Soft Clean Blue-Gray */
  --white: #FFFFFF;
  
  /* Fonts */
  --font-khmer: 'Kantumruy Pro', sans-serif;
  --font-eng: 'Outfit', sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(44, 62, 80, 0.08);
  --shadow-lg: 0 20px 40px rgba(44, 62, 80, 0.12);
  --shadow-primary: 0 10px 20px rgba(255, 107, 107, 0.2);
  --shadow-secondary: 0 10px 20px rgba(77, 150, 255, 0.2);

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

  /* Border Radii */
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-round: 9999px;
  
  --max-width: 1200px;
}

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

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

body {
  font-family: var(--font-khmer);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-khmer);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

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

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

.section-padding {
  padding: 100px 0;
}

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

/* Grid Layouts */
.grid-2, .grid-3, .grid-4 {
  min-width: 0;
}

.grid-2 > *, .grid-3 > *, .grid-4 > * {
  min-width: 0;
  max-width: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

/* Section Header Styles */
.section-title-wrapper {
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.section-subtitle {
  font-family: var(--font-eng);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  display: inline-block;
  background: rgba(77, 150, 255, 0.1);
  padding: 6px 18px;
  border-radius: var(--radius-round);
  margin-bottom: 15px;
}

.section-subtitle.alt {
  color: var(--primary);
  background: rgba(255, 107, 107, 0.1);
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--yellow));
}

.section-title-wrapper.text-left .section-title::after {
  left: 0;
  transform: none;
}

/* Buttons Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-round);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-size: 1rem;
  font-family: var(--font-khmer);
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #FF8E53);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 107, 107, 0.35);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #7AAFFF);
  color: var(--white);
  box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(77, 150, 255, 0.35);
}

.btn-yellow {
  background: linear-gradient(135deg, var(--yellow), #FFEA79);
  color: var(--text-dark);
}

.btn-yellow:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 217, 61, 0.35);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Top Contact Info Bar */
.top-bar {
  display: none !important;
}

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

.top-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-info i {
  color: var(--primary);
  margin-right: 6px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-links a {
  color: #cbd5e1;
  transition: color 0.2s;
  font-size: 0.85rem;
}

.top-links a:hover {
  color: var(--yellow);
}

.admin-login-link {
  display: none !important;
}

/* Navbar & Glassmorphism Header Component */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 107, 107, 0.12);
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.05);
  transition: var(--transition-normal);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  padding: 10px 0;
  gap: 12px;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 310px;
  min-width: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img-custom {
  height: 48px;
  width: 48px;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12));
}

.logo:hover .logo-img-custom {
  transform: scale(1.05);
}

.logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--yellow));
  border-radius: 50% 50% 50% 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  animation: floatSoft 4s ease-in-out infinite;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.logo-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-item {
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 13px;
  border-radius: 20px;
  color: var(--text-dark);
  white-space: nowrap !important;
  word-break: keep-all !important;
  word-wrap: normal !important;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.nav-ic {
  font-size: 0.85rem;
  color: var(--primary);
  opacity: 0.8;
  transition: transform 0.2s;
}

.nav-link:hover .nav-ic {
  transform: scale(1.2);
  opacity: 1;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(255, 107, 107, 0.1);
  transform: translateY(-2px);
}

.nav-item.active .nav-link {
  color: var(--primary);
  background: rgba(255, 107, 107, 0.12);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.2);
}

.nav-btn {
  margin-left: 8px;
  flex-shrink: 0;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.nav-btn .btn, .nav-btn a {
  white-space: nowrap !important;
  word-break: keep-all !important;
  word-wrap: normal !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 20px !important;
  font-size: 0.88rem !important;
  border-radius: 42px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, var(--primary) 0%, #FF8E53 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.35) !important;
  animation: pulseGlow 2.5s infinite !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.nav-btn .btn:hover, .nav-btn a:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5) !important;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
  border: none;
  background: transparent;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition-normal);
}

.nav-drawer-header,
.nav-drawer-footer {
  display: none !important;
}

/* Dynamic Curved Section Separator */
.curve-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.curve-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 40px;
}

.curve-divider.curve-bottom {
  transform: rotate(180deg);
}

.curve-fill-primary { fill: var(--bg-primary); }
.curve-fill-secondary { fill: var(--bg-secondary); }

/* Hero Section */
.hero-section {
  position: relative;
  padding: 60px 0 100px 0;
  background-color: var(--bg-primary);
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--yellow);
  top: -100px;
  right: -50px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  bottom: -50px;
  left: -100px;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--secondary);
  top: 40%;
  left: 30%;
}

.hero-wrapper {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 550px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-round);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--yellow);
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 8px;
  background: rgba(255, 217, 61, 0.5);
  z-index: -1;
  border-radius: 4px;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 35px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image-container {
  position: relative;
}

.hero-img-bg {
  position: absolute;
  top: 8%;
  left: 8%;
  width: 84%;
  height: 84%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.22) 0%, rgba(16, 185, 129, 0.15) 60%, transparent 80%);
  border-radius: 50%;
  filter: blur(35px);
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
}

.hero-img {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
}

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

/* ==========================================================
   Hero Image Slider System (Interactive & Responsive)
   ========================================================== */
.hero-slider-container {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.18);
  border: none;
  overflow: hidden;
  background-color: #0f172a;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease-in-out, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: scale(1.05);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent);
  pointer-events: none;
}

/* Slide Badge (pill on each slide) */
.hero-slide-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  bottom: auto;
  right: auto;
  transform: none !important;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-slide-badge i {
  color: #ffd93d;
}

/* Slider Navigation Buttons */
.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-slider-container:hover .hero-slider-btn {
  opacity: 1;
}

.hero-slider-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 8px 22px rgba(255, 107, 107, 0.45);
}

.hero-slider-btn.prev {
  left: 14px;
}

.hero-slider-btn.next {
  right: 14px;
}

/* Floating Cards */
.floating-card {
  display: none !important;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(44, 62, 80, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 45px rgba(44, 62, 80, 0.18);
}

.floating-card-1 {
  bottom: 25px;
  left: -25px;
  right: auto;
  z-index: 6;
}

.floating-card-2 {
  top: 25px;
  right: -25px;
  left: auto;
  z-index: 6;
}

.fc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fc-icon.red {
  background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.35);
}

.fc-icon.blue {
  background: linear-gradient(135deg, #4D96FF, #6BCB77);
  box-shadow: 0 6px 16px rgba(77, 150, 255, 0.35);
}

.fc-text h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.fc-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.3;
}

/* Features Component */
.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-normal);
  border-top: 5px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(var(--color-rgb), 0.05), transparent 70%);
  pointer-events: none;
}

.feature-card.color-1 { --color-rgb: var(--primary-rgb); border-top-color: var(--primary); }
.feature-card.color-2 { --color-rgb: var(--secondary-rgb); border-top-color: var(--secondary); }
.feature-card.color-3 { --color-rgb: var(--yellow-rgb); border-top-color: var(--yellow); }
.feature-card.color-4 { --color-rgb: var(--green-rgb); border-top-color: var(--green); }

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

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50% 50% 10% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  font-size: 2rem;
  color: var(--white);
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(10deg);
}

.feature-icon-wrapper.color-1 { background: linear-gradient(135deg, var(--primary), #FF8E53); }
.feature-icon-wrapper.color-2 { background: linear-gradient(135deg, var(--secondary), #7AAFFF); }
.feature-icon-wrapper.color-3 { background: linear-gradient(135deg, var(--yellow), #FFEA79); color: var(--text-dark); }
.feature-icon-wrapper.color-4 { background: linear-gradient(135deg, var(--green), #9DEFB2); }

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* About Us Section */
.about-image-wrapper {
  position: relative;
}

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

.about-experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--yellow);
  color: var(--text-dark);
  padding: 24px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: var(--shadow-md);
  text-align: center;
  z-index: 3;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.exp-num {
  font-family: var(--font-eng);
  font-size: 2.2rem;
  font-weight: 800;
}

.exp-text {
  font-size: 0.8rem;
  font-weight: 700;
}

.about-content ul {
  list-style: none;
  margin-bottom: 30px;
}

.about-content li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-weight: 600;
}

.about-content li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: rgba(107, 203, 119, 0.15);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Academic Programs Grid */
.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

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

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

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

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

.program-age {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--white);
  padding: 5px 15px;
  border-radius: var(--radius-round);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.program-card.color-blue .program-age { color: var(--secondary); }
.program-card.color-green .program-age { color: var(--green); }

.program-info {
  padding: 30px;
}

.program-info h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.program-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 15px;
  margin-top: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.program-card.color-blue .meta-item i { color: var(--secondary); }
.program-card.color-green .meta-item i { color: var(--green); }

/* Stats Counter Section */
.stats-section {
  background: linear-gradient(135deg, var(--secondary), #3F84F8);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats-section .section-title {
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-icon {
  font-size: 3rem;
  color: var(--yellow);
  margin-bottom: 15px;
}

.stat-number {
  font-family: var(--font-eng);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* Team Teachers Section */
.teacher-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: center;
  transition: var(--transition-normal);
  padding-bottom: 25px;
}

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

.teacher-img-wrapper {
  height: 280px;
  overflow: hidden;
  position: relative;
}

.teacher-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.teacher-socials {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent);
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
  transition: var(--transition-normal);
}

.teacher-card:hover .teacher-socials {
  bottom: 0;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary);
  color: var(--white);
}

.teacher-info {
  padding: 20px 15px 5px 15px;
}

.teacher-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.teacher-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--bg-secondary);
}

.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3.5rem;
  color: rgba(255, 107, 107, 0.1);
}

.rating {
  color: var(--yellow);
  margin-bottom: 20px;
}

.testimonial-text {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(77, 150, 255, 0.2);
}

.user-info h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.user-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Filterable Gallery */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 24px;
  border-radius: var(--radius-round);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-dark);
  font-family: var(--font-khmer);
}

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

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 260px;
  cursor: pointer;
}

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

.gallery-social-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  pointer-events: none;
  letter-spacing: 0.3px;
}

.gallery-social-pill.facebook {
  background: rgba(24, 119, 242, 0.9);
}

.gallery-social-pill.telegram {
  background: rgba(34, 158, 217, 0.9);
}

.gallery-social-pill.youtube {
  background: rgba(255, 0, 0, 0.9);
}

.gallery-social-pill.tiktok {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.gallery-social-pill.link {
  background: rgba(2, 132, 199, 0.9);
}

/* Video Play Center Badge */
.gallery-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding-left: 4px; /* Optical center compensation for play triangle */
}

.gallery-item:hover .gallery-play-badge {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ef4444;
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 107, 107, 0.88);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-normal);
  color: var(--white);
  padding: 20px;
  text-align: center;
  z-index: 2;
}

.gallery-overlay-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
  justify-content: center;
}

.overlay-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.overlay-btn:hover {
  background: #fff;
  color: var(--primary);
  transform: scale(1.12);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.overlay-btn.social-btn.facebook:hover {
  color: #1877F2;
}

.overlay-btn.social-btn.telegram:hover {
  color: #229ED9;
}

.overlay-btn.social-btn.youtube:hover {
  color: #FF0000;
}

.overlay-btn.social-btn.tiktok:hover {
  color: #000;
}

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

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

.gallery-overlay h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.35;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 20, 0.94);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
}

.lightbox-dialog {
  position: relative;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalScaleIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.lightbox-content {
  max-width: 100%;
  max-height: 68vh;
  border-radius: 14px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.15);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: transform 0.2s;
  line-height: 1;
  padding: 4px;
}

.lightbox-close:hover {
  transform: scale(1.2) rotate(90deg);
  color: var(--primary);
}

.lightbox-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  text-align: center;
}

.lightbox-caption {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  max-width: 800px;
}

.lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.lightbox-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.lightbox-social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  filter: brightness(1.1);
}

.lightbox-social-btn.fb {
  background: linear-gradient(135deg, #1877F2, #0d5bbd);
}

.lightbox-social-btn.telegram {
  background: linear-gradient(135deg, #229ED9, #1778a8);
}

.lightbox-social-btn.yt {
  background: linear-gradient(135deg, #FF0000, #b30000);
}

.lightbox-social-btn.tiktok {
  background: linear-gradient(135deg, #181818, #000000);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.lightbox-social-btn.generic {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.lightbox-social-btn .ext-icon {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Admissions & Pricing */
.admission-steps {
  margin-bottom: 60px;
}

.step-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
}

.step-num {
  width: 50px;
  height: 50px;
  background: var(--yellow);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-eng);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px auto;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.pricing-section {
  background-color: var(--bg-secondary);
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 45px 35px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  border: 3px solid transparent;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--primary);
  color: var(--white);
  padding: 5px 35px;
  transform: rotate(45deg);
  font-size: 0.75rem;
  font-weight: 700;
}

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

.pricing-card.featured:hover {
  transform: translateY(-8px) scale(1.05);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.price {
  margin: 20px 0;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  vertical-align: top;
  color: var(--primary);
}

.price-amount {
  font-family: var(--font-eng);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.price-period {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-features {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0 8px 25px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.pricing-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--green);
}

/* Enrollment Form */
.enrollment-box {
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 107, 107, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0, 0, 0, 0.08);
  background-color: var(--bg-secondary);
  font-family: var(--font-khmer);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background-color: var(--white);
  box-shadow: 0 0 10px rgba(77, 150, 255, 0.15);
}

.error-message {
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

/* Contact Us */
.contact-info-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  transition: var(--transition-normal);
}

.contact-info-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.contact-info-icon {
  width: 55px;
  height: 55px;
  border-radius: var(--radius-sm);
  background: rgba(77, 150, 255, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-info-card:nth-child(2) .contact-info-icon {
  background: rgba(255, 107, 107, 0.1);
  color: var(--primary);
}

.contact-info-card:nth-child(3) .contact-info-icon {
  background: rgba(107, 203, 119, 0.1);
  color: var(--green);
}

.contact-info-text h3 {
  font-size: 1.15rem;
  margin-bottom: 5px;
}

.contact-info-text p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

/* Footer */
/* ==========================================================
   Modern Premium Footer Styles
   ========================================================== */
.footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #94a3b8;
  padding: 70px 0 25px 0;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.footer-top {
  padding-bottom: 45px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 35px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1.1fr;
  gap: 35px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo .logo-img-custom {
  height: 48px;
  width: 48px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.footer-logo .logo-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.footer-logo .logo-subtitle {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 2px;
  word-break: break-word;
  white-space: normal;
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Modern Branded Social Buttons */
.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-socials .social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.footer-socials .social-icon.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
}

.footer-socials .social-icon.telegram:hover {
  background: #229ed9;
  border-color: #229ed9;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.45);
}

.footer-socials .social-icon.tiktok:hover {
  background: #000000;
  border-color: #00f2fe;
  color: #00f2fe;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.35);
}

.footer-socials .social-icon.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.45);
}

/* Titles */
.footer-title {
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--yellow));
  border-radius: 4px;
}

/* Quick Links as 2-column Directory */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-grid li a {
  color: #cbd5e1;
  font-size: 0.88rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.footer-links-grid li a i {
  font-size: 0.75rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.footer-links-grid li a:hover {
  color: #ffffff;
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
  transform: translateX(3px);
}

.footer-links-grid li a:hover i {
  transform: translateX(2px);
  color: #ffffff;
}

/* Modern Shift Cards (School Hours) */
.shift-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shift-card {
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.shift-card:hover {
  transform: translateY(-2px);
}

.shift-card.morning {
  background: rgba(255, 217, 61, 0.08);
  border: 1px solid rgba(255, 217, 61, 0.22);
}

.shift-card.afternoon {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.22);
}

.shift-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.shift-card.morning .shift-icon-box {
  background: rgba(255, 217, 61, 0.2);
  color: #ffd93d;
}

.shift-card.afternoon .shift-icon-box {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.shift-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.shift-card.morning .shift-title {
  color: #ffd93d;
}

.shift-card.afternoon .shift-title {
  color: #ff8e8e;
}

.shift-time {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.3;
}

/* Contact List & Action Chips */
.footer-contact-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-icon.location { color: #ff6b6b; }
.footer-contact-icon.phone { color: #34d399; }
.footer-contact-icon.email { color: #38bdf8; }

.footer-contact-text {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.footer-maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 107, 107, 0.15);
  color: #ff8e8e;
  text-decoration: none;
  border: 1px solid rgba(255, 107, 107, 0.3);
  transition: all 0.25s ease;
}

.footer-maps-btn:hover {
  background: #ff6b6b;
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-phone-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.footer-phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-phone-chip:hover {
  background: #10b981;
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-email-chip {
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-email-chip:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  padding-top: 15px;
}

.footer-bottom p {
  margin-bottom: 0;
}

/* Single Language Toggle Button */
.lang-toggle-btn {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  border: 2px solid var(--primary, #FF6B6B);
  color: var(--primary, #FF6B6B);
  padding: 5px 14px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.top-bar .lang-toggle-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.lang-toggle-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(255, 107, 107, 0.35);
  background: var(--primary, #FF6B6B);
  color: #ffffff;
}

.top-bar .lang-toggle-btn:hover {
  background: #ffffff;
  color: #0284c7;
}

.lang-toggle-btn .lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lang-flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  vertical-align: middle;
  display: inline-block;
}

.nav-lang {
  display: flex;
  align-items: center;
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-contact-list i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin-bottom: 0;
}

/* Success Page styles */
.success-card {
  background: var(--white);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 50px auto;
  text-align: center;
  border-top: 8px solid var(--green);
}

.success-icon {
  width: 90px;
  height: 90px;
  background: rgba(107, 203, 119, 0.15);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 30px auto;
}

.success-card h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.success-card p {
  font-size: 1.05rem;
  margin-bottom: 35px;
}

/* Animations */
@keyframes blob-bounce {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 40% 60% 70% 30% / 50% 60% 30% 70%;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  
  h1 { font-size: clamp(2rem, 4vw, 2.5rem); }
  h2 { font-size: clamp(1.6rem, 3.5vw, 2rem); }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .grid-2 {
    gap: 30px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .stat-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .stat-number {
    font-size: 2.2rem;
    margin-bottom: 6px;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }

  .hero-desc {
    font-size: 1.05rem;
  }
  
  .teacher-card-img {
    height: 240px;
  }
}

/* Medium Laptops & Desktops (Ensure desktop layout stays clean from 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-link {
    padding: 7px 10px;
    font-size: 0.84rem;
  }
  .nav-menu {
    gap: 3px;
  }
  .logo {
    max-width: 270px;
  }
  .logo-title {
    font-size: 0.86rem;
    max-width: 200px;
  }
  .logo-subtitle {
    font-size: 0.6rem;
    max-width: 200px;
  }
}

/* Mobile & Tablet Breakpoint (Under 992px) */
@media (max-width: 991px) {
  html {
    font-size: 15px;
  }

  .section-padding {
    padding: 50px 0;
  }

  .section-title-wrapper {
    margin-bottom: 35px;
  }

  /* Header & Mobile Navigation - Clean Top Header (No Hamburger) */
  .navbar {
    height: 68px;
    justify-content: flex-start;
  }

  .logo {
    max-width: 100% !important;
    width: 100% !important;
    gap: 12px;
  }

  .logo-icon,
  .logo-img-custom {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .logo-text {
    width: 100%;
    min-width: 0;
  }

  .logo-title {
    font-size: 0.95rem;
    line-height: 1.3;
    max-width: 100%;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .logo-subtitle {
    font-size: 0.65rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* No Hamburger Toggle on Top Header on Mobile */
  .mobile-toggle {
    display: none !important;
  }

  /* Slide-in Mobile Drawer triggered by bottom Menu button */
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 84%;
    max-width: 325px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px 18px 24px 18px;
    gap: 6px;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.25);
    transition: left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10001;
    overflow-y: auto;
  }

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

  .nav-drawer-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-drawer-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .nav-drawer-close:active {
    transform: scale(0.92);
    background: var(--primary);
    color: #fff;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.98rem;
    border-radius: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
  }

  .nav-link .nav-ic {
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
  }

  .nav-btn {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }

  .nav-btn .btn {
    width: 100%;
    padding: 12px;
    font-size: 0.98rem;
  }

  .nav-drawer-footer {
    display: block !important;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .drawer-contact-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }

  .drawer-contact-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .drawer-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .drawer-chip-call {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
  }

  .drawer-chip-tg {
    background: rgba(34, 158, 217, 0.1);
    color: #0284c7;
    border: 1px solid rgba(34, 158, 217, 0.2);
  }

  .drawer-chip-map {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
  }

  /* Grid Layouts for Mobile */
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .feature-card {
    padding: 22px 14px 18px 14px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-icon-wrapper {
    width: 54px;
    height: 54px;
    font-size: 1.35rem;
    margin: 0 auto 12px auto;
  }

  .feature-card h3 {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .feature-card p {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 30px 0 50px 0;
    overflow: hidden;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-badge {
    margin: 0 auto 16px auto;
    font-size: 0.8rem;
    padding: 6px 14px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    box-sizing: border-box;
  }

  .hero-title {
    font-size: clamp(1.6rem, 6.2vw, 2.25rem);
    line-height: 1.35;
    margin-bottom: 16px;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 22px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-content .steam-ribbon-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto 16px auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-content .steam-pill-tag {
    font-size: 0.76rem;
    padding: 5px 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hero-actions {
    display: none;
  }

  .hero-image-container {
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
  }

  .steam-main-img-box.hero-slider-container {
    height: 335px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.18);
    overflow: hidden;
  }

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

  .hero-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, transparent 100%);
    pointer-events: none;
    z-index: 3;
  }

  .hero-slider-btn {
    opacity: 0.85;
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  .hero-slider-btn.prev { left: 8px; }
  .hero-slider-btn.next { right: 8px; }

  .hero-slide-badge {
    top: 12px;
    left: 12px;
    bottom: auto;
    right: auto;
    transform: none !important;
    padding: 6px 14px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    max-width: calc(100% - 24px);
  }

  .hero-slider-dots {
    bottom: 12px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px;
    gap: 6px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    z-index: 4;
  }

  /* On mobile, hide heavy overlapping cards so the image is 100% visible and unblocked */
  .floating-card {
    display: none !important;
  }

  .fc-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .fc-text h5 {
    font-size: 0.78rem;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .fc-text p {
    font-size: 0.65rem;
    line-height: 1.2;
  }

  /* About Experience Badge */
  .about-experience-badge {
    bottom: -15px;
    right: -10px;
    width: 105px;
    height: 105px;
    padding: 10px;
  }

  .exp-num { font-size: 1.5rem; }
  .exp-text { font-size: 0.65rem; }

  /* Program Timeline Mobile Optimization */
  .timeline {
    padding: 20px 0;
  }

  .timeline::after {
    left: 20px !important;
    margin-left: 0;
  }

  .timeline-container {
    width: 100% !important;
    padding-left: 55px !important;
    padding-right: 15px !important;
    left: 0 !important;
    margin-bottom: 24px;
  }

  .timeline-container::after {
    left: 10px !important;
  }

  /* Gallery Filters & Grid Mobile */
  .gallery-filters-wrapper {
    position: relative;
    margin-bottom: 25px;
  }

  .gallery-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 6px 16px 16px 16px !important;
    margin: 0 -16px 15px -16px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .filter-btn {
    padding: 8px 18px !important;
    font-size: 0.86rem !important;
    flex-shrink: 0 !important;
    border-radius: 25px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  }

  .filter-btn.active {
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
  }

  .gallery-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 18px !important;
  }

  .gallery-item {
    height: 250px;
    border-radius: 16px;
  }

  /* Form & Inputs Mobile Touch Targets (Prevent iOS Zoom) */
  .enrollment-box {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

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

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    padding: 14px 16px;
    border-radius: 12px;
  }

  /* Footer Mobile */
  .footer {
    padding: 45px 0 20px 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 25px;
    margin-bottom: 25px;
  }

  .footer-title {
    font-size: 1.05rem;
    margin-bottom: 14px;
    padding-bottom: 8px;
  }
}

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

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .feature-card {
    padding: 16px 8px 14px 8px;
    border-radius: 16px;
  }

  .feature-icon-wrapper {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
    margin: 0 auto 10px auto;
  }

  .feature-card h3 {
    font-size: 0.85rem;
    margin-bottom: 5px;
    line-height: 1.3;
  }

  .feature-card p {
    font-size: 0.72rem;
    line-height: 1.4;
  }

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

  .stats-section {
    padding: 30px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    align-items: flex-start;
  }

  .stat-item {
    padding: 2px;
  }

  .stat-icon {
    font-size: 1.45rem;
    margin-bottom: 6px;
  }

  .stat-number {
    font-size: 1.35rem;
    margin-bottom: 3px;
    letter-spacing: -0.5px;
  }

  .stat-label {
    font-size: 0.65rem;
    line-height: 1.25;
    font-weight: 500;
  }

  .contact-info-card {
    padding: 20px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .map-container {
    height: 300px;
  }

  .lightbox-modal {
    padding: 10px;
  }

  .footer-logo {
    gap: 10px;
    margin-bottom: 14px;
  }

  .footer-logo .logo-title {
    font-size: 0.95rem;
  }

  .footer-logo .logo-subtitle {
    font-size: 0.65rem;
    line-height: 1.35;
  }

  .footer-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 10px;
  }

  .footer-links-grid li a {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .shift-card {
    padding: 10px 12px;
  }

  .shift-icon-box {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .shift-title {
    font-size: 0.82rem;
  }

  .shift-time {
    font-size: 0.76rem;
  }

  .footer-phone-chip {
    font-size: 0.78rem;
    padding: 4px 8px;
  }
}

/* Keyframe Animations */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.35);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 107, 107, 0.65), 0 0 0 8px rgba(255, 107, 107, 0.15);
  }
  100% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.35);
  }
}

@keyframes floatSoft {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes bounceSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes rotateSoft {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Animations helper classes */
.animate-float {
  animation: floatSoft 4s ease-in-out infinite;
}

.animate-bounce {
  animation: bounceSlow 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulseGlow 2.5s infinite;
}

/* STEAM & PBL Hero Section Styling */
.steam-ribbon-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.steam-ribbon-wrapper::-webkit-scrollbar {
  display: none;
}

.steam-pill-tag {
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(77, 150, 255, 0.1);
  border: 1px solid rgba(77, 150, 255, 0.25);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.steam-pill-tag:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

/* Interactive Hero Showcase Image Slider */
.steam-main-img-box.hero-slider-container {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.6);
  border: none;
  height: 440px;
  background: #0f172a !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.steam-main-img-box.hero-slider-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 55px -8px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: scale(1.05);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slide-img,
.hero-slide img,
.hero-slide img.steam-img-primary {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Slide Controls: Arrows */
/* Slider Controls: Arrows */
.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.steam-main-img-box:hover .hero-slider-btn {
  opacity: 1;
}

.hero-slider-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(255, 107, 107, 0.35);
}

.hero-slider-btn.prev {
  left: 14px;
}

.hero-slider-btn.next {
  right: 14px;
}

/* Slider Pagination Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 14px;
  top: auto !important;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: 20px;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  height: auto !important;
  width: auto !important;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

.hero-dot.active {
  width: 22px;
  border-radius: 10px;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 217, 61, 0.8);
}

.hero-bg-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 4s ease-in-out;
  transform: scale(1.04);
}

.hero-bg-slide.slide-1,
.hero-bg-slide.active {
  opacity: 0.65;
}

/* CSS Keyframe Animation fallback */
.hero-bg-slide {
  animation: heroBgFade 16s infinite ease-in-out;
}

.hero-bg-slide.slide-1 { animation-delay: 0s; opacity: 0.65; }
.hero-bg-slide.slide-2 { animation-delay: 4s; }
.hero-bg-slide.slide-3 { animation-delay: 8s; }
.hero-bg-slide.slide-4 { animation-delay: 12s; }

@keyframes heroBgFade {
  0% { opacity: 0.65; transform: scale(1); }
  22% { opacity: 0.65; transform: scale(1.04); }
  27% { opacity: 0; transform: scale(1.08); }
  95% { opacity: 0; }
  100% { opacity: 0.65; transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.70) 0%, rgba(2, 132, 199, 0.50) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

/* Flatpickr Custom Styling for Date Picker Calendar */
.flatpickr-calendar {
  border-radius: 16px !important;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e2e8f0 !important;
  font-family: inherit !important;
  padding: 8px !important;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.selected:focus, .flatpickr-day.selected:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  border-radius: 10px !important;
}
.flatpickr-day:hover {
  background: #e0f2fe !important;
  border-radius: 10px !important;
}
.flatpickr-months .flatpickr-month {
  background: transparent !important;
  color: #0f172a !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year {
  font-weight: 700 !important;
}

/* Modern Sleek Contact Section Cards */
.contact-info-card-modern {
  background: var(--white);
  padding: 20px 22px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-info-card-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: #ffffff !important;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.3);
}

.btn-map-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 107, 107, 0.45);
  color: #ffffff !important;
}

.social-channel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-channel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  opacity: 0.95;
}

.tiktok-btn {
  background: linear-gradient(135deg, #0f0f0f, #222222);
}
.tiktok-btn i {
  color: #00f2fe;
}

.telegram-btn {
  background: linear-gradient(135deg, #0088cc, #006699);
}

.facebook-btn {
  background: linear-gradient(135deg, #1877f2, #0e5a8a);
}

.youtube-btn {
  background: linear-gradient(135deg, #ff0000, #cc0000);
}

@media (max-width: 576px) {
  .contact-phone-email-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   MOBILE-FIRST ENHANCEMENTS & BOTTOM ACTION BAR
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  /* Prevent content from being blocked by the sticky bottom bar */
  body {
    padding-bottom: 78px !important;
  }

  /* Prevent iOS automatic zoom on inputs */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Floating Bottom Action Bar */
  .mobile-bottom-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
    padding: 6px 14px calc(6px + env(safe-area-inset-bottom, 0px)) 14px;
    animation: slideUpMobileBar 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-bottom-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    max-width: 520px;
    margin: 0 auto;
  }

  .mob-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 600;
    transition: transform 0.15s ease, color 0.2s ease;
    flex: 1;
    padding: 3px 1px;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-btn:active {
    transform: scale(0.92);
  }

  .mob-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 2px;
    transition: all 0.2s ease;
  }

  .mob-btn-label {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.1px;
    white-space: nowrap;
  }

  /* Home Button */
  .mob-btn-home .mob-btn-icon {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
  }

  /* Programs Button */
  .mob-btn-prog .mob-btn-icon {
    background: rgba(77, 150, 255, 0.1);
    color: #4D96FF;
  }

  /* Facebook Theme */
  .mob-btn-fb .mob-btn-icon {
    background: rgba(24, 119, 242, 0.12);
    color: #1877f2;
  }
  .mob-btn-fb:hover .mob-btn-label,
  .mob-btn-fb:active .mob-btn-label {
    color: #1877f2;
  }

  /* Telegram Theme */
  .mob-btn-tg .mob-btn-icon {
    background: rgba(34, 158, 217, 0.12);
    color: #0284c7;
  }
  .mob-btn-tg:hover .mob-btn-label {
    color: #0284c7;
  }

  /* Menu Toggle Button */
  .mob-btn-menu .mob-btn-icon {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
  }
  .mob-btn-menu:active .mob-btn-icon,
  .mob-btn-menu.active .mob-btn-icon {
    background: #8b5cf6;
    color: #ffffff;
  }
  .mob-btn-menu.active .mob-btn-label {
    color: #8b5cf6;
    font-weight: 700;
  }

  /* Active states for pages */
  .mob-btn.active:not(.mob-btn-enroll) .mob-btn-label {
    color: var(--primary);
    font-weight: 700;
  }
  .mob-btn-home.active .mob-btn-icon {
    background: #FF6B6B;
    color: #fff;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.35);
  }
  .mob-btn-prog.active .mob-btn-icon {
    background: #4D96FF;
    color: #fff;
    box-shadow: 0 3px 10px rgba(77, 150, 255, 0.35);
  }

  /* Standout Enroll CTA Button */
  .mob-btn-enroll {
    flex: 1.35;
    padding: 0;
  }

  .mob-btn-highlight {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 24px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.38);
    width: 100%;
    transition: all 0.2s ease;
  }

  .mob-btn-highlight i {
    font-size: 0.82rem;
  }

  .mob-btn-label-enroll {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .mob-btn-enroll:active .mob-btn-highlight {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
  }

  @keyframes slideUpMobileBar {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

/* ==========================================================================
   MOBILE BOTTOM SHEET NAVIGATION (NATIVE APP STYLE)
   ========================================================================== */
.mobile-drawer-overlay {
  display: none;
}

.mobile-nav-sheet {
  display: none;
}

@media (max-width: 991px) {
  /* On mobile, hide desktop nav inside header */
  .navbar .nav-menu {
    display: none !important;
  }

  .mobile-drawer-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.25);
    z-index: 99999;
    transform: translateY(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    overflow: hidden;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav-sheet.active {
    transform: translateY(0);
  }

  .mobile-sheet-handle-bar {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px 0;
    cursor: pointer;
  }

  .mobile-sheet-handle {
    width: 42px;
    height: 5px;
    border-radius: 4px;
    background: #cbd5e1;
  }

  .mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 18px 12px 18px;
    border-bottom: 1px solid #f1f5f9;
  }

  .mobile-sheet-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sheet-brand-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
  }

  .sheet-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--yellow));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
    flex-shrink: 0;
  }

  .sheet-brand-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
  }

  .sheet-brand-sub {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 1px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-sheet-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-sheet-close:active {
    transform: scale(0.9);
    background: var(--primary);
    color: #fff;
  }

  .mobile-sheet-body {
    padding: 14px 16px 16px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }

  /* 2-Column Grid Navigation */
  .mobile-sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .sheet-nav-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
  }

  .sheet-nav-card:active {
    transform: scale(0.96);
    background: #f1f5f9;
  }

  .sheet-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .icon-home { background: rgba(255, 107, 107, 0.12); color: #FF6B6B; }
  .icon-prog { background: rgba(77, 150, 255, 0.12); color: #4D96FF; }
  .icon-gallery { background: rgba(16, 185, 129, 0.12); color: #10B981; }
  .icon-about { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }
  .icon-contact { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
  .icon-enroll { background: rgba(255, 255, 255, 0.25); color: #ffffff; }

  .sheet-nav-card.active:not(.sheet-card-enroll) {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--primary);
    color: var(--primary);
  }

  .sheet-card-enroll {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary), #FF8E53);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.35);
    justify-content: center;
    padding: 12px;
    font-weight: 700;
  }

  /* Quick Contacts Strip */
  .mobile-sheet-contacts {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
  }

  .sheet-contacts-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
  }

  .sheet-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .sheet-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
  }

  .sheet-contact-item:active {
    transform: scale(0.97);
  }

  .sheet-contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
  }

  .item-call .sheet-contact-icon { background: rgba(16, 185, 129, 0.12); color: #059669; }
  .item-fb .sheet-contact-icon { background: rgba(24, 119, 242, 0.12); color: #1877f2; }
  .item-tg .sheet-contact-icon { background: rgba(34, 158, 217, 0.12); color: #0284c7; }
  .item-map .sheet-contact-icon { background: rgba(239, 68, 68, 0.12); color: #dc2626; }

  .sheet-contact-meta {
    display: flex;
    flex-direction: column;
  }

  .meta-label {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.1;
  }

  .meta-val {
    font-size: 0.84rem;
    color: #0f172a;
    line-height: 1.2;
    font-family: var(--font-khmer);
  }
}
