/* ═══════════════════════════════════════════════════════════
   PAGE: Learn Hub (page-learn.php)
   Also used for: temples listing, history listing, type listing
═══════════════════════════════════════════════════════════ */
.learn-page { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 80px; }

/* ── LISTING HERO (shared across temples, history, guides) ── */
.listing-hero {
  padding: 48px 0 36px; border-bottom: .5px solid var(--br);
  margin-bottom: 32px; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.lh-eyebrow {
  font-size: 10.5px; font-weight: 500; letter-spacing: .10em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.lh-eyebrow::before { content: ''; width: 20px; height: .5px; background: var(--t3); }
.lh-h1 {
  font-family: var(--font-d); font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400; color: var(--t1); line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 10px;
}
.lh-lead { font-size: 14px; color: var(--t2); line-height: 1.65; max-width: 560px; }
.lh-stats { display: flex; gap: 24px; margin-top: 20px; }
.lhstat-n { font-family: var(--font-d); font-size: 24px; color: var(--t1); line-height: 1; margin-bottom: 3px; }
.lhstat-l { font-size: 11px; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; }

/* ── FILTER BAR (shared) ── */
.filter-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.filter-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg0); border: .5px solid var(--br);
  border-radius: var(--r-lg); padding: 8px 14px;
  flex: 1; min-width: 200px; max-width: 320px;
}
.filter-search input {
  font-family: var(--font-b); font-size: 13.5px; color: var(--t1);
  border: none; background: transparent; outline: none; flex: 1;
}
.filter-search input::placeholder { color: var(--t3); }
.filter-search svg { width: 14px; height: 14px; stroke: var(--t3); fill: none; stroke-width: 2; flex-shrink: 0; }
.filter-count { font-size: 12.5px; color: var(--t3); margin-left: auto; white-space: nowrap; }

/* ── HERO ──────────────────────────────────────────────── */
.learn-hero {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 40px; padding: 52px 0 40px;
  border-bottom: .5px solid var(--br); margin-bottom: 40px;
  align-items: end;
}
.learn-eyebrow {
  font-size: 10.5px; font-weight: 500; letter-spacing: .10em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.learn-eyebrow::before { content: ''; width: 20px; height: .5px; background: var(--t3); }
.learn-h1 {
  font-family: var(--font-d); font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400; color: var(--t1); line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 14px;
}
.learn-lead {
  font-family: var(--font-i); font-size: 15px; color: var(--t2);
  line-height: 1.75; font-style: italic; max-width: 540px; margin-bottom: 20px;
}
.learn-stats { display: flex; gap: 24px; padding-top: 16px; border-top: .5px solid var(--br); }

/* Search bar */
.hero-search {
  background: var(--bg0); border: .5px solid var(--br);
  border-radius: var(--r-xl); padding: 6px; display: flex; align-items: center;
  align-self: end;
}
.hs-input {
  flex: 1; font-family: var(--font-b); font-size: 14px;
  color: var(--t1); border: none; background: transparent;
  outline: none; padding: 10px 14px;
}
.hs-input::placeholder { color: var(--t3); }
.hs-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--t1); color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 10px 18px; border-radius: var(--r-lg); border: none;
  cursor: pointer; font-family: var(--font-b); transition: background .15s;
  white-space: nowrap;
}
.hs-btn:hover { background: #3D2B1F; }
.hs-btn svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; }

/* ── BEGINNER CARD ─────────────────────────────────────── */
.beginner-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--t1); border-radius: var(--r-xl); overflow: hidden;
  position: relative; margin-bottom: 40px;
}
.bc-left { padding: 36px 40px; position: relative; z-index: 1; }
.bc-right {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); position: relative;
}
.bc-eyebrow {
  font-size: 10.5px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 12px;
}
.bc-h2 {
  font-family: var(--font-d); font-size: 24px; font-weight: 400;
  color: #fff; line-height: 1.2; margin-bottom: 10px;
}
.bc-sub { font-size: 13.5px; color: rgba(255,255,255,.5); line-height: 1.65; margin-bottom: 20px; }
.bc-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold); color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 10px 20px; border-radius: var(--r-xl); border: none;
  cursor: pointer; font-family: var(--font-b); transition: background .15s;
  text-decoration: none;
}
.bc-cta:hover { background: var(--gold-dim); }
.bc-cta svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 1.5; }

/* ── CARD GRIDS ────────────────────────────────────────── */
.cards-grid { gap: 14px; display: grid; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.acard {
  background: var(--bg0); border: .5px solid var(--br);
  border-radius: var(--r-xl); overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer; display: flex; flex-direction: column; text-decoration: none;
}
.acard:hover { border-color: var(--br-md); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.acard-img {
  aspect-ratio: 16/9; background: var(--bg2); position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.acard-img img { width: 100%; height: 100%; object-fit: cover; }
.acard-img svg { width: 28px; height: 28px; stroke: var(--t3); fill: none; stroke-width: 1.2; }
.acard-tag {
  position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 500;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  color: rgba(255,255,255,.85); padding: 3px 8px; border-radius: 4px;
}
.acard-body { padding: 14px 16px 16px; flex: 1; }
.acard-cat {
  font-size: 10.5px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .04em; color: var(--gold-dim); margin-bottom: 4px;
}
.acard-title { font-size: 14.5px; font-weight: 500; color: var(--t1); line-height: 1.35; margin-bottom: 4px; }
.acard-sub { font-size: 12px; color: var(--t2); line-height: 1.5; }

/* ── ABOUT PAGE CONTENT ────────────────────────────────── */
.about-content {
  max-width: 720px;
  margin-bottom: 60px;
}
.about-content p,
.about-content div,
.about-content span,
.about-content h2,
.about-content h3,
.about-content li {
  background: none !important;
  color: var(--t2) !important;
  font-family: var(--font-b) !important;
  font-size: 15px !important;
  line-height: 1.82 !important;
  margin-bottom: 14px;
  padding: 0 !important;
  border: none !important;
}
.about-content h2 {
  font-family: var(--font-d) !important;
  font-size: 22px !important;
  color: var(--t1) !important;
  margin: 32px 0 12px !important;
  line-height: 1.2 !important;
}
.about-content h3 {
  font-family: var(--font-d) !important;
  font-size: 18px !important;
  color: var(--t1) !important;
  margin: 24px 0 8px !important;
  line-height: 1.3 !important;
}
.about-content strong,
.about-content b {
  color: var(--t1) !important;
  font-weight: 500;
}
.about-content a {
  color: var(--gold-dim) !important;
  border-bottom: 1px solid var(--gold-b);
}
.about-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--r) !important;
  margin: 16px 0 !important;
}

/* ── FEATURED MONKS GRID (shared with homepage) ───────── */
.fm-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }
.fm-card {
  background: var(--bg1); border: .5px solid var(--br);
  border-radius: var(--r-lg); padding: 18px 14px 16px;
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
}
.fm-card:hover {
  border-color: var(--br-md); background: var(--bg0);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.fm-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 10px;
  background: var(--bg2); border: 2px solid var(--br);
  display: flex; align-items: center; justify-content: center;
}
.fm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fm-avatar svg { width: 28px; height: 28px; color: var(--t3); }
.fm-name { font-size: 12.5px; font-weight: 500; color: var(--t1); line-height: 1.35; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .learn-hero { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .fm-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .learn-hero { padding: 36px 0 32px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .beginner-card { grid-template-columns: 1fr; }
  .bc-right { display: none; }
  .listing-hero { flex-direction: column; align-items: flex-start; padding: 36px 0 28px; }
  .lh-stats { gap: 16px; }
  .lhstat-n { font-size: 20px; }
  .fm-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .fm-card { padding: 14px 10px 12px; }
  .fm-avatar { width: 60px; height: 60px; }
  .fm-name { font-size: 11.5px; }
}
@media (max-width: 500px) {
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .fm-grid { grid-template-columns: repeat(2,1fr); }
}

/* ═══════════════════════════════════════════════════════════
   BEGINNER JOURNEY · BUY SAFELY · FAQ · FINAL CTA
   Aligned to TAC design system (gold + warm beige + Gloock serif).
═══════════════════════════════════════════════════════════ */

.learn-journey { margin: 0 0 44px; }
.learn-journey-head { margin-bottom: 22px; }
.learn-eyebrow--start { color: var(--gold); }
.learn-journey-h {
  font-family: var(--font-d); font-size: clamp(26px, 3vw, 34px);
  font-weight: 400; color: var(--t1); line-height: 1.15;
  letter-spacing: -0.015em; margin: 6px 0 10px;
}
.learn-journey-sub {
  font-family: var(--font-i); font-size: 15px; color: var(--t2);
  line-height: 1.7; font-style: italic; margin: 0;
}

/* ── Accordion ───────────────────────────────────────────── */
.learn-acc {
  border-bottom: 0.5px solid var(--br);
  background: transparent;
  transition: background 0.2s;
}
.learn-acc:first-of-type { border-top: 0.5px solid var(--br); }
.learn-acc[open] { background: var(--gold-l); }

.learn-acc__sum {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 4px; cursor: pointer;
  list-style: none; user-select: none;
  transition: padding 0.15s;
}
.learn-acc__sum::-webkit-details-marker { display: none; }
.learn-acc[open] .learn-acc__sum { padding-left: 18px; padding-right: 18px; }

.learn-acc__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold-b);
  font-family: var(--font-d); font-size: 14px; font-weight: 400;
  flex-shrink: 0; transition: all 0.15s;
}
.learn-acc[open] .learn-acc__num {
  background: var(--gold); color: #fff; border-color: var(--gold);
}
.learn-acc__sum:hover .learn-acc__num { border-color: var(--gold); }

.learn-acc__title {
  flex: 1;
  font-family: var(--font-b); font-size: 16px; font-weight: 500;
  color: var(--t1); line-height: 1.35;
}

.learn-acc__chev {
  font-family: var(--font-b); font-size: 18px; color: var(--t3);
  font-weight: 300; transition: transform 0.25s, color 0.15s;
  flex-shrink: 0;
}
.learn-acc[open] .learn-acc__chev {
  transform: rotate(180deg); color: var(--gold);
}

.learn-acc__body {
  padding: 0 18px 22px 64px;
  font-family: var(--font-b);
  font-size: 14.5px; color: var(--t2); line-height: 1.75;
}
.learn-acc__body p { margin: 0 0 14px; }
.learn-acc__body p:last-child { margin-bottom: 0; }
.learn-acc__body strong { color: var(--t1); font-weight: 600; }
.learn-acc__body em {
  font-family: var(--font-i); color: var(--t2); font-style: italic;
}

.learn-bullets { padding-left: 20px; margin: 0; }
.learn-bullets li { margin-bottom: 9px; line-height: 1.7; }
.learn-bullets li:last-child { margin-bottom: 0; }
.learn-bullets li::marker { color: var(--gold); }

.learn-types { padding-left: 24px; margin: 0 0 14px; }
.learn-types li {
  margin-bottom: 12px; line-height: 1.7;
}
.learn-types li::marker { color: var(--gold); font-weight: 600; }
.learn-thai {
  font-family: var(--font-i); color: var(--t3);
  font-size: 13px; font-style: italic; margin-left: 4px;
}

.learn-intent-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 16px;
}
.learn-intent {
  display: block; padding: 14px 16px;
  background: #fff; border: 0.5px solid var(--br); border-radius: var(--r);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.learn-intent:hover {
  border-color: var(--gold-b); transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.learn-intent__h {
  font-family: var(--font-b); font-size: 13.5px; font-weight: 600;
  color: var(--t1); margin-bottom: 4px;
}
.learn-intent__t {
  font-family: var(--font-i); font-size: 12.5px; color: var(--t3);
  font-style: italic;
}

.learn-link-row { margin: 16px 0 0; font-size: 14px; }
.learn-link-row a {
  color: var(--gold); font-weight: 500; text-decoration: none;
  font-family: var(--font-b);
  border-bottom: 1px solid transparent; transition: border-color 0.15s;
}
.learn-link-row a:hover { border-bottom-color: var(--gold); }

/* ═══ BUY SAFELY (trust) ═══════════════════════════════════ */
.learn-trust {
  background: linear-gradient(140deg, var(--bg2) 0%, var(--gold-l) 100%);
  border-radius: var(--r-lg);
  padding: 36px 38px;
  margin: 48px 0;
}
.learn-trust__h {
  font-family: var(--font-d); font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 400; color: var(--t1); line-height: 1.2;
  letter-spacing: -0.01em; margin: 0 0 10px;
}
.learn-trust__lead {
  font-family: var(--font-i); font-size: 15px; color: var(--t2);
  font-style: italic; line-height: 1.7; margin: 0 0 26px;
  max-width: 680px;
}
.learn-trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.learn-trust__pillar {
  background: #fff; border-radius: var(--r);
  padding: 20px 18px;
  border: 0.5px solid var(--br);
  transition: transform 0.15s, box-shadow 0.15s;
}
.learn-trust__pillar:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-card);
}
.learn-trust__icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold-l); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.learn-trust__pillar-h {
  font-family: var(--font-b); font-size: 14px; font-weight: 600;
  margin-bottom: 6px; color: var(--t1);
}
.learn-trust__pillar p {
  font-size: 13px; color: var(--t2); margin: 0; line-height: 1.6;
}

/* ═══ FAQ ══════════════════════════════════════════════════ */
.learn-faq { margin: 48px 0; }
.learn-faq__h {
  font-family: var(--font-d); font-size: clamp(26px, 3vw, 32px);
  font-weight: 400; color: var(--t1); line-height: 1.15;
  letter-spacing: -0.015em; margin: 0 0 10px;
}
.learn-faq__sub {
  font-family: var(--font-i); font-size: 15px; color: var(--t2);
  font-style: italic; line-height: 1.7; margin: 0 0 24px;
}
.learn-faq__sub a {
  color: var(--gold); border-bottom: 1px solid var(--gold-b);
  transition: border-color 0.15s; text-decoration: none;
}
.learn-faq__sub a:hover { border-bottom-color: var(--gold); }

.learn-faq__item {
  border-bottom: 0.5px solid var(--br);
  padding: 0;
  transition: background 0.2s;
}
.learn-faq__item:first-child { border-top: 0.5px solid var(--br); }
.learn-faq__item[open] { background: var(--bg1); }

.learn-faq__q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 8px; cursor: pointer;
  font-family: var(--font-b); font-size: 15px; font-weight: 500;
  color: var(--t1);
  list-style: none; user-select: none;
  line-height: 1.4;
  transition: color 0.15s;
}
.learn-faq__q::-webkit-details-marker { display: none; }
.learn-faq__q:hover { color: var(--gold); }
.learn-faq__item[open] .learn-faq__q { color: var(--gold-dim); }

.learn-faq__chev {
  font-family: var(--font-b); font-size: 22px; color: var(--gold);
  font-weight: 300; flex-shrink: 0; margin-left: 16px;
  transition: transform 0.25s; line-height: 1;
}
.learn-faq__item[open] .learn-faq__chev { transform: rotate(45deg); }

.learn-faq__a {
  padding: 0 8px 20px;
  font-family: var(--font-b);
  font-size: 14.5px; color: var(--t2); line-height: 1.75;
}
.learn-faq__a p { margin: 0 0 12px; }
.learn-faq__a p:last-child { margin-bottom: 0; }
.learn-faq__a a {
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid var(--gold-b); transition: border-color 0.15s;
}
.learn-faq__a a:hover { border-bottom-color: var(--gold); }

/* ═══ FINAL CTA ════════════════════════════════════════════ */
.learn-finalcta {
  text-align: center; padding: 48px 24px; margin: 48px 0 0;
  background: var(--bg1); border-radius: var(--r-lg);
  border: 0.5px solid var(--br);
}
.learn-finalcta__h {
  font-family: var(--font-d); font-size: clamp(26px, 3vw, 32px);
  font-weight: 400; color: var(--t1); line-height: 1.15;
  letter-spacing: -0.015em; margin: 0 0 10px;
}
.learn-finalcta__sub {
  font-family: var(--font-i); font-size: 15px; color: var(--t2);
  font-style: italic; line-height: 1.7; margin: 0 0 26px;
}
.learn-finalcta__btns {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.learn-finalcta__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-xl);
  font-family: var(--font-b); font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s, border-color 0.15s;
}
.learn-finalcta__btn--primary {
  background: var(--gold); color: #fff; border: 1px solid var(--gold);
}
.learn-finalcta__btn--primary:hover { background: var(--gold-dim); border-color: var(--gold-dim); }
.learn-finalcta__btn--tg {
  background: #fff; color: var(--t1); border: 1px solid var(--br-md);
}
.learn-finalcta__btn--tg:hover { border-color: var(--t1); }
.learn-finalcta__btn--tg svg { fill: #229ED9; }
.learn-finalcta__btn--wa {
  background: #fff; color: var(--wa-dark); border: 1px solid var(--br-md);
}
.learn-finalcta__btn--wa:hover { border-color: var(--wa); }

/* ═══ Mobile responsive ════════════════════════════════════ */
@media (max-width: 900px) {
  .learn-trust__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .learn-intent-grid { grid-template-columns: repeat(2, 1fr); }
  .learn-acc__body { padding: 0 16px 18px 16px; }
  .learn-acc__sum { padding-left: 4px; padding-right: 4px; }
  .learn-acc[open] .learn-acc__sum { padding-left: 14px; padding-right: 14px; }
  .learn-acc__num { width: 26px; height: 26px; font-size: 13px; }
  .learn-acc__title { font-size: 14.5px; }
  .learn-trust { padding: 26px 22px; }
}
@media (max-width: 500px) {
  .learn-intent-grid { grid-template-columns: 1fr; }
  .learn-trust__grid { grid-template-columns: 1fr; }
  .learn-finalcta { padding: 36px 20px; }
  .learn-finalcta__btns { flex-direction: column; }
  .learn-finalcta__btn { width: 100%; justify-content: center; }
}
