/* ==========================================================
   FOUND BHUTAN — bhutan-mask-dances.css
   Cultural article design for bhutan/mask-dances-of-bhutan.php
   Prefix: md-
   ========================================================== */

.md-page { font-family: var(--font-body); color: var(--text-mid); }
.md-page * { box-sizing: border-box; }

/* ── HERO ─────────────────────────────────────────────────── */
.md-hero {
  position: relative;
  height: 86vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
}

.md-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.52);
  transform: scale(1.04);
  animation: md-kb 14s ease-out forwards;
}

@keyframes md-kb {
  to { transform: scale(1.00); }
}

.md-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14,45,69,0.95) 0%,
    rgba(14,45,69,0.50) 45%,
    rgba(14,45,69,0.10) 100%
  );
  pointer-events: none;
}

.md-hero__content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 72px;
  animation: md-rise 0.8s ease both 0.15s;
}

@keyframes md-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.md-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.md-hero__eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

.md-hero__eyebrow span {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.md-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.md-hero__title em {
  color: var(--gold);
  font-style: italic;
}

.md-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.md-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,194,26,0.12);
  border: 1px solid rgba(255,194,26,0.28);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 40px;
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.md-breadcrumb {
  background: var(--navy);
  padding: 13px 5%;
  border-bottom: 1px solid rgba(255,194,26,0.10);
}

.md-breadcrumb__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.md-breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.md-breadcrumb a:hover { color: var(--gold); }
.md-breadcrumb__sep { color: rgba(255,255,255,0.2); }
.md-breadcrumb__curr { color: var(--gold); }

/* ── ARTICLE LAYOUT ───────────────────────────────────────── */
.md-article {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  padding: 64px 0 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

/* ── ARTICLE BODY ─────────────────────────────────────────── */
.md-body {}

.md-section {
  margin-bottom: 52px;
  scroll-margin-top: 90px;
}

.md-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #ede8de;
  position: relative;
}

.md-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--gold);
}

.md-body p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin: 0 0 16px;
}

.md-body p:last-child { margin-bottom: 0; }

.md-body strong { color: var(--navy); font-weight: 600; }

/* Intro lead */
.md-lead {
  font-size: 1.08rem !important;
  line-height: 1.9 !important;
  color: var(--navy-mid) !important;
}

/* Split: text + image */
.md-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 52px;
}

.md-split__img {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.md-split__img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.md-split__img::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 80px;
  height: 80px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  opacity: 0.3;
}

/* Numbered list */
.md-body ol {
  padding: 0;
  list-style: none;
  margin: 0 0 20px;
  counter-reset: md-counter;
}

.md-body ol li {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-mid);
  padding: 14px 0 14px 52px;
  position: relative;
  border-bottom: 1px solid rgba(14,45,69,0.07);
  counter-increment: md-counter;
  margin: 0;
}

.md-body ol li:last-child { border-bottom: none; }

.md-body ol li::before {
  content: counter(md-counter);
  position: absolute;
  left: 0;
  top: 14px;
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dance list — two columns */
.md-dance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(14,45,69,0.10);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.md-dance-item {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-mid);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(14,45,69,0.07);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.md-dance-item:nth-child(odd) { background: #f7f5f0; }
.md-dance-item:nth-child(even) { background: #fff; }

.md-dance-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── SIDEBAR ──────────────────────────────────────────────── */
.md-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.md-toc {
  background: #fff;
  border: 1px solid rgba(14,45,69,0.10);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(14,45,69,0.08);
}

.md-toc__header {
  background: var(--navy);
  padding: 14px 18px;
}

.md-toc__title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.md-toc a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-mid);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.md-toc a:hover {
  background: #f7f5f0;
  border-left-color: var(--gold);
  color: var(--navy);
}

/* CTA sidebar card */
.md-cta-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.md-cta-card__eyebrow {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.md-cta-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
}

.md-cta-card__text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin: 0 0 18px;
}

.md-cta-card__btn {
  display: block;
  padding: 12px;
  background: var(--gold);
  color: var(--navy) !important;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: var(--btn-radius);
  transition: background 0.2s;
}

.md-cta-card__btn:hover {
  background: var(--gold-dark);
  color: var(--navy) !important;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .md-article { grid-template-columns: 1fr; gap: 40px; }
  .md-sidebar { position: static; }
  .md-split { grid-template-columns: 1fr; }
  .md-split__img::after { display: none; }
  .md-dance-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .md-hero { height: 78vh; }
  .md-hero__content { padding-bottom: 48px; }
  .md-article { padding: 36px 0 56px; }
}
