/* ============================================
   KASARACHI FOUNDATION - Programs Page Styles
   ============================================ */

/* Page Hero */
.page-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #0d1b33 100%);
  color: var(--white);
  padding: 120px 0 80px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(13,110,253,0.12) 0%, transparent 60%);
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-hero .badge {
  margin-bottom: 16px;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero .hero-sub {
  font-size: 1.15rem;
  opacity: 0.9;
}

/* Program Detail Section */
.program-detail {
  scroll-margin-top: 80px;
}

.program-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

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

.program-detail-grid.reverse .program-detail-text {
  order: 1;
}

.program-detail-grid.reverse .program-detail-visual {
  order: 0;
}

.program-detail-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.program-visual-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.program-accent-1 {
  background: linear-gradient(135deg, #0D6EFD, #6EA8FE);
}

.program-accent-2 {
  background: linear-gradient(135deg, #198754, #4CAF50);
}

.program-accent-3 {
  background: linear-gradient(135deg, #E91E63, #F06292);
}

.program-accent-4 {
  background: linear-gradient(135deg, #FF9800, #FFB74D);
}

.program-accent-5 {
  background: linear-gradient(135deg, #9C27B0, #BA68C8);
}

.program-accent-6 {
  background: linear-gradient(135deg, #00BCD4, #4DD0E1);
}

.program-big-icon {
  font-size: 6rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.program-detail-text {
  max-width: 580px;
}

.program-number {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(13,110,253,0.1);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.program-detail-text h2 {
  margin-bottom: 8px;
}

.program-lead {
  font-size: 1.15rem;
  color: var(--dark-light);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.6;
}

.program-detail-text p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

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

.program-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--dark-light);
  font-size: 0.95rem;
  display: flex;
  gap: 8px;
}

.program-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
}

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

.program-stats-row {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.program-stat {
  text-align: center;
  padding: 16px 20px;
  background: var(--light);
  border-radius: var(--radius);
  min-width: 100px;
}

.program-stat strong {
  display: block;
  font-size: 1.3rem;
  color: var(--primary);
}

.program-stat small {
  font-size: 0.8rem;
  color: var(--gray);
}

/* Programs Overview Grid */
.programs-overview .programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.program-card {
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.program-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.program-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.program-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* CTA Section */
.cta-section .cta-box {
  padding: 56px 32px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Active Nav Link */
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .program-detail-grid,
  .program-detail-grid.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .program-detail-grid.reverse .program-detail-text {
    order: 0;
  }

  .program-detail-grid.reverse .program-detail-visual {
    order: -1;
  }

  .program-visual-placeholder {
    max-width: 280px;
    aspect-ratio: 1/1;
  }

  .program-big-icon {
    font-size: 4rem;
  }

  .program-detail-text {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 35vh;
    padding: 100px 0 60px;
  }

  .program-stats-row {
    gap: 12px;
  }

  .program-stat {
    flex: 1 1 80px;
    padding: 12px 10px;
  }

  .program-stat strong {
    font-size: 1.1rem;
  }

  .program-visual-placeholder {
    max-width: 220px;
  }

  .program-big-icon {
    font-size: 3.5rem;
  }
}