/* ==========================================================================
   CUSTOM PAGE STYLES
   A self-contained design system for new pages/posts, kept fully separate
   from the theme's existing stylesheet.

   NAMING CONVENTION
   - Every custom page/post wraps its content in .cps-page (scopes everything)
   - Every custom class is prefixed with "cps-" to avoid collisions
   - Never override bare tag selectors (a, p, h2, etc.) at the top level —
     always scope through .cps-page so the rest of the site is untouched

   2026-07-07 — CLEANUP: the old V2 (Sacred Light) and V3 (Evening Aarti)
   concept namespaces were removed. V1 (Temple Dawn) is the base theme, and
   three new layout variants of it are provided:
     .cps-va  = Variant A (follows the brief exactly)
     .cps-vb  = Variant B (tighter, list-style news, alternating gurus)
     .cps-vc  = Variant C (editorial, overlay tiles, CTA band, big footer)
   Add ONE of these next to "cps-page cps-v1" on the page wrapper group.
   ========================================================================== */

/* -------------------- Design tokens -------------------- */
.cps-page {
  --cps-color-primary: #2c4a5c;
  --cps-color-primary-dark: #1c313f;
  --cps-color-gold: #b8935a;
  --cps-color-text: #2b2b2b;
  --cps-color-text-muted: #767676;
  --cps-color-bg: #ffffff;
  --cps-color-bg-alt: #f7f5f0;
  --cps-color-hairline: #e5e0d8;
  --cps-radius: 6px;
  --cps-font-heading: 'Playfair Display', Georgia, serif;
  --cps-font-body: 'Lato', sans-serif;
  --cps-max-width: 1140px;
  --cps-content: 1140px; /* inner content width, overridden per variant */

  color: var(--cps-color-text);
  font-family: var(--cps-font-body);
  line-height: 1.6;
}

/* -------------------- Layout helpers -------------------- */
.cps-section {
  padding: 36px 22px;
}

.cps-section--alt {
  background: var(--cps-color-bg-alt);
}

.cps-container {
  max-width: var(--cps-max-width);
  margin: 0 auto;
}

/* Constrain each section's direct children while the section background
   itself stays full-bleed. This is the main horizontal-tightening control:
   change --cps-content per variant. */
.cps-section > * {
  max-width: var(--cps-content);
  margin-left: auto;
  margin-right: auto;
}

/* WP columns ship default block margins that add vertical air — remove */
.cps-page .wp-block-columns {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* -------------------- Typography -------------------- */
.cps-page h1,
.cps-page h2,
.cps-page h3 {
  font-family: var(--cps-font-heading);
  line-height: 1.2;
}

.cps-page h4 {
  font-family: var(--cps-font-heading);
  line-height: 1.25;
}

.cps-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--cps-color-gold);
}

.cps-text-muted {
  color: var(--cps-color-text-muted);
}

.cps-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--cps-color-gold);
  margin: 0 0 4px;
}

.cps-chip {
  display: inline-block;
  background: var(--cps-color-gold);
  color: #3a2408;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  margin: 12px 0 8px;
}

/* Centered section title — tightened */
.cps-section-title {
  text-align: center;
  font-size: 27px;
  margin: 0 auto 20px;
  position: relative;
  padding-bottom: 12px;
}

.cps-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--cps-color-gold);
}

/* Left-aligned compact heading used inside split sections (saves a full
   centered title band) */
.cps-h {
  font-family: var(--cps-font-heading);
  font-size: 23px;
  margin: 0 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--cps-color-hairline);
  position: relative;
}
.cps-h::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 2px;
  background: var(--cps-color-gold);
}

/* -------------------- Buttons -------------------- */
.cps-btn .wp-block-button__link {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--cps-radius);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cps-btn-primary .wp-block-button__link {
  background: var(--cps-color-primary);
  color: #fff;
}

.cps-btn-primary:hover .wp-block-button__link {
  background: var(--cps-color-primary-dark);
  color: #fff;
}

.cps-btn-secondary .wp-block-button__link {
  background: transparent;
  color: var(--cps-color-primary);
  border: 1px solid var(--cps-color-gold);
}

.cps-btn-secondary:hover .wp-block-button__link {
  background: var(--cps-color-gold);
  border-color: var(--cps-color-gold);
  color: #fff;
}

.cps-btn-primary:hover,
.cps-btn-secondary:hover {
  transform: translateY(-1px);
}

/* Small text link with arrow, for "See all →" rows */
.cps-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cps-color-primary);
  text-decoration: none;
}
.cps-more::after {
  content: " \2192";
  color: var(--cps-color-gold);
  transition: transform 0.2s ease;
  display: inline-block;
}
.cps-more:hover::after {
  transform: translateX(4px);
}

/* -------------------- Cards -------------------- */
.cps-card {
  background: var(--cps-color-bg);
  border: 1px solid var(--cps-color-hairline);
  border-radius: var(--cps-radius);
  padding: 22px;
  box-shadow: 0 4px 20px rgba(44, 74, 92, 0.05);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cps-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(44, 74, 92, 0.14);
}

.cps-card h3 {
  margin-top: 0;
}

.cps-tile {
  background: var(--cps-color-bg);
  border: 1px solid var(--cps-color-hairline);
  border-radius: var(--cps-radius);
  padding: 24px 20px;
  position: relative;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cps-tile::before {
  content: "\2726";
  display: block;
  color: var(--cps-color-gold);
  font-size: 20px;
  margin-bottom: 10px;
}
.cps-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(44, 74, 92, 0.12);
}
.cps-tile h4 {
  margin-top: 0;
}

/* -------------------- Images -------------------- */
.cps-placeholder-img {
  border-radius: var(--cps-radius);
  overflow: hidden;
  min-height: 160px;
}

.cps-placeholder-img img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cps-card:hover .cps-placeholder-img img,
.cps-gallery-grid .wp-block-column:hover .cps-placeholder-img img {
  transform: scale(1.08);
}

/* -------------------- Clickable cards -------------------- */
/* 1) Cards with a visible button: add "cps-stretched-link" to that button's
      className so the WHOLE card becomes clickable via the real button link.
   2) Cards with no visible button: a "cps-card-link" invisible button is
      added as the last block, stretched to cover the whole card. */
.cps-stretched-link .wp-block-button__link::after,
.cps-card-link .wp-block-button__link {
  content: "";
  position: absolute;
  inset: 0;
}

.cps-card-link .wp-block-button__link {
  background: transparent !important;
  border: none !important;
  color: transparent;
  padding: 0;
  font-size: 0;
}

.cps-gallery-grid .wp-block-column {
  position: relative;
  border-radius: var(--cps-radius);
  transition: transform 0.25s ease;
}

.cps-gallery-grid .wp-block-column:hover {
  transform: translateY(-6px);
}

.cps-gallery-grid .cps-placeholder-img {
  min-height: 140px;
}

/* -------------------- Genesis / promo-page overrides -------------------- */
body.cps-promo-page .site-container,
body.cps-promo-page .site-inner,
body.cps-promo-page .content-sidebar-wrap,
body.cps-promo-page .content,
body.cps-promo-page .entry-content,
body.cps-promo-page article {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.cps-promo-page.custom-background {
  background-color: #ffffff;
}

body.cps-promo-page .entry-header {
  display: none;
}

body.cps-promo-page .entry {
  padding: 0;
  margin-bottom: 0;
}

/* -------------------- Scroll reveal -------------------- */
html.js-reveal .cps-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.js-reveal .cps-reveal.cps-revealed {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   V1 — TEMPLE DAWN (base theme for all current variants)
   ========================================================================== */
.cps-v1 {
  --cps-color-primary: #7a1f2b;
  --cps-color-primary-dark: #5c1620;
  --cps-color-gold: #e0a43c;
  --cps-color-text: #2e2018;
  --cps-color-text-muted: #7c6f61;
  --cps-color-bg-alt: #fbf4e8;
  --cps-color-hairline: #ecdcc3;
}
.cps-v1 h1, .cps-v1 h2, .cps-v1 h3, .cps-v1 h4 {
  color: #4a1420;
}
.cps-v1 .cps-card:hover,
.cps-v1 .cps-tile:hover {
  box-shadow: 0 12px 32px rgba(122, 31, 43, 0.14);
}

/* Tighter paragraph rhythm inside sections */
.cps-v1 .cps-section p {
  margin-top: 0;
  margin-bottom: 10px;
}

/* ---------- Ken Burns hero ---------- */
.cps-kb {
  position: relative;
  height: 74vh;
  min-height: 480px;
  max-height: 780px;
  overflow: hidden;
  background: #1c0d10;
}
.cps-kb__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: cps-kb-fade 24s linear infinite, cps-kb-zin 24s ease-in-out infinite alternate;
  will-change: opacity, transform;
}
.cps-kb__slide:nth-child(2) {
  animation-name: cps-kb-fade, cps-kb-zout;
  animation-delay: 6s, 6s;
}
.cps-kb__slide:nth-child(3) {
  animation-delay: 12s, 12s;
}
.cps-kb__slide:nth-child(4) {
  animation-name: cps-kb-fade, cps-kb-zout;
  animation-delay: 18s, 18s;
}
@keyframes cps-kb-fade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  26% { opacity: 1; }
  33% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes cps-kb-zin {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.16); }
}
@keyframes cps-kb-zout {
  0% { transform: scale(1.16); }
  100% { transform: scale(1.02); }
}
.cps-kb__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 12, 15, 0.42), rgba(26, 12, 15, 0.18) 42%, rgba(26, 12, 15, 0.66));
}
.cps-kb__content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 820px;
  text-align: center;
  color: #fdf6e9;
  z-index: 1;
}
.cps-kb__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 600;
  color: #ecc27a;
  margin: 0 0 14px;
}
.cps-kb__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  color: #fff;
  margin: 0 0 14px;
}
.cps-v1 .cps-kb__title { color: #fff; }
.cps-v1 .cps-kb__eyebrow { color: #ecc27a; }
.cps-kb__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  color: #f3e7d2;
  max-width: 620px;
  margin: 0 auto 24px;
}
.cps-kb__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cps-kb__btn {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid #e0a43c;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.cps-kb__btn:hover {
  transform: translateY(-2px);
  background: rgba(224, 164, 60, 0.15);
  color: #fff;
}
.cps-kb__btn--solid {
  background: #e0a43c;
  color: #3a2408;
}
.cps-kb__btn--solid:hover {
  background: #eab04d;
  color: #3a2408;
}
.cps-kb__cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
}
.cps-kb__cue::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: cps-cue 1.8s ease-in-out infinite;
}
@keyframes cps-cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Hero quick links (Contact / Support / Participate) ---------- */
/* Default: pill cluster pinned to the top-right of the hero */
.cps-kb__quick {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cps-kb__quick a {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(28, 13, 16, 0.35);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cps-kb__quick a:hover {
  background: #e0a43c;
  border-color: #e0a43c;
  color: #3a2408;
}
/* Modifier: full-width translucent bar across the bottom of the hero */
.cps-kb__quick--bar {
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  gap: 0;
  justify-content: center;
  background: rgba(26, 12, 15, 0.58);
  backdrop-filter: blur(3px);
}
.cps-kb__quick--bar a {
  border: none;
  border-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  padding: 13px 30px;
}
.cps-kb__quick--bar a:first-child {
  border-left: none;
}
.cps-kb__quick--bar a:hover {
  background: rgba(224, 164, 60, 0.9);
}
/* Modifier: sits inside the hero content, under the action buttons */
.cps-kb__quick--inline {
  position: static;
  justify-content: center;
  margin-top: 18px;
}
.cps-kb__quick--inline a {
  border-color: rgba(236, 194, 122, 0.55);
  background: transparent;
  color: #ecc27a;
}

/* ---------- News ticker ---------- */
.cps-ticker {
  background: var(--cps-color-primary);
  overflow: hidden;
}
.cps-ticker__track {
  display: inline-flex;
  padding: 12px 0;
  white-space: nowrap;
  animation: cps-ticker 36s linear infinite;
}
.cps-ticker:hover .cps-ticker__track {
  animation-play-state: paused;
}
.cps-ticker__item {
  color: #f6e8cf;
  font-size: 15px;
  margin-right: 56px;
}
.cps-ticker__item strong {
  color: var(--cps-color-gold);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
  margin-right: 10px;
}
@keyframes cps-ticker {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   2026-07-07 · NEW HOMEPAGE COMPONENTS
   ========================================================================== */

/* ---------- What's New + Spiritual Conversations split ---------- */
.cps-nsplit {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 26px;
  align-items: start;
}
.cps-newsgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cps-newscard {
  display: block;
  background: var(--cps-color-bg);
  border: 1px solid var(--cps-color-hairline);
  border-left: 3px solid var(--cps-color-gold);
  border-radius: var(--cps-radius);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--cps-color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cps-newscard:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(122, 31, 43, 0.12);
}
.cps-newscard__chip {
  display: block;
  color: var(--cps-color-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cps-newscard__title {
  display: block;
  font-family: var(--cps-font-heading);
  font-size: 17px;
  line-height: 1.3;
  color: #4a1420;
  margin: 5px 0 4px;
}
.cps-newscard__text {
  display: block;
  font-size: 13px;
  color: var(--cps-color-text-muted);
  line-height: 1.5;
}
/* List-style modifier (Variant B): stacked rows instead of a 2×2 grid */
.cps-newsgrid--list {
  grid-template-columns: 1fr;
  gap: 10px;
}
.cps-newsgrid--list .cps-newscard {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 16px;
}
.cps-newsgrid--list .cps-newscard__chip { min-width: 96px; }
.cps-newsgrid--list .cps-newscard__title { margin: 0; font-size: 16px; flex: 1; }
.cps-newsgrid--list .cps-newscard__text { display: none; }

/* Spiritual Conversations panel */
.cps-conv {
  display: grid;
  gap: 14px;
}
.cps-conv__block {
  background: var(--cps-color-bg);
  border: 1px solid var(--cps-color-hairline);
  border-radius: var(--cps-radius);
  padding: 16px 18px;
}
.cps-conv__block h4 {
  margin: 0 0 8px;
  font-size: 17px;
}
.cps-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cps-menu-list--2col {
  column-count: 2;
  column-gap: 22px;
}
.cps-menu-list li {
  break-inside: avoid;
  margin: 0;
}
.cps-menu-list a {
  display: block;
  position: relative;
  padding: 6px 0 6px 17px;
  font-size: 14px;
  color: var(--cps-color-text);
  text-decoration: none;
  border-bottom: 1px dashed var(--cps-color-hairline);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.cps-menu-list li:last-child a {
  border-bottom: none;
}
.cps-menu-list a::before {
  content: "\2726";
  position: absolute;
  left: 0;
  top: 7px;
  font-size: 10px;
  color: var(--cps-color-gold);
}
.cps-menu-list a:hover {
  color: var(--cps-color-primary);
  padding-left: 21px;
}
.cps-conv__sing {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cps-conv__sing img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--cps-color-gold);
  flex: 0 0 auto;
}
.cps-conv__sing p {
  font-size: 13.5px;
  color: var(--cps-color-text-muted);
  margin: 0 0 6px;
}
.cps-conv__sing h4 {
  margin: 0 0 4px;
}

/* ---------- Guru / teacher cards ---------- */
.cps-gurus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.cps-guru {
  display: flex;
  background: var(--cps-color-bg);
  border: 1px solid var(--cps-color-hairline);
  border-radius: var(--cps-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(122, 31, 43, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cps-guru:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(122, 31, 43, 0.14);
}
.cps-guru__img {
  flex: 0 0 42%;
  min-height: 230px;
}
.cps-guru__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cps-guru__body {
  padding: 20px 22px;
  align-self: center;
}
.cps-guru__body h3 {
  margin: 0 0 8px;
  font-size: 21px;
}
.cps-guru__body p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 12px;
}
/* Full-width rows modifier (Variant B): one guru per row, second flipped */
.cps-gurus--rows {
  grid-template-columns: 1fr;
  gap: 18px;
}
.cps-gurus--rows .cps-guru__img { flex-basis: 30%; min-height: 200px; }
.cps-gurus--rows .cps-guru__body { padding: 22px 30px; }
.cps-guru--flip { flex-direction: row-reverse; }
/* Accent modifier (Variant C): gold top rule, name overlapping image */
.cps-gurus--accent .cps-guru { border-top: 3px solid var(--cps-color-gold); }

/* ---------- Begin Your Journey (connected path) ---------- */
.cps-journey {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
}
.cps-jstep {
  flex: 1 1 0;
  max-width: 235px;
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--cps-color-text);
  background: var(--cps-color-bg);
  border: 1px solid var(--cps-color-hairline);
  border-radius: var(--cps-radius);
  padding: 18px 14px 16px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cps-jstep:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(122, 31, 43, 0.13);
}
.cps-jstep__num {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cps-color-gold);
  letter-spacing: 0.08em;
}
.cps-jstep__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cps-color-bg-alt);
  border: 1px solid var(--cps-color-hairline);
  color: var(--cps-color-gold);
  transition: transform 0.25s ease;
}
.cps-jstep:hover .cps-jstep__icon {
  transform: scale(1.1);
}
.cps-jstep__icon svg {
  width: 26px;
  height: 26px;
}
.cps-jstep__title {
  display: block;
  font-family: var(--cps-font-heading);
  font-size: 16.5px;
  color: #4a1420;
  margin-bottom: 4px;
}
.cps-jstep__text {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cps-color-text-muted);
}
.cps-jarrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--cps-color-gold);
  padding: 0 4px;
  line-height: 0;
}
.cps-jarrow svg {
  width: 24px;
  height: 24px;
}
/* Line modifier (Variant B): open steps threaded on a single gold line */
.cps-journey--line { gap: 0; position: relative; }
.cps-journey--line::before {
  content: "";
  position: absolute;
  top: 27px; /* half of icon height */
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--cps-color-hairline);
}
.cps-journey--line .cps-jstep {
  background: transparent;
  border: none;
  padding-top: 0;
}
.cps-journey--line .cps-jstep:hover { box-shadow: none; }
.cps-journey--line .cps-jstep__icon {
  position: relative;
  z-index: 1;
  background: var(--cps-color-bg);
  border: 2px solid var(--cps-color-gold);
}
.cps-journey--line .cps-jarrow { display: none; }

/* ---------- Latest Teachings ---------- */
.cps-teach {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cps-teachcard {
  display: block;
  text-decoration: none;
  color: var(--cps-color-text);
  background: var(--cps-color-bg);
  border: 1px solid var(--cps-color-hairline);
  border-radius: var(--cps-radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cps-teachcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(122, 31, 43, 0.13);
}
.cps-teachcard__img {
  display: block;
  overflow: hidden;
}
.cps-teachcard__img img {
  width: 100%;
  height: 138px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cps-teachcard:hover .cps-teachcard__img img {
  transform: scale(1.07);
}
.cps-teachcard__title {
  display: block;
  font-family: var(--cps-font-heading);
  font-size: 17.5px;
  color: #4a1420;
  padding: 12px 15px 3px;
}
.cps-teachcard__text {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cps-color-text-muted);
  padding: 0 15px 14px;
}
/* Overlay modifier (Variant C): title sits on the photo, no text block */
.cps-teach--overlay .cps-teachcard { position: relative; border: none; }
.cps-teach--overlay .cps-teachcard__img img { height: 190px; }
.cps-teach--overlay .cps-teachcard__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 34px 15px 12px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(30, 10, 12, 0.82));
}
.cps-teach--overlay .cps-teachcard__text { display: none; }

/* ---------- Featured Books + Explore grid split ---------- */
.cps-bgsplit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.cps-books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cps-bookcard {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--cps-color-text);
  transition: transform 0.25s ease;
}
.cps-bookcard:hover {
  transform: translateY(-5px);
}
.cps-bookcard img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(46, 32, 24, 0.18);
  transition: box-shadow 0.25s ease;
}
.cps-bookcard:hover img {
  box-shadow: 0 10px 26px rgba(122, 31, 43, 0.28);
}
.cps-bookcard span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.3;
}
/* Full-row modifier: books across the whole content width */
.cps-books--row {
  grid-template-columns: repeat(4, minmax(0, 190px));
  justify-content: center;
  gap: 26px;
}
.cps-explore {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cps-explore__tile {
  position: relative;
  display: block;
  border-radius: var(--cps-radius);
  overflow: hidden;
}
.cps-explore__tile img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cps-explore__tile:hover img {
  transform: scale(1.08);
}
.cps-explore__tile span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, rgba(30, 10, 12, 0.05) 40%, rgba(30, 10, 12, 0.72));
}

/* ---------- Testimonials ---------- */
.cps-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cps-quotecard {
  margin: 0;
  background: var(--cps-color-bg);
  border: 1px solid var(--cps-color-hairline);
  border-top: 3px solid var(--cps-color-gold);
  border-radius: var(--cps-radius);
  padding: 20px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cps-quotecard:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(122, 31, 43, 0.11);
}
.cps-quotecard blockquote {
  margin: 0 0 12px;
  padding: 0;
  border: none;
  font-family: var(--cps-font-heading);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: #4a1420;
}
.cps-quotecard blockquote::before {
  content: "\201C";
  display: block;
  font-size: 34px;
  line-height: 0.6;
  color: var(--cps-color-gold);
  margin-bottom: 8px;
}
.cps-quotecard figcaption {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cps-color-gold);
}

/* ---------- Link hub (Site Map / Useful Links / Sadhus) ---------- */
.cps-linkhub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.cps-linkhub__col {
  background: var(--cps-color-bg);
  border: 1px solid var(--cps-color-hairline);
  border-radius: var(--cps-radius);
  padding: 18px 20px;
}
.cps-linkhub__col h4 {
  margin: 0 0 10px;
  font-size: 17px;
}
.cps-linkhub__note {
  font-size: 12.5px;
  font-style: italic;
  color: var(--cps-color-text-muted);
  margin: 8px 0 0;
}

/* ---------- CTA band (Variant C — replaces the old quote banner) ---------- */
.cps-band {
  background: linear-gradient(135deg, #5f1721, #872331);
  text-align: center;
  padding: 34px 24px;
}
.cps-band__text {
  font-family: var(--cps-font-heading);
  font-size: clamp(19px, 2.2vw, 25px);
  color: #fbeed6;
  margin: 0 0 16px;
}
.cps-band__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cps-band__btn {
  display: inline-block;
  padding: 11px 26px;
  border: 1px solid #e0a43c;
  border-radius: 6px;
  color: #fbeed6;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.cps-band__btn:hover {
  background: #e0a43c;
  color: #3a2408;
}
.cps-band__btn--solid {
  background: #e0a43c;
  color: #3a2408;
}
.cps-band__btn--solid:hover {
  background: #eab04d;
}

/* ==========================================================================
   BY THE NUMBERS (count-up stats)
   Numbers are edited via the data-count / data-suffix attributes.
   ========================================================================== */
.cps-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding: 14px 0 0;
  text-align: center;
}
.cps-stat {
  flex: 1 1 165px;
  max-width: 225px;
}
.cps-stat__icon {
  color: var(--cps-color-gold);
  margin-bottom: 10px;
}
.cps-stat__icon svg {
  width: 36px;
  height: 36px;
}
.cps-stat__num {
  font-family: var(--cps-font-heading);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  font-weight: 600;
  color: var(--cps-color-primary);
}
.cps-stat__label {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--cps-color-text-muted);
  line-height: 1.4;
}
.cps-v1 .cps-stats-section {
  background: var(--cps-color-bg-alt);
}

/* ==========================================================================
   THEMED NAVIGATION (V1 only — add cps-theme-v1 to the page's Body Class
   alongside cps-promo-page; the inline script also adds it automatically)
   ========================================================================== */
body.cps-theme-v1 .nav-primary { background: #fdf7ec; border-bottom: 2px solid #e0a43c; }
body.cps-theme-v1 .genesis-nav-menu a { color: #5c1620; }
body.cps-theme-v1 .genesis-nav-menu a:hover,
body.cps-theme-v1 .genesis-nav-menu .current-menu-item > a { color: #a8681f; }
body.cps-theme-v1 .genesis-nav-menu .sub-menu a { background: #fdf7ec; color: #5c1620; border: 1px solid #eedcbe; }
body.cps-theme-v1 .genesis-nav-menu .sub-menu a:hover { color: #a8681f; background: #f9efdb; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.cps-footer {
  padding: 46px 24px 22px;
}
.cps-footer > * {
  max-width: var(--cps-content);
  margin-left: auto;
  margin-right: auto;
}
.cps-footer h4 {
  margin: 0 0 14px;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cps-footer__brand p {
  margin: 0 0 8px;
}
.cps-footer__tag {
  font-size: 14px;
  opacity: 0.85;
  max-width: 280px;
}
.cps-footer__link {
  margin: 0 0 8px;
  font-size: 14.5px;
}
.cps-footer__link a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}
.cps-footer__link a:hover {
  transform: translateX(5px);
}
.cps-footer__bottom {
  margin: 32px auto 0;
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
}
.cps-v1 .cps-footer { background: #3f1018; color: #f1ddc4; }
.cps-v1 .cps-footer h4 { color: #e0a43c; }
.cps-v1 .cps-footer h3,
.cps-v1 .cps-footer h4 { color: #e0a43c; }
.cps-v1 .cps-footer__link a:hover { color: #e0a43c; }
.cps-v1 .cps-footer__bottom { border-top: 1px solid rgba(224, 164, 60, 0.3); color: #d9b98f; }

/* ==========================================================================
   VARIANT MODIFIERS
   ========================================================================== */

/* ----- Variant A: the brief, followed closely ----- */
.cps-va { --cps-content: 1140px; }

/* ----- Variant B: tighter everywhere ----- */
.cps-vb { --cps-content: 1010px; }
.cps-vb .cps-section { padding: 26px 18px; }
.cps-vb .cps-kicker { display: none; }
.cps-vb .cps-section-title { font-size: 24px; margin-bottom: 16px; padding-bottom: 9px; }
.cps-vb .cps-kb { height: 62vh; min-height: 430px; max-height: 640px; }
.cps-vb .cps-kb__cue { display: none; }
.cps-vb .cps-card { padding: 16px; }
.cps-vb .cps-footer { padding-top: 36px; }

/* ----- Variant C: editorial, a little more air than B, wider canvas ----- */
.cps-vc { --cps-content: 1200px; }
.cps-vc .cps-section { padding: 40px 24px; }
.cps-vc .cps-kb { height: 78vh; }
.cps-vc .cps-section-title { font-size: 29px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .cps-nsplit,
  .cps-bgsplit {
    grid-template-columns: 1fr;
  }
  .cps-teach {
    grid-template-columns: 1fr 1fr;
  }
  .cps-quotes {
    grid-template-columns: 1fr;
  }
  .cps-linkhub {
    grid-template-columns: 1fr;
  }
  .cps-books--row {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 781px) {
  .cps-gurus,
  .cps-gurus--rows {
    grid-template-columns: 1fr;
  }
  .cps-guru,
  .cps-guru--flip {
    flex-direction: column;
  }
  .cps-guru__img {
    min-height: 220px;
  }
  .cps-journey {
    flex-direction: column;
    align-items: center;
  }
  .cps-jstep {
    max-width: 420px;
    width: 100%;
  }
  .cps-jarrow {
    transform: rotate(90deg);
    padding: 2px 0;
  }
  .cps-journey--line::before {
    display: none;
  }
  .cps-kb__quick {
    top: 12px;
    right: 12px;
    gap: 6px;
  }
  .cps-kb__quick a {
    padding: 6px 12px;
    font-size: 12px;
  }
  .cps-kb__quick--bar a {
    padding: 11px 16px;
  }
}

@media (max-width: 560px) {
  .cps-newsgrid {
    grid-template-columns: 1fr;
  }
  .cps-teach {
    grid-template-columns: 1fr;
  }
  .cps-books,
  .cps-books--row {
    grid-template-columns: 1fr 1fr;
  }
  .cps-explore {
    grid-template-columns: 1fr 1fr;
  }
  .cps-menu-list--2col {
    column-count: 1;
  }
}

/* ---------- Reduced motion: calm everything down ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .cps-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cps-kb__slide {
    animation: none;
    opacity: 0;
  }
  .cps-kb__slide:first-child {
    opacity: 1;
  }
  .cps-kb__cue::after,
  .cps-ticker__track {
    animation: none;
  }
}
