:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* DARK THEME (default) */
html[data-theme="dark"] {
  --bg:#fafaf7;
  --fg:#1a2740;
  --muted:#5a6478;
  --primary:#16325c;
  --accent:#f07a1f;
  --accent-2:#f5a142;
  --card:#ffffff;
  --section-alt:linear-gradient(180deg,#fff,#f4efe6);
  --footer-bg:#0e1c36;
  --border:rgba(20,30,60,.08);
  --hero-overlay:rgba(10,18,40,.55);
  --glass-bg:rgba(255,255,255,.55);
  --glass-border:rgba(255,255,255,.4);
  --shadow-lg:0 20px 60px -20px rgba(20,40,80,.25);
  --shadow-glass:0 10px 40px -10px rgba(20,40,80,.18), inset 0 1px 0 rgba(255,255,255,.6);
  --radius:16px;
  --ease:cubic-bezier(.22,1,.36,1);
}
html[data-theme="light"] {
  --bg:#0b1220;
  --fg:#e8ecf5;
  --muted:#8a93a8;
  --primary:#e8ecf5;
  --accent:#ff8a3d;
  --accent-2:#ffb066;
  --card:#131c30;
  --section-alt:linear-gradient(180deg,#0b1220,#0e1730);
  --footer-bg:#060b18;
  --border:rgba(255,255,255,.08);
  --glass-bg:rgba(20,30,55,.5);
  --glass-border:rgba(255,255,255,.08);
  --shadow-lg:0 20px 60px -20px rgba(0,0,0,.6);
  --shadow-glass:0 10px 40px -10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4 { letter-spacing: -0.03em; font-weight: 600; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; }
.section { padding-bottom: 5rem; }
.muted { color: var(--muted-fg); font-size: 0.875rem; }
/* Glass / liquid */
.glass {
  background: var(--card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
}
/* ============== LIQUID GLASS NAV ============== */
.nav {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--nav-bg);
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.4);
}
@media (min-width: 768px) { .nav { padding: 12px 24px; } }

/* liquid sheen */
.nav::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.45) 50%,transparent 70%);
  background-size:200% 100%;
  animation:sheen 9s linear infinite;
  mix-blend-mode:overlay;opacity:.6;
}
@keyframes sheen{0%{background-position:200% 0}100%{background-position:-200% 0}}



/* Brand */
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  transition: opacity .2s;
}
.brand:hover { opacity: .9; }
.brand__logo {
  height: 120px; width: 120px; object-fit: contain;
  border-radius: 999px;
}
@media (min-width: 768px) {
  .brand__logo { height: 120px; width: 120px; }
}
.brand__text { font-weight: 700; line-height: 1.1; }
.accent { color: var(--accent); }
.brand__text--desktop { display: none; font-size: 16px; }
.brand__text--mobile  { display: flex; flex-direction: column; font-size: 14px; }
.brand__text--mobile .line { display: block; }
@media (min-width: 768px) {
  .brand__text--desktop { display: block; }
  .brand__text--mobile  { display: none; }
}

/* Desktop nav */
.nav__list {
  display: none;
  list-style: none; margin: 0; padding: 0;
  gap: 4px; align-items: center;
}
@media (min-width: 1024px) { .nav__list { display: flex; } }

.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px;
  border: 0; background: transparent;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  border-radius: 9999px;
  text-decoration: none;
  transition: color .2s;
}
.nav__link:hover { color: var(--text); }
.chev {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease;
}
.has-sub:hover .chev,
.m-item.open .chev { transform: rotate(180deg); }



/* Submenu */
.submenu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, 8px) scale(.96);
  margin-top: 12px;
  list-style: none; padding: 8px;
  width: 224px;
  background: var(--sub-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}
.submenu li { opacity: 0; transform: translateX(-8px); transition: opacity .25s ease, transform .25s ease; }
.has-sub:hover .submenu li { opacity: 1; transform: translateX(0); }
.submenu li:nth-child(1) { transition-delay: .04s; }
.submenu li:nth-child(2) { transition-delay: .08s; }
.submenu li:nth-child(3) { transition-delay: .12s; }
.submenu li:nth-child(4) { transition-delay: .16s; }
.submenu a {
  display: block; padding: 8px 12px; font-size: 14px;
  color: var(--text-muted); text-decoration: none;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.submenu a:hover { background: var(--chip); color: var(--accent); }

/* Actions */
.nav__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid; place-items: center;
  height: 40px; width: 40px;
  border: 0; background: var(--chip);
  color: var(--text);
  border-radius: 9999px; cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background .2s;
}
.icon-btn:hover { background: var(--chip-hover); }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s, transform .25s; }

/* Theme icon visibility */
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Burger */
.burger { display: grid; }
@media (min-width: 1024px) { .burger { display: none; } }
.icon-x { display: none; }
.mobile-open .icon-menu { display: none; }
.mobile-open .icon-x    { display: block; }

/* Mobile menu */
.mobile-menu {
  max-width: 1152px;
  margin: 8px auto 0;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--sub-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height .3s ease, opacity .25s ease, transform .25s ease, padding .3s ease;
}
.mobile-menu.open {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu__inner { padding: 16px; }
@media (min-width: 1024px) { .mobile-menu, #burger { display: none; } }

.m-item { border-radius: 12px; }
.m-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px;
  border: 0; background: transparent;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  border-radius: 8px; cursor: pointer;
}
.m-link:hover { background: var(--chip); }
.m-sub {
  list-style: none; padding: 0 0 0 16px; margin: 0;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.m-item.open .m-sub { max-height: 240px; }
.m-sub a {
  display: block; padding: 8px 12px; font-size: 14px;
  color: var(--text-muted); text-decoration: none;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.m-sub a:hover { background: var(--chip); color: var(--accent); }

.theme-btn:hover { background: var(--hover-bg); }

.theme-toggle{
  width:38px;height:38px;border-radius:999px;border:0;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.5);color:inherit;
  border:1px solid var(--border);
  position:relative;overflow:hidden;
}
.theme-toggle svg{width:18px;height:18px;position:absolute;transition:transform .5s ease,opacity .35s ease;}
.theme-toggle .icon-moon{opacity:0;transform:rotate(-90deg) scale(.5);}
.theme-toggle .icon-sun{opacity:1;transform:rotate(0) scale(1);}
html[data-theme="dark"] .theme-toggle{background:rgba(255,255,255,.08);}
html[data-theme="dark"] .theme-toggle .icon-sun{opacity:0;transform:rotate(90deg) scale(.5);}
html[data-theme="dark"] .theme-toggle .icon-moon{opacity:1;transform:rotate(0) scale(1);}

/* HERO */
.hero { position: relative; padding: 9rem 0 3rem; text-align:center; }
.hero-glow {
  position: absolute; inset: 0; z-index: -1;
  background: var(--gradient-glow); pointer-events: none;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: 9999px;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted-fg);
}
.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
}
.hero-sub {
  margin: 1rem auto 0;
  max-width: 38rem;
  color: var(--muted-fg);
  font-size: 1.05rem;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.text-gradient-animated {
  background: linear-gradient(120deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-shift 8s ease-in-out infinite;
}
/* SECTION */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 1.5rem; gap: 1rem;
}
.eyebrow {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted-fg);
}
.section-title { font-size: clamp(1.4rem, 2.4vw, 1.875rem); margin-top: 0.25rem; }
.date-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--muted-fg);
}
/* MAIN CARD */
.card-lift {
  border-radius: 1.75rem;
  overflow: hidden;
  transition: transform .6s cubic-bezier(.22,1,.36,1), box-shadow .6s cubic-bezier(.22,1,.36,1);
}
.card-lift:hover { transform: translateY(-8px) scale(1.015); box-shadow: var(--shadow-glow); }
.main-card .grid-2 {
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .main-card .grid-2 { grid-template-columns: 1fr 1fr; }
}
.main-card .img-wrap {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
}
.main-card .img-wrap img,
.card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.22,1,.36,1), filter .6s ease;
}
.main-card:hover .img-wrap img,
.card:hover .img-wrap img { transform: scale(1.08); filter: saturate(1.15) brightness(1.05); }
.img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }
.img-pill {
  position: absolute; bottom: 1rem; left: 1rem;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  background: var(--card); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  font-size: 0.75rem;
}
.main-body { padding: 2rem; display: flex; flex-direction: column; }
@media (min-width: 768px) { .main-body { padding: 2.5rem; } }
.subtitle {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--primary);
}
.main-title { margin-top: 0.5rem; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.author { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-fg); }
.scripture-quote {
  margin-top: 1.5rem; padding-left: 1rem;
  border-left: 2px solid var(--primary);
  font-style: italic; opacity: 0.92;
}
.scripture-quote footer { margin-top: 0.5rem; font-style: normal; font-size: 0.875rem; color: var(--muted-fg); }
.main-desc { margin-top: 1.5rem; line-height: 1.7; opacity: 0.88; }
.actions { margin-top: auto; padding-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 500; cursor: pointer; border: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  font-family: inherit; color: inherit;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); position: relative; overflow: hidden; isolation: isolate; }
.btn-primary:hover { opacity: 0.9; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.8s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-glass { background: var(--card); border: 1px solid var(--border); backdrop-filter: blur(24px) saturate(180%); }
.btn-glass:hover { background: var(--hover-bg); }


/* GRID */
.grid {
  display: grid; 
  gap: 1.5rem;
  /* Use auto-fit with a min-width constraint. 
     This automatically creates 1, 2, or 3 columns based on available space */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  border-radius: 1.25rem; 
  overflow: hidden;
  display: flex; 
  flex-direction: column;
  background: var(--card); 
  border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(180%);
  /* Ensure cards have a consistent height or behavior */
  height: 100%;
  transition: transform .6s cubic-bezier(.22,1,.36,1), box-shadow .6s cubic-bezier(.22,1,.36,1);
}

/* Optional: Improve hover effect for touch screens */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
}
.card:hover { transform: translateY(-8px) scale(1.015); box-shadow: var(--shadow-glow); }
.card .img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card .img-wrap .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.05), transparent); }
.card .img-wrap .meta-row {
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; color: rgba(255,255,255,0.92);
}
.card .img-wrap .meta-row span {
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  padding: 0.25rem 0.625rem; border-radius: 9999px;
}
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-body .subtitle { font-size: 0.68rem; }
.card-title { margin-top: 0.4rem; font-size: 1.2rem; }
.card-author { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-fg); }
.card-desc {
  margin-top: 0.75rem; font-size: 0.875rem; opacity: 0.85; line-height: 1.55;
  
}
.card-quote {
  margin-top: 1rem; padding-left: 0.75rem;
  border-left: 1px solid color-mix(in oklab, var(--primary) 50%, transparent);
  font-size: 0.78rem; font-style: italic; color: var(--muted-fg);
}
.read-more {
  margin-top: 1.25rem;
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 500; color: var(--primary);
  transition: gap 0.3s ease;
}
.read-more:hover { gap: 0.5rem; }
.link-underline { position: relative; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============== FOOTER ============== */
.footer{background:var(--footer-bg);color:#fff;padding:5rem 0 2rem}
.footer__top{text-align:center;margin-bottom:4rem}
.footer__top h2{margin-bottom:1.5rem}

.footer__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:2.5rem;
  padding:3rem 0;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer__col h3{
  font-size:1.25rem;color:#fff;margin-bottom:.75rem;
}
.footer__col h3 span{color:var(--accent)}
.footer__col h4{
  font-size:.85rem;text-transform:uppercase;letter-spacing:.15em;
  color:var(--accent-2);margin-bottom:1.1rem;font-weight:600;
}
.footer__brand p{color:rgba(255,255,255,.65);font-size:.95rem;line-height:1.6;max-width:28ch}
.footer__col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem}
.footer__col ul a{
  color:rgba(255,255,255,.7);font-size:.92rem;
  transition:color .25s var(--ease),padding-left .25s var(--ease);
}
.footer__col ul a:hover{color:var(--accent);padding-left:.3rem}
.footer__times li{
  display:flex;flex-direction:column;gap:.15rem;
  color:rgba(255,255,255,.7);font-size:.9rem;
}
.footer__times li strong{color:#fff;font-weight:600;font-size:.92rem}
.footer__contact li{color:rgba(255,255,255,.75);font-size:.92rem;line-height:1.5}
.footer__contact a{color:rgba(255,255,255,.75)}
.footer__contact a:hover{color:var(--accent)}

.footer__small{margin-top:2rem;color:rgba(255,255,255,.5);font-size:.85rem;text-align:center}

/* ============== REVEAL ============== */
.reveal{opacity:0;transform:translateY(40px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
.reveal.is-visible{opacity:1;transform:translateY(0)}

/* ============== RESPONSIVE ============== */
@media (max-width:960px){
  .nav__menu,.nav__cta{display:none}
  .nav__burger{display:flex}
  .nav__inner{border-radius:22px}
}
@media (max-width:600px){
  .section{padding:4rem 0}
  .hero__content{padding-top:6rem}
}
