/**
 * Devotionals Home — Bloom Design System
 * Matches youth-devotionals-home-sample.html exactly
 */

/* ─────────────────────────────────────────
   BLOOM DESIGN SYSTEM TOKENS
───────────────────────────────────────── */
.devotionals-home-page {
  --cream:      #FFF8F0;
  --coral:      #FF6B5B;
  --amber:      #FFB347;
  --mint:       #6DDAB4;
  --lavender:   #C3B1E1;
  --sky:        #7BC8F6;
  --rose:       #F7A8B8;
  --sage:       #A8D5A2;
  --gold:       #F5C842;
  --dark:       #1C1B2E;
  --text:       #2D2726;
  --muted:      #9B8E87;
  --border:     rgba(45,39,38,.09);

  --page-bg:    var(--cream);
  --card-bg:    #FFFFFF;
  --text-main:  var(--text);
  --text-muted: var(--muted);
  --border-col: var(--border);

  --r-card:     22px;
  --r-pill:     100px;

  --shadow-sm:  0 2px 8px rgba(45,39,38,.06);
  --shadow-md:  0 6px 24px rgba(45,39,38,.10);
  --shadow-lg:  0 16px 48px rgba(45,39,38,.14);

  --header-h:   64px;
  --tab-h:      72px;
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
.devotionals-home-page,
.devotionals-home-page *,
.devotionals-home-page *::before,
.devotionals-home-page *::after { box-sizing: border-box; }

.devotionals-home-page {
  font-family: 'DM Sans', sans-serif;
  background: var(--page-bg);
  color: var(--text-main);
  min-height: 100dvh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}


.devotionals-home-page html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ─────────────────────────────────────────
   GRAIN TEXTURE OVERLAY
───────────────────────────────────────── */
.devotionals-home-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ─────────────────────────────────────────
   STICKY HEADER
───────────────────────────────────────── */
.devotionals-home-page .site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255,248,240,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--coral);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}

.devotionals-home-page .header-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--coral);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  transition: background .2s;
}
.devotionals-home-page .header-back:hover { background: rgba(255,107,91,.08); }
.devotionals-home-page .header-back svg { flex-shrink: 0; }

.devotionals-home-page .header-logo {
  flex: 1;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 900;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.devotionals-home-page .header-actions {
  display: flex;
  gap: 4px;
}
.devotionals-home-page .header-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background .2s;
}
.devotionals-home-page .header-btn:hover { background: var(--border); }

.devotionals-home-page .streak-pill {
  background: linear-gradient(135deg, var(--amber), #FF9A3C);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255,179,71,.4);
}

/* ─────────────────────────────────────────
   BOTTOM TAB BAR
───────────────────────────────────────── */
.devotionals-home-page .tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--tab-h);
  background: rgba(255,248,240,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid var(--border-col);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
}

.devotionals-home-page .tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  transition: color .2s;
  font-size: 10px;
  font-weight: 500;
  position: relative;
}
.devotionals-home-page .tab-item.active {
  color: var(--coral);
}
.devotionals-home-page .tab-item.active .tab-icon-wrap {
  background: rgba(255,107,91,.12);
}
.devotionals-home-page .tab-icon-wrap {
  width: 36px; height: 28px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background .2s;
}
.devotionals-home-page .tab-item:hover .tab-icon-wrap { background: rgba(45,39,38,.06); }

/* ─────────────────────────────────────────
   HAMBURGER DRAWER
───────────────────────────────────────── */
.devotionals-home-page .drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(28,27,46,.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.devotionals-home-page .drawer-overlay.open { opacity: 1; pointer-events: all; }

.devotionals-home-page .drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 301;
  width: min(320px, 88vw);
  background: var(--card-bg);
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.devotionals-home-page .drawer.open { transform: translateX(0); }

.devotionals-home-page .drawer-header {
  background: linear-gradient(135deg, var(--coral), var(--amber));
  padding: 48px 24px 28px;
  flex-shrink: 0;
}
.devotionals-home-page .drawer-user-name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 900;
  font-size: 26px;
  color: white;
  line-height: 1.1;
}
.devotionals-home-page .drawer-stage {
  font-size: 12px;
  color: rgba(255,255,255,.8);
  margin-top: 6px;
  font-weight: 500;
}
.devotionals-home-page .drawer-stage span {
  background: rgba(255,255,255,.2);
  padding: 2px 10px;
  border-radius: var(--r-pill);
}

.devotionals-home-page .drawer-nav {
  flex: 1;
  padding: 12px 0;
}
.devotionals-home-page .drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background .15s;
  cursor: pointer;
}
.devotionals-home-page .drawer-nav-item:hover { background: rgba(45,39,38,.04); }
.devotionals-home-page .drawer-nav-item.active { color: var(--coral); font-weight: 600; }
.devotionals-home-page .drawer-nav-item .nav-icon { font-size: 20px; width: 28px; text-align: center; }
.devotionals-home-page .drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 24px;
}

/* ─────────────────────────────────────────
   PAGE WRAPPER
───────────────────────────────────────── */
.devotionals-home-page .page {
  padding-bottom: calc(var(--tab-h) + 20px);
}

/* ─────────────────────────────────────────
   AMBIENT ORBS
───────────────────────────────────────── */
.devotionals-home-page .orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: .28;
  animation: devotionalsOrbDrift 18s ease-in-out infinite;
}
.devotionals-home-page .orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--amber), transparent 70%);
  top: -120px; right: -100px;
  animation-delay: 0s;
}
.devotionals-home-page .orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--lavender), transparent 70%);
  bottom: 10%; left: -80px;
  animation-delay: -7s;
}
.devotionals-home-page .orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--rose), transparent 70%);
  top: 40%; right: 10%;
  animation-delay: -14s;
  opacity: .15;
}
@keyframes devotionalsOrbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(.95); }
}

/* ─────────────────────────────────────────
   MOBILE HERO — SANCTUARY OPENING
───────────────────────────────────────── */
.devotionals-home-page .hero-sanctuary {
  position: relative;
  z-index: 1;
  padding: 36px 20px 40px;
  text-align: center;
  overflow: clip;
}

.devotionals-home-page .dawn-glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(245,200,66,.22) 0%,
    rgba(255,179,71,.10) 40%,
    transparent 70%);
  pointer-events: none;
  animation: devotionalsDawnBreathe 6s ease-in-out infinite;
}
@keyframes devotionalsDawnBreathe {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .8; }
  50% { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

.devotionals-home-page .light-rays {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 180px;
  pointer-events: none;
  opacity: .35;
}
.devotionals-home-page .light-rays::before,
.devotionals-home-page .light-rays::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform-origin: bottom center;
  width: 1px;
  height: 160px;
  background: linear-gradient(to top, var(--amber), transparent);
}
.devotionals-home-page .light-rays::before { transform: translateX(-50%) rotate(-18deg); }
.devotionals-home-page .light-rays::after  { transform: translateX(-50%) rotate(18deg); }

.devotionals-home-page .hero-eyebrow {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: devotionalsFadeUp .7s ease both;
}
.devotionals-home-page .hero-eyebrow::before,
.devotionals-home-page .hero-eyebrow::after {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .5;
}

.devotionals-home-page .hero-headline {
  position: relative;
  z-index: 2;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(38px, 9vw, 52px);
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  animation: devotionalsFadeUp .7s ease .1s both;
}
.devotionals-home-page .hero-headline em {
  color: var(--coral);
  font-style: inherit;
}

.devotionals-home-page .hero-subtext {
  position: relative;
  z-index: 2;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto 28px;
  animation: devotionalsFadeUp .7s ease .2s both;
}

.devotionals-home-page .verse-strip {
  position: relative;
  z-index: 2;
  background: white;
  border: 1.5px solid var(--border-col);
  border-left: 3px solid var(--amber);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: left;
  max-width: 360px;
  margin: 0 auto 0;
  animation: devotionalsFadeUp .7s ease .3s both;
  box-shadow: var(--shadow-sm);
}
.devotionals-home-page .verse-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.devotionals-home-page .verse-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
}
.devotionals-home-page .verse-ref {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  font-weight: 500;
}

@keyframes devotionalsFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   PROGRESS BAND
───────────────────────────────────────── */
.devotionals-home-page .progress-band {
  position: relative;
  z-index: 1;
  background: var(--dark);
  margin: 0 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: devotionalsFadeUp .7s ease .4s both;
}

.devotionals-home-page .progress-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.devotionals-home-page .progress-stat-num {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  color: white;
  line-height: 1;
}
.devotionals-home-page .progress-stat-label {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

.devotionals-home-page .progress-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

.devotionals-home-page .progress-bar-wrap {
  flex: 1;
}
.devotionals-home-page .progress-bar-label {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  margin-bottom: 7px;
  font-weight: 500;
}
.devotionals-home-page .progress-bar-track {
  height: 5px;
  background: rgba(255,255,255,.12);
  border-radius: var(--r-pill);
  overflow: clip;
}
.devotionals-home-page .progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--gold));
  border-radius: var(--r-pill);
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1) .6s;
}

.devotionals-home-page .flame-icon {
  font-size: 24px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255,179,71,.7));
  animation: devotionalsFlameFlicker 3s ease-in-out infinite;
}
@keyframes devotionalsFlameFlicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  25% { transform: scale(1.06) rotate(2deg); }
  50% { transform: scale(.97) rotate(-1deg); }
  75% { transform: scale(1.04) rotate(1deg); }
}

/* ─────────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────────── */
.devotionals-home-page .section-header {
  position: relative;
  z-index: 1;
  padding: 32px 20px 20px;
}
.devotionals-home-page .section-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 900;
  font-size: 26px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.devotionals-home-page .section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─────────────────────────────────────────
   TOPIC CARDS
───────────────────────────────────────── */
.devotionals-home-page .topics-grid {
  position: relative;
  z-index: 1;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.devotionals-home-page .topic-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: clip;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  padding: 20px 16px 18px;
  min-height: 148px;
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s;
  animation: devotionalsCardUp .6s ease both;
  box-shadow: var(--shadow-sm);
}
.devotionals-home-page .topic-card:active { transform: scale(.97); }
.devotionals-home-page .topic-card:hover  { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.devotionals-home-page .topic-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,.2), transparent);
  pointer-events: none;
  border-radius: var(--r-card) var(--r-card) 0 0;
}

.devotionals-home-page .topic-emoji {
  font-size: 30px;
  line-height: 1;
  margin-bottom: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
}
.devotionals-home-page .topic-name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 900;
  font-size: 16px;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.devotionals-home-page .topic-count {
  font-size: 11px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  margin-top: 4px;
}

/* Card-specific colours - map topic IDs to sample classes */
.devotionals-home-page .topic-identity      { background: linear-gradient(145deg, #B8A3D8, #9B7FC8); }
.devotionals-home-page .topic-relationships { background: linear-gradient(145deg, #F7A8B8, #E8829A); }
.devotionals-home-page .topic-purpose       { background: linear-gradient(145deg, #FFB347, #F59020); }
.devotionals-home-page .topic-realtalk      { background: linear-gradient(145deg, #FF6B5B, #E84C3A); }
.devotionals-home-page .topic-mentalhealth  { background: linear-gradient(145deg, #6DDAB4, #48C49A); }
.devotionals-home-page .topic-faithq        { background: linear-gradient(145deg, #7BC8F6, #52B3E8); }
.devotionals-home-page .topic-socialmedia   { background: linear-gradient(145deg, #A8D5A2, #7DC076); }
.devotionals-home-page .topic-justice       { background: linear-gradient(145deg, #F5C842, #E0B020); }
.devotionals-home-page .topic-temptation    { background: linear-gradient(145deg, #C3B1E1, #9D8BC8); }
.devotionals-home-page .topic-disciplines   { background: linear-gradient(145deg, #3D3A5C, #2A2842); }
.devotionals-home-page .topic-money         { background: linear-gradient(145deg, #FFCF62, #F5B825); }
.devotionals-home-page .topic-emotions      { background: linear-gradient(145deg, #FFB3C6, #F8899E); }
.devotionals-home-page .topic-failure       { background: linear-gradient(145deg, #FF9E7A, #F57248); }
.devotionals-home-page .topic-community     { background: linear-gradient(145deg, #80E0C0, #52C8A0); }

.devotionals-home-page .topic-card.featured {
  grid-column: span 2;
  min-height: 120px;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
}
.devotionals-home-page .topic-card.featured .topic-emoji {
  font-size: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.devotionals-home-page .topic-card.featured .topic-info {
  flex: 1;
}
.devotionals-home-page .topic-card.featured .topic-name { font-size: 20px; }
.devotionals-home-page .topic-card.featured .topic-desc {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  margin-top: 4px;
  line-height: 1.4;
}

@keyframes devotionalsCardUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   VIEW ALL CTA
───────────────────────────────────────── */
.devotionals-home-page .view-all-wrap {
  position: relative;
  z-index: 1;
  padding: 24px 14px 0;
  animation: devotionalsCardUp .6s ease 1s both;
}
.devotionals-home-page .view-all-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: white;
  border: 1.5px solid var(--border-col);
  border-radius: var(--r-card);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.devotionals-home-page .view-all-btn:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.devotionals-home-page .view-all-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.devotionals-home-page .view-all-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(255,107,91,.12), rgba(255,179,71,.12));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.devotionals-home-page .view-all-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.devotionals-home-page .view-all-text span {
  font-size: 12px;
  color: var(--text-muted);
}
.devotionals-home-page .view-all-arrow {
  color: var(--coral);
  font-size: 20px;
}

/* ─────────────────────────────────────────
   CONTINUE CARD (mobile)
───────────────────────────────────────── */
.devotionals-home-page .continue-section {
  position: relative;
  z-index: 1;
  padding: 32px 14px 0;
}
.devotionals-home-page .continue-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
  padding: 0 6px;
}
.devotionals-home-page .continue-card {
  background: var(--dark);
  border-radius: var(--r-card);
  padding: 22px;
  position: relative;
  overflow: clip;
  animation: devotionalsCardUp .6s ease .5s both;
}
.devotionals-home-page .continue-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(255,179,71,.25), transparent 70%);
  pointer-events: none;
}
.devotionals-home-page .continue-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  margin-bottom: 12px;
}
.devotionals-home-page .continue-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 900;
  font-size: 20px;
  color: white;
  line-height: 1.2;
  margin-bottom: 6px;
}
.devotionals-home-page .continue-verse {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-bottom: 18px;
}
.devotionals-home-page .continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.devotionals-home-page .continue-btn:hover { opacity: .9; transform: scale(1.02); }
.devotionals-home-page .continue-meta {
  position: absolute;
  bottom: 22px; right: 22px;
  font-size: 11px;
  color: rgba(255,255,255,.35);
}

/* ─────────────────────────────────────────
   DESKTOP LAYOUT (≥ 1024px)
───────────────────────────────────────── */
@media (min-width: 1024px) {

  .devotionals-home-page .page {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto;
    padding-bottom: 0;
    min-height: calc(100dvh - var(--header-h));
    align-items: start;
  }

  .devotionals-home-page .tab-bar { display: none; }

  .devotionals-home-page .desktop-sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--header-h);
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 32px 24px;
    border-right: 1.5px solid var(--border-col);
    background: rgba(255,248,240,.6);
    backdrop-filter: blur(8px);
    gap: 0;
  }

  .devotionals-home-page .sidebar-user { margin-bottom: 28px; flex-shrink: 0; }
  .devotionals-home-page .sidebar-greeting {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
  }
  .devotionals-home-page .sidebar-name {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 900;
    font-size: 24px;
    color: var(--text);
    letter-spacing: -0.02em;
  }
  .devotionals-home-page .sidebar-stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,107,91,.1);
    color: var(--coral);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    margin-top: 8px;
  }

  .devotionals-home-page .sidebar-streak {
    background: linear-gradient(135deg, var(--dark), #2D2A4A);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: clip;
    flex-shrink: 0;
  }
  .devotionals-home-page .sidebar-streak::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(255,179,71,.3), transparent 70%);
  }
  .devotionals-home-page .streak-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .devotionals-home-page .streak-num {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--amber);
    line-height: 1;
  }
  .devotionals-home-page .streak-flame { font-size: 30px; animation: devotionalsFlameFlicker 3s ease-in-out infinite; }
  .devotionals-home-page .streak-desc {
    font-size: 12px;
    color: rgba(255,255,255,.6);
  }
  .devotionals-home-page .streak-desc strong { color: rgba(255,255,255,.9); }

  .devotionals-home-page .sidebar-progress {
    background: white;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-col);
    flex-shrink: 0;
  }
  .devotionals-home-page .sidebar-progress-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
  }
  .devotionals-home-page .sidebar-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .devotionals-home-page .sidebar-stat { text-align: center; }
  .devotionals-home-page .sidebar-stat-num {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--text);
    line-height: 1;
  }
  .devotionals-home-page .sidebar-stat-lbl {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
  }
  .devotionals-home-page .sidebar-prog-track {
    height: 6px;
    background: var(--border);
    border-radius: var(--r-pill);
    overflow: clip;
  }
  .devotionals-home-page .sidebar-prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--amber), var(--coral));
    border-radius: var(--r-pill);
    width: 0;
    transition: width 1.2s cubic-bezier(.4,0,.2,1) .8s;
  }
  .devotionals-home-page .sidebar-prog-caption {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
  }

  .devotionals-home-page .sidebar-nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 0 4px;
  }
  .devotionals-home-page .sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background .15s, color .15s;
    cursor: pointer;
  }
  .devotionals-home-page .sidebar-nav-item:hover { background: rgba(45,39,38,.05); }
  .devotionals-home-page .sidebar-nav-item.active { background: rgba(255,107,91,.08); color: var(--coral); font-weight: 600; }
  .devotionals-home-page .sidebar-nav-icon { font-size: 16px; width: 22px; text-align: center; }

  .devotionals-home-page .desktop-main {
    display: block;
    padding: 40px 48px 60px;
    position: relative;
    z-index: 1;
  }

  .devotionals-home-page .desktop-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-bottom: 56px;
    align-items: center;
  }

  .devotionals-home-page .desktop-hero-left { position: relative; }
  .devotionals-home-page .desktop-hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .devotionals-home-page .desktop-hero-eyebrow::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--amber);
    opacity: .4;
  }
  .devotionals-home-page .desktop-hero-headline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 900;
    font-size: clamp(44px, 4.5vw, 64px);
    color: var(--text);
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
  }
  .devotionals-home-page .desktop-hero-headline em {
    color: var(--coral);
    font-style: inherit;
  }
  .devotionals-home-page .desktop-hero-body {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 28px;
  }
  .devotionals-home-page .desktop-hero-verse {
    background: white;
    border-left: 3px solid var(--amber);
    border-radius: 0 14px 14px 0;
    padding: 16px 20px;
    max-width: 400px;
    box-shadow: var(--shadow-sm);
  }
  .devotionals-home-page .desktop-hero-verse .verse-label { margin-bottom: 6px; }

  .devotionals-home-page .desktop-featured-card {
    background: var(--dark);
    border-radius: 28px;
    padding: 32px;
    position: relative;
    overflow: clip;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform .25s;
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .devotionals-home-page .desktop-featured-card:hover { transform: translateY(-4px); }
  .devotionals-home-page .desktop-featured-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,179,71,.3), transparent 70%);
    pointer-events: none;
  }
  .devotionals-home-page .desktop-featured-card::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(195,177,225,.25), transparent 70%);
    pointer-events: none;
  }
  .devotionals-home-page .desktop-feat-overline {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 12px;
    position: relative; z-index: 2;
  }
  .devotionals-home-page .desktop-feat-topic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.1);
    padding: 5px 14px;
    border-radius: var(--r-pill);
    font-size: 12px;
    color: rgba(255,255,255,.75);
    font-weight: 500;
    margin-bottom: 16px;
    position: relative; z-index: 2;
  }
  .devotionals-home-page .desktop-feat-title {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 900;
    font-size: 22px;
    color: white;
    line-height: 1.2;
    margin-bottom: 10px;
    position: relative; z-index: 2;
  }
  .devotionals-home-page .desktop-feat-preview {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
    margin-bottom: 24px;
    position: relative; z-index: 2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: clip;
  }
  .devotionals-home-page .desktop-feat-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--amber), var(--coral));
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: var(--r-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative; z-index: 2;
    transition: opacity .2s, transform .2s;
  }
  .devotionals-home-page .desktop-feat-cta:hover { opacity: .9; transform: scale(1.03); }
  .devotionals-home-page .desktop-feat-meta {
    position: absolute;
    bottom: 28px; right: 28px;
    font-size: 11px;
    color: rgba(255,255,255,.3);
    z-index: 2;
  }

  .devotionals-home-page .desktop-section-header {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }
  .devotionals-home-page .desktop-section-title {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 900;
    font-size: 32px;
    color: var(--text);
    letter-spacing: -0.02em;
  }
  .devotionals-home-page .desktop-section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--coral);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 4px;
    border-bottom: 1.5px solid transparent;
    transition: border-color .2s;
  }
  .devotionals-home-page .desktop-section-link:hover { border-color: var(--coral); }

  .devotionals-home-page .desktop-topics-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 14px;
  }

  .devotionals-home-page .topic-card { min-height: unset; height: 100%; }

  .devotionals-home-page .topic-card:nth-child(1)  { grid-column: span 2; grid-row: span 1; min-height: 180px; }
  .devotionals-home-page .topic-card:nth-child(5)  { grid-column: span 2; grid-row: span 1; }
  .devotionals-home-page .topic-card:nth-child(10) { grid-column: span 2; grid-row: span 1; }
  .devotionals-home-page .topic-card:nth-child(14) { grid-column: span 2; grid-row: span 1; }

  .devotionals-home-page .topic-card.featured {
    grid-column: span 2;
    min-height: unset;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 22px 20px;
  }
  .devotionals-home-page .topic-card.featured .topic-emoji { font-size: 32px; margin-bottom: auto; }
  .devotionals-home-page .topic-card.featured .topic-info { margin-top: auto; }

  .devotionals-home-page .topic-card:hover .topic-emoji {
    transform: scale(1.1) translateY(-2px);
    transition: transform .22s ease;
  }

  .devotionals-home-page .desktop-view-all {
    margin-top: 24px;
    display: flex;
    justify-content: center;
  }
  .devotionals-home-page .desktop-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: white;
    border: 2px solid var(--border-col);
    border-radius: var(--r-pill);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    box-shadow: var(--shadow-sm);
  }
  .devotionals-home-page .desktop-view-all-btn:hover {
    border-color: var(--coral);
    color: var(--coral);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }

  .devotionals-home-page .mobile-only { display: none !important; }
  .devotionals-home-page .hero-sanctuary { display: none; }
  .devotionals-home-page .progress-band { display: none; }
  .devotionals-home-page .section-header { display: none; }
  .devotionals-home-page .topics-grid { display: none; }
  .devotionals-home-page .view-all-wrap { display: none; }
  .devotionals-home-page .continue-section { display: none; }
}

.devotionals-home-page .desktop-sidebar { display: none; }
.devotionals-home-page .desktop-main { display: none; }

@media (min-width: 1024px) {
  .devotionals-home-page .desktop-sidebar { display: flex; }
  .devotionals-home-page .desktop-main { display: block; }
}

/* Staggered card animation delays */
.devotionals-home-page .topic-card:nth-child(1)  { animation-delay: .05s; }
.devotionals-home-page .topic-card:nth-child(2)  { animation-delay: .10s; }
.devotionals-home-page .topic-card:nth-child(3)  { animation-delay: .15s; }
.devotionals-home-page .topic-card:nth-child(4)  { animation-delay: .20s; }
.devotionals-home-page .topic-card:nth-child(5)  { animation-delay: .25s; }
.devotionals-home-page .topic-card:nth-child(6)  { animation-delay: .30s; }
.devotionals-home-page .topic-card:nth-child(7)  { animation-delay: .35s; }
.devotionals-home-page .topic-card:nth-child(8)  { animation-delay: .40s; }
.devotionals-home-page .topic-card:nth-child(9)  { animation-delay: .45s; }
.devotionals-home-page .topic-card:nth-child(10) { animation-delay: .50s; }
.devotionals-home-page .topic-card:nth-child(11) { animation-delay: .55s; }
.devotionals-home-page .topic-card:nth-child(12) { animation-delay: .60s; }
.devotionals-home-page .topic-card:nth-child(13) { animation-delay: .65s; }
.devotionals-home-page .topic-card:nth-child(14) { animation-delay: .70s; }

@media (max-width: 380px) {
  .devotionals-home-page .topic-card { min-height: 130px; padding: 16px 14px 14px; }
  .devotionals-home-page .topic-emoji { font-size: 24px; }
  .devotionals-home-page .topic-name  { font-size: 14px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .devotionals-home-page .topics-grid { grid-template-columns: repeat(3, 1fr); padding: 0 20px; gap: 14px; }
  .devotionals-home-page .topic-card.featured { grid-column: span 3; }
  .devotionals-home-page .hero-sanctuary { padding: 40px 40px 48px; }
}

.devotionals-home-page ::-webkit-scrollbar { width: 4px; height: 4px; }
.devotionals-home-page ::-webkit-scrollbar-track { background: transparent; }
.devotionals-home-page ::-webkit-scrollbar-thumb { background: var(--border-col); border-radius: 4px; }

/* ─────────────────────────────────────────
   ALL DEVOTIONALS PAGE (no header/footer)
───────────────────────────────────────── */
.devotionals-home-page .page-all-devotionals {
  padding: 24px 20px calc(var(--tab-h) + 24px);
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .devotionals-home-page .page-all-devotionals {
    max-width: min(1440px, calc(100vw - 48px));
  }
}
.devotionals-home-page .all-devotionals-header {
  margin-bottom: 24px;
}
.devotionals-home-page .back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--coral);
  text-decoration: none;
  margin-bottom: 16px;
  transition: opacity .2s;
}
.devotionals-home-page .back-link:hover { opacity: .8; }
.devotionals-home-page .all-devotionals-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 900;
  font-size: 28px;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.devotionals-home-page .all-devotionals-sub {
  font-size: 14px;
  color: var(--text-muted);
}
.devotionals-home-page .all-devotionals-filters {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.devotionals-home-page .all-devotionals-filters .filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.devotionals-home-page .all-devotionals-filters .filter-select {
  padding: 8px 14px;
  border: 1.5px solid var(--border-col);
  border-radius: var(--r-pill);
  font-size: 14px;
  background: white;
  color: var(--text);
}
.devotionals-home-page .all-devotionals-filters .filter-stats {
  font-size: 13px;
  color: var(--text-muted);
}
.devotionals-home-page .all-devotionals-filters .stat-separator {
  margin: 0 6px;
}
.devotionals-home-page .devotionals-groups .devotional-topic-group {
  margin-bottom: 32px;
}
.devotionals-home-page .devotionals-groups .topic-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 900;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.devotionals-home-page .devotionals-groups .devotionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.devotionals-home-page .devotionals-groups .devotional-card {
  background: white;
  border-radius: var(--r-card);
  overflow: clip;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-col);
  transition: box-shadow .2s, transform .2s;
}
.devotionals-home-page .devotionals-groups .devotional-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.devotionals-home-page .devotionals-groups .devotional-card.completed {
  border-left: 3px solid var(--amber);
}
.devotionals-home-page .devotionals-groups .devotional-link {
  display: block;
  padding: 18px;
  text-decoration: none;
  color: inherit;
}
.devotionals-home-page .devotionals-groups .devotional-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.devotionals-home-page .devotionals-groups .devotional-meta {
  font-size: 11px;
  color: var(--text-muted);
}
.devotionals-home-page .devotionals-groups .devotional-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}
.devotionals-home-page .devotionals-groups .devotional-scripture {
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 8px;
}
.devotionals-home-page .devotionals-groups .devotional-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.devotionals-home-page .devotionals-groups .devotional-footer {
  font-size: 11px;
  color: var(--text-muted);
}
.devotionals-home-page .loading-state,
.devotionals-home-page .empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.devotionals-home-page .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-col);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: devotionalsSpin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes devotionalsSpin {
  to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────
   RESPONSIVE: desktop-only / mobile-only
───────────────────────────────────────── */
.devotionals-home-page .desktop-only {
  display: none;
}
.devotionals-home-page .devotionals-coverflow-section {
  display: block;
}
@media (min-width: 1024px) {
  .devotionals-home-page .desktop-only {
    display: flex;
  }
  .devotionals-home-page .devotionals-coverflow-section {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  .devotionals-home-page .desktop-only {
    display: none !important;
  }
}

/* ─────────────────────────────────────────
   ALL DEVOTIONALS: View toggle
───────────────────────────────────────── */
.devotionals-home-page .view-toggle {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.devotionals-home-page .view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  background: white;
  border: 1.5px solid var(--border-col);
  border-radius: var(--r-pill);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.devotionals-home-page .view-toggle-btn:hover {
  color: var(--text);
  border-color: var(--coral);
}
.devotionals-home-page .view-toggle-btn.active {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
}

/* ─────────────────────────────────────────
   ALL DEVOTIONALS: Coverflow carousel (mobile)
───────────────────────────────────────── */
.devotionals-home-page .devotionals-coverflow-section {
  position: relative;
  z-index: 1;
  padding: 0 0 48px;
  margin: 0 -20px;
}
.devotionals-home-page .devotionals-coverflow-section .cf-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}
.devotionals-home-page .devotionals-coverflow-section .cf-arrow {
  font-size: 1rem;
  animation: cf-nudge 2s ease-in-out infinite;
}
.devotionals-home-page .devotionals-coverflow-section .cf-arrow.right {
  animation-direction: reverse;
}
@keyframes cf-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}
.devotionals-home-page .devotionals-coverflow-section .cf-track {
  display: flex;
  align-items: center;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 40px 0 50px;
  perspective: 1000px;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}
.devotionals-home-page .devotionals-coverflow-section .cf-track::-webkit-scrollbar {
  display: none;
}
.devotionals-home-page .devotionals-coverflow-section .cf-spacer {
  flex-shrink: 0;
  min-width: 45px;
}
.devotionals-home-page .devotionals-coverflow-section .cf-item {
  flex-shrink: 0;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.45s ease, filter 0.45s ease;
  position: relative;
  transform: scale(0.78) rotateY(18deg) translateY(14px);
  opacity: 0.55;
  filter: brightness(0.88);
  cursor: pointer;
  will-change: transform, opacity, filter;
}
.devotionals-home-page .devotionals-coverflow-section .cf-item.active {
  transform: scale(1) rotateY(0deg) translateY(0);
  opacity: 1;
  filter: brightness(1);
  z-index: 10;
}
.devotionals-home-page .devotionals-coverflow-section .cf-item.right-of-center {
  transform: scale(0.78) rotateY(-18deg) translateY(14px);
}
.devotionals-home-page .devotionals-coverflow-section .cf-card {
  border-radius: 26px;
  padding: 24px 22px;
  position: relative;
  overflow: clip;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.11);
  transition: box-shadow 0.45s ease;
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-identity { background: linear-gradient(145deg, #B8A3D8, #9B7FC8); }
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-relationships { background: linear-gradient(145deg, #F7A8B8, #E8829A); }
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-purpose { background: linear-gradient(145deg, #FFB347, #F59020); }
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-realtalk { background: linear-gradient(145deg, #FF6B5B, #E84C3A); }
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-mentalhealth { background: linear-gradient(145deg, #6DDAB4, #48C49A); }
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-faithq { background: linear-gradient(145deg, #7BC8F6, #52B3E8); }
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-socialmedia { background: linear-gradient(145deg, #A8D5A2, #7DC076); }
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-justice { background: linear-gradient(145deg, #F5C842, #E0B020); }
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-temptation { background: linear-gradient(145deg, #C3B1E1, #9D8BC8); }
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-disciplines { background: linear-gradient(145deg, #3D3A5C, #2A2842); }
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-money { background: linear-gradient(145deg, #FFCF62, #F5B825); }
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-emotions { background: linear-gradient(145deg, #FFB3C6, #F8899E); }
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-failure { background: linear-gradient(145deg, #FF9E7A, #F57248); }
.devotionals-home-page .devotionals-coverflow-section .cf-card.topic-community { background: linear-gradient(145deg, #80E0C0, #52C8A0); }
.devotionals-home-page .devotionals-coverflow-section .cf-item.active .cf-card {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}
.devotionals-home-page .devotionals-coverflow-section .cf-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}
.devotionals-home-page .devotionals-coverflow-section .cf-tap-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 5;
}
.devotionals-home-page .devotionals-coverflow-section .cf-item:not(.active):hover .cf-tap-hint {
  opacity: 1;
}
.devotionals-home-page .devotionals-coverflow-section .cf-tap-hint span {
  background: rgba(0, 0, 0, 0.45);
  color: white;
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.devotionals-home-page .devotionals-coverflow-section .cf-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.devotionals-home-page .devotionals-coverflow-section .cf-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 6px;
}
.devotionals-home-page .devotionals-coverflow-section .cf-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: clip;
}
.devotionals-home-page .devotionals-coverflow-section .cf-card-excerpt {
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 12px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: clip;
  flex: 1;
}
.devotionals-home-page .devotionals-coverflow-section .cf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.devotionals-home-page .devotionals-coverflow-section .cf-verse {
  font-size: 0.72rem;
  opacity: 0.9;
}
.devotionals-home-page .devotionals-coverflow-section .cf-explore {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: background 0.2s, transform 0.2s;
}
.devotionals-home-page .devotionals-coverflow-section .cf-item.active .cf-explore {
  opacity: 1;
  pointer-events: auto;
}
.devotionals-home-page .devotionals-coverflow-section .cf-explore:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.04);
}
.devotionals-home-page .devotionals-coverflow-section .cf-arc {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.devotionals-home-page .devotionals-coverflow-section .cf-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-top: 4px;
  flex-wrap: wrap;
  max-width: 100%;
}
.devotionals-home-page .devotionals-coverflow-section .cf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(45, 39, 38, 0.09);
  transition: background 0.3s, transform 0.3s, width 0.3s;
  cursor: pointer;
}
.devotionals-home-page .devotionals-coverflow-section .cf-dot.active {
  background: var(--coral);
  width: 22px;
  border-radius: 100px;
}
@media (min-width: 600px) and (max-width: 1023px) {
  .devotionals-home-page .devotionals-coverflow-section .cf-item {
    width: 280px;
    height: 380px;
    margin: 0 -14px;
  }
  .devotionals-home-page .devotionals-coverflow-section .cf-spacer {
    width: calc(50vw - 140px);
  }
}
@media (max-width: 599px) {
  .devotionals-home-page .devotionals-coverflow-section .cf-item {
    width: calc(100vw - 90px);
    min-height: 380px;
    margin: 0 -26px;
  }
  .devotionals-home-page .devotionals-coverflow-section .cf-spacer {
    width: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .devotionals-home-page .devotionals-coverflow-section .cf-item {
    transition: none;
  }
  .devotionals-home-page .devotionals-coverflow-section .cf-arrow {
    animation: none;
  }
}

/* ─────────────────────────────────────────
   ALL DEVOTIONALS: Bento grid (desktop)
───────────────────────────────────────── */
.devotionals-home-page .devotionals-bento-section {
  display: block;
}
.devotionals-home-page .devotionals-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  width: 100%;
  max-width: min(1400px, calc(100vw - 2 * var(--youth-spacing-lg, 24px)));
  margin: 0 auto;
}
.devotionals-home-page .devotional-bento-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: clip;
  padding: 20px;
  background: white;
  border: 1.5px solid var(--border-col);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
  animation: devotionalsCardReveal 0.6s ease both;
}
.devotionals-home-page .devotional-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.13);
}
.devotionals-home-page .devotional-bento-card .devotional-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.devotionals-home-page .devotional-bento-card .devotional-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.devotionals-home-page .devotional-bento-card .devotional-format {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.devotionals-home-page .devotional-bento-card .devotional-topic-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}
.devotionals-home-page .devotional-bento-card .devotional-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 6px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: clip;
}
.devotionals-home-page .devotional-bento-card .devotional-scripture {
  font-size: 0.75rem;
  color: var(--amber);
  margin-bottom: 6px;
}
.devotionals-home-page .devotional-bento-card .devotional-excerpt {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: clip;
}
.devotionals-home-page .devotional-bento-card .devotional-footer {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: auto;
}
.devotionals-home-page .devotional-bento-card.bento-span-2-col {
  grid-column: span 2;
}
.devotionals-home-page .devotional-bento-card.bento-span-2-row {
  grid-row: span 2;
}
.devotionals-home-page .devotional-bento-card.bento-span-2-row .devotional-excerpt {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
.devotionals-home-page .devotional-bento-card.bento-span-2-row .devotional-title {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Bento cards use topic gradient backgrounds */
.devotionals-home-page .devotional-bento-card.topic-identity { background: linear-gradient(145deg, #B8A3D8, #9B7FC8); color: white; }
.devotionals-home-page .devotional-bento-card.topic-relationships { background: linear-gradient(145deg, #F7A8B8, #E8829A); color: #5A1A2E; }
.devotionals-home-page .devotional-bento-card.topic-purpose { background: linear-gradient(145deg, #FFB347, #F59020); color: #2D2726; }
.devotionals-home-page .devotional-bento-card.topic-realtalk { background: linear-gradient(145deg, #FF6B5B, #E84C3A); color: white; }
.devotionals-home-page .devotional-bento-card.topic-mentalhealth { background: linear-gradient(145deg, #6DDAB4, #48C49A); color: #1A3D2E; }
.devotionals-home-page .devotional-bento-card.topic-faithq { background: linear-gradient(145deg, #7BC8F6, #52B3E8); color: #1A3350; }
.devotionals-home-page .devotional-bento-card.topic-socialmedia { background: linear-gradient(145deg, #A8D5A2, #7DC076); color: #1A3D1E; }
.devotionals-home-page .devotional-bento-card.topic-justice { background: linear-gradient(145deg, #F5C842, #E0B020); color: #2D2726; }
.devotionals-home-page .devotional-bento-card.topic-temptation { background: linear-gradient(145deg, #C3B1E1, #9D8BC8); color: #3A2D5A; }
.devotionals-home-page .devotional-bento-card.topic-disciplines { background: linear-gradient(145deg, #3D3A5C, #2A2842); color: white; }
.devotionals-home-page .devotional-bento-card.topic-money { background: linear-gradient(145deg, #FFCF62, #F5B825); color: #2D2726; }
.devotionals-home-page .devotional-bento-card.topic-emotions { background: linear-gradient(145deg, #FFB3C6, #F8899E); color: #5A1A2E; }
.devotionals-home-page .devotional-bento-card.topic-failure { background: linear-gradient(145deg, #FF9E7A, #F57248); color: #2D2726; }
.devotionals-home-page .devotional-bento-card.topic-community { background: linear-gradient(145deg, #80E0C0, #52C8A0); color: #1A3D2E; }
.devotionals-home-page .devotional-bento-card.topic-identity .devotional-scripture,
.devotionals-home-page .devotional-bento-card.topic-realtalk .devotional-scripture,
.devotionals-home-page .devotional-bento-card.topic-disciplines .devotional-scripture { color: rgba(255,255,255,0.9); }
.devotionals-home-page .devotional-bento-card.topic-identity .devotional-format,
.devotionals-home-page .devotional-bento-card.topic-realtalk .devotional-format,
.devotionals-home-page .devotional-bento-card.topic-disciplines .devotional-format { color: rgba(255,255,255,0.85); }

/* ─────────────────────────────────────────
   ALL DEVOTIONALS: List view (desktop)
───────────────────────────────────────── */
.devotionals-home-page .devotionals-list-section {
  display: block;
}
.devotionals-home-page .devotionals-list-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.devotionals-home-page .devotional-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--r-card);
  border: 1.5px solid var(--border-col);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: devotionalsCardReveal 0.5s ease both;
}
.devotionals-home-page .devotional-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.devotionals-home-page .devotional-list-item.completed {
  border-left: 3px solid var(--amber);
}
.devotionals-home-page .devotional-list-item .list-item-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.devotionals-home-page .devotional-list-item .list-item-icon {
  font-size: 1.5rem;
}
.devotionals-home-page .devotional-list-item .list-item-format {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.devotionals-home-page .devotional-list-item .list-item-center {
  flex: 1;
  min-width: 0;
}
.devotionals-home-page .devotional-list-item .list-item-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--text);
  -webkit-line-clamp: 1;
  line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: clip;
}
.devotionals-home-page .devotional-list-item .list-item-scripture {
  font-size: 0.75rem;
  color: var(--amber);
  margin-bottom: 4px;
}
.devotionals-home-page .devotional-list-item .list-item-excerpt {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: clip;
}
.devotionals-home-page .devotional-list-item .list-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.devotionals-home-page .devotional-list-item .list-item-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   Card reveal animation
───────────────────────────────────────── */
@keyframes devotionalsCardReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.devotionals-home-page .devotional-bento-card:nth-child(1) { animation-delay: 0.02s; }
.devotionals-home-page .devotional-bento-card:nth-child(2) { animation-delay: 0.04s; }
.devotionals-home-page .devotional-bento-card:nth-child(3) { animation-delay: 0.06s; }
.devotionals-home-page .devotional-bento-card:nth-child(4) { animation-delay: 0.08s; }
.devotionals-home-page .devotional-bento-card:nth-child(5) { animation-delay: 0.1s; }
.devotionals-home-page .devotional-bento-card:nth-child(6) { animation-delay: 0.12s; }
.devotionals-home-page .devotional-bento-card:nth-child(7) { animation-delay: 0.14s; }
.devotionals-home-page .devotional-bento-card:nth-child(8) { animation-delay: 0.16s; }
.devotionals-home-page .devotional-bento-card:nth-child(9) { animation-delay: 0.18s; }
.devotionals-home-page .devotional-bento-card:nth-child(10) { animation-delay: 0.2s; }
.devotionals-home-page .devotional-bento-card:nth-child(n+11) { animation-delay: 0.22s; }
.devotionals-home-page .devotional-list-item:nth-child(1) { animation-delay: 0.02s; }
.devotionals-home-page .devotional-list-item:nth-child(2) { animation-delay: 0.04s; }
.devotionals-home-page .devotional-list-item:nth-child(3) { animation-delay: 0.06s; }
.devotionals-home-page .devotional-list-item:nth-child(4) { animation-delay: 0.08s; }
.devotionals-home-page .devotional-list-item:nth-child(5) { animation-delay: 0.1s; }
.devotionals-home-page .devotional-list-item:nth-child(6) { animation-delay: 0.12s; }
.devotionals-home-page .devotional-list-item:nth-child(7) { animation-delay: 0.14s; }
.devotionals-home-page .devotional-list-item:nth-child(8) { animation-delay: 0.16s; }
.devotionals-home-page .devotional-list-item:nth-child(9) { animation-delay: 0.18s; }
.devotionals-home-page .devotional-list-item:nth-child(10) { animation-delay: 0.2s; }
.devotionals-home-page .devotional-list-item:nth-child(n+11) { animation-delay: 0.22s; }
@media (prefers-reduced-motion: reduce) {
  .devotionals-home-page .devotional-bento-card,
  .devotionals-home-page .devotional-list-item {
    animation: none;
  }
}
