/* ===================================================
   JOYNT — BJJ Detail Page (Magazine-style)
   =================================================== */

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative; min-height: 50vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; padding-top: 80px;
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.8) 100%);
}
.page-hero__content { position: relative; z-index: 1; text-align: center; padding: 60px 24px; }
.page-hero__label {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.25em;
  color: var(--color-accent); text-transform: uppercase; margin-bottom: 20px;
  padding: 6px 18px; border: 1px solid rgba(45,212,168,0.5); border-radius: 100px;
}
.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; color: #fff;
  line-height: 1.3; margin-bottom: 16px; letter-spacing: -0.02em;
}
.page-hero__sub { font-size: 1rem; color: rgba(255,255,255,0.7); line-height: 1.8; }

/* ===== MAGAZINE ARTICLE ===== */
.mag-article { background: #fff; padding: 100px 0; }

/* Chapter Header */
.mag-chapter { margin-bottom: 0; }
.mag-chapter__header { margin-bottom: 48px; }
.mag-chapter__num {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em;
  color: var(--color-accent); margin-bottom: 12px;
}
.mag-chapter__title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; line-height: 1.4;
  color: var(--color-text); letter-spacing: -0.01em;
}
.mag-chapter__subtitle {
  display: block; font-size: clamp(0.9rem, 2vw, 1.1rem); font-weight: 500;
  color: var(--color-text-muted); margin-top: 8px;
}

/* Chapter Body — 2-column layout */
.mag-chapter__body {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start;
}
.mag-chapter__body--reverse {
  grid-template-columns: 0.8fr 1.2fr;
}
.mag-chapter__body--reverse .mag-chapter__text { order: 2; }
.mag-chapter__body--reverse .mag-chapter__visual { order: 1; }

.mag-chapter__text p {
  font-size: 0.95rem; line-height: 2; color: var(--color-text-muted); margin-bottom: 20px;
}
.mag-chapter__text p:last-child { margin-bottom: 0; }
.mag-chapter__text strong { color: var(--color-text); font-weight: 700; }
.mag-lead { font-size: 1.05rem !important; font-weight: 500; color: var(--color-text) !important; }

.mag-chapter__visual {
  border-radius: var(--radius-lg); overflow: hidden; height: 360px;
  position: sticky; top: 100px;
}
.mag-chapter__visual img { width: 100%; height: 100%; object-fit: cover; }

/* Dual image layout (Chapter 1) */
.mag-chapter__visual--dual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  height: auto; position: sticky; top: 100px;
}
.mag-chapter__visual--dual img {
  height: 280px; border-radius: var(--radius-md); object-fit: cover;
}

/* Hero-size visual (Chapter 3 — belt ceremony) */
.mag-chapter__visual--hero {
  height: 460px; position: relative;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}
.mag-chapter__visual-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 24px; background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.mag-chapter__visual-caption i { color: var(--color-accent); font-size: 0.9rem; }

/* Divider */
.mag-divider {
  max-width: 120px; height: 1px; margin: 72px auto;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

/* ===== FEATURES (Chapter 2) ===== */
.mag-feature {
  display: flex; gap: 20px; margin-bottom: 28px; padding: 24px;
  background: var(--color-surface); border-radius: var(--radius-md);
  border: 1px solid var(--color-border); transition: var(--transition);
}
.mag-feature:hover { border-color: rgba(45,212,168,0.3); box-shadow: var(--shadow-md); }
.mag-feature:last-child { margin-bottom: 24px; }
.mag-feature__icon {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-glow); color: var(--color-accent); font-size: 1.1rem;
}

/* Feature with thumbnail image */
.mag-feature--with-img { align-items: flex-start; }
.mag-feature__img {
  width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden;
  flex-shrink: 0;
}
.mag-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.mag-feature h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--color-text); }
.mag-feature p { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.8; margin-bottom: 0; }

/* ===== BELT PROGRESSION (Chapter 3) ===== */
.belt-progression {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin: 32px 0; padding: 32px; background: var(--color-surface);
  border-radius: var(--radius-lg); border: 1px solid var(--color-border);
}
.belt-item { text-align: center; }
.belt-item__stripe, .belt-item__colors {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 16px; min-height: 28px;
}
.belt-bar {
  display: block; width: 60px; height: 12px; border-radius: 3px;
}
.belt-bar--white { background: #f0f0f0; border: 1px solid #ddd; width: 140px; position: relative; }
.belt-item__stripes {
  display: flex; gap: 8px; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
}
.belt-item__stripes span { width: 3px; height: 10px; background: #fff; border: 1px solid #ccc; border-radius: 1px; }
.belt-item__stripe { position: relative; }
.belt-bar--blue { background: #1e40af; }
.belt-bar--purple { background: #7B2D8B; }
.belt-bar--brown { background: #8B4513; }
.belt-bar--black { background: #1a1a1a; }
.belt-item__label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--color-text); margin-bottom: 6px; }
.belt-item__desc { font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.6; }

/* ===== MAGAZINE CTA ===== */
.mag-cta {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a 60%, #0f1f1a);
  padding: 100px 0;
}
.mag-cta__inner { text-align: center; max-width: 700px; margin: 0 auto; }
.mag-cta__inner h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 16px; }
.mag-cta__inner p { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 36px; }
.mag-cta__actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mag-cta__back {
  font-size: 0.88rem; color: rgba(255,255,255,0.5); display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.mag-cta__back:hover { color: var(--color-accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .mag-chapter__body,
  .mag-chapter__body--reverse { grid-template-columns: 1fr; }
  .mag-chapter__body--reverse .mag-chapter__text { order: 1; }
  .mag-chapter__body--reverse .mag-chapter__visual { order: 2; }
  .mag-chapter__visual { position: static; height: 280px; }
  .mag-chapter__visual--dual { height: auto; }
  .mag-chapter__visual--dual img { height: 220px; }
  .mag-chapter__visual--hero { height: 360px; }
}

@media (max-width: 768px) {
  .page-hero { min-height: 40vh; }
  .page-hero__content { padding: 40px 20px; }
  .mag-article { padding: 60px 0; }
  .mag-divider { margin: 48px auto; }
  .mag-chapter__body { gap: 28px; }
  .mag-chapter__visual { height: 220px; }
  .mag-chapter__visual--dual { height: auto; }
  .mag-chapter__visual--dual img { height: 160px; }
  .mag-chapter__visual--hero { height: 280px; }
  .mag-feature__img { width: 64px; height: 64px; }
  .belt-progression { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .mag-feature { flex-direction: column; gap: 12px; padding: 20px; }
  .mag-feature__icon { width: 40px; height: 40px; font-size: 0.95rem; }
  .mag-cta { padding: 72px 0; }
}