/*
 * kids.css
 * Styles for the Kids Program page
*/

.kids-program-page {
  --color-secondary-kids: #ffc107; /* Un amarillo energético */
  font-family: var(--font-sans);
  color: #333;
  margin-top: 10rem;
}

/* Titles and General Section Styling */
.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}

/* 1. Hero Section */
.kids-hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  padding: 3rem 1rem;
  background: #f8f9fa;
  text-align: center;
}

.hero-content .hero-title-kids {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content .hero-subtitle-kids {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image img {
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  height: auto;
}

/* 2. Benefits Section */
.kids-benefits {
  padding: 4rem 1rem;
}

.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem; /* A bit more gap for larger screens */
}

.benefit-card {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  padding: 3.5rem 2rem 2rem 2rem;
  border-radius: var(--rounded-lg);
  text-align: center;
  position: relative;
  margin-top: 2.5rem;
  flex: 0 1 340px; /* Don't grow, shrink if needed, with a nice base width */
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  color: white;
  background-color: var(--color-accent);
  border-radius: 50%;
  padding: 15px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}

.benefit-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* 3. Instructor Section */
.kids-instructor {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  background: #f8f9fa;
  padding: 4rem 1rem;
}

.instructor-image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 5px solid white;
  box-shadow: var(--shadow-xl);
}

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

.instructor-name {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-primary-light);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.instructor-bio {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 1rem auto;
}

/* 4. Schedule Section */
.kids-schedule {
  padding: 1rem 1rem;
  height: 600px;
}

.schedule-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.schedule-card-kids {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-lg);
  padding: 1.5rem 2rem 2rem;
  height: 450px;
}

.schedule-list-kids {
  list-style: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.schedule-list-kids li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.schedule-icon {
  color: var(--color-primary);
  margin-right: 1rem;
  width: 30px;
  height: 30px;
}

.schedule-age-groups {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
  border-bottom: 2px solid var(--color-primary-light);
  padding-bottom: 1.5rem;
}

.age-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.group-name {
  font-weight: bold;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.group-ages {
  font-size: 1rem;
  color: var(--color-primary);
}

.schedule-common-note {
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-primary);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
} 


/* Responsive adjustments */
@media (min-width: 768px) {
  .kids-hero {
    grid-template-columns: 1fr; /* Force single column */
    padding: 4rem 2rem;
    text-align: center;
  }

  .hero-content {
    order: 1; /* Text comes first */
  }

  .hero-content .hero-title-kids {
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  .hero-content .hero-subtitle-kids {
    font-size: 2rem;
  }
  
  .hero-image {
    order: 2; /* Image comes second */
    width: 100%;
    max-width: 1000px; /* Limit image width for very large screens */
    margin: 0 auto; /* Center the image container */
  }

  .hero-image img {
    width: 100%;
    max-height: 800px; /* Give it a substantial but not excessive height */
    object-fit: contain;
    border-radius: var(--rounded-xl); /* Even more rounded corners */
  }

  .group-ages {
    font-size: 2rem;
    color: var(--color-text-muted);
  }
  
  .schedule-common-note {
    font-size: 2rem; 
  }
  .schedule-list-kids{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .schedule-list-kids li{
    font-size: 2rem; 
  }

  .benefit-title{
    font-size: 2rem;
  }
  .benefit-text, .instructor-bio{
    font-size: 1.5rem;
  }

  .kids-instructor {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    text-align: left;
  }
  
  .instructor-image img {
    margin: 0;
  }
  
  .instructor-info {
    text-align: left;
  }
  
  .instructor-name {
    margin-top: 0;
  }
} 

@media (min-width: 1024px) {
  .hero-content .hero-title-kids {
    font-size: 3.5rem;
    margin-bottom: 2rem;
  }

  .hero-content .hero-subtitle-kids {
    font-size: 2rem;
  }

  .kids-instructor{
    gap: 0;
  }
}