:root {
  --primary-red: #e63946;
  --primary-blue: #457b9d;
  --accent-yellow: #ffb703;
  --bg-light: #f1faee;
  --text-dark: #1d3557;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
/* --- Header Layout --- */
.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px 0;
}

.fixed-call-button {
  position: fixed;
  right: 10px;
  top: 40px;
  z-index: 99999;
  background: #ff4757;
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevents button text from wrapping */
  animation: pulse-red 2s infinite;
}
.fixed-nav .container {
  display: flex;
  justify-content: space-between; /* Pushes Logo and Call button to opposite sides */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Logo Wrapper --- */
.logo {
  display: flex;
  align-items: center;
  gap: 15px; /* Space between logo image and text */
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: #2f3542;
}

.logo img {
  height: auto;
  display: block;
}

.logo span {
  display: block;
  font-size: 0.85rem;
  color: #ffa502; /* School branding color */
  font-weight: 700;
}

/* --- Animated Call Button --- */

@keyframes pulse-red {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(255, 71, 87, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
  }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .logo div {
    display: none; /* Hides text on very small screens to save space */
  }

  .fixed-nav .container {
    padding: 0 15px;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(253, 251, 251, 0.8) 0%, rgba(235, 237, 238, 0.8) 100%), url("img/bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.badge {
  background: var(--accent-yellow);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 20px 0;
  color: #2a9d8f;
}

h1 span {
  display: block;
  color: var(--primary-red);
}

.event-details {
  list-style: none;
  margin-top: 30px;
}

.event-details li {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Form Styling */
.form-container {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-bottom: 8px solid var(--primary-red);
}

.form-container h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-align: center;
}

.form-container p {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
}

.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: scale(1.02);
  background: #c12a33;
}

.btn-secondary {
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  border-radius: 50px;
  font-weight: bold;
}

/* Activities */
.activities {
  padding: 60px 0;
  text-align: center;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
  font-weight: bold;
  transition: background 0.3s;
}

.card span {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}

.card:hover {
  background: #e9ecef;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero {
    padding: 40px 0;
  }
}

/* --- Global Updates --- */
body {
  padding-top: 80px; /* Space for fixed header */
}

/* --- Fixed & Animated Call Button --- */
.fixed-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-call-animate {
  background: #ff4757;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  animation: pulse-red 2s infinite;
  display: inline-block;
}

@keyframes pulse-red {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
  }
}

/* --- Centered Activity Grid --- */
/* --- Activities Section --- */
.activities {
  padding: 80px 0;
  /* background: radial-gradient(circle, #ffffff 0%, #f0f7ff 100%); */

  background: linear-gradient(135deg, rgba(253, 251, 251, 0.144) 0%, rgba(235, 237, 238, 0.188) 100%), url("img/bg2.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.activities h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 3rem;
  font-weight: 900;
  color: #2d3436;
  text-shadow: 2px 2px 0px #dfe6e9;
}

/* --- Centered Activity Grid --- */
.activity-grid {
  display: grid;
  /* Forces 4 columns on desktop, adjusts on mobile */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- The "Child-Friendly" Card --- */
.card {
  background: white;
  padding: 35px 20px;
  border-radius: 25px; /* Extra rounded */
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #2d3436;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border: 3px solid transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card span {
  display: block;
  font-size: 3rem;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

/* --- Individual Card Colors --- */
.color-1 {
  border-bottom: 6px solid #ff7675;
} /* Reddish */
.color-2 {
  border-bottom: 6px solid #74b9ff;
} /* Blue */
.color-3 {
  border-bottom: 6px solid #55efc4;
} /* Green */
.color-4 {
  border-bottom: 6px solid #ffeaa7;
} /* Yellow */
.color-5 {
  border-bottom: 6px solid #a29bfe;
} /* Purple */
.color-6 {
  border-bottom: 6px solid #fab1a0;
} /* Orange */
.color-7 {
  border-bottom: 6px solid #fd79a8;
} /* Pink */
.color-8 {
  border-bottom: 6px solid #fdcb6e;
} /* Gold */

/* --- Hover Effects --- */
.card:hover {
  transform: translateY(-15px) rotate(2deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.card:hover span {
  transform: scale(1.3) rotate(-10deg);
}

/* Specific hover tint for text */
.color-1:hover {
  color: #d63031;
}
.color-2:hover {
  color: #0984e3;
}
.color-5:hover {
  color: #6c5ce7;
}

/* --- Mobile Fix --- */
@media (max-width: 600px) {
  .activity-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 15px;
  }
  .activities h2 {
    font-size: 2rem;
  }
}

/* --- YouTube Video Styling --- */
.video-section {
  position: relative;
  /* Extra top/bottom padding for the 'lambate' tall look */
  padding: 120px 0 160px 0;
  /* Improved background: darker overlay to make white video frame pop */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(235, 237, 238, 0.4) 100%), url("rainbow-summer-camp/img/bg3.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Wave Decoration - Matches the white section above it */
.wave-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 5;
}
.wave-top svg {
  height: 80px;
  width: 100%;
  fill: #ffffff;
}

.video-header {
  text-align: center;
  margin-bottom: 60px;
  z-index: 10;
}

.mini-title {
  background: #ff4757; /* Bright red for attention */
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
}

.video-header h2 {
  font-size: 3.2rem;
  margin-top: 20px;
  color: #2f3542;
  font-weight: 900;
}

.video-header p {
  color: #57606f;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* Perfect Centering for Video Box */
.video-box {
  position: relative;
  width: 100%;
  max-width: 350px; /* Constrains the width of the floating area */
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container {
  position: relative;
  width: 300px; /* Fixed width as requested */
  height: auto;
  border-radius: 40px; /* Very rounded for child-friendly look */
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  border: 10px solid white; /* Thick white frame */
  background: #000;
  z-index: 2;
  transition: transform 0.3s ease;
}

.video-container:hover {
  transform: scale(1.02); /* Subtle zoom on hover */
}

/* Floating Game Icons - Adjusted Positions for 300px width */
.floating-icon {
  position: absolute;
  font-size: 3.5rem;
  z-index: 3; /* Above background, but can be behind video if preferred */
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.15));
  animation: float 4s ease-in-out infinite;
}

.icon-1 {
  top: -30px;
  left: -50px;
  animation-delay: 0s;
} /* Controller */
.icon-2 {
  bottom: 20px;
  right: -60px;
  animation-delay: 1s;
} /* Puzzle */
.icon-3 {
  top: 50%;
  left: -80px;
  font-size: 3rem;
  animation-delay: 2s;
} /* Ball */
.icon-4 {
  top: 10%;
  right: -70px;
  font-size: 3rem;
  animation-delay: 3.5s;
} /* Art */

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(15deg);
  }
}

/* Responsive Mobile Tweaks */
@media (max-width: 768px) {
  .video-header h2 {
    font-size: 2.2rem;
  }
  .video-section {
    padding: 80px 0;
  }

  /* Make icons smaller on mobile instead of hiding them */
  .floating-icon {
    font-size: 2rem;
  }
  .icon-1 {
    left: -20px;
  }
  .icon-2 {
    right: -20px;
  }
  .icon-3 {
    left: -30px;
  }
  .icon-4 {
    right: -30px;
  }
}

/* --- Modern Footer --- */
.main-footer {
  background: #2f3542;
  color: white;
  padding: 40px 0 20px 0;
  margin-top: 50px;
}

.footer-content {
  text-align: center;
  border-bottom: 1px solid #57606f;
  padding-bottom: 30px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-logo span {
  color: #ffa502;
}

.copyright {
  padding-top: 20px;
  font-size: 0.9rem;
  color: #a4b0be;
  text-align: center;
}
