:root {
  /* Vibrant Kids Palette */
  --primary-color: #ff6b6b;
  /* Soft Coral */
  --secondary-color: #4ecdc4;
  /* Turquoise */
  --tertiary-color: #ffe066;
  /* Sunny Yellow */
  --accent-color: #ff9f43;
  /* Bright Orange */
  --bg-color: #f7f9fc;
  --text-color: #2d3436;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius: 20px;
  --font-main: 'Outfit', sans-serif;
  --font-logo: 'Fredoka', sans-serif;
}

.hide {
  display: none !important;
}

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

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at 0% 0%, #fff5f5 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, #f0fdfe 0%, transparent 50%),
    #f7f9fc;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff5252;
}

h1,
h2,
h3,
.logo {
  font-family: var(--font-logo);
  color: var(--primary-color);
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

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

/* Decorative Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(60px);
  opacity: 0.4;
  border-radius: 50%;
  animation: blobFloat 20s infinite alternate;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--secondary-color);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background: var(--tertiary-color);
  top: 40%;
  right: 15%;
  animation-delay: -10s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

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


.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Glassmorphism Header */
header {
  position: fixed;
  top: 15px;
  /* Floating look */
  left: 5%;
  width: 90%;
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(20px);
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

header.scrolled {
  top: 0;
  width: 100%;
  left: 0;
  border-radius: 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.logo img {
  transition: transform 0.3s;
}

.logo:hover img {
  transform: scale(1.1);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
  border-radius: 2px;
}

nav ul li a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 1001;
}

/* Dynamic Banner Section */
#dynamic-banner {
  margin-top: 102px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  color: white;
  padding: 0.8rem 0;
  overflow: hidden;
  position: relative;
}

.banner-marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.banner-item {
  margin-right: 50px;
  font-weight: 600;
  font-size: 1.1rem;
}

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

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

/* Hero Section */
.hero {
  padding: 100px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: transparent;
  /* Reveal blobs */
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(255, 107, 107, 0.4);
}

.hero-image img {
  width: 100%;
  animation: float 4s ease-in-out infinite;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Services Grid */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 50px 0;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* Reviews */
.reviews-section {
  background: transparent;
  padding: 100px 0;
}

.stars {
  color: #f1c40f;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: rgba(45, 52, 71, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 80px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-box h3 {
  color: var(--tertiary-color);
  margin-bottom: 1.5rem;
}

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

/* Admin Dashboard Styling */
.admin-dashboard {
  max-width: 1000px;
  margin: 120px auto;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.admin-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login {
  max-width: 450px;
  width: 100%;
  background: white;
  padding: 3rem;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.admin-mobile-tabs {
  display: none; /* Desktop default */
  gap: 10px;
  margin-bottom: 2rem;
}

.tab-btn {
  flex: 1;
  padding: 0.8rem;
  border-radius: 12px;
  border: 2px solid #eee;
  background: #fdfdfd;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.2);
}

.form-group {
  margin-bottom: 2rem;
  width: 100%;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  background: #fdfdfd;
  border: 2px solid #f0f0f0;
  border-radius: 15px;
  padding: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  background: white;
  box-shadow: 0 0 15px rgba(78, 205, 196, 0.15);
  outline: none;
}

.event-card {
  background: white;
  border: 1px solid #eee;
  padding: 1.2rem;
  border-radius: 18px;
  transition: all 0.3s;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-card:hover {
  transform: scale(1.02);
  border-color: var(--primary-color);
}

/* Review Train Marquee */
.review-train-container {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

.review-train {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: trainMove 20s linear infinite;
}

.review-train:hover {
  animation-play-state: paused;
}

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

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

.review-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  width: 350px;
  box-shadow: var(--shadow);
  text-align: left;
  border: 1px solid #eee;
}

.stars-mini {
  color: #f1c40f;
  margin-bottom: 1rem;
}

.review-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #666;
  font-style: italic;
}

.review-card h4 {
  color: var(--primary-color);
  font-weight: 700;
}

/* Contact Grid & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.info-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.enquiry-form .form-group {
  margin-bottom: 1.2rem;
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  font-family: var(--font-main);
  transition: border-color 0.3s;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .admin-mobile-tabs {
    display: flex !important;
  }

  /* Desktop always shows both, but mobile hides/shows based on choice */
  #highlights-col, #banner-col, #students-section {
    display: none;
  }

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

  .nav-toggle {
    display: block;
  }

  #main-nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 120px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    gap: 3rem;
    z-index: 999;
  }

  #main-nav.active ul {
    right: 0 !important;
  }

  .admin-dashboard h3 {
    font-size: 1.1rem !important; /* Smaller text as requested */
  }

  .admin-dashboard {
    padding: 1.2rem !important;
    margin: 80px auto 20px !important;
    width: 96% !important;
  }

  .student-table-container {
    padding: 0.8rem !important;
    margin: 1.5rem 0;
    border-radius: 12px !important;
    overflow-x: auto; /* Force horizontal scroll */
    -webkit-overflow-scrolling: touch;
  }

  .admin-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .container {
    width: 92%;
  }

  header {
    width: 92%;
    left: 4%;
    padding: 0.5rem 1rem;
    top: 10px;
  }

  .hero {
    padding: 40px 0;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Base Semantic Layout */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Student Table Styles */
.student-table-container {
  overflow-x: auto;
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid #eee;
  margin-top: 1.5rem;
}

.student-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.student-table th, .student-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.student-table th {
  background: #fdfdfd;
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.student-table tr:hover {
  background: #f9f9f9;
}

/* School Highlights Gallery Styles */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
  /* Center cards in their grid area */
}

.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 380px;
  /* Restrict width */
  width: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: hlFadeIn 0.8s ease backwards;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.highlight-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.highlight-card img {
  width: 100%;
  height: 220px;
  /* Fixed height for consistency */
  object-fit: cover;
  /* Perfectly fits image */
  border-bottom: 3px solid var(--secondary-color);
}

.highlight-content {
  padding: 1.5rem;
}

.highlight-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.highlight-content p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

@keyframes hlFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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