/* ============================================
   SERVICES PAGE — Page-Specific Styles
   애플어학원 프로그램 안내
   ============================================ */

/* ===== SECTION LABELS & TITLES (redefine from index.css) ===== */
.section-label {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-red);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.section-header {
  margin-bottom: var(--space-2xl);
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #3d3870 60%, #4a4590 100%);
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  background: rgba(255, 187, 58, 0.08);
}

.page-hero .section-label {
  color: var(--color-accent-yellow);
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.page-hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== PROGRAMS NAV ===== */
.programs-nav {
  background-color: var(--color-white);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.programs-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.program-nav-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.program-nav-card:hover {
  border-color: var(--color-accent-red);
  color: var(--color-accent-red);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ===== PROGRAM DETAIL SECTIONS ===== */
.program-section {
  background-color: var(--color-white);
}

.program-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.program-detail.reverse {
  direction: rtl;
}

.program-detail.reverse > * {
  direction: ltr;
}

.program-detail-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

.program-detail-text {
  padding: var(--space-md) 0;
}

.program-age-badge {
  display: inline-block;
  background-color: var(--color-accent-red);
  color: var(--color-white);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.program-detail-desc {
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.program-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-features li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 0.9375rem;
}

.program-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent-red);
  font-weight: 700;
  font-size: 1rem;
}

/* ===== SCHEDULE TABLE ===== */
.schedule-section {
  /* bg set via inline style using var(--color-bg-light) */
}

.schedule-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  min-width: 500px;
}

.schedule-table th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  white-space: nowrap;
}

.schedule-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  color: var(--color-text);
  white-space: nowrap;
}

.schedule-table tbody tr:nth-child(even) {
  background-color: var(--color-bg-light);
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:hover {
  background-color: var(--color-bg-alt);
}

/* ===== CTA BANNER (reuse from index.css pattern) ===== */
.cta-banner-section {
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.cta-banner-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
}

.cta-banner-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  background: rgba(255, 187, 58, 0.1);
}

.cta-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.cta-banner-desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== RESPONSIVE: TABLET (<=1024px) ===== */
@media (max-width: 1024px) {
  .programs-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-detail {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .program-detail.reverse {
    direction: ltr;
  }

  .program-detail-image {
    order: -1;
  }
}

/* ===== RESPONSIVE: MOBILE (<=768px) ===== */
@media (max-width: 768px) {
  .page-hero {
    padding: 8rem 0 3rem;
  }

  .page-hero-title {
    font-size: 2rem;
  }

  .program-detail-image img {
    height: 280px;
  }

  .schedule-table th,
  .schedule-table td {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
  }
}

/* ===== RESPONSIVE: SMALL MOBILE (<=480px) ===== */
@media (max-width: 480px) {
  .programs-nav-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 7rem 0 2.5rem;
  }

  .program-detail-image img {
    height: 220px;
  }
}
