/* ============================
   Course Detail Page Styles
   (Extends main style.css)
   ============================ */

/* ---------- Course Hero ---------- */
.course-hero {
  position: relative;
  min-height: 90vh;
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.course-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.course-hero-meta {
  position: relative;
  z-index: 5;
  padding: 7rem var(--pad) 0;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--yellow);
}

.course-hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 4rem var(--pad) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-breadcrumb {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.course-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.course-breadcrumb a:hover {
  border-bottom-color: var(--yellow);
}

.course-hero-tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.course-hero-tags .course-tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(245, 197, 24, 0.4);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
}

.course-hero-tags .course-pillar {
  background: var(--yellow);
  color: var(--black);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
}

.course-hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.course-hero-tagline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  color: var(--yellow);
  font-style: italic;
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.course-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Section: 為誰設計 ---------- */
.who-section {
  background: var(--cream);
  padding: 7rem 0;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.who-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.who-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-900);
}

.who-list li:last-child {
  border-bottom: none;
}

.who-list .check {
  color: var(--yellow);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ---------- Section: 會學到什麼 ---------- */
.skills-section {
  background: var(--white);
  padding: 7rem 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.skill-card {
  padding: 2.5rem;
  background: var(--cream);
  border-radius: 4px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.skill-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 0.75rem;
  display: block;
}

.skill-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.skill-desc {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.85;
}

/* ---------- Section: 一堂課結構 ---------- */
.structure-section {
  background: var(--black);
  color: var(--white);
  padding: 7rem 0;
  position: relative;
}

.structure-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.25 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  pointer-events: none;
}

.structure-section .container {
  position: relative;
  z-index: 2;
}

.timeline {
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: start;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-time {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--yellow);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.timeline-content h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ---------- Section: 課程資訊 ---------- */
.info-section {
  background: var(--cream);
  padding: 7rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 4px;
  border-left: 3px solid var(--yellow);
}

.info-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.info-value {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--black);
  line-height: 1.5;
}

.info-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--black);
  color: var(--white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.info-cta-text h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-cta-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* ---------- Section: FAQ + CTA ---------- */
.course-faq {
  background: var(--white);
  padding: 7rem 0;
}

.course-cta {
  background: var(--black);
  color: var(--white);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.course-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.25 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.3;
  pointer-events: none;
}

.course-cta .container {
  position: relative;
  z-index: 2;
}

.cta-eyebrow {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}

.cta-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.cta-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 3rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Section: 看其他課程 ---------- */
.other-courses {
  background: var(--cream);
  padding: 6rem 0;
}

.other-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.other-course-card {
  display: block;
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
}

.other-course-card:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-4px);
  border-color: var(--black);
}

.other-course-card .other-pillar {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.75rem;
  background: var(--yellow);
  color: var(--black);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.other-course-card h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.other-course-card:hover h3 {
  color: var(--white);
}

.other-course-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: color 0.3s;
}

.other-course-card:hover p {
  color: rgba(255, 255, 255, 0.75);
}

.other-arrow {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--gray-500);
  transition: all 0.3s;
}

.other-course-card:hover .other-arrow {
  color: var(--yellow);
  transform: translate(3px, -3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .who-grid,
  .skills-grid,
  .info-grid,
  .other-courses-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.5rem 0;
  }

  .info-cta {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .course-hero,
  .who-section,
  .skills-section,
  .structure-section,
  .info-section,
  .course-faq,
  .course-cta,
  .other-courses {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .skill-card {
    padding: 1.75rem;
  }

  .info-cta {
    padding: 1.75rem;
  }
}

/* ============================
   PRICE info-card
   ============================ */

.info-card-price {
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.08), rgba(245, 197, 24, 0.02));
  border-color: rgba(245, 197, 24, 0.35) !important;
  position: relative;
}

.price-original-strike {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--gray-500);
  text-decoration: line-through;
  font-weight: 500;
  font-family: var(--sans);
}

.price-discount {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--yellow);
  line-height: 1.1;
  margin-top: 0.2rem;
}

.info-value-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
  font-family: var(--sans);
  margin-top: 0.4rem;
}

@media (max-width: 720px) {
  .price-discount {
    font-size: 1.4rem;
  }
}
