/* =============================================================================
   Course SEO sections — responsive overview, FAQ, related courses, internal links
   ============================================================================= */

.mse-section {
  position: relative;
}

.mse-section--cream {
  background: linear-gradient(180deg, #fdf9f6 0%, #f8f1ec 100%);
}

.mse-section--white {
  background: #fff;
}

.mse-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.mse-section-head .ed-section-head__text a {
  color: var(--ed-primary-color, #c99770);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mse-section-head .ed-section-head__text a:hover {
  color: #a67d58;
}

/* ── Course overview highlights ─────────────────────────────────────────── */

.mse-overview {
  padding: 2.5rem 0 1rem;
}

.mse-overview__intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ed-paragraph-color, #555);
  margin-bottom: 1.75rem;
  max-width: 900px;
}

.mse-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 576px) {
  .mse-highlights {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .mse-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.mse-highlight {
  background: #fff;
  border: 1px solid rgba(201, 151, 112, 0.15);
  border-radius: 14px;
  padding: 1rem 0.875rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 100%;
}

.mse-highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(201, 151, 112, 0.12);
  border-color: rgba(201, 151, 112, 0.35);
}

.mse-highlight__icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.625rem;
  border-radius: 12px;
  background: rgba(201, 151, 112, 0.12);
  color: var(--ed-primary-color, #c99770);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.mse-highlight__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.25rem;
}

.mse-highlight__value {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ed-title-color, #1a1a1a);
}

.mse-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .mse-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mse-detail-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f0ebe6;
  padding: 1.25rem 1.35rem;
  height: 100%;
}

.mse-detail-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--ed-title-color, #1a1a1a);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mse-detail-card h3 i {
  color: var(--ed-primary-color, #c99770);
}

.mse-detail-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ed-paragraph-color, #555);
  margin: 0;
}

.mse-detail-card a {
  color: var(--ed-primary-color, #c99770);
  font-weight: 600;
}

.mse-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.mse-cta-row .ed-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
}

/* ── Course FAQ ───────────────────────────────────────────────────────────── */

.mse-faq {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.mse-faq .ed-faq__accordion {
  margin-top: 0;
}

.mse-faq .ed-faq__accordion-item {
  border: 1px solid #f0ebe6;
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fff;
}

.mse-faq .ed-faq__accordion-item .accordion-button {
  padding: 1.125rem 3rem 1.125rem 1.25rem;
  font-size: 1rem;
  line-height: 1.45;
  min-height: 56px;
  -webkit-line-clamp: unset;
  display: flex;
  align-items: center;
  text-align: left;
}

@media (max-width: 575px) {
  .mse-faq .ed-faq__accordion-item .accordion-button {
    font-size: 0.9375rem;
    padding: 1rem 2.75rem 1rem 1rem;
  }
}

.mse-faq .ed-faq__accordion-body {
  padding: 0 1.25rem 1.125rem;
}

.mse-faq .ed-faq__accordion-text {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.mse-faq-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.mse-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(201, 151, 112, 0.3);
  color: var(--ed-title-color, #1a1a1a);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  transition: all 0.2s ease;
}

.mse-pill-link:hover {
  background: var(--ed-primary-color, #c99770);
  border-color: var(--ed-primary-color, #c99770);
  color: #fff;
}

/* ── Related courses ────────────────────────────────────────────────────── */

.mse-related .ed-section-head.d-flex-between {
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

@media (max-width: 767px) {
  .mse-related .ed-section-head.d-flex-between {
    flex-direction: column;
    align-items: flex-start;
  }

  .mse-related .ed-section-head__btn {
    width: 100%;
  }

  .mse-related .ed-section-head__btn .ed-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}

.mse-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .mse-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .mse-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mse-related__card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mse-related__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.mse-related__img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f8f1ec;
}

.mse-related__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mse-related__card:hover .mse-related__img img {
  transform: scale(1.04);
}

.mse-related__body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mse-related__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.mse-related__badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(201, 151, 112, 0.12);
  color: var(--ed-primary-color, #c99770);
}

.mse-related__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ed-title-color, #1a1a1a);
  margin-bottom: 0.5rem;
  text-decoration: none;
  display: block;
}

.mse-related__title:hover {
  color: var(--ed-primary-color, #c99770);
}

.mse-related__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ed-paragraph-color, #666);
  margin-bottom: 1rem;
  flex: 1;
}

.mse-related__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mse-related__price {
  font-weight: 800;
  color: var(--ed-primary-color, #c99770);
  font-size: 1rem;
}

.mse-related__link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ed-title-color, #1a1a1a);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 44px;
}

.mse-related__link:hover {
  color: var(--ed-primary-color, #c99770);
}

/* ── Internal links explorer ─────────────────────────────────────────────── */

.mse-explore {
  padding: 2.5rem 0;
}

.mse-explore__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .mse-explore__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.mse-explore__card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(201, 151, 112, 0.12);
  padding: 1.35rem 1.25rem 1.15rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mse-explore__card:hover {
  box-shadow: 0 12px 32px rgba(201, 151, 112, 0.1);
  transform: translateY(-2px);
}

.mse-explore__card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid #f5efe9;
}

.mse-explore__card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201, 151, 112, 0.18), rgba(201, 151, 112, 0.08));
  color: var(--ed-primary-color, #c99770);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.mse-explore__card-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  color: var(--ed-title-color, #1a1a1a);
}

.mse-explore__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mse-explore__list li + li {
  margin-top: 0.25rem;
}

.mse-explore__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.5rem;
  border-radius: 10px;
  color: var(--ed-paragraph-color, #555);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  min-height: 44px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.mse-explore__list a:hover {
  background: rgba(201, 151, 112, 0.08);
  color: var(--ed-primary-color, #c99770);
  padding-left: 0.75rem;
}

.mse-explore__list a i {
  font-size: 0.8rem;
  opacity: 0.5;
  flex-shrink: 0;
}

.mse-explore__list a:hover i {
  opacity: 1;
}

/* spacing inside course detail pages */
.ed-course__details .mse-overview {
  padding-top: 0;
  margin-top: 2rem;
}

/* Course detail tabs — horizontal scroll on mobile */
@media (max-width: 767px) {
  .ed-course-tab-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .ed-course-tab-list::-webkit-scrollbar {
    display: none;
  }

  .ed-course-tab-list .nav-item {
    flex: 0 0 auto;
  }

  .ed-course-tab-list .nav-link {
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.65rem 1rem;
    min-height: 44px;
  }
}
