/* Abacus Strip Styles - Exciting & Dynamic */
.abacus-strip {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
  background-size: 300% 300%;
  animation: abacusGradientShift 4s ease infinite;
  padding: 12px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 20px rgba(0,0,0,0.2);
  animation: abacusSlideDown 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), abacusGradientShift 4s ease infinite 0.6s;
}

@keyframes abacusGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes abacusSlideDown {
  0% {
    transform: translateY(-100%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Removed lightning animation */

.abacus-strip-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.abacus-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.abacus-icon {
  font-size: 2rem;
  animation: abacusBounce 1.5s infinite;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

@keyframes abacusBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(-5deg); }
  75% { transform: translateY(-4px) rotate(5deg); }
}

.abacus-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.abacus-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  animation: abacusTitleGlow 3s infinite;
  font-weight: 700;
}

@keyframes abacusTitleGlow {
  0%, 100% { text-shadow: 2px 2px 8px rgba(0,0,0,0.4); }
  50% { text-shadow: 2px 2px 12px rgba(255,255,255,0.3), 0 0 20px rgba(255,255,255,0.2); }
}

.abacus-subtitle {
  font-family: 'Comic Neue', cursive;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.abacus-subtitle strong {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  font-weight: 700;
}

.abacus-btn {
  background: linear-gradient(45deg, #fff, #f0f0f0);
  color: #333;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-family: 'Comic Neue', cursive;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  animation: abacusBtnPulse 2s infinite;
}

@keyframes abacusBtnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.abacus-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transition: 0.6s;
}

.abacus-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #fff, #e8f4fd);
}

.abacus-btn:hover::before {
  left: 100%;
}
/* Responsive Design */
@media (max-width: 767px) {
  .abacus-strip {
    padding: 10px 0;
  }
  
  .abacus-strip-container {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  
  .abacus-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .abacus-title {
    font-size: 1rem;
  }
  
  .abacus-subtitle {
    font-size: 0.8rem;
  }
  
  .abacus-btn {
    padding: 7px 16px;
    font-size: 0.9rem;
  }
  
  .abacus-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    margin-left: 0;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .abacus-title {
    font-size: 0.9rem;
  }
  
  .abacus-subtitle {
    font-size: 0.75rem;
  }
  
  .abacus-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}

/* Hide abacus strip when closed */
.abacus-strip.hidden {
  display: none;
}

@keyframes abacusSlideUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100%) scale(0.8);
    opacity: 0;
  }
}

body {
  background: linear-gradient(135deg, #87ceeb 0%, #e0ffff 100%);
}

/* Hero Slideshow Styles */
.hero-slideshow {
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

/* Add a subtle overlay for better text readability */
.hero-slideshow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: slideshowFadeIn 1s ease-out;
}

@keyframes slideshowFadeIn {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.1) rotate(1deg);
  transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.hero-slide.prev {
  transform: scale(0.95) rotate(-1deg);
  opacity: 0;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease-out;
  filter: brightness(0.9) contrast(1.1);
}

.hero-slide.active .hero-slide-img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.2);
}

/* Ken Burns Effect */
@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.1) translate(-2%, -1%);
  }
  100% {
    transform: scale(1.05) translate(2%, 1%);
  }
}

.hero-slide.active .hero-slide-img {
  animation: kenBurns 8s ease-out infinite;
}

/* Navigation Dots */
.hero-slideshow-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.hero-dot:hover::before {
  width: 100%;
  height: 100%;
}

.hero-dot.active {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  border-color: #ff6b6b;
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.7), 0 0 40px rgba(255, 107, 107, 0.3);
  animation: dotPulse 2s infinite;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes dotPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.7), 0 0 40px rgba(255, 107, 107, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.9), 0 0 50px rgba(255, 107, 107, 0.5);
  }
}

.hero-gradient-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(46,196,182,0.25) 0%, rgba(135,206,235,0.45) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-overlay.hero-center {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  padding: 0;
}

.hero-text {
  color: #fff;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 1.5px 0 #2ec4b6;
  animation: heroTextSlideIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

@keyframes heroTextSlideIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-cta-animate {
  animation: heroPulse 1.8s infinite alternate;
  box-shadow: 0 2px 16px #2ec4b6a0;
}

@keyframes heroPulse {
  0% { box-shadow: 0 2px 16px #2ec4b6a0; transform: scale(1); }
  100% { box-shadow: 0 0 32px #2ec4b6; transform: scale(1.04); }
}

@media (max-width: 767px) {
  .hero-photo { height: 60vh; }
  .hero-text h1 { font-size: 1.3rem; }
  .hero-text p { font-size: 0.9rem; }
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-family: 'Comic Neue', cursive;
}

.cta-btn {
  background-color: #ff6b6b;
  padding: 12px 25px;
  border-radius: 30px;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background-color: #ff3b3b;
  color: white;
}
/* Responsive Design */
@media (max-width: 1199px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .cta-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 991px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .cta-btn {
    padding: 9px 18px;
    font-size: 0.95rem;
  }
}

@media (max-width: 767px) {
  .hero-text h1 {
    font-size: 1.6rem;
    text-align: center;
  }

  .hero-text p {
    font-size: 0.95rem;
    text-align: center;
  }

  .hero-overlay {
    justify-content: center;
    padding-left: 0;
    padding: 0 10px;
    text-align: center;
  }

  .cta-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.4rem;
  }

  .hero-text p {
    font-size: 0.85rem;
  }

  .cta-btn {
    padding: 7px 14px;
    font-size: 0.85rem;
  }
}


.info-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 50px 5%;
  background: linear-gradient(135deg, #87ceeb 0%, #e0ffff 100%);
  flex-wrap: wrap;
}

.info-badge {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 250px;
  border: 3px dashed #ff6b6b;
}

.info-badge:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.emoji {
  font-size: 2.5rem;
}

.badge-text h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: #ff3b3b;
  margin: 0;
}

.badge-text p {
  font-family: 'Comic Neue', cursive;
  font-size: 0.95rem;
  color: #023047;
  margin: 4px 0 0;
}

@media (max-width: 1199px) {
  .badge-text h4 {
    font-size: 1.2rem;
  }

  .badge-text p {
    font-size: 0.9rem;
  }

  .emoji {
    font-size: 2.2rem;
  }
}

@media (max-width: 991px) {
  .info-strip {
    gap: 30px;
  }

  .info-badge {
    padding: 18px 20px;
  }

  .badge-text h4 {
    font-size: 1.1rem;
  }

  .badge-text p {
    font-size: 0.85rem;
  }

  .emoji {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .info-strip {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 10px;
  }

  .info-badge {
    width: 90%;
    min-width: unset;
    justify-content: center;
    text-align: center;
  }

  .emoji {
    font-size: 1.8rem;
  }

  .badge-text h4 {
    font-size: 1rem;
  }

  .badge-text p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {

  .info-strip {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 10px;
  }

  .info-badge {
    width: 85%;
    min-width: unset;
    justify-content: center;
    text-align: center;
  }
  .emoji {
    font-size: 1.6rem;
  }

  .badge-text h4 {
    font-size: 0.95rem;
  }

  .badge-text p {
    font-size: 0.75rem;
  }
}

.values-section {
  background: linear-gradient(135deg, #87ceeb 0%, #e0ffff 100%);
  color: #2e2e2e;
  padding: 100px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Video Background Container */
.values-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.values-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.4) 0%, rgba(224, 255, 255, 0.4) 100%);
  z-index: 2;
}

/* Fallback when video doesn't load */
.values-video-container.no-video {
  background: linear-gradient(135deg, #87ceeb 0%, #e0ffff 100%);
}

.values-video-container.no-video .video-overlay {
  display: none;
}

/* Enhanced Video Controls */
.video-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  opacity: 0.7;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.values-video-container:hover .video-controls {
  opacity: 1;
  transform: translateY(0);
}

.video-control-group {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.video-control-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  width: auto;
  min-width: 80px;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.video-control-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: 0.5s;
}

.video-control-btn:hover::before {
  left: 100%;
}

.video-control-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(135, 206, 235, 0.9));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: #87ceeb;
}

.video-control-btn i {
  font-size: 1.4rem;
  color: #023047;
  transition: all 0.3s ease;
  margin-bottom: 2px;
}

.video-control-btn:hover i {
  color: #87ceeb;
  transform: scale(1.1);
}

.control-label {
  font-size: 0.7rem;
  color: #023047;
  font-weight: 600;
  font-family: 'Comic Neue', cursive;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.video-control-btn:hover .control-label {
  color: #87ceeb;
}

.mute-btn.active {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.9), rgba(255, 142, 142, 0.8));
  border-color: #ff6b6b;
  animation: mutePulse 2s infinite;
}

.mute-btn.active i {
  color: white;
}

.mute-btn.active .control-label {
  color: white;
}

@keyframes mutePulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
  }
}

/* Video Control Indicator */
.video-control-indicator {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  padding: 8px 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-hint {
  color: white;
  font-size: 0.8rem;
  font-family: 'Comic Neue', cursive;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Fullscreen video styles */
.values-background-video:-webkit-full-screen {
  object-fit: contain;
}

.values-background-video:-moz-full-screen {
  object-fit: contain;
}

.values-background-video:fullscreen {
  object-fit: contain;
}

/* Remove .values-content grid and .values-media styles, make .values-cards flex and centered */
/* Desktop view - center cards on video */
.values-content {
  position: absolute; /* absolute to overlay on video */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* center vertically & horizontally */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  pointer-events: none; /* optional: prevent interference with video click if needed */
}

.values-cards {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: center;
}

.value-card {
  pointer-events: all; /* re-enable interaction with the cards */
}


@media (max-width: 1024px) {
  .values-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* Remove .values-media and .media-container styles (no longer needed) */
.values-media, .media-container, .values-image, .media-overlay, .play-button {
  display: none !important;
}

.value-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 4;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #87ceeb, #2ec4b6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.value-card:hover {
  transform: translateX(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #87ceeb;
}

.value-card:hover::before {
  transform: scaleX(1);
}

.icon-wrapper {
  display: inline-block;
  margin-bottom: 20px;
}

.icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #87ceeb, #2ec4b6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.4s ease;
}

.value-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #023047;
  font-family: 'Fredoka One', cursive;
}

.value-card p {
  font-size: 1.1rem;
  color: #4f4f4f;
  line-height: 1.6;
  font-family: 'Comic Neue', cursive;
}

@media (max-width: 1024px) {
  .values-content {
    grid-template-columns: 1fr;
  }

  .values-media {
    min-height: 400px;
  }

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

  .value-card:hover {
    transform: translateY(-10px);
  }

  /* Video background adjustments for tablets */
  .values-background-video {
    min-width: 120%;
    min-height: 120%;
  }
}

.values-heading h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #023047;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.values-heading p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 60px;
  color: #023047;
  font-weight: 500;
}

.view-more-btn {
  margin-top: 50px;
}

.view-more-btn .cta-btn {
  background: linear-gradient(135deg, #87ceeb, #2ec4b6);
  color: white;
  padding: 15px 35px;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.view-more-btn .cta-btn:hover {
  background: linear-gradient(135deg, #2ec4b6, #87ceeb);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.value-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Add staggered animation delays for cards */
.value-card:nth-child(1).visible {
  transition-delay: 0.1s;
}

.value-card:nth-child(2).visible {
  transition-delay: 0.3s;
}

.value-card:nth-child(3).visible {
  transition-delay: 0.5s;
}

@media (max-width: 1199px) {
  .value-card {
    padding: 25px;
  }

  .icon {
    font-size: 2.2rem;
  }

  .value-card h3 {
    font-size: 1.4rem;
  }

  .value-card p {
    font-size: 1.05rem;
  }

  .view-more-btn .cta-btn {
    font-size: 1rem;
    padding: 13px 30px;
  }
}

@media (max-width: 991px) {
  .icon {
    font-size: 2rem;
  }

  .value-card h3 {
    font-size: 1.3rem;
  }

  .value-card p {
    font-size: 1rem;
  }

  .values-heading h2 {
    font-size: 2.3rem;
  }

  .values-heading p {
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  .values-cards {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .value-card {
    width: 90%;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
  }

  .icon {
    font-size: 1.8rem;
  }

  .value-card h3 {
    font-size: 1.2rem;
  }

  .value-card p {
    font-size: 0.95rem;
  }

  .view-more-btn .cta-btn {
    font-size: 0.95rem;
    padding: 12px 28px;
  }

  .values-heading h2 {
    font-size: 2rem;
  }

  .values-heading p {
    font-size: 1rem;
  }

  /* Video background adjustments for mobile */
  .values-background-video {
    min-width: 150%;
    min-height: 150%;
  }

  .video-overlay {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.5) 0%, rgba(224, 255, 255, 0.5) 100%);
  }

  /* Mobile video controls */
  .video-controls {
    top: 15px;
    right: 15px;
    opacity: 0.9;
  }

  .video-control-group {
    gap: 10px;
    margin-bottom: 8px;
  }

  .video-control-btn {
    min-width: 60px;
    height: 45px;
    border-radius: 12px;
  }

  .video-control-btn i {
    font-size: 1.1rem;
  }

  .control-label {
    font-size: 0.6rem;
  }

  .video-control-indicator {
    padding: 6px 12px;
  }

  .control-hint {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .icon {
    font-size: 1.6rem;
  }

  .value-card h3 {
    font-size: 1.05rem;
  }

  .value-card p {
    font-size: 0.9rem;
  }

  .view-more-btn .cta-btn {
    font-size: 0.9rem;
    padding: 10px 24px;
  }

  .values-heading h2 {
    font-size: 1.8rem;
  }

  .values-heading p {
    font-size: 0.95rem;
  }
}

/* ===== MOBILE BUTTONS ON TOP ===== */
.mobile-buttons {
  display: none;
}

@media (max-width: 767px) {
  /* Hide desktop cards completely */
  .values-content,
  .values-cards {
    display: none !important;
  }

  /* Show mobile buttons */
  .mobile-buttons {
    position: absolute;
    top: 80px; /* adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
  }

.mobile-btn {
  background: rgba(255, 255, 255, 0.2); /* very transparent */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #023047;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;

  /* Glassmorphism blur effect */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* Smooth transition for hover & blur changes */
  transition: all 0.5s ease; /* slower transition */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Hover effect */
.mobile-btn:hover {
  background: rgba(255, 255, 255, 0.35); /* slightly brighter on hover */
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}


  /* ===== POPUP STYLES ===== */
  .popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 30;
    justify-content: center;
    align-items: center;
    animation: fadeOut 0.3s forwards;
  }

  .popup.active {
    display: flex;
    animation: fadeIn 0.3s forwards;
  }

  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  @keyframes fadeOut {
    from {opacity: 1;}
    to {opacity: 0;}
  }

  .popup-content {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 25px;
    width: 85%;
    max-width: 380px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease;
  }

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

  .popup-content h3 {
    color: #023047;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-family: 'Fredoka One', cursive;
  }

  .popup-content p {
    font-size: 1rem;
    color: #4f4f4f;
    font-family: 'Comic Neue', cursive;
  }

  .popup .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #023047;
    cursor: pointer;
    transition: 0.3s;
  }

  .popup .close:hover {
    color: #87ceeb;
  }
}




/* CSS FOR GALLERY SECTION */
.gallery-section {
  padding: 100px 5% 80px;
  background: linear-gradient(135deg, #e0ffff, #f0f9ff);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/pattern.png');
  opacity: 0.05;
  pointer-events: none;
}

.gallery-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
  pointer-events: none;
}

.gallery-heading {
  position: relative;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-heading.animate {
  opacity: 1;
  transform: translateY(0);
}

.gallery-heading h2 {
  font-size: 3.2rem;
  font-family: 'Fredoka One', cursive;
  color: #023047;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.gallery-heading.animate h2 {
  opacity: 1;
  transform: translateY(0);
}

.gallery-heading h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #87ceeb, #2ec4b6);
  border-radius: 2px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.gallery-heading.animate h2::after {
  transform: translateX(-50%) scaleX(1);
}

.gallery-heading p {
  font-size: 1.3rem;
  color: #4f4f4f;
  margin-bottom: 20px;
  font-family: 'Comic Neue', cursive;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.gallery-heading.animate p {
  opacity: 1;
  transform: translateY(0);
}

/* Add a decorative element */
.gallery-heading::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 60px;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2387ceeb'%3E%3Cpath d='M12 2L15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2z'/%3E%3C/svg%3E") no-repeat center;
  opacity: 0.2;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}

.gallery-heading.animate::before {
  transform: translateX(-50%) scale(1) rotate(360deg);
}

/* Add floating animation to the decorative element */
@keyframes float {
  0% {
    transform: translateX(-50%) translateY(0) rotate(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px) rotate(180deg);
  }
  100% {
    transform: translateX(-50%) translateY(0) rotate(360deg);
  }
}

.gallery-heading.animate::before {
  animation: float 6s ease-in-out infinite;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  perspective: 1000px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  background: white;
  opacity: 0;
  transform: translateY(50px) scale(0.9) rotate(-2deg);
  perspective: 1000px;
}

.gallery-item.animate {
  animation: galleryItemAppear 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes galleryItemAppear {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9) rotate(-2deg);
  }
  50% {
    opacity: 0.5;
    transform: translateY(25px) scale(0.95) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

/* Add staggered animation delays for gallery items */
.gallery-item.animate:nth-child(1) { animation-delay: 0.1s; }
.gallery-item.animate:nth-child(2) { animation-delay: 0.2s; }
.gallery-item.animate:nth-child(3) { animation-delay: 0.3s; }
.gallery-item.animate:nth-child(4) { animation-delay: 0.4s; }
.gallery-item.animate:nth-child(5) { animation-delay: 0.5s; }
.gallery-item.animate:nth-child(6) { animation-delay: 0.6s; }
.gallery-item.animate:nth-child(7) { animation-delay: 0.7s; }
.gallery-item.animate:nth-child(8) { animation-delay: 0.8s; }

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1) rotate(1deg);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, 
    rgba(0,0,0,0.9) 0%, 
    rgba(0,0,0,0.6) 50%,
    rgba(0,0,0,0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-caption {
  color: white;
  text-align: left;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 10px;
  /* Remove transform and transition for always visible */
  transform: none;
  transition: none;
}

.gallery-item:hover .gallery-caption {
  transform: none;
  opacity: 1;
}

.gallery-caption h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  /* Remove transform and opacity for always visible */
  transform: none;
  opacity: 1;
  transition: none;
}

.gallery-item:hover .gallery-caption h3 {
  transform: none;
  opacity: 1;
}

.gallery-caption p {
  font-family: 'Comic Neue', cursive;
  font-size: 1.1rem;
  opacity: 0;
  line-height: 1.4;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.gallery-item:hover .gallery-caption p {
  transform: translateY(0);
  opacity: 0.9;
}

.gallery-zoom {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-20px) scale(0.8) rotate(-10deg);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-item:hover .gallery-zoom {
  transform: translateY(0) scale(1) rotate(0);
  opacity: 1;
}

.gallery-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 15px;
  border-radius: 20px;
  font-family: 'Comic Neue', cursive;
  font-size: 0.9rem;
  color: #023047;
  transform: translateY(-20px) scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-item:hover .gallery-tag {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.view-more-btn {
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

.view-more-btn .cta-btn {
  background: linear-gradient(135deg, #87ceeb, #2ec4b6);
  color: white;
  padding: 18px 40px;
  font-size: 1.2rem;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.view-more-btn .cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.view-more-btn .cta-btn:hover {
  background: linear-gradient(135deg, #2ec4b6, #87ceeb);
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.view-more-btn .cta-btn:hover::before {
  left: 100%;
}

/* Tablet and Small Laptops */
@media (max-width: 991px) {
  .gallery-heading h2 {
    font-size: 2.5rem;
  }

  .gallery-heading p {
    font-size: 1.1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .gallery-caption h3 {
    font-size: 1.3rem;
  }

  .gallery-caption p {
    font-size: 1rem;
  }

  .view-more-btn .cta-btn {
    font-size: 1rem;
    padding: 14px 32px;
  }
}

/* Mobile and Smaller Tablets */
@media (max-width: 767px) {
  .gallery-heading h2 {
    font-size: 2.2rem;
  }

  .gallery-heading p {
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .gallery-caption h3 {
    font-size: 1.2rem;
  }

  .gallery-caption p {
    font-size: 0.95rem;
  }

  .view-more-btn .cta-btn {
    font-size: 0.95rem;
    padding: 12px 28px;
  }
}

/* Extra Small Screens */
@media (max-width: 480px) {
  .gallery-heading h2 {
    font-size: 1.9rem;
  }

  .gallery-heading p {
    font-size: 0.95rem;
  }

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

  .gallery-caption h3 {
    font-size: 1.05rem;
  }

  .gallery-caption p {
    font-size: 0.9rem;
  }

  .view-more-btn .cta-btn {
    font-size: 0.9rem;
    padding: 10px 24px;
  }
}


/* Updated Courses Section Styles */
.courses-section {
  padding: 100px 5% 80px;
  background: linear-gradient(135deg, #f0f9ff, #e0ffff);
  position: relative;
  overflow: hidden;
}

.courses-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/pattern.png');
  opacity: 0.05;
  pointer-events: none;
}

.courses-heading {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.courses-heading.animate {
  opacity: 1;
  transform: translateY(0);
}

.courses-heading h2 {
  font-size: 3.2rem;
  font-family: 'Fredoka One', cursive;
  color: #023047;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.courses-heading p {
  font-size: 1.3rem;
  color: #4f4f4f;
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Comic Neue', cursive;
}

.courses-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  perspective: 1000px;
}

.course-card {
  height: 520px;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(50px);
}

.course-card.animate {
  animation: courseCardAppear 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes courseCardAppear {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  margin-top: 10px;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.course-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-front {
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.card-back {
  background: linear-gradient(135deg, #87ceeb, #2ec4b6);
  transform: rotateY(180deg);
  color: white;
}

/* Abacus Back Enhancements */
.abacus-back {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(255,255,255,0.18), transparent 60%),
              radial-gradient(900px 500px at 110% 20%, rgba(255,255,255,0.15), transparent 60%),
              linear-gradient(135deg, #62d0e6, #2ec4b6 60%, #1aa6a6);
  position: relative;
}

/* Abacus Image Styles */
.abacus-image-container {
  text-align: center;
  margin-bottom: 10px;
}

.abacus-learning-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
}

/* Phonics Back Enhancements */
.phonics-back {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(255,255,255,0.18), transparent 60%),
              radial-gradient(900px 500px at 110% 20%, rgba(255,255,255,0.15), transparent 60%),
              linear-gradient(135deg, #96ceb4, #45b7d1 60%, #4ecdc4);
  position: relative;
}

.phonics-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #96ceb4;
  color: #023047;
  padding: 6px 14px;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  z-index: 3;
}

.phonics-header {
  text-align: left;
  padding-top: 6px;
}

.phonics-emoji {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.phonics-header h3 {
  margin: 0 0 6px 0;
}

.phonics-subtitle {
  font-family: 'Comic Neue', cursive;
  color: #eaffff;
  opacity: 0.95;
}

/* Phonics Image Styles */
.phonics-image-container {
  text-align: center;
  margin-bottom: 10px;
}

.phonics-learning-image {
  width: 100px;
  height: 130px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
}
.card-back .abacus-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ffb400;
  color: #023047;
  padding: 6px 14px;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  z-index: 3;
}

.card-back .back-content p {
  color: #ffffff;
}

.abacus-header {
  text-align: left;
  padding-top: 6px;
}
.abacus-header .abacus-emoji {
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.abacus-header h3 {
  margin: 0 0 6px 0;
}
.abacus-subtitle {
  font-family: 'Comic Neue', cursive;
  color: #eaffff;
  opacity: 0.95;
}

.benefit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.benefit-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-family: 'Comic Neue', cursive;
}

.pill-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 6px 0 8px 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 10px 12px;
}

.schedule-box {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0 10px 0;
}

.schedule-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Comic Neue', cursive;
}

.schedule-line i { color: #ffe066; }

.abacus-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.08) 40%, rgba(0,0,0,0.12) 100%);
  padding-top: 8px;
}

.cta-primary {
  background: linear-gradient(135deg, #ffe066, #ffb400);
  color: #023047;
}
.cta-primary:hover { color: #fff; }
.cta-secondary { background: #023047; color: #fff; }

.note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #eaffff;
  opacity: 0.9;
  text-align: left;
}

.course-btn.alt {
  background: #023047;
  color: #fff;
}

.course-btn i { margin-right: 8px; }

.course-stats {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 6px 0;
  padding: 10px;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
}

.course-stats .stat-number { color: #ffe066; }

@media (max-width: 768px) {
  .course-card { height: 460px; }
  .abacus-actions { flex-direction: column; }
}

.course-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #87ceeb, #2ec4b6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: transform 0.5s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.course-icon i {
  font-size: 3rem;
  color: white;
}

.abacus-icon-custom {
  font-size: 3rem;
  color: white;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
  animation: abacusIconFloat 3s ease-in-out infinite;
}

.phonics-icon-custom {
  font-size: 3rem;
  color: white;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
  animation: phonicsIconFloat 3s ease-in-out infinite;
}

@keyframes abacusIconFloat {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
  }
  25% { 
    transform: translateY(-3px) rotate(-2deg); 
  }
  75% { 
    transform: translateY(2px) rotate(2deg); 
  }
}

@keyframes phonicsIconFloat {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
  }
  25% { 
    transform: translateY(-3px) rotate(-2deg); 
  }
  75% { 
    transform: translateY(2px) rotate(2deg); 
  }
}

.course-tag {
  background: rgba(135, 206, 235, 0.2);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 1rem;
  color: #023047;
  margin: 15px 0;
  font-family: 'Comic Neue', cursive;
}

.flip-hint {
  position: absolute;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4f4f4f;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.flip-hint i {
  animation: spin 2s linear infinite;
}

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

.card-front:hover .flip-hint {
  opacity: 1;
}

.back-content {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.back-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-family: 'Fredoka One', cursive;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.back-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  font-family: 'Comic Neue', cursive;
}

.course-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.course-features li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-family: 'Comic Neue', cursive;
}

.course-features li i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.course-stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  font-family: 'Fredoka One', cursive;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  font-family: 'Comic Neue', cursive;
}

.course-btn {
  display: inline-block;
  padding: 12px 30px;
  background: white;
  color: #023047;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  font-family: 'Comic Neue', cursive;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: #023047;
  color: white;
}

.courses-cta {
  text-align: center;
  margin-top: 60px;
}

.courses-cta .cta-btn {
  background: linear-gradient(135deg, #87ceeb, #2ec4b6);
  color: white;
  padding: 18px 40px;
  font-size: 1.2rem;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.courses-cta .cta-btn:hover {
  background: linear-gradient(135deg, #2ec4b6, #87ceeb);
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .courses-heading h2 {
    font-size: 2.5rem;
  }
  
  .courses-heading p {
    font-size: 1.1rem;
  }
  
  .course-card {
    height: 420px;
  }
  
  .back-content h3 {
    font-size: 1.8rem;
  }
  
  .back-content p {
    font-size: 1rem;
  }
  
  .course-features li {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }

  .course-section {
    margin-top: 10px !important;
    padding-top: 10px !important;
  }

  .course-card {
    padding: 12px;
    margin: 10px 0;
  }

  .course-card h2,
  .course-card h3 {
    font-size: 16px ; /* Adjust heading size */
    line-height: 1.0 ; /* Reduce line spacing */
  }

  .course-card p {
    font-size: 14px; /* Adjust paragraph text */
    line-height: 1.0; /* Reduce paragraph gap */
  }

  .course-cards {
    display: grid;
    grid-template-columns: 1fr; /* 1 card per row */
    gap: 12px; /* Gap between cards */
  }

  .course-features {
    font-size: 14px;
    line-height: 1.0;
    padding: 2px;
  }

  .course-features li {
    margin-bottom: 6px;
    font-size: 13px;
  }
  
}




/* Admissions Section Styles */
.admissions-section {
  padding: 100px 5%;
  background: linear-gradient(135deg, #f0f9ff, #e0ffff);
  position: relative;
  overflow: hidden;
}

.admissions-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/pattern.png');
  opacity: 0.05;
  pointer-events: none;
}

.admissions-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

.admissions-text {
  padding-right: 30px;
}

.admissions-text h2 {
  font-size: 3.2rem;
  font-family: 'Fredoka One', cursive;
  color: #023047;
  margin-bottom: 20px;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.admissions-text h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #87ceeb, #2ec4b6);
  border-radius: 2px;
}

.admissions-text p {
  font-size: 1.2rem;
  color: #4f4f4f;
  line-height: 1.6;
  margin-bottom: 30px;
  font-family: 'Comic Neue', cursive;
}

.admissions-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature i {
  font-size: 1.5rem;
  color: #87ceeb;
  background: rgba(135, 206, 235, 0.1);
  padding: 12px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.feature:hover i {
  transform: scale(1.1);
}

.feature span {
  font-family: 'Comic Neue', cursive;
  font-size: 1.1rem;
  color: #023047;
  font-weight: 600;
}

.admission-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 18px 35px;
  background: linear-gradient(135deg, #87ceeb, #2ec4b6);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Comic Neue', cursive;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.admission-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.admission-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.admission-btn:hover::before {
  left: 100%;
}

.admission-btn i {
  transition: transform 0.3s ease;
}

.admission-btn:hover i {
  transform: translateX(5px);
}

.admissions-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.image-container:hover {
  transform: perspective(1000px) rotateY(0deg);
}

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

.image-container:hover img {
  transform: scale(1.05);
}

.floating-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.badge-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #87ceeb;
  font-family: 'Fredoka One', cursive;
}

.badge-text {
  font-size: 1rem;
  color: #023047;
  font-family: 'Comic Neue', cursive;
}

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

@media (max-width: 1024px) {
  .admissions-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .admissions-text {
    padding-right: 0;
    text-align: center;
  }

  .admissions-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .admissions-features {
    justify-content: center;
  }

  .admission-btn {
    margin: 0 auto;
  }

  .image-container {
    transform: none;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  /* General Section Padding */
  .admissions-section {
    padding: 40px 10px; /* Add horizontal padding */
  }

  /* Grid Stack: Vertical Layout */
  .admissions-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Text Adjustments */
  .admissions-text {
    padding: 0 5px; /* Add padding to the text container */
    width: 100%;
    box-sizing: border-box;
  }

  .admissions-text h2,
  .admissions-text p {
    font-size: 1.1rem; /* Reduce font size for h2 and p */
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .admissions-text h2 {
    font-size: 1.4rem; /* Even smaller for h2 */
  }

  .admissions-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  /* Feature Card Stack */
  .admissions-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }

  .feature {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
  }

  .feature i {
    font-size: 1.4rem;
    padding: 8px;
  }

  .feature span {
    font-size: 0.95rem;
    margin-top: 5px;
  }

  /* Admission Button */
  .admission-btn {
    font-size: 1rem;
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Image Handling */
  .admissions-image {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  /* Badge Fix */
  .floating-badge {
    top: 15px;
    right: 15px;
    padding: 8px 14px;
  }

  .badge-number {
    font-size: 1.2rem;
  }

  .badge-text {
    font-size: 0.8rem;
  }

  /* Inner Card (Panel) */
  .admission-panel {
    padding: 20px;
    text-align: center;
  }

  .admission-title {
    font-size: 1.2rem;
    margin-top: 10px;
  }

  .admission-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 10px 0;
  }

  .admission-btn-animate {
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  /* Course Features */
  .course-features {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .admissions-text h2 {
    font-size: 2.5rem;
  }

  .admissions-text p {
    font-size: 1.1rem;
  }

  .feature {
    padding: 12px;
  }

  .feature i {
    font-size: 1.2rem;
    padding: 10px;
  }

  .feature span {
    font-size: 1rem;
  }

  .admission-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  .floating-badge {
    padding: 12px 20px;
  }

  .badge-number {
    font-size: 1.8rem;
  }

  .badge-text {
    font-size: 0.9rem;
  }
}



/* Awards Section Styles */
.awards-section {
  padding: 100px 5%;
  background: linear-gradient(135deg, #e0ffff, #f0f9ff);
  position: relative;
  overflow: hidden;
}

.awards-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2387ceeb' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.awards-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.awards-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.awards-header.animate {
  opacity: 1;
  transform: translateY(0);
}

.header-decoration {
  margin-bottom: 20px;
}

.header-decoration i {
  font-size: 2rem;
  color: #87ceeb;
  margin: 0 10px;
  animation: bounce 2s infinite;
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.awards-header.animate .header-decoration i {
  opacity: 1;
  transform: scale(1);
}

.awards-header.animate .header-decoration i:nth-child(1) { transition-delay: 0.2s; }
.awards-header.animate .header-decoration i:nth-child(2) { transition-delay: 0.4s; }
.awards-header.animate .header-decoration i:nth-child(3) { transition-delay: 0.6s; }

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

.awards-header h2 {
  font-size: 3.5rem;
  font-family: 'Fredoka One', cursive;
  color: #023047;
  margin-bottom: 20px;
  text-shadow: 3px 3px 0 #fff;
}

.awards-header p {
  font-size: 1.3rem;
  color: #4f4f4f;
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Comic Neue', cursive;
}

.awards-showcase {
  margin-bottom: 60px;
}

.award-trophy {
  background: white;
  border-radius: 30px;
  padding: 40px;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  box-shadow: 0 15px 30px rgba(135, 206, 235, 0.2);
  transform-style: preserve-3d;
  perspective: 1000px;
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-trophy.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.trophy-base {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  background: #87ceeb;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trophy-cup {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #87ceeb, #2ec4b6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  animation: shine 3s infinite;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-trophy.animate .trophy-cup {
  opacity: 1;
  transform: scale(1) rotate(0);
  transition-delay: 0.3s;
}

@keyframes shine {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.trophy-cup i {
  font-size: 3rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.trophy-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-trophy.animate .trophy-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.trophy-content h3 {
  font-size: 2rem;
  color: #023047;
  margin-bottom: 10px;
  font-family: 'Fredoka One', cursive;
}

.trophy-content p {
  font-size: 1.2rem;
  color: #4f4f4f;
  font-family: 'Comic Neue', cursive;
}

.awards-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.award-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 20px rgba(135, 206, 235, 0.2);
  transition: transform 0.3s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-card.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card-decoration {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #87ceeb, #2ec4b6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-card.animate .card-decoration {
  opacity: 1;
  transform: scale(1) rotate(0);
  transition-delay: 0.2s;
}

.card-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-card.animate .card-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.card-content h3 {
  font-size: 1.5rem;
  color: #023047;
  margin-bottom: 10px;
  font-family: 'Fredoka One', cursive;
}

.card-content p {
  font-size: 1.1rem;
  color: #4f4f4f;
  margin-bottom: 15px;
  font-family: 'Comic Neue', cursive;
}

.award-year {
  display: inline-block;
  padding: 5px 15px;
  background: #e0ffff;
  border-radius: 15px;
  color: #023047;
  font-size: 0.9rem;
  font-family: 'Comic Neue', cursive;
}

.achievement-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.stat-bubble {
  background: white;
  border-radius: 30px;
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 20px rgba(135, 206, 235, 0.2);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bubble.animate {
  opacity: 1;
  transform: scale(1);
}

.bubble-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bubble.animate .bubble-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #023047;
  margin-bottom: 10px;
  font-family: 'Fredoka One', cursive;
}

.stat-label {
  font-size: 1.2rem;
  color: #4f4f4f;
  font-family: 'Comic Neue', cursive;
}

.bubble-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.3; }
  100% { transform: scale(1); opacity: 0.5; }
}

@media (max-width: 768px) {
  .awards-header h2 {
    font-size: 2.5rem;
  }

  .awards-header p {
    font-size: 1.1rem;
  }

  .trophy-cup {
    width: 80px;
    height: 80px;
  }

  .trophy-cup i {
    font-size: 2.5rem;
  }

  .trophy-content h3 {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

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

/* Awards Section Loading Animations */
.awards-header {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.awards-header.animate {
  opacity: 1;
  transform: translateY(0);
}

.header-decoration i {
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.awards-header.animate .header-decoration i {
  opacity: 1;
  transform: scale(1);
}

.awards-header.animate .header-decoration i:nth-child(1) { transition-delay: 0.2s; }
.awards-header.animate .header-decoration i:nth-child(2) { transition-delay: 0.4s; }
.awards-header.animate .header-decoration i:nth-child(3) { transition-delay: 0.6s; }

.award-trophy {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-trophy.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.trophy-cup {
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-trophy.animate .trophy-cup {
  opacity: 1;
  transform: scale(1) rotate(0);
  transition-delay: 0.3s;
}

.trophy-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-trophy.animate .trophy-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.award-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-card.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card-decoration {
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-card.animate .card-decoration {
  opacity: 1;
  transform: scale(1) rotate(0);
  transition-delay: 0.2s;
}

.card-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.award-card.animate .card-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.stat-bubble {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bubble.animate {
  opacity: 1;
  transform: scale(1);
}

.bubble-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bubble.animate .bubble-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* Add staggered animation delays for cards and bubbles */
.award-card:nth-child(1).animate { transition-delay: 0.1s; }
.award-card:nth-child(2).animate { transition-delay: 0.3s; }
.award-card:nth-child(3).animate { transition-delay: 0.5s; }

.stat-bubble:nth-child(1).animate { transition-delay: 0.2s; }
.stat-bubble:nth-child(2).animate { transition-delay: 0.4s; }
.stat-bubble:nth-child(3).animate { transition-delay: 0.6s; }

.gallery-label {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(46,196,182,0.85) 0%, rgba(135,206,235,0.85) 100%);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  padding: 18px 0 14px 0;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 2;
  backdrop-filter: blur(2px);
  transition: background 0.3s, transform 0.3s;
}

.gallery-item:hover .gallery-label {
  background: linear-gradient(90deg, rgba(255,107,107,0.95) 0%, rgba(46,196,182,0.95) 100%);
  transform: scale(1.03);
}

/* Admissions Info Panel Animation & Styles */
.admission-panel,
.admission-icon,
.admission-btn-animate,
.admission-float2,
.admission-float3,
.admission-float4 {
  transition: none;
}
.admission-animate-panel.animate .admission-panel {
  animation: panelPop 1.2s cubic-bezier(.68,-0.55,.27,1.55) 1;
}
.admission-animate-panel.animate .admission-icon {
  animation: iconBounce 2.5s infinite alternate;
}
.admission-animate-panel.animate .admission-btn-animate {
  animation: glowBtn 2s infinite alternate;
}
.admission-animate-panel.animate .admission-float2 {
  animation: float2 4s infinite alternate;
}
.admission-animate-panel.animate .admission-float3 {
  animation: float3 5s infinite alternate;
}
.admission-animate-panel.animate .admission-float4 {
  animation: float4 6s infinite alternate;
}
@keyframes panelPop {
  0% { transform: scale(0.7) rotate(-8deg); }
  80% { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes iconBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}
@keyframes badgeGlow {
  0% { box-shadow: 0 6px 24px #ffb40080; }
  100% { box-shadow: 0 0 40px #ffb400; }
}
@keyframes glowBtn {
  0% { box-shadow: 0 2px 10px #2ec4b6a0; }
  100% { box-shadow: 0 0 24px #2ec4b6; }
}
@keyframes float2 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}
@keyframes float3 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}
@keyframes float4 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-14px); }
}

/* Flex for values cards */
.values-cards-flex {
  width: 100%;
  display: flex;
  gap: 30px;
  justify-content: center;
}

/* Gallery image cover */
.gallery-img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Admissions Panel */
.admission-panel {
  position: relative;
  background: linear-gradient(135deg,#e0ffff 60%,#f0f9ff 100%);
  border-radius: 32px;
  box-shadow: 0 8px 32px #87ceeb40, 0 2px 8px #2ec4b640;
  padding: 38px 38px 32px 38px;
  min-width: 340px;
  max-width: 400px;
  text-align: center;
}
.admission-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.admission-title {
  font-size: 1.7rem;
  font-family: 'Fredoka One',cursive;
  color: #023047;
  margin-bottom: 10px;
}
.admission-description {
  font-size: 1.15rem;
  color: #2ec4b6;
  font-family: 'Comic Neue',cursive;
  font-weight: bold;
  margin-bottom: 18px;
}
.floating-badge {
  position: relative;
  top: 0;
  right: 0;
  z-index: 2;
  box-shadow: 0 6px 24px #ffb40080;
  margin: 0 auto 18px auto;
  background: white;
  display: inline-block;
  padding: 10px 22px;
  border-radius: 20px;
}
.badge-number {
  font-size: 2rem;
  color: #ffb400;
  font-family: 'Fredoka One',cursive;
}
.badge-text {
  font-size: 1rem;
  color: #023047;
  font-family: 'Comic Neue',cursive;
}
.admission-btn-animate {
  margin-top: 10px;
  display: inline-block;
  font-size: 1.1rem;
  box-shadow: 0 2px 10px #2ec4b6a0;
}
.admission-float2 {
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 1.5rem;
  opacity: 0.7;
}
.admission-float3 {
  position: absolute;
  right: 18px;
  top: 28px;
  font-size: 1.3rem;
  opacity: 0.7;
}
.admission-float4 {
  position: absolute;
  left: 30px;
  bottom: 18px;
  font-size: 1.4rem;
  opacity: 0.7;
}

/* Awards Section */
.awards-title {
  font-size: 3.2rem;
  color: #ffb400;
  text-shadow: 0 0 20px #ffe066,0 0 40px #fff;
}
.awards-subtitle {
  font-size: 1.5rem;
  color: #2ec4b6;
  font-weight: bold;
}
.award-trophy {
  background: linear-gradient(135deg, #fffbe7, #e0ffff);
  box-shadow: 0 0 40px 10px #ffe06680;
  border: 4px solid #ffb400;
  position: relative;
  overflow: visible;
}
.trophy-cup i {
  color: #ffb400;
  animation: shine 2s infinite alternate;
  font-size: 3rem;
}
.trophy-content {
  text-align: center;
}
.award-title {
  color: #ff6b6b;
  font-size: 2.2rem;
}
.award-description {
  font-size: 1.3rem;
  color: #023047;
  margin: 10px 0 0 0;
}
.award-year {
  margin: 20px 0;
}
.award-year-span {
  display: inline-block;
  background: linear-gradient(90deg,#87ceeb,#2ec4b6);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1.2rem;
  font-family: 'Fredoka One',cursive;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px #2ec4b6a0;
}
.award-message {
  margin-top: 30px;
  color: #2ec4b6;
  font-weight: bold;
  font-size: 1.15rem;
}
.award-congratulation {
  margin-top: 35px;
}
.award-congratulation-span {
  display: inline-block;
  background: #ffb400;
  color: white;
  font-size: 1.1rem;
  font-family: 'Comic Neue',cursive;
  padding: 10px 22px;
  border-radius: 20px;
  box-shadow: 0 2px 10px #ffb40080;
}
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Keyframes */
@keyframes shine {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}
@keyframes fall {
  0% { transform: translateY(-40px) scale(1); }
  100% { transform: translateY(600px) scale(1); }
}
.award-trophy::after {
  content: '';
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 120px;
  background: radial-gradient(circle, #ffe06680 0%, transparent 80%);
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
  animation: glow 2s infinite alternate;
}
@keyframes glow {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* HERO SECTION FONT STYLING */
.hero-school-name {
  font-family: 'Fredoka One', cursive;
  font-size: 3.2rem;
  font-weight: 700;
  color: #ffe066;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  text-shadow: 0 4px 32px rgba(0,0,0,0.38), 0 2px 0 #023047, 0 0 2px #023047;
}
.hero-tagline {
  font-family: 'Comic Neue', cursive;
  font-size: 1.7rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 28px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.38), 0 2px 0 #023047, 0 0 2px #023047;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(30px);
  animation: taglineFadeUp 1.2s cubic-bezier(.68,-0.55,.27,1.55) 0.5s forwards;
  position: relative;
  overflow: hidden;
}
@keyframes taglineFadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Remove shine effect */
/* .hero-tagline::after and @keyframes taglineShine are deleted */

/* Ensure no horizontal overflow for admissions section and text */
.admissions-section,
.admissions-text {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Force wrapping and hyphenation for all headings and paragraphs in admissions */
.admissions-text h2,
.admissions-text p {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive font sizes and padding for all breakpoints */
@media (max-width: 991px) {
  .admissions-section {
    padding: 40px 8px;
  }
  .admissions-text {
    padding: 0 4px;
  }
  .admissions-text h2 {
    font-size: 1.2rem;
  }
  .admissions-text p {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .admissions-section {
    padding: 30px 5px;
  }
  .admissions-text {
    padding: 0 2px;
  }
  .admissions-text h2 {
    font-size: 1.05rem;
  }
  .admissions-text p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .admissions-section {
    padding: 20px 2px;
  }
  .admissions-text {
    padding: 0 1px;
  }
  .admissions-text h2 {
    font-size: 0.95rem;
  }
  .admissions-text p {
    font-size: 0.85rem;
  }
}


