/* ─── Services Page Hero ─── */
.services-page-hero {
  padding: 10rem 2rem 5rem;
  background: linear-gradient(180deg, #f4f6f9 0%, #edf0f4 100%);
  position: relative;
  overflow: hidden;
}

.services-page-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(238, 99, 78, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.services-page-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(238, 99, 78, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.services-page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.services-page-hero-content .section-badge {
  display: inline-block;
}

.services-page-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #1e2130;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.1rem;
}

.services-page-hero-content p {
  font-size: 1.1rem;
  color: rgba(30, 33, 48, 0.55);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.services-page-hero-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.services-hero-stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(30, 33, 48, 0.5);
}

.services-hero-stat i {
  color: #ee634e;
  font-size: 0.85rem;
}

/* ─── Courses ─── */
.courses {
  padding: 6rem 2rem;
  background: #ffffff;
}

.courses-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.courses-header .section-badge {
  display: inline-block;
}

.courses-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #1e2130;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
}

.courses-header p {
  font-size: 1rem;
  color: rgba(30, 33, 48, 0.5);
  line-height: 1.7;
}

/* Filters */
.courses-filters {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.courses-filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  border: 1px solid rgba(30, 33, 48, 0.15);
  background: #f4f6f9;
  color: rgba(30, 33, 48, 0.55);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.courses-filter-btn:hover {
  border-color: rgba(238, 99, 78, 0.3);
  color: #ee634e;
}

.courses-filter-btn.active {
  background: #ee634e;
  border-color: #ee634e;
  color: white;
}

/* Courses grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-card {
  background: #f4f6f9;
  border: 1px solid rgba(30, 33, 48, 0.08);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(238, 99, 78, 0.25);
  box-shadow: 0 10px 30px rgba(238, 99, 78, 0.07);
}

.course-card.hidden {
  display: none;
}

/* Card top row */
.course-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.course-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-icon-wrap i {
  font-size: 1.3rem;
}

/* Tags */
.course-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 100px;
}

.course-tag--popular {
  background: #ee634e;
  color: white;
}

.course-tag--new {
  background: #2a8a6e;
  color: white;
}

/* Title + desc */
.course-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e2130;
  margin-bottom: 0.5rem;
}

.course-card > p {
  font-size: 0.88rem;
  color: rgba(30, 33, 48, 0.5);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Meta row */
.course-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(30, 33, 48, 0.4);
}

.course-meta-item i {
  font-size: 0.7rem;
  color: #ee634e;
}

/* Schedule pills */
.course-schedule-days {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.course-day {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(30, 33, 48, 0.45);
  background: rgba(30, 33, 48, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* Card footer */
.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(30, 33, 48, 0.07);
}

.course-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.course-price-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e2130;
  letter-spacing: -0.5px;
}

.course-price-label {
  font-size: 0.72rem;
  color: rgba(30, 33, 48, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-enroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  flex-shrink: 0;
}

.course-enroll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(238, 99, 78, 0.3);
}

.course-enroll-btn i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.course-enroll-btn:hover i {
  transform: translate(2px, -2px);
}

.course-card-footer {
  flex-wrap: wrap;
}

.course-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.course-learn-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.08);
  color: #128c4b;
}

.course-learn-btn:hover {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.private-note-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto 2rem;
  padding: 1rem 1.2rem;
  background: rgba(238, 99, 78, 0.06);
  border: 1px solid rgba(238, 99, 78, 0.18);
  border-radius: 14px;
  color: rgba(30, 33, 48, 0.65);
  font-size: 0.92rem;
  line-height: 1.6;
}

.private-note-banner i {
  color: #ee634e;
  margin-top: 0.2rem;
}

/* ─── Schedule Table ─── */
.schedule {
  padding: 6rem 2rem;
  background: #f4f6f9;
}

.schedule-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.schedule-header .section-badge {
  display: inline-block;
}

.schedule-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #1e2130;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
}

.schedule-header p {
  font-size: 1rem;
  color: rgba(30, 33, 48, 0.5);
  line-height: 1.7;
}

.schedule-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(30, 33, 48, 0.1);
  background: #ffffff;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.schedule-table thead {
  background: #f4f6f9;
  border-bottom: 1px solid rgba(30, 33, 48, 0.1);
}

.schedule-table th {
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e2130;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.schedule-table th span {
  display: block;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(30, 33, 48, 0.4);
  font-size: 0.75rem;
  margin-top: 2px;
}

.schedule-table tbody tr {
  border-bottom: 1px solid rgba(30, 33, 48, 0.06);
  transition: background 0.2s ease;
}

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

.schedule-table tbody tr:hover {
  background: rgba(238, 99, 78, 0.02);
}

.schedule-table td {
  padding: 1rem 1.25rem;
  vertical-align: top;
}

.schedule-day-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e2130;
  white-space: nowrap;
  width: 100px;
}

.schedule-pill {
  display: inline-block;
  font-size: 0.75rem;
  color: rgba(30, 33, 48, 0.6);
  background: #f4f6f9;
  border: 1px solid rgba(30, 33, 48, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
  margin: 2px 3px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.schedule-pill:hover {
  border-color: rgba(238, 99, 78, 0.3);
  background: rgba(238, 99, 78, 0.05);
}

/* Saturday note */
.schedule-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(238, 99, 78, 0.06);
  border: 1px solid rgba(238, 99, 78, 0.15);
  border-radius: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.schedule-note i {
  color: #ee634e;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.schedule-note span {
  font-size: 0.87rem;
  color: rgba(30, 33, 48, 0.55);
  line-height: 1.6;
}

/* ─── Instructors ─── */
.instructors {
  padding: 6rem 2rem;
  background: #ffffff;
}

.instructors-header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 3rem;
}

.instructors-header .section-badge {
  display: inline-block;
}

.instructors-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #1e2130;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
}

.instructors-header p {
  font-size: 1rem;
  color: rgba(30, 33, 48, 0.5);
  line-height: 1.7;
}

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.instructor-card {
  background: #f4f6f9;
  border: 1px solid rgba(30, 33, 48, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
  text-align: center;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.instructor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(238, 99, 78, 0.25);
}

.instructor-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.instructor-avatar span {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

.instructor-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e2130;
  margin-bottom: 0.35rem;
}

.instructor-role {
  font-size: 0.78rem;
  color: rgba(30, 33, 48, 0.45);
  line-height: 1.5;
  display: block;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instructors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .services-page-hero {
    padding: 8rem 1.5rem 3.5rem;
  }

  .courses {
    padding: 4rem 1.5rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .course-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .course-card-actions {
    justify-content: stretch;
  }

  .course-learn-btn,
  .course-enroll-btn {
    flex: 1;
    justify-content: center;
  }

  .schedule {
    padding: 4rem 1.5rem;
  }

  .instructors {
    padding: 4rem 1.5rem;
  }

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

  .services-page-hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }
}

@media (max-width: 440px) {
  .instructors-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .instructor-card {
    padding: 1.25rem 0.85rem;
  }
}
