/* ====================================
   CLASSES PAGE
   ==================================== */

.page-header {
  position: relative;
  background: linear-gradient(-45deg, #1a0040, #3a0080, #5819BF, #2d0d7a, #4a1aaa);
  background-size: 400% 400%;
  animation: gradientShift 14s ease infinite;
  color: var(--color-white);
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

.page-title {
  color: var(--color-white);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
  animation: fadeUp 0.7s var(--ease-out) 0.1s both;
  position: relative;
}

.page-subtitle {
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--color-accent-cyan);
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: fadeUp 0.7s var(--ease-out) 0.25s both;
  position: relative;
}

/* ====================================
   CLASS LEVEL CARDS
   ==================================== */

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
}

.level-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(88, 25, 191, 0.07);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.level-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-purple);
}

.level-card-header {
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
  position: relative;
}

.level-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.level-preschool .level-card-header::before { background: linear-gradient(90deg, #7a3de8, #3AEEEE); }
.level-reception .level-card-header::before { background: linear-gradient(90deg, #5819BF, #7a3de8); }
.level-junior    .level-card-header::before { background: linear-gradient(90deg, #3a0080, #5819BF); }
.level-advanced  .level-card-header::before { background: linear-gradient(90deg, #1a0040, #3a0080); }

.level-age-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.level-name {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.level-desc {
  font-size: 15px;
  color: var(--color-grey);
  line-height: 1.6;
  margin-bottom: 0;
}

.level-card-body {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.level-features {
  list-style: none;
  margin-top: var(--spacing-md);
}

.level-features li {
  font-size: 14px;
  color: #555;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.level-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.level-features li:last-child {
  border-bottom: none;
}

/* ====================================
   SCHEDULE SECTION
   ==================================== */

.schedule-notice {
  background: linear-gradient(135deg, var(--color-primary-light), #e8deff);
  border: 1.5px solid rgba(88, 25, 191, 0.15);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.schedule-notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  color: var(--color-white);
}

.schedule-notice-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.schedule-notice h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
}

.schedule-notice p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

/* Schedule key facts */
.schedule-facts {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(88, 25, 191, 0.1);
}

.schedule-fact {
  text-align: center;
}

.schedule-fact-number {
  display: block;
  font-family: var(--font-primary);
  font-size: 36px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.schedule-fact-label {
  font-size: 13px;
  color: var(--color-grey);
  margin-top: 4px;
}

/* ====================================
   PRICING
   ==================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  max-width: 800px;
  margin: 0 auto;
}

.price-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(88, 25, 191, 0.08);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-purple);
}

.price-card-header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: var(--spacing-lg);
  color: var(--color-white);
}

.price-tier {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-cyan);
  margin-bottom: 8px;
}

.price-amount {
  font-family: var(--font-primary);
  font-size: 56px;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
}

.price-amount sup {
  font-size: 26px;
  vertical-align: super;
  font-weight: 700;
}

.price-period {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

.price-card-body {
  padding: var(--spacing-lg);
}

.price-includes {
  list-style: none;
  text-align: left;
}

.price-includes li {
  font-size: 14px;
  color: #555;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-includes li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.price-includes li:last-child {
  border-bottom: none;
}

/* Payment info box */
.payment-info {
  background: var(--color-light-grey);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  max-width: 700px;
  margin: var(--spacing-xl) auto 0;
  text-align: center;
  border: 1px solid rgba(88, 25, 191, 0.08);
}

.payment-info h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
}

.payment-info p {
  font-size: 15px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 8px;
}

.payment-info p:last-child { margin-bottom: 0; }

/* ====================================
   CTA
   ==================================== */

.cta-section {
  background: linear-gradient(135deg, #1a0040 0%, var(--color-primary-dark) 40%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: var(--spacing-xxl) var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 20px 60px rgba(58, 0, 128, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(58,238,238,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title { color: var(--color-white); font-size: clamp(28px,5vw,44px); font-weight: 900; margin-bottom: var(--spacing-sm); position: relative; }
.cta-text  { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: var(--spacing-lg); position: relative; }

.cta-section .btn-primary {
  background-color: var(--color-accent-cyan);
  color: var(--color-primary-dark);
  border-color: var(--color-accent-cyan);
  font-weight: 900;
  position: relative;
}
.cta-section .btn-primary:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
  box-shadow: 0 8px 30px rgba(255,255,255,0.3);
}

/* ====================================
   RESPONSIVE
   ==================================== */

/* ====================================
   OPENING HOURS SUMMARY
   ==================================== */

.opening-hours-summary {
  margin-bottom: var(--spacing-xl);
}

.opening-hours-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
  border: 2px solid rgba(88, 25, 191, 0.12);
}

.opening-hours-card h3 {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.hour-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--color-light-grey);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.day {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-primary-dark);
}

.times {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-primary);
}

.hours-note {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: var(--spacing-md) 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8f7ff, #e8e4ff);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent-cyan);
}

.divider {
  border: none;
  border-top: 2px solid rgba(88, 25, 191, 0.08);
  margin: var(--spacing-xl) 0;
}

/* ====================================
   CLASS TIMETABLE
   ==================================== */

.timetable-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-lg);
  border: 1px solid rgba(88, 25, 191, 0.08);
  overflow: hidden;
}

.timetable-header {
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
  color: var(--color-white);
  position: relative;
  background: linear-gradient(-45deg, #1a0040, #3a0080, #5819BF, #4a1aaa);
  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.timetable-header h3 {
  font-size: 26px;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.toggle-icon {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.timetable-header.level-preschool {
  background: linear-gradient(-45deg, #7a3de8, #3AEEEE, #5819BF);
}

.timetable-header.level-reception {
  background: linear-gradient(-45deg, #5819BF, #7a3de8, #3AEEEE);
}

.timetable-header.level-junior {
  background: linear-gradient(-45deg, #3a0080, #5819BF, #7a3de8);
}

.timetable-header.level-advanced {
  background: linear-gradient(-45deg, #1a0040, #3a0080, #5819BF);
}

.timetable-content {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.timetable-content.open {
  max-height: 2000px;
  padding: var(--spacing-lg);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.day-column {
  background: var(--color-light-grey);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
}

.day-label {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 18px;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--spacing-xs);
  text-align: center;
}

.time-slot {
  font-size: 15px;
  color: #555;
  line-height: 1.4;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  white-space: nowrap;
  text-align: center;
  font-weight: 700;
}

.time-slot:last-child {
  border-bottom: none;
}

.pricing-note {
  background: linear-gradient(135deg, var(--color-primary-light), #e8deff);
  border-left: 4px solid var(--color-primary);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
}

.pricing-note p {
  font-size: 16px;
  color: #555;
  margin-bottom: 0;
  line-height: 1.7;
}

.pricing-note strong {
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* ====================================
   PRICING INFO SECTION
   ==================================== */

.pricing-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  text-align: center;
  border: 1px solid rgba(88, 25, 191, 0.08);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-purple);
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
}

.pricing-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 8px;
}

.pricing-card strong {
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
  .page-header { padding: 70px 0 60px; }
  .page-title  { font-size: 36px; }

  .levels-grid   { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }

  .schedule-facts { gap: var(--spacing-md); }

  .cta-section { padding: var(--spacing-xl) var(--spacing-md); }

  .time-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .time-grid {
    grid-template-columns: 1fr;
  }

  .pricing-info {
    grid-template-columns: 1fr;
  }
}
