/* Programs Page Styles */

/* Header */
.page-header {
  background: #fffbf5;
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-wave {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: auto;
  color: #ffffff;
}

.page-header h1 {
  font-size: 56px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  color: #1a202c;
  font-weight: 800;
}

.page-header p {
  font-size: 20px;
  color: #718096;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Filters */
.filters-section {
  margin-top: -40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

.filter-bar {
  background: white;
  padding: 12px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  color: #718096;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  border: none;
  font-size: 15px;
}

.filter-btn.active {
  background: var(--primary);
  color: white;
}

.filter-btn:hover:not(.active) {
  background: var(--muted);
  color: var(--foreground);
}

/* Course Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.course-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0);
}

.course-image-container {
  height: 240px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-img {
  transform: scale(1.05);
}

.course-content {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-type {
  background: #f0f4f8;
  color: #4a5568;
}

.course-title {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.course-desc {
  color: #718096;
  font-size: 15px;
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.5;
}

/* Badge utility */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA Strip */
.cta-strip {
  background: var(--secondary);
  border-radius: 40px;
  padding: 60px;
  text-align: center;
  color: white;
  margin-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.cta-strip h2 {
  color: white;
  font-size: 36px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta-strip p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.cta-bg-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image: radial-gradient(
      circle at 20% 50%,
      white 0%,
      transparent 20%
    ),
    radial-gradient(circle at 80% 20%, white 0%, transparent 20%);
}

/* ============================================
   RESPONSIVE DESIGN - PROGRAMS PAGE
   ============================================ */

/* Tablet (1023px and below) */
@media (max-width: 1023px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .page-header {
    padding: 60px 0 80px;
  }

  .page-header h1 {
    font-size: 40px;
  }

  .cta-strip {
    padding: 48px;
    margin-bottom: 80px;
  }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
  .page-header {
    padding: 50px 0 70px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .page-header p {
    font-size: 17px;
  }

  .filters-section {
    margin-top: -30px;
    margin-bottom: 40px;
  }

  .filter-bar {
    flex-wrap: wrap;
    padding: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
  }

  .course-image-container {
    height: 200px;
  }

  .course-content {
    padding: 20px;
  }

  .course-title {
    font-size: 18px;
  }

  .course-desc {
    font-size: 14px;
  }

  .cta-strip {
    padding: 40px 24px;
    border-radius: 24px;
    margin-bottom: 60px;
  }

  .cta-strip h2 {
    font-size: 28px;
  }

  .cta-strip p {
    font-size: 16px;
    margin-bottom: 24px;
  }
}

/* Small Mobile (639px and below) */
@media (max-width: 639px) {
  .page-header h1 {
    font-size: 28px;
  }

  .page-header p {
    font-size: 16px;
  }

  .filter-bar {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .cta-strip h2 {
    font-size: 24px;
  }
}

/* 4K Screens (3840px+) */
@media (min-width: 3840px) {
  .page-header h1 {
    font-size: 72px;
  }

  .page-header p {
    font-size: 28px;
  }

  .courses-grid {
    gap: 40px;
  }

  .course-image-container {
    height: 320px;
  }

  .cta-strip {
    padding: 80px;
  }

  .cta-strip h2 {
    font-size: 56px;
  }
}
