/*
 * EduJoy Nursery Page – Playgroup Program
 * Internal sections only. Theme: existing CSS variables from main.css
 * Pure HTML + CSS. No Bootstrap/Tailwind.
 */

/* --------------------------------------------
   Page container (theme-aligned width)
--------------------------------------------- */
.playgroup-page .playgroup-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
@media (min-width: 576px) {
  .playgroup-page .playgroup-container {
    padding: 0 20px;
  }
}
@media (min-width: 992px) {
  .playgroup-page .playgroup-container {
    padding: 0 30px;
  }
}

/* --------------------------------------------
   SECTION 1: Program Overview (2-column)
--------------------------------------------- */
.playgroup-overview {
  padding: 120px 0;
}
@media (max-width: 1199px) {
  .playgroup-overview { padding: 100px 0; }
}
@media (max-width: 991px) {
  .playgroup-overview { padding: 80px 0; }
}
.playgroup-overview-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.playgroup-overview-inner > * {
  flex: 1 1 300px;
}
.playgroup-overview-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}
.playgroup-overview-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.playgroup-overview-content h2 {
  color: var(--header);
  margin-bottom: 20px;
}
.playgroup-overview-content .playgroup-overview-text {
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 24px;
}
.playgroup-overview-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.playgroup-overview-list li {
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  padding: 8px 0 8px 28px;
  position: relative;
}
.playgroup-overview-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--theme);
}

/* --------------------------------------------
   SECTION 2: Academic Focus (pastel bg, 4 cards)
--------------------------------------------- */
.playgroup-academic {
  padding: 120px 0;
  background-color: var(--bg2);
}
@media (max-width: 1199px) {
  .playgroup-academic { padding: 100px 0; }
}
@media (max-width: 991px) {
  .playgroup-academic { padding: 80px 0; }
}
.playgroup-section-title {
  text-align: center;
  color: var(--header);
  margin-bottom: 48px;
}
.playgroup-academic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

@media (max-width: 767px) {
  .playgroup-academic-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding-bottom: 15px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .playgroup-academic-grid::-webkit-scrollbar {
    display: none;
  }
  .playgroup-academic-card {
    flex: 0 0 calc(100% - 40px);
    scroll-snap-align: start;
    min-width: 0;
  }
}
.playgroup-academic-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.playgroup-academic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.playgroup-academic-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.playgroup-academic-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.playgroup-academic-card h3 {
  color: var(--header);
  margin: 20px 20px 10px;
  font-size: 20px;
}
.playgroup-academic-card p {
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 20px 20px;
  flex: 1;
}

/* --------------------------------------------
   SECTION 3: Skill Development (alternating 2-col)
--------------------------------------------- */
.playgroup-skills {
  padding: 120px 0;
}
@media (max-width: 1199px) {
  .playgroup-skills { padding: 100px 0; }
}
@media (max-width: 991px) {
  .playgroup-skills { padding: 80px 0; }
}
.playgroup-skills-block {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
}
.playgroup-skills-block:last-child {
  margin-bottom: 0;
}
.playgroup-skills-block-2 {
  flex-direction: row-reverse;
}
@media (max-width: 767px) {
  .playgroup-skills-block {
    margin-bottom: 40px;
  }

  .playgroup-skills-block,
  .playgroup-skills-block-2 {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .playgroup-skills-content {
    display: contents;
  }

  .playgroup-skills-content h2,
  .playgroup-skills-content .playgroup-skills-heading-2 {
    order: 1;
    margin-bottom: 0;
    width: 100%;
  }

  .playgroup-skills-image {
    order: 2;
    width: 100%;
  }

  .playgroup-skills-content p,
  .playgroup-skills-mini-cards {
    order: 3;
    width: 100%;
  }
}
.playgroup-skills-block > * {
  flex: 1 1 280px;
}
.playgroup-skills-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}
.playgroup-skills-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.4s ease;
}
.playgroup-skills-image:hover img {
  transform: scale(1.05);
}
.playgroup-skills-content h2,
.playgroup-skills-content .playgroup-skills-heading-2 {
  color: var(--header);
  margin-bottom: 16px;
}
.playgroup-skills-content p {
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
}
.playgroup-skills-content p:last-of-type {
  margin-bottom: 0;
}
.playgroup-skills-mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.playgroup-mini-card {
  background: var(--bg2);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.playgroup-mini-card:hover {
  box-shadow: var(--box-shadow);
}
.playgroup-mini-card h4 {
  color: var(--header);
  font-size: 18px;
  margin-bottom: 8px;
}
.playgroup-mini-card p {
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------
   SECTION 4: Daily Routine Snapshot (timeline/grid)
--------------------------------------------- */
.playgroup-routine {
  padding: 120px 0;
  background-color: var(--bg);
}
@media (max-width: 1199px) {
  .playgroup-routine { padding: 100px 0; }
}
@media (max-width: 991px) {
  .playgroup-routine { padding: 80px 0; }
}
.playgroup-routine .playgroup-section-title {
  margin-bottom: 40px;
}
.playgroup-routine-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

@media (max-width: 767px) {
  .playgroup-routine-timeline {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding-bottom: 15px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .playgroup-routine-timeline::-webkit-scrollbar {
    display: none;
  }
  .playgroup-routine-item {
    flex: 0 0 calc(100% - 40px);
    scroll-snap-align: start;
    min-width: 0;
  }
}
.playgroup-routine-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.playgroup-routine-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.playgroup-routine-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.playgroup-routine-icon img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}
.playgroup-routine-text h3 {
  color: var(--header);
  margin-bottom: 8px;
  font-size: 18px;
}
.playgroup-routine-text p {
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}


/* --------------------------------------------
   SECTION 5: Final CTA (gradient, 2 buttons)
--------------------------------------------- */
.playgroup-cta {
  padding: 100px 0;
  text-align: center;
  background: white;
}
@media (max-width: 991px) {
  .playgroup-cta { padding: 80px 0; }
}
.playgroup-cta-head {
  color: var(--header);
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 50px);
}
.playgroup-cta-text {
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.playgroup-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.playgroup-cta-btns .theme-btn,
.playgroup-cta-btns .theme-btn.transparent-2 {
  border-radius: 22px;
}
