/* ============================================================
   SHOP PAGE STYLES
   ============================================================ */

/* ── Shop Hero ── */
.shop-hero {
  position: relative;
  padding: calc(var(--header-h) + 5rem) 0 5rem;
  background: var(--black-stage);
  overflow: hidden;
  text-align: center;
}
.shop-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.shop-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.shop-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,11,0.5) 0%, rgba(10,10,11,0.98) 100%);
}
.shop-hero .container { position: relative; z-index: 1; }
.shop-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.shop-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* ── Filter Tabs ── */
.filter-tabs-wrap { background: var(--dark-surface); padding: 1.25rem 0; border-bottom: 1px solid var(--border-subtle); }
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-tab {
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-smooth);
}
.filter-tab:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.2); }
.filter-tab.active {
  background: var(--grad-red);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 16px rgba(139,26,26,0.4);
}

/* ── Books Grid (Shop) ── */
.shop-books-section { background: var(--dark-surface); padding-top: 4rem; }

.shop-book-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-normal) var(--ease-smooth),
              box-shadow var(--dur-normal) var(--ease-smooth),
              border-color var(--dur-normal) var(--ease-smooth);
}
.shop-book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-gold);
}

.shop-book-cover {
  height: 260px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-book-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}
.shop-book-card:hover .shop-book-cover img { transform: scale(1.06); }

.shop-book-cover-css {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.shop-book-info { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.shop-book-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.shop-book-author {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.shop-book-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-book-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }

/* ── Authors Section ── */
.authors-section { background: var(--black-stage); }

.author-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: transform var(--dur-normal) var(--ease-smooth),
              border-color var(--dur-normal) var(--ease-smooth);
}
.author-card:hover { transform: translateY(-5px); border-color: var(--border-gold); }

.author-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--border-gold);
}
.author-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.author-specialty { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 0.85rem; }
.author-bio { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }


/* ============================================================
   COURSE PAGE STYLES
   ============================================================ */

/* ── Course Hero ── */
.course-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.course-hero-bg { position: absolute; inset: 0; z-index: 0; }
.course-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.course-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(10,10,11,0.92) 50%, rgba(13,43,107,0.6) 100%);
}
.course-hero .container { position: relative; z-index: 1; }

.course-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.course-hero-title span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.course-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(242,237,228,0.78);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.course-hero-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.course-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.course-badge svg { color: var(--gold); }

/* ── Overview ── */
.course-overview-section { background: var(--dark-surface); }

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 900px) { .overview-grid { grid-template-columns: 1fr; } }

.overview-text p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.85; margin-bottom: 1rem; }

.who-its-for { margin-top: 1.75rem; }
.who-its-for h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}
.who-list { display: flex; flex-direction: column; gap: 0.5rem; }
.who-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.who-item::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-gold);
}

.overview-stats-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.overview-stat-item { display: flex; align-items: center; gap: 1rem; }
.overview-stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(139,26,26,0.2);
  border: 1px solid rgba(139,26,26,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--red-bright);
  flex-shrink: 0;
}
.overview-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.overview-stat-lbl { font-size: 0.8rem; color: var(--text-muted); }

/* ── Curriculum ── */
.curriculum-section { background: var(--black-stage); }

.module-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  transition: transform var(--dur-normal) var(--ease-smooth),
              border-color var(--dur-normal) var(--ease-smooth);
}
.module-card:hover { transform: translateX(6px); border-color: var(--border-gold); }

.module-num {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--grad-red);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.module-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.35rem; }
.module-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Learning Outcomes ── */
.learning-section { background: var(--dark-surface); }

.learning-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.learning-item {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform var(--dur-normal), border-color var(--dur-normal);
}
.learning-item:hover { transform: translateY(-4px); border-color: var(--border-gold); }
.learning-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.learning-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.4rem; }
.learning-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }

/* ── Join CTA ── */
.join-cta-section {
  background: linear-gradient(135deg, var(--blue-royal) 0%, var(--red-deep) 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  text-align: center;
}
.join-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.join-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}
.join-cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  position: relative;
}
.join-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── FAQ ── */
.faq-section { background: var(--black-stage); }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}
.faq-item.open { border-color: var(--border-gold); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  transition: color var(--dur-fast);
}
.faq-question:hover { color: var(--gold-light); }
.faq-item.open .faq-question { color: var(--gold-light); }

.faq-chevron {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-normal) var(--ease-smooth),
              background var(--dur-fast);
  color: var(--text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: rgba(201,168,76,0.15); color: var(--gold); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-normal) var(--ease-smooth);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner {
  padding: 0 1.5rem 1.35rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
