/* =============================================================
   HGC Website – Main Stylesheet
   Colors: Purple var(--primary) | Gold var(--gold) | Dark Gray var(--dark-gray)
   Fonts: Poppins (headings) + Inter (body)
   ============================================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=Crimson+Pro:wght@400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary:       #4B0082;
  --primary-light: #6d28d9;
  --primary-dark:  #3b006a;
  --gold:          #FFD700;
  --gold-dark:     #d4af00;
  --dark-gray:     #374151;
  --light-gray:    #f9fafb;
  --border:        #e5e7eb;
  --text-muted:    #6b7280;
  --white:         #ffffff;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow:        0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl:     0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);
  --radius:        0.5rem;
  --radius-lg:     0.75rem;
  --radius-xl:     1rem;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-gray);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

body.preloader-active,
body.mobile-menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-gray);
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* --- Navigation --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(to right, #9333ea, #7e22ce, #4338ca);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  height: 64px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo { width: 44px; height: 44px; object-fit: contain; }
@media (min-width: 640px) { .navbar__logo { width: 48px; height: 48px; } }
@media (min-width: 1280px) { .navbar__logo { width: 52px; height: 52px; } }

/* Desktop nav links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: .125rem;
  flex: 1;
}

@media (max-width: 1023px) { .navbar__links { display: none; } }

.nav-link {
  color: rgba(255,255,255,.9);
  font-size: .7rem;
  font-weight: 500;
  padding: .375rem .25rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  white-space: nowrap;
  position: relative;
}
@media (min-width: 1024px) {
  .nav-link { font-size: .75rem; padding: .425rem .325rem; }
}
@media (min-width: 1150px) {
  .nav-link { font-size: .8125rem; padding: .5rem .425rem; }
  .navbar__links { gap: .25rem; }
}
@media (min-width: 1360px) {
  .nav-link { font-size: .875rem; padding: .5rem .5rem; }
  .navbar__links { gap: .375rem; }
}

.nav-link:hover {
  color: #fde047;
  background: transparent;
}

.nav-link.active {
  color: #fde047;
  background: transparent;
  border-bottom: 2px solid #fde047;
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: .25rem;
  cursor: pointer;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 220px;
  background: linear-gradient(to bottom right, #7e22ce, #6b21a8, #3730a3);
  border: 1px solid #9333ea;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px rgba(0,0,0,.3);
  padding: .75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: .25rem;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.nav-dropdown.dropdown-open > .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem .875rem;
  border-radius: var(--radius);
  color: var(--white);
  font-size: .875rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}

.nav-dropdown__item:hover { background: rgba(250,204,21,.9); color: #581c87; }

/* Mega Menu (Ministries & Departments) */
.nav-dropdown--mega { position: static; }

.nav-mega-menu {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 2rem);
  max-width: 64rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity .2s, visibility .2s, transform .2s;
}

.nav-dropdown--mega.dropdown-open .nav-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-mega-menu--ministries .nav-mega-menu__grid {
  background: linear-gradient(to bottom right, #7e22ce, #6b21a8, #3730a3);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem 1rem;
}

.nav-mega-menu--departments .nav-mega-menu__grid {
  background: linear-gradient(to bottom right, #7e22ce, #6b21a8, #3730a3);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem 1rem;
}

@media (min-width: 768px) {
  .nav-mega-menu--ministries .nav-mega-menu__grid { grid-template-columns: repeat(3, 1fr); }
  .nav-mega-menu--departments .nav-mega-menu__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .nav-mega-menu--ministries .nav-mega-menu__grid { grid-template-columns: repeat(4, 1fr); }
  .nav-mega-menu--departments .nav-mega-menu__grid { grid-template-columns: repeat(4, 1fr); }
}

.nav-mega-menu__item {
  display: flex;
  align-items: center;
  padding: .5rem .75rem;
  border-radius: var(--radius);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
@media (min-width: 1150px) {
  .nav-mega-menu__item { font-size: .875rem; }
}

.nav-mega-menu__item:hover {
  background: rgba(250,204,21,.9);
  color: #581c87;
}

.nav-mega-menu__item.active {
  background: rgba(255,255,255,.12);
  color: #fde047;
}

/* Mobile menu toggle */
.navbar__mobile-tools {
  display: none;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}

.navbar__mobile-tool {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: .625rem;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.navbar__mobile-tool:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(253,224,71,.45);
  color: #fde047;
}

.navbar__mobile-tool:focus-visible {
  outline: 2px solid rgba(253,224,71,.9);
  outline-offset: 2px;
}

.navbar__mobile-tool[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.navbar__burger {
  display: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: .625rem;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  color: var(--white);
  margin-left: .1rem;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

@media (max-width: 1023px) {
  .navbar__mobile-tools { display: flex; }
  .navbar__burger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.navbar__burger:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(253,224,71,.45);
  color: #fde047;
}

.navbar__burger:focus-visible {
  outline: 2px solid rgba(253,224,71,.9);
  outline-offset: 2px;
}

.navbar__mobile-tool svg,
.navbar__mobile-tool svg *,
.navbar__burger svg,
.navbar__burger svg * {
  pointer-events: none;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: linear-gradient(175deg, #4c1d95 0%, #3b0764 40%, #1a003a 100%);
  border-top: 1px solid rgba(255,255,255,.08);
  gap: .125rem;
  padding: .5rem .875rem 1.5rem;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 32px rgba(0,0,0,.35);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu__link {
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  font-weight: 500;
  padding: .7rem .875rem;
  min-height: 44px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: background .2s, color .15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-menu__link:hover { background: rgba(255,255,255,.07); color: #FFD700; }
.mobile-menu__link.active,
.mobile-menu__link--active { background: rgba(255,255,255,.07); color: #FFD700; }

.mobile-menu__link--active .mobile-menu__item-icon svg,
.mobile-menu__toggle--active .mobile-menu__item-icon svg {
  color: #FFD700;
}

.mobile-menu__link--sub {
  font-size: .8375rem;
  padding-left: 2.25rem;
  color: rgba(255,255,255,.7);
}

.mobile-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  font-weight: 500;
  padding: .7rem .875rem;
  min-height: 44px;
  border-radius: .5rem;
  transition: background .2s, color .15s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.mobile-menu__toggle:hover { background: rgba(255,255,255,.07); color: #FFD700; }

.mobile-menu__toggle--active {
  background: rgba(255,255,255,.07);
  color: #FFD700;
}

.mobile-menu__toggle .chevron {
  margin-left: auto;
  transition: transform .2s;
  flex-shrink: 0;
  opacity: .6;
}
.mobile-menu__toggle--active .chevron {
  opacity: 1;
}
.mobile-menu__toggle.open .chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.mobile-menu__sub {
  padding-left: .5rem;
  display: none;
}
.mobile-menu__sub.sub-open {
  display: block;
}

.mobile-menu__donate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: rgba(253,224,71,.12);
  color: #fde047;
  border: 1px solid rgba(253,224,71,.3);
  margin-top: .75rem;
  padding: .75rem 1rem;
  border-radius: .625rem;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.mobile-menu__donate:hover {
  background: rgba(253,224,71,.2);
  border-color: rgba(253,224,71,.55);
  color: #fde047;
}

.mobile-menu__donate--active {
  background: rgba(253,224,71,.2);
  border-color: rgba(253,224,71,.55);
  color: #fde047;
}

.mobile-menu__section-title {
  color: rgba(253,224,71,.7);
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .75rem .875rem .25rem;
  margin-top: .25rem;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.mobile-menu__section-title:first-child { border-top: none; margin-top: 0; }

/* Icon for top-level menu items */
.mobile-menu__item-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: .7;
}
.mobile-menu__item-icon svg { color: rgba(255,255,255,.9); }

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(to right, var(--primary), #7e22ce);
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: var(--hero-bg, url('../images/hero-image.jpg'));
}

.hero__overlay-1 {
  position: absolute;
  inset: 0;
  background: rgba(147, 51, 234, .40);
}

.hero__overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(126,34,206,.5), rgba(168,85,247,.2), rgba(147,51,234,.3));
}

.hero__content {
  position: relative;
  padding: 4rem 0 2.5rem;
  text-align: center;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) { .hero__content { padding: 6rem 0 4rem; } }

.hero__logo {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  margin: 0 auto 1.25rem;
}

@media (min-width: 480px) { .hero__logo { width: 7rem; height: 7rem; margin-bottom: 1.5rem; } }
@media (min-width: 768px) { .hero__logo { width: 10rem; height: 10rem; margin-bottom: 2rem; } }

.hero__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,.8), 0 0 8px rgba(0,0,0,.6);
  padding: 0 .5rem;
}

@media (min-width: 480px) { .hero__title { font-size: 2.25rem; margin-bottom: 1.25rem; } }
@media (min-width: 768px) { .hero__title { font-size: 3rem; margin-bottom: 1.5rem; padding: 0; } }
@media (min-width: 1024px) { .hero__title { font-size: 3.75rem; } }

.hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.95);
  max-width: 48rem;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
  text-shadow: 1px 1px 3px rgba(0,0,0,.8);
  padding: 0 1rem;
}

@media (min-width: 480px) { .hero__subtitle { font-size: 1.1rem; padding: 0 .5rem; } }
@media (min-width: 768px) { .hero__subtitle { font-size: 1.35rem; margin-bottom: 2.5rem; padding: 0; } }
@media (min-width: 1024px) { .hero__subtitle { font-size: 1.5rem; } }

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
  padding: 0 1.5rem;
}

@media (min-width: 480px) { .hero__buttons { padding: 0; width: auto; } }
@media (min-width: 640px) { .hero__buttons { flex-direction: row; gap: 1rem; margin-bottom: 3rem; } }

.hero__service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .625rem;
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 640px) { .hero__service-cards { gap: 1rem; } }
@media (min-width: 768px) { .hero__service-cards { gap: 1.5rem; } }

.service-card {
  background: rgba(109, 40, 217, .75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: .75rem .6rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
@media (min-width: 640px) { .service-card { padding: 1.25rem 1rem; } }
@media (min-width: 768px) { .service-card { padding: 1.5rem; } }

.service-card__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .875rem; /* min 14px — was .72rem (≈11px) */
  color: var(--white);
  margin-bottom: .2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,.5);
  line-height: 1.2;
}
@media (min-width: 640px) { .service-card__title { font-size: 1rem; margin-bottom: .35rem; } }
@media (min-width: 768px) { .service-card__title { font-size: 1.1rem; margin-bottom: .5rem; } }

.service-card__time {
  color: var(--gold);
  font-weight: 700;
  font-size: .875rem; /* min 14px — was .68rem (≈11px) */
  text-shadow: 1px 1px 2px rgba(0,0,0,.5);
  line-height: 1.3;
}
@media (min-width: 640px) { .service-card__time { font-size: 1rem; } }
@media (min-width: 768px) { .service-card__time { font-size: 1.05rem; } }

.service-card__desc {
  color: rgba(255,255,255,.85);
  font-size: .625rem;
  margin-top: .2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,.4);
  display: none;
}
@media (min-width: 640px) { .service-card__desc { display: block; font-size: .8rem; margin-top: .35rem; } }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
}

.btn--gold {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
}

.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--primary); }

.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn--white:hover { background: #f3f4f6; color: var(--primary); }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover { background: var(--primary); color: var(--white); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}

.btn--outline-white:hover { background: rgba(255,255,255,.15); }

.btn--lg { padding: .875rem 2.5rem; font-size: 1.1rem; }
.btn--sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn--block { width: 100%; }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}

.card:hover { box-shadow: var(--shadow-lg); }

.card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__body { padding: 1.5rem; }
.card__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--dark-gray);
  margin-bottom: .5rem;
}

.card__meta { font-size: .8125rem; color: var(--text-muted); margin-bottom: .75rem; }
.card__excerpt { font-size: .9375rem; color: #4b5563; line-height: 1.6; }

/* --- Section headers --- */
.section { padding: 5rem 0; }
.section--gray { background: var(--light-gray); }
.section--white { background: var(--white); }
.section--purple {
  background: linear-gradient(to right, #9333ea, #7e22ce);
  color: var(--white);
}

.section__header { text-align: center; margin-bottom: 3rem; }
.section__eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: .75rem;
}

.section--purple .section__eyebrow { color: var(--gold); }

.section__title {
  font-size: 2rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .section__title { font-size: 2.5rem; } }

.section--purple .section__title { color: var(--white); }

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
}

.section--purple .section__subtitle { color: rgba(255,255,255,.85); }

/* --- Grids --- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Tags / Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
}

.badge--purple { background: #ede9fe; color: var(--primary); }
.badge--gold   { background: #fef9c3; color: #92400e; }
.badge--green  { background: #d1fae5; color: #065f46; }
.badge--red    { background: #fee2e2; color: #991b1b; }
.badge--blue   { background: #dbeafe; color: #1e40af; }

/* --- Page hero (inner pages) --- */
.page-hero {
  background: linear-gradient(to right, #9333ea, #7e22ce);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

/* Blog post hero with featured image */
.page-hero--post {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 6rem 0 4rem;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
}
.page-hero--post::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.15) 100%);
  z-index: 0;
}
.page-hero--post .container {
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .page-hero--post { min-height: 420px; padding: 8rem 0 3.5rem; }
}

.page-hero__title {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

@media (max-width: 640px) { .page-hero__title { font-size: 1.875rem; } }

.page-hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,.9);
  max-width: 40rem;
  margin: 0 auto;
}

/* About page hero: deeper brand gradient with explicit white text overrides */
.about-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4B0082 0%, #2d0057 55%, #1a003a 100%);
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 220px at 20% 12%, rgba(255,215,0,.12), transparent 70%),
    radial-gradient(420px 220px at 88% 78%, rgba(255,255,255,.08), transparent 72%);
  pointer-events: none;
}
.about-hero .container {
  position: relative;
  z-index: 1;
}
.about-hero .page-hero__title,
.about-hero .page-hero__subtitle {
  color: var(--white);
}

/* --- Sermon Card --- */
.sermon-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.sermon-card:hover { box-shadow: var(--shadow-lg); }

.sermon-card__icon {
  width: 48px;
  height: 48px;
  background: #ede9fe;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.sermon-card__body { flex: 1; }
.sermon-card__title { font-size: 1rem; font-weight: 600; color: var(--dark-gray); margin-bottom: .25rem; }
.sermon-card__meta { font-size: .8125rem; color: var(--text-muted); margin-bottom: .5rem; }
.sermon-card__category { }

/* --- Event Card --- */
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}

.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.event-card__date-band {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: .75rem;
  font-family: 'Poppins', sans-serif;
}

.event-card__date-day   { font-size: 2rem; font-weight: 700; line-height: 1; }
.event-card__date-month { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.event-card__body { padding: 1.25rem; }
.event-card__title { font-size: 1rem; font-weight: 600; color: var(--dark-gray); margin-bottom: .375rem; }
.event-card__meta { font-size: .8125rem; color: var(--text-muted); display: flex; align-items: center; gap: .25rem; margin-bottom: .25rem; }
.event-card__desc { font-size: .875rem; color: var(--text-muted); line-height: 1.5; }

/* --- Homepage Events Strip --- */
.home-events__grid {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.hevent {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.hevent:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(75, 0, 130, .3);
}
.hevent__date {
  flex-shrink: 0;
  width: 62px;
  height: 68px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: .875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  gap: 1px;
}
.hevent__day {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.hevent__month {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .8);
}
.hevent__body {
  flex: 1;
  min-width: 0;
}
.hevent__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: .3rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hevent__meta {
  font-size: .8125rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .375rem .875rem;
  margin-bottom: .3rem;
}
.hevent__meta-item {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.hevent__meta-item svg { flex-shrink: 0; opacity: .6; }
.hevent__desc {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.hevent__badge {
  flex-shrink: 0;
  padding: .3rem .8rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(75, 0, 130, .08);
  color: var(--primary);
  text-transform: capitalize;
}
.hevent__arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--light-gray);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, transform .2s;
}
.hevent:hover .hevent__arrow {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateX(3px);
}
.hevent:hover .hevent__arrow svg { stroke: var(--white); }
@media (max-width: 768px) {
  .hevent__desc  { display: none; }
  .hevent__badge { display: none; }
}
@media (max-width: 480px) {
  .hevent { padding: 1rem; gap: .875rem; }
  .hevent__date { width: 52px; height: 58px; border-radius: .625rem; }
  .hevent__day { font-size: 1.5rem; }
  .hevent__title { font-size: .9375rem; }
  .hevent__arrow { display: none; }
}

/* --- Ministry Card --- */
.ministry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  text-align: center;
}

.ministry-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }

.ministry-card__icon {
  width: 100%;
  height: 192px;
  background: linear-gradient(135deg, var(--gf, #9333ea), var(--gt, #7e22ce));
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 4rem;
}

.ministry-card__title { font-size: 1.1rem; font-weight: 700; color: var(--dark-gray); margin-bottom: .5rem; padding: 1.25rem 1.5rem .25rem; }
.ministry-card__desc { font-size: .875rem; color: var(--text-muted); padding: 0 1.5rem 1.5rem; line-height: 1.6; }

/* --- Quick action buttons (home dashboard) --- */
.quick-action {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  color: var(--primary);
  font-weight: 600;
  font-size: .9375rem;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
}

.quick-action:hover { background: var(--primary); color: var(--white); }
.quick-action svg { width: 24px; height: 24px; }

/* --- Stats grid (home) --- */
.stat-box { border-radius: var(--radius); padding: 1rem; text-align: center; }
.stat-box__num { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.stat-box__label { font-size: .8125rem; color: var(--text-muted); margin-top: .25rem; }
.stat-box--blue   { background: #eff6ff; } .stat-box--blue .stat-box__num { color: #2563eb; }
.stat-box--green  { background: #f0fdf4; } .stat-box--green .stat-box__num { color: #16a34a; }
.stat-box--purple { background: #f5f3ff; } .stat-box--purple .stat-box__num { color: #7c3aed; }
.stat-box--yellow { background: #fefce8; } .stat-box--yellow .stat-box__num { color: #ca8a04; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 500; font-size: .9375rem; color: var(--dark-gray); margin-bottom: .375rem; }
.form-control {
  width: 100%;
  padding: .625rem .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  color: var(--dark-gray);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(75,0,130,.12);
}

textarea.form-control { resize: vertical; min-height: 120px; }

.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }

.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.form-error { color: #dc2626; font-size: .8125rem; margin-top: .25rem; }
.form-success { color: #16a34a; font-size: .875rem; font-weight: 500; }

/* --- Contact Info block --- */
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item__icon {
  width: 48px;
  height: 48px;
  background: #ede9fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-info-item__title { font-weight: 600; color: var(--dark-gray); margin-bottom: .2rem; }
.contact-info-item__text  { color: var(--text-muted); font-size: .9375rem; }

/* --- Gallery grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(75,0,130,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}

.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay svg { color: var(--white); width: 32px; height: 32px; }

/* --- Blog --- */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

@media (min-width: 768px) { .blog-featured { grid-template-columns: 1fr 1fr; } }

.blog-featured__img { width: 100%; height: 300px; object-fit: cover; }
.blog-featured__body { padding: 2rem; }
.blog-featured__category { color: var(--primary); font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.blog-featured__title { font-size: 1.5rem; color: var(--dark-gray); margin-bottom: .75rem; }
.blog-featured__excerpt { color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }

/* --- Pagination --- */
.pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination__btn {
  padding: .5rem .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--dark-gray);
  font-size: .875rem;
  font-weight: 500;
  transition: all .2s;
  cursor: pointer;
  background: var(--white);
}

.pagination__btn:hover { border-color: var(--primary); color: var(--primary); }
.pagination__btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination__btn:disabled { opacity: .4; cursor: not-allowed; }

/* --- Donate form --- */
.donate-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 500px) { .donate-type-grid { grid-template-columns: 1fr; } }

.donate-type-btn {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
}

.donate-type-btn.selected, .donate-type-btn:hover {
  border-color: var(--primary);
  background: #f5f3ff;
}

.donate-type-btn__icon { font-size: 1.75rem; margin-bottom: .375rem; }
.donate-type-btn__label { font-weight: 600; font-size: .9375rem; }

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
.amount-btn {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: .625rem;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: .9375rem;
  transition: all .2s;
  background: var(--white);
}

.amount-btn.selected, .amount-btn:hover { border-color: var(--primary); background: #f5f3ff; color: var(--primary); }

/* --- Footer --- */
.footer {
  background: var(--dark-gray);
  color: #d1d5db;
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }

.footer__logo-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.footer__logo { width: 48px; height: 48px; object-fit: contain; }
.footer__church-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.125rem; color: var(--white); }

.footer__tagline { font-size: .9375rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.6; }

.footer__socials { display: flex; gap: .875rem; }
.footer__social-link { color: var(--text-muted); transition: color .2s; }
.footer__social-link:hover { color: var(--gold); }
.footer__social-link svg { width: 20px; height: 20px; }

.footer__col-title { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 1.25rem; }

.footer__links { display: flex; flex-direction: column; gap: .625rem; }
.footer__link { color: var(--text-muted); font-size: .9375rem; transition: color .2s; }
.footer__link:hover { color: var(--gold); }

.footer__contact-item { display: flex; align-items: flex-start; gap: .625rem; margin-bottom: .875rem; }
.footer__contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .15rem; }

.footer__newsletter form { display: flex; gap: 0; margin-top: .75rem; }
.footer__newsletter input {
  flex: 1;
  padding: .625rem .875rem;
  border: 1px solid #4b5563;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--dark-gray);
  color: var(--white);
  font-size: .9375rem;
}

.footer__newsletter input::placeholder { color: var(--text-muted); }
.footer__newsletter input:focus { outline: none; border-color: var(--primary); }

.footer__newsletter-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: .625rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.footer__newsletter-btn:hover { background: #7e22ce; }

.footer__divider { border: none; border-top: 1px solid #4b5563; margin-bottom: 1.5rem; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  text-align: center;
  font-size: .875rem;
  color: var(--text-muted);
}

@media (min-width: 640px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }

/* --- Floating buttons --- */
.floating-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  border: none;
  transition: transform .2s;
  text-decoration: none;
}

.floating-btn:hover { transform: scale(1.1); }
/* .floating-btn--donate removed */

/* --- Alerts --- */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); font-size: .9375rem; margin-bottom: 1.25rem; display: flex; gap: .75rem; align-items: flex-start; }
.alert--success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert--info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* --- Search/Filter bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.filter-bar .form-control { max-width: 300px; }

/* --- Breadcrumb --- */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

/* --- Utilities --- */
.text-center  { text-align: center; }
.text-primary { color: var(--primary); }
.text-gold    { color: var(--gold-dark); }
.text-muted   { color: var(--text-muted); }
.text-white   { color: var(--white); }
.text-sm      { font-size: .875rem; }
.text-lg      { font-size: 1.125rem; }
.text-xl      { font-size: 1.25rem; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-full  { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }

/* --- Lightbox --- */
.lightbox {
  --lightbox-backdrop: rgba(15, 23, 42, .82);
  --lightbox-surface: linear-gradient(160deg, rgba(23, 37, 84, .94), rgba(76, 29, 149, .92));
  --lightbox-border: rgba(255, 255, 255, .14);
  --lightbox-copy: #f8fafc;
  --lightbox-muted: rgba(226, 232, 240, .82);
  --lightbox-chip-bg: rgba(255, 255, 255, .12);
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: clamp(.9rem, 2.2vw, 1.5rem);
}

.lightbox.open {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(129, 140, 248, .22), transparent 34%), var(--lightbox-backdrop);
  backdrop-filter: blur(14px);
}

.lightbox__dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 1rem;
  padding: clamp(.85rem, 2vw, 1.15rem);
  border-radius: 1.5rem;
  border: 1px solid var(--lightbox-border);
  background: var(--lightbox-surface);
  box-shadow: 0 2rem 4rem rgba(2, 6, 23, .45);
  overflow: hidden;
}

.lightbox__stage {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.85rem, 2vw, 1.35rem);
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .1);
}

.lightbox__image {
  max-width: 100%;
  max-height: min(78vh, 860px);
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 1.25rem 2.5rem rgba(15, 23, 42, .35);
}

.lightbox__meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .75rem;
  color: var(--lightbox-copy);
  padding: .35rem .15rem .15rem;
}

.lightbox__eyebrow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: var(--lightbox-chip-bg);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lightbox__title {
  margin: 0;
  color: inherit;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.2;
}

.lightbox__caption {
  margin: 0;
  color: var(--lightbox-muted);
  font-size: .95rem;
  line-height: 1.65;
}

.lightbox__caption:empty {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 2;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .28);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
}

.lightbox__close:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, .44);
}

body.page-reader[data-reader-theme="sepia"] .lightbox {
  --lightbox-surface: linear-gradient(160deg, rgba(92, 64, 51, .95), rgba(53, 37, 30, .93));
  --lightbox-copy: #f6ead5;
  --lightbox-muted: rgba(244, 232, 214, .8);
}

body.page-reader[data-reader-theme="dark"] .lightbox,
body.page-reader[data-reader-theme="night"] .lightbox {
  --lightbox-surface: linear-gradient(160deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .94));
  --lightbox-copy: #e2e8f0;
  --lightbox-muted: rgba(203, 213, 225, .82);
}

@media (max-width: 860px) {
  .lightbox__dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 1rem);
  }

  .lightbox__meta {
    padding: 0;
  }

  .lightbox__stage {
    min-height: 260px;
  }

  .lightbox__image {
    max-height: min(68vh, 640px);
  }
}

img[data-image-viewer],
.gallery-item[data-src] {
  cursor: zoom-in;
}

/* --- Sermon pages --- */
.sermon-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
@media (min-width: 1024px) { .sermon-featured { grid-template-columns: 1.6fr 1fr; } }
.sermon-featured__media { aspect-ratio: 16/9; background: #000; overflow: hidden; }
.sermon-featured__media iframe { width: 100%; height: 100%; border: none; display: block; }
.sermon-featured__info { padding: 2rem; }

.sermon-filter-form { margin-bottom: 2rem; }
.sermon-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.sermon-filter-grid .form-control { flex: 1; min-width: 160px; }

/* Override sermon-card for grid use */
.sermon-grid .sermon-card {
  flex-direction: column;
  padding: 0;
  gap: 0;
}
.sermon-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  background: #000;
}
.sermon-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sermon-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .2s;
}
.sermon-card:hover .sermon-card__play { opacity: 1; background: rgba(0,0,0,.3); }
.sermon-card__play svg {
  background: #dc2626;
  border-radius: 50%;
  padding: .875rem;
  box-shadow: 0 4px 15px rgba(0,0,0,.4);
  width: 56px;
  height: 56px;
  color: var(--white);
  fill: var(--white);
  transition: transform .2s;
}
.sermon-card:hover .sermon-card__play svg { transform: scale(1.1); }
.sermon-card__body { padding: 1rem 1.25rem 1.25rem; flex: 1; }
.sermon-card__speaker { color: var(--primary); font-weight: 600; font-size: .875rem; margin-bottom: .375rem; }
.sermon-card__actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }

.sermon-badge {
  display: inline-block;
  background: #ede9fe;
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .2rem .7rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}

/* --- Events page --- */
.event-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
@media (min-width: 640px) { .event-row { grid-template-columns: 80px 1fr auto; } }
.event-row:hover { box-shadow: var(--shadow); }
.event-row__date {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: .75rem;
  text-align: center;
  flex-shrink: 0;
}
.event-row__day { font-size: 1.875rem; font-weight: 800; line-height: 1; }
.event-row__mon { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .125rem; }
.event-row__yr  { font-size: .6875rem; color: rgba(255,255,255,.7); }
.event-row__title { font-family: 'Poppins', sans-serif; font-size: 1.0625rem; font-weight: 700; color: var(--dark-gray); margin: .375rem 0; }
.event-row__meta { display: flex; flex-wrap: wrap; gap: .625rem; font-size: .8125rem; color: var(--text-muted); margin-bottom: .5rem; }
.event-row__desc { font-size: .9375rem; color: #4b5563; margin-top: .375rem; }
.event-row__actions { display: flex; align-items: flex-start; padding-top: .25rem; }

/* --- Donate page --- */
.donate-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .donate-layout { grid-template-columns: 1fr 420px; } }
.donate-form-wrap {}
.donate-info {}

.donate-type-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: .625rem .5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .875rem;
  color: var(--dark-gray);
  background: var(--white);
  cursor: pointer;
  transition: all .15s;
}
.donate-type-btn--active, .donate-type-btn:hover {
  border-color: var(--primary);
  background: #ede9fe;
  color: var(--primary);
}

.donate-amount-btn {
  width: 100%;
  padding: .625rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .875rem;
  color: var(--dark-gray);
  background: var(--white);
  cursor: pointer;
  transition: all .15s;
}
.donate-amount-btn--active, .donate-amount-btn:hover {
  border-color: var(--primary);
  background: #ede9fe;
  color: var(--primary);
}

/* --- Contact page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 1.2fr 1fr; } }

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) { .contact-form-grid { grid-template-columns: 1fr 1fr; gap: 0 1rem; } }

/* --- Blog pages --- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .blog-layout { grid-template-columns: 1fr 320px; } }

.blog-sidebar {}
.blog-sidebar__widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.blog-sidebar__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--dark-gray);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
@media (min-width: 1024px) { .blog-featured { grid-template-columns: 1fr 1fr; } }
.blog-featured__image { min-height: 260px; overflow: hidden; }
.blog-featured__image img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.blog-featured__content { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.blog-featured__title { font-size: 1.5rem; color: var(--dark-gray); margin: .75rem 0; }
.blog-featured__excerpt { color: var(--text-muted); line-height: 1.7; }
.blog-featured__meta { display: flex; gap: .75rem; font-size: .875rem; color: var(--text-muted); margin-top: .875rem; }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-card__image { height: 190px; overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.blog-card:hover .blog-card__image img { transform: scale(1.04); }
.blog-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__title { font-size: 1rem; font-weight: 700; color: var(--dark-gray); margin-bottom: .5rem; line-height: 1.4; }
.blog-card__excerpt { color: var(--text-muted); font-size: .875rem; line-height: 1.6; flex: 1; }
.blog-card__meta { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--text-muted); margin-top: .875rem; padding-top: .75rem; border-top: 1px solid var(--border); gap: .5rem; flex-wrap: wrap; }

/* --- Blog Post / Article body --- */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--dark-gray);
}
.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
  font-family: 'Poppins', sans-serif;
  margin-top: 2rem;
  margin-bottom: .75rem;
  color: var(--dark-gray);
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: .375rem; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  margin: 1.5rem 0;
  padding: .875rem 1.25rem;
  background: #f5f3ff;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--primary);
  font-style: italic;
}
.article-body img { border-radius: var(--radius-lg); margin: 1.5rem 0; }
.article-body a { color: var(--primary); font-weight: 600; }

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

/* --- Form messages --- */
.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  line-height: 1.6;
}
.form-message--success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.form-message--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* --- Gallery item img alias --- */
.gallery-item__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover .gallery-item__img { transform: scale(1.05); }

/* --- Loading / Skeleton --- */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- Donate Nav Button (green gradient matching old site) --- */
.navbar__links li:has(.btn--donate-nav) { margin-left: auto; }
.btn--donate-nav {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: linear-gradient(to right, #22c55e, #16a34a);
  color: var(--white);
  padding: .5rem .625rem;
  border-radius: var(--radius);
  border: 2px solid #15803d;
  font-weight: 700;
  font-size: .75rem;
  box-shadow: var(--shadow);
  transition: all .2s;
  min-height: 42px;
  text-decoration: none;
  line-height: 1.2;
  margin-left: .25rem;
  cursor: pointer;
  white-space: nowrap;
}
@media (min-width: 1150px) {
  .btn--donate-nav { font-size: .8125rem; padding: .5rem .75rem; gap: .5rem; min-height: 46px; }
}
@media (min-width: 1360px) {
  .btn--donate-nav { font-size: .875rem; padding: .625rem 1rem; gap: .5rem; min-height: 50px; margin-left: .5rem; }
}
.btn--donate-nav:hover {
  background: linear-gradient(to right, #16a34a, #15803d);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
  color: var(--white);
}
.btn--donate-nav--active {
  border-color: #fde047;
  box-shadow: 0 0 0 2px rgba(253,224,71,.25), var(--shadow-lg);
}
.btn--donate-nav .donate-lines { text-align: left; }
.btn--donate-nav .donate-lines span { display: block; font-size: .65rem; font-weight: 400; }
@media (min-width: 1360px) {
  .btn--donate-nav .donate-lines span { font-size: .7rem; }
}

/* --- Responsive tweaks --- */
@media (max-width: 640px) {
  .section { padding: 3rem 0; }
  .section__title { font-size: 1.625rem; }
  .btn--lg { padding: .75rem 2rem; font-size: 1rem; }
}

/* Bottom-bar clearance on mobile */
@media (max-width: 767px) {
  body { padding-bottom: 72px; }
}

/* =============================================================
   PRELOADER
   ============================================================= */
/* =============================================================
   PRELOADER — 3-Stage Cinematic Reveal
   ============================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0017;
  transition: opacity .65s ease, visibility .65s ease;
  font-family: 'Crimson Pro', Georgia, serif;
  color: var(--white);
  overflow: hidden;
}
.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Background layers */
.preloader__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.preloader__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(75, 0, 130, .45) 0%, transparent 70%),
    radial-gradient(circle at 30% 70%, rgba(109, 40, 217, .2) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 215, 0, .06) 0%, transparent 40%);
}
.preloader__bg-rays {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(255, 215, 0, .03) 10deg,
    transparent 20deg,
    rgba(75, 0, 130, .04) 40deg,
    transparent 50deg,
    rgba(255, 215, 0, .03) 70deg,
    transparent 80deg,
    rgba(75, 0, 130, .03) 100deg,
    transparent 110deg,
    rgba(255, 215, 0, .02) 140deg,
    transparent 160deg,
    rgba(75, 0, 130, .04) 180deg,
    transparent 200deg,
    rgba(255, 215, 0, .03) 220deg,
    transparent 240deg
  );
  animation: preRaysSpin 30s linear infinite;
}
@keyframes preRaysSpin {
  to { transform: rotate(360deg); }
}

/* Particles */
.preloader__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.preloader__particles span {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  background: rgba(255, 215, 0, .45);
  border-radius: 50%;
  animation: preParticleFloat linear infinite;
}
@keyframes preParticleFloat {
  0%   { transform: translateY(0) scale(0); opacity: 0; }
  10%  { opacity: .8; transform: translateY(-10vh) scale(1); }
  80%  { opacity: .4; }
  100% { transform: translateY(-110vh) scale(.5); opacity: 0; }
}

/* Stages */
.preloader__stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
  z-index: 2;
  padding: calc(1rem + env(safe-area-inset-top)) 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
}
.preloader__stage.active {
  opacity: 1;
  visibility: visible;
}
.preloader__stage.exit {
  opacity: 0;
}

/* ---- Stage 1: Verse ---- */
.preloader__stage--verse {
  text-align: center;
}
.preloader__verse-line {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  letter-spacing: .03em;
  line-height: 1.5;
  min-height: 1.5em;
}
.preloader__verse-line:nth-child(2) {
  opacity: 0;
  transition: opacity .3s ease;
}
.preloader__verse-cursor {
  position: absolute;
  width: 2px;
  background: var(--gold);
  animation: preCursorBlink .65s step-end infinite;
  transition: left .05s, top .05s;
}
@keyframes preCursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ---- Stage 2: GOD ---- */
.preloader__stage--god {
  text-align: center;
}
.preloader__god-text {
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(.3);
  transition: all .9s cubic-bezier(.175, .885, .32, 1.275);
  text-shadow: 0 0 60px rgba(255, 215, 0, .6);
}
.preloader__god-text.reveal {
  opacity: 1;
  transform: scale(1);
  animation: preGodBreathe 2.5s ease-in-out infinite .9s;
}
@keyframes preGodBreathe {
  0%, 100% {
    text-shadow: 0 0 60px rgba(255,215,0,.5), 0 0 120px rgba(255,215,0,.2);
  }
  50% {
    text-shadow: 0 0 80px rgba(255,215,0,.8), 0 0 160px rgba(255,215,0,.4), 0 0 240px rgba(75,0,130,.3);
  }
}

/* Ring expand from GOD */
.preloader__god-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 215, 0, .5);
  border-radius: 50%;
  opacity: 0;
  transition: all 1.2s cubic-bezier(.25, .46, .45, .94);
}
.preloader__god-ring.expand {
  width: 300vmax;
  height: 300vmax;
  border-color: rgba(255, 215, 0, .08);
  opacity: 1;
}

/* Ref (Psalm 46:10) */
.preloader__ref {
  margin-top: 1.5rem;
  font-size: .9375rem;
  opacity: 0;
  color: rgba(255, 255, 255, .45);
  font-style: italic;
  letter-spacing: .06em;
  transition: opacity .8s ease;
}
.preloader__ref.visible {
  opacity: .7;
}

/* ---- Stage 3: Logo ---- */
.preloader__stage--logo {
  text-align: center;
}
.preloader__logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  opacity: 0;
  transform: scale(.5);
  transition: all .8s cubic-bezier(.175, .885, .32, 1.275);
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, .4));
}
.preloader__logo.reveal {
  opacity: 1;
  transform: scale(1);
  animation: preLogoPulse 2.5s ease-in-out infinite .8s;
}
@keyframes preLogoPulse {
  0%, 100% { filter: drop-shadow(0 0 25px rgba(255,215,0,.3)); }
  50%      { filter: drop-shadow(0 0 45px rgba(255,215,0,.6)); }
}
.preloader__logo-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75,0,130,.3) 0%, transparent 70%);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: preGlow 3s ease-in-out infinite;
}
@keyframes preGlow {
  0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: .9; transform: translate(-50%, -50%) scale(1.15); }
}

.preloader__church-name {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
  transition: all .8s ease;
}
.preloader__church-name.reveal {
  opacity: 1;
  transform: translateY(0);
}

.preloader__tagline {
  font-size: clamp(.85rem, 2vw, 1rem);
  color: rgba(255, 255, 255, .55);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: .6rem;
  max-width: min(90vw, 620px);
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all .8s ease;
}
.preloader__tagline.reveal {
  opacity: .8;
  transform: translateY(0);
}

.preloader__skip {
  position: absolute;
  right: max(1rem, calc(env(safe-area-inset-right) + 1rem));
  bottom: max(.9rem, calc(env(safe-area-inset-bottom) + .85rem));
  z-index: 4;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.95);
  border-radius: 999px;
  min-height: 40px;
  padding: .35rem .9rem;
  font-family: 'Poppins', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.preloader__skip:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(253,224,71,.65);
  color: #fde047;
}

.preloader__skip:focus-visible {
  outline: 2px solid rgba(253,224,71,.95);
  outline-offset: 2px;
}

/* Progress bar */
.preloader__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, .06);
  z-index: 3;
}
.preloader__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
  background-size: 200% 100%;
  animation: preBarShimmer 2s linear infinite;
  border-radius: 0 3px 3px 0;
}
@keyframes preBarShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media screen and (max-height: 700px) {
  .preloader__god-text { font-size: clamp(3.2rem, 13vw, 7rem); }
  .preloader__church-name { margin-top: 1rem; }
  .preloader__tagline {
    max-width: 88vw;
    letter-spacing: .1em;
  }
}

@media screen and (max-width: 480px) {
  .preloader__verse-line { font-size: 1.1rem; }
  .preloader__logo { width: 70px; height: 70px; }
  .preloader__church-name { font-size: 1.1rem; }
  .preloader__god-text { letter-spacing: .12em; }
  .preloader__tagline {
    font-size: .73rem;
    letter-spacing: .08em;
    opacity: .88;
  }
  .preloader__skip {
    right: .9rem;
    bottom: .85rem;
    min-height: 38px;
    font-size: .72rem;
    padding: .3rem .75rem;
  }
}

/* =============================================================
   DAILY DEVOTIONAL POPUP
   ============================================================= */
.devpopup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.devpopup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
}

.devpopup__card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  animation: devpopupSlideIn .4s ease-out;
}

@keyframes devpopupSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.devpopup__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(255,255,255,.9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .2s;
}

.devpopup__close:hover { background: var(--white); color: #333; }

.devpopup__header {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.devpopup__icon { font-size: 1.75rem; }
.devpopup__label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}

.devpopup__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-gray);
  padding: 1.25rem 1.5rem .5rem;
  line-height: 1.3;
}

.devpopup__scripture {
  padding: 0 1.5rem;
  margin-bottom: .75rem;
  font-style: italic;
  color: #92400e;
  font-size: .9375rem;
  border-left: 3px solid #f59e0b;
  margin-left: 1.5rem;
  padding-left: .75rem;
  line-height: 1.6;
}

.devpopup__excerpt {
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: .9375rem;
  line-height: 1.6;
  margin-bottom: .5rem;
}

.devpopup__author {
  padding: 0 1.5rem;
  font-size: .8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.devpopup__override-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: auto;
  align-self: center;
  box-shadow: 0 2px 6px rgba(245,158,11,.4);
}

/* Supporting Verses on devotionals page */
.dev-supporting-verses {
  margin-top: 2.5rem;
}
.dev-supporting-verses__title {
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.dev-sv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.dev-sv-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem 1.125rem;
}
.dev-sv-card--main {
  background: linear-gradient(135deg, #fef3c7, #fff);
  border-left-color: #d97706;
  border-left-width: 5px;
}
.dev-sv-card__ref {
  font-size: .8125rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: .375rem;
  display: flex;
  align-items: center;
  gap: .375rem;
}
.dev-sv-card__badge {
  background: #f59e0b;
  color: #fff;
  font-size: .55rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dev-sv-card__text {
  font-style: italic;
  font-size: .9375rem;
  color: #374151;
  line-height: 1.6;
}
.dev-sv-card__trans {
  margin-top: .5rem;
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.devpopup__actions {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: .75rem;
}

/* =============================================================
   LIVE STREAM POPUP
   ============================================================= */
.livepopup {
  position: fixed;
  bottom: 1.5rem;
  right: 6rem;
  z-index: 9998;
  animation: livepopupSlideIn .5s ease-out;
}

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

.livepopup__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  padding: 1rem 1.25rem;
  min-width: 260px;
  border-left: 4px solid #dc2626;
}

.livepopup__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #dc2626;
  color: var(--white);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25rem .625rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}

.livepopup__dot {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  animation: liveDotPulse 1.5s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.3); }
}

.livepopup__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--dark-gray);
  margin-bottom: .625rem;
  line-height: 1.3;
}

.livepopup__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.livepopup__minimize,
.livepopup__close-btn {
  background: none;
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all .2s;
}

.livepopup__minimize:hover,
.livepopup__close-btn:hover {
  background: var(--light-gray);
  color: var(--dark-gray);
}

.livepopup--minimized .livepopup__card {
  min-width: auto;
  padding: .5rem .75rem;
}

.livepopup--minimized .livepopup__title,
.livepopup--minimized .livepopup__actions .btn {
  display: none;
}

/* =============================================================
   DEVOTIONAL PAGE STYLES
   ============================================================= */
.devotional-scripture {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  font-family: 'Crimson Pro', serif;
}

.devotional-scripture p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #92400e;
  font-style: italic;
  margin-bottom: .5rem;
}

.devotional-scripture cite {
  font-size: .9375rem;
  font-style: normal;
  font-weight: 600;
  color: #b45309;
}

.devotional-featured {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.devotional-featured__badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: .75rem 1.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: .9375rem;
}

.devotional-featured__body {
  padding: 2rem;
}

.devotional-featured__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  color: var(--dark-gray);
  margin-bottom: .75rem;
}

.devotional-featured__scripture {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  color: #92400e;
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: .75rem;
}

.devotional-featured__excerpt {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Devotional cards */
.devotional-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}

.devotional-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: inherit;
}

.devotional-card__header {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.devotional-card__icon { font-size: 1.25rem; }
.devotional-card__cat {
  color: var(--white);
  font-weight: 700;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.devotional-card__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--dark-gray);
  padding: 1.25rem 1.25rem .5rem;
  line-height: 1.3;
}

.devotional-card__ref {
  padding: 0 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: #b45309;
  margin-bottom: .5rem;
}

.devotional-card__excerpt {
  padding: 0 1.25rem;
  color: var(--text-muted);
  font-size: .875rem;
  line-height: 1.6;
  flex: 1;
}

.devotional-card__footer {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  font-size: .8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* =============================================================
   SCROLL-TO-TOP
   ============================================================= */
.scroll-top-btn {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .scroll-top-btn {
    display: none !important;
  }
}

/* =============================================================
   COOKIE CONSENT BANNER
   ============================================================= */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9997;
  background: var(--dark-gray);
  color: #d1d5db;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  animation: cookieSlideUp .4s ease-out;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.cookie-consent__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent__text {
  font-size: .875rem;
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}

.cookie-consent__actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}

.cookie-consent__actions .btn--outline {
  color: #d1d5db;
  border-color: var(--text-muted);
}

.cookie-consent__actions .btn--outline:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

/* =============================================================
   LIVE STREAMING PAGE
   ============================================================= */
.live-player {
  margin-bottom: 2rem;
}

.live-player__video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.live-player__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.live-player__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  flex-wrap: wrap;
  gap: .5rem;
}

.live-player__viewers {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-weight: 600;
  color: #dc2626;
  font-size: .9375rem;
}

/* Live Tabs */
.live-tabs {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.live-tabs__nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
}

.live-tabs__btn {
  flex: 1;
  padding: .875rem 1rem;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .875rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
  white-space: nowrap;
}

.live-tabs__btn:hover { color: var(--primary); }
.live-tabs__btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #f5f3ff;
}

.live-tabs__panel {
  display: none;
}

.live-tabs__panel.active {
  display: block;
}

/* Chat messages */
.live-chat__messages {
  height: 320px;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.live-chat__msg {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .9375rem;
  line-height: 1.5;
  flex-wrap: wrap;
}

.live-chat__msg strong {
  color: var(--primary);
  font-size: .875rem;
  flex-shrink: 0;
}

.live-chat__msg span {
  color: var(--dark-gray);
  flex: 1;
  min-width: 0;
}

.live-chat__msg time {
  font-size: .75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.live-chat__form {
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--light-gray);
}

.live-chat__form .form-control {
  padding: .5rem .75rem;
  font-size: .875rem;
}

/* =============================================================
   BOOK STORE
   ============================================================= */
.book-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  align-items: center;
}

@media (min-width: 768px) {
  .book-featured { grid-template-columns: 280px 1fr; }
}

.book-featured__cover { background: linear-gradient(135deg, #f5f3ff, #ede9fe); padding: 2rem; text-align: center; }
.book-featured__cover img { max-height: 320px; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.book-featured__placeholder { font-size: 6rem; padding: 3rem 0; }

.book-featured__info { padding: 2rem; }
.book-featured__title { font-family: 'Poppins', sans-serif; font-size: 1.75rem; font-weight: 700; color: var(--dark-gray); margin: .75rem 0 .5rem; }
.book-featured__author { color: var(--text-muted); font-size: 1rem; margin-bottom: .75rem; }
.book-featured__desc { color: #4b5563; line-height: 1.7; margin-bottom: 1rem; }
.book-featured__price { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 1.25rem; }

/* Book cards */
.book-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.book-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.book-card__cover {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-card__cover img { max-height: 200px; max-width: 90%; object-fit: contain; }
.book-card__placeholder { font-size: 4rem; }

.book-card__badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: var(--gold);
  color: var(--primary);
  font-size: .6875rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 999px;
}

.book-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.book-card__title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; color: var(--dark-gray); margin-bottom: .375rem; line-height: 1.3; }
.book-card__author { font-size: .875rem; color: var(--text-muted); margin-bottom: .75rem; }

.book-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); }
.book-card__price { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.0625rem; color: var(--primary); }

/* Purchase modal */
.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.purchase-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
}

.purchase-modal__card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
  animation: devpopupSlideIn .4s ease-out;
}

.purchase-modal__header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.purchase-modal__body { padding: 1.5rem; }

/* ================================
   PODCAST CARDS
   ================================ */
.podcast-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.podcast-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.podcast-card__header {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.podcast-card__ep {
  background: var(--primary);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 50px;
  letter-spacing: .05em;
  font-family: 'Poppins', sans-serif;
}
.podcast-card__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark-gray);
  line-height: 1.3;
}
.podcast-card__desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.podcast-card__player {
  width: 100%;
  height: 36px;
  border-radius: var(--radius-md);
}
.podcast-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* ================================
   HALL BOOKING
   ================================ */
.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-row--2 { grid-template-columns: 1fr; }
}

.badge--purple {
  background: rgba(139,92,246,.12);
  color: #7c3aed;
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 50px;
}

/* ================================
   FILTER BAR
   ================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 500;
}
.form-message--success {
  background: rgba(16,185,129,.08);
  color: #059669;
  border: 1px solid rgba(16,185,129,.2);
}
.form-message--error {
  background: rgba(239,68,68,.08);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,.2);
}

/* ======================================
   MINISTRY & DEPARTMENT DETAIL PAGES
   ====================================== */

/* --- Nav mega menu icon --- */
.nav-mega-menu__icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  opacity: .7;
}
.nav-mega-menu__item {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-mega-menu__item.active .nav-mega-menu__icon,
.nav-mega-menu__item:hover .nav-mega-menu__icon { opacity: 1; }

.mobile-menu__icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  opacity: .7;
}
.mobile-menu__link--sub {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* --- Ministry Hero --- */
.ministry-hero {
  position: relative;
  padding: 3rem 0 4rem;
  color: var(--white);
  overflow: hidden;
}
.ministry-hero__back {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color .2s;
}
.ministry-hero__back:hover { color: var(--white); }
.ministry-hero__content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.ministry-hero__icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--white);
}
.ministry-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: .75rem;
  color: var(--white);
}
.ministry-hero__tagline {
  font-size: 1.125rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Ministry Detail Layout --- */
.ministry-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
.ministry-detail__description {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--dark-gray);
  margin-bottom: 2rem;
}
.ministry-detail__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.ministry-detail__card {
  background: var(--light-gray);
  border-radius: .75rem;
  padding: 1.5rem;
}
.ministry-detail__card-icon {
  width: 40px;
  height: 40px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: .75rem;
}
.ministry-detail__card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: .5rem;
}
.ministry-detail__card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.ministry-detail__leader {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--light-gray);
  border-radius: .75rem;
  padding: 1.25rem;
}
.ministry-detail__leader-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.375rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ministry-detail__leader-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.ministry-detail__leader-name {
  font-weight: 700;
  color: #1f2937;
  font-size: 1rem;
}
.ministry-detail__leader-title {
  font-size: .85rem;
  color: var(--text-muted);
}

/* --- Ministry Sidebar --- */
.ministry-detail__sidebar-card {
  background: var(--light-gray);
  border-radius: .75rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.ministry-detail__sidebar-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
}
.ministry-detail__info-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .875rem;
  font-size: .9rem;
  color: var(--dark-gray);
}
.ministry-detail__info-row a {
  color: var(--primary);
  text-decoration: none;
}
.ministry-detail__info-row a:hover { text-decoration: underline; }
.ministry-detail__info-icon {
  display: flex;
  align-items: center;
  color: #7c3aed;
  flex-shrink: 0;
  margin-top: 2px;
}
.ministry-detail__cta {
  border-radius: .75rem;
  padding: 2rem;
  text-align: center;
  color: var(--white);
}
.ministry-detail__cta h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .5rem;
}
.ministry-detail__cta p {
  color: rgba(255,255,255,.85);
  margin-bottom: 1.25rem;
  font-size: .9rem;
}

/* --- Ministry Card (listing page) --- */
.ministry-card__icon {
  width: 56px;
  height: 56px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 1rem;
}
.ministry-card__link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .875rem;
}

/* --- Department Hero --- */
.dept-hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  color: var(--white);
  overflow: hidden;
}
.dept-hero__back {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color .2s;
}
.dept-hero__back:hover { color: var(--white); }
.dept-hero__content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.dept-hero__icon-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--white);
}
.dept-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: .75rem;
  color: var(--white);
}
.dept-hero__tagline {
  font-size: 1.125rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto;
  font-style: italic;
}

/* --- Scripture Block --- */
.dept-scripture {
  background: var(--light-gray);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.dept-scripture__block {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.dept-scripture__quote-icon {
  color: #d1d5db;
  display: block;
  margin-bottom: .75rem;
}
.dept-scripture__text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: .75rem;
}
.dept-scripture__ref {
  font-style: normal;
  font-weight: 600;
  color: #7c3aed;
  font-size: .9375rem;
}

/* --- Department Intro --- */
.dept-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.dept-intro__desc {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--dark-gray);
}
.dept-intro__mission {
  background: var(--light-gray);
  border-radius: .75rem;
  padding: 1.75rem;
}
.dept-intro__mission-icon {
  margin-bottom: .75rem;
}
.dept-intro__mission h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: .5rem;
}
.dept-intro__mission p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Impact Stats --- */
.dept-stats {
  padding: 2.5rem 0;
}
.dept-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.dept-stats__value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: .25rem;
}
.dept-stats__label {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Department List Grid (responsibilities/requirements) --- */
.dept-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.dept-list-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--white);
  border-radius: .625rem;
  padding: 1.125rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.section--white .dept-list-item { background: var(--light-gray); }
.dept-list-item__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.dept-list-item p {
  font-size: .9375rem;
  color: var(--dark-gray);
  line-height: 1.5;
}
.dept-list-item--check {
  align-items: center;
}
.dept-list-item__check {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* --- Schedule --- */
.dept-schedule {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  background: var(--light-gray);
  border-radius: .75rem;
  padding: 1.5rem;
}
.dept-schedule__icon { flex-shrink: 0; }
.dept-schedule h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: .25rem;
}
.dept-schedule p {
  font-size: .9375rem;
  color: var(--text-muted);
}

/* --- Why Join Grid --- */
.dept-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}
.dept-why-card {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.dept-why-card__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}
.dept-why-card p {
  font-size: .9375rem;
  color: var(--dark-gray);
  line-height: 1.55;
}

/* --- Department Testimonial --- */
.dept-testimonial {
  padding: 3.5rem 0;
  color: var(--white);
}
.dept-testimonial__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.dept-testimonial__icon {
  display: block;
  color: rgba(255,255,255,.3);
  margin-bottom: 1rem;
}
.dept-testimonial__quote {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255,255,255,.95);
  margin-bottom: 1.25rem;
}
.dept-testimonial__author strong {
  display: block;
  color: var(--gold);
  font-size: 1rem;
}
.dept-testimonial__author span {
  font-size: .875rem;
  color: rgba(255,255,255,.7);
}

/* --- Department CTA --- */
.dept-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.dept-cta h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: .75rem;
}
.dept-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.dept-cta__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Department Card (listing / other departments) --- */
.dept-card {
  background: var(--white);
  border-radius: .75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dept-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.dept-card__icon {
  width: 48px;
  height: 48px;
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--gf, #4B0082), var(--gt, #7c3aed));
  margin-bottom: .75rem;
}
.dept-card__name {
  font-family: 'Poppins', sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: .375rem;
}
.dept-card__tagline {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.dept-card__link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: .75rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
}

/* --- Grid 4-col --- */
.grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .ministry-detail { grid-template-columns: 1fr; }
  .ministry-detail__sidebar { order: -1; }
  .dept-intro { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ministry-hero__title { font-size: 1.75rem; }
  .dept-hero__title { font-size: 1.75rem; }
  .ministry-detail__cards { grid-template-columns: 1fr; }
  .dept-stats__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .dept-list-grid { grid-template-columns: 1fr; }
  .dept-why-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
}

/* ===================================================
   FLOATING SIDE BUTTONS
   =================================================== */
.floating-side-btns {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}

/* Mobile: premium frosted-glass bottom bar */
@media (max-width: 767px) {
  .floating-side-btns {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 0;
    background: rgba(15, 0, 40, 0.94);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid rgba(212, 175, 0, 0.18);
    padding: 0 4px calc(env(safe-area-inset-bottom, 0px));
    height: 64px;
    box-shadow: 0 -1px 0 rgba(255,255,255,.04), 0 -12px 40px rgba(0,0,0,.55);
  }
}

.floating-round-btn--give {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.floating-round-btn--devotional {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* Desktop circle styles (unchanged) */
@media (min-width: 768px) {
  .floating-round-btn--give .floating-round-btn__circle {
    background: linear-gradient(135deg, #22c55e, #16a34a);
  }
  .floating-round-btn--give:hover .floating-round-btn__circle {
    background: linear-gradient(135deg, #16a34a, #15803d);
  }
}

/* Desktop-only color variants */
@media (min-width: 768px) {
  /* Connect is mobile-only */
  .floating-round-btn--connect { display: none !important; }
  /* Connect sheet/overlay never shows on desktop */
  .connect-sheet,
  .connect-sheet__overlay { display: none !important; }

  .floating-round-btn:hover .floating-round-btn__circle {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.15), 0 10px 10px rgba(0,0,0,.06);
  }
  .floating-round-btn--books .floating-round-btn__circle {
    background: linear-gradient(to right, #f59e0b, #ea580c);
  }
  .floating-round-btn--books:hover .floating-round-btn__circle {
    background: linear-gradient(to right, #d97706, #dc2626);
  }
  .floating-round-btn--bible .floating-round-btn__circle {
    background: linear-gradient(135deg, #6a0dad, #4c1d95);
  }
  .floating-round-btn--bible:hover .floating-round-btn__circle {
    background: linear-gradient(135deg, #5b0b9e, #3b0764);
  }
  .floating-round-btn--whatsapp .floating-round-btn__circle {
    background: linear-gradient(135deg, #25D366, #128C7E);
  }
  .floating-round-btn--whatsapp:hover .floating-round-btn__circle {
    background: linear-gradient(135deg, #1da851, #0d6b5e);
  }
  .floating-round-btn--devotional .floating-round-btn__circle {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    position: relative;
  }
  .floating-round-btn--devotional:hover .floating-round-btn__circle {
    background: linear-gradient(135deg, #d97706, #b45309);
  }
  .floating-round-btn--devotional .floating-round-btn__circle::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(245, 158, 11, .4);
    animation: devotionalPing 2s ease-out infinite;
  }
  @keyframes devotionalPing {
    0%   { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.5); opacity: 0; }
  }
}

.floating-round-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  text-decoration: none;
  transition: all .3s;
}
.floating-round-btn__circle {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  border: 2px solid rgba(255,255,255,.2);
  transition: all .3s;
  margin-bottom: .25rem;
}
.floating-round-btn__circle svg { color: var(--white); flex-shrink: 0; }
.floating-round-btn__label {
  font-size: .6rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  background: transparent;
  padding: .1rem .3rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .floating-side-btns {
    right: 12px;
  }

  .floating-round-btn__circle {
    box-shadow: 0 14px 24px rgba(15, 0, 40, .22), 0 6px 12px rgba(15, 0, 40, .12);
    border-color: rgba(255,255,255,.28);
  }

  .floating-round-btn__label {
    color: rgba(255,255,255,.96);
    background: rgba(18, 10, 45, .8);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: .22rem .55rem;
    box-shadow: 0 10px 24px rgba(15, 0, 40, .2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* ── Mobile: premium church bottom nav ── */
@media (max-width: 767px) {
  /* Strip browser button defaults */
  .floating-round-btn--give,
  .floating-round-btn--devotional,
  .floating-round-btn--connect {
    background: none !important;
    border: none;
    -webkit-appearance: none;
    appearance: none;
  }

  .floating-round-btn {
    gap: 0;
    min-width: 0;
    padding: 0;
    height: 64px;
    flex: 1;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    gap: 4px;
  }

  /* Pill container — becomes active indicator */
  .floating-round-btn__circle {
    width: 46px;
    height: 30px;
    border-radius: 15px;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, box-shadow .25s ease, transform .15s ease;
    will-change: background, transform;
  }
  .floating-round-btn__circle svg {
    width: 22px;
    height: 22px;
    color: rgba(255,255,255,.38);
    transition: color .25s, transform .15s;
    display: block;
    flex-shrink: 0;
  }

  /* Label */
  .floating-round-btn__label {
    font-size: .54rem;
    color: rgba(255,255,255,.38);
    background: transparent;
    padding: 0;
    box-shadow: none;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition: color .25s;
    line-height: 1;
    display: block;
    white-space: nowrap;
  }

  /* Tap scale */
  .floating-round-btn:active .floating-round-btn__circle {
    transform: scale(.85);
  }
  .floating-round-btn:active .floating-round-btn__circle svg {
    transform: scale(.9);
  }

  /* ── Active — gold pill with glow ── */
  .floating-round-btn--active .floating-round-btn__circle {
    background: rgba(255, 215, 0, 0.14);
    box-shadow: 0 0 0 1px rgba(255,215,0,.2), 0 4px 14px rgba(255,215,0,.18);
  }
  .floating-round-btn--active .floating-round-btn__circle svg {
    color: #FFD700;
    filter: drop-shadow(0 0 4px rgba(255,215,0,.55));
  }
  .floating-round-btn--active .floating-round-btn__label {
    color: #FFD700;
  }
  /* Remove old bar indicator */
  .floating-round-btn--active::before { display: none; }

  /* Suppress devotional ping ring on mobile */
  .floating-round-btn--devotional .floating-round-btn__circle::after { display: none; }
}

/* HOME button — desktop: hidden */
.floating-round-btn--home { display: none; }
@media (max-width: 767px) {
  .floating-round-btn--home { display: flex; }
  .floating-round-btn--connect { display: flex; }
}

/* Bible page: BIBLE tab active */
@media (max-width: 767px) {
  body.page-bible .floating-round-btn--bible .floating-round-btn__circle {
    background: rgba(255, 215, 0, 0.14);
    box-shadow: 0 0 0 1px rgba(255,215,0,.2), 0 4px 14px rgba(255,215,0,.18);
  }
  body.page-bible .floating-round-btn--bible .floating-round-btn__circle svg {
    color: #FFD700;
    filter: drop-shadow(0 0 4px rgba(255,215,0,.55));
  }
  body.page-bible .floating-round-btn--bible .floating-round-btn__label { color: #FFD700; }
}

/* =============================================================
   CONNECT BOTTOM SHEET  — Premium Church UI
   ============================================================= */
.connect-sheet__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  display: none;
}
.connect-sheet__overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.connect-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1101;
  background: linear-gradient(170deg, #270050 0%, #160030 60%, #0d0020 100%);
  border-top: 1px solid rgba(212,175,0,.25);
  border-radius: 24px 24px 0 0;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.32,.72,0,1);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 60px rgba(0,0,0,.6), 0 -1px 0 rgba(212,175,0,.15);
}
.connect-sheet.open {
  transform: translateY(0);
}

/* Drag handle */
.connect-sheet__handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,.18);
  border-radius: 2px;
  margin: .875rem auto .25rem;
  flex-shrink: 0;
}

/* Header */
.connect-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .625rem 1.25rem .875rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
  gap: .5rem;
}
.connect-sheet__title-wrap {
  display: flex;
  align-items: center;
  gap: .875rem;
  min-width: 0;
}
.connect-sheet__title-wrap > svg {
  color: #FFD700;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255,215,0,.4));
}
.connect-sheet__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.connect-sheet__subtitle {
  margin: 0;
  font-size: .7rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .02em;
}
.connect-sheet__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, border-color .2s, color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.connect-sheet__close:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

/* Scrollable body */
.connect-sheet__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1rem .75rem;
  flex: 1;
  overscroll-behavior: contain;
}
.connect-sheet__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

/* ── Connect cards ── */
.connect-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem .5rem .875rem;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
  transition: background .22s, border-color .22s, transform .18s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.connect-card:hover,
.connect-card:focus-visible {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,215,0,.25);
  transform: translateY(-2px);
  outline: none;
}
.connect-card:active {
  transform: scale(.93);
  background: rgba(255,255,255,.07);
}
.connect-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cc, #9333ea);
  transition: background .22s, box-shadow .22s;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.connect-card__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cc, #9333ea);
  opacity: .12;
  border-radius: inherit;
  transition: opacity .22s;
}
.connect-card:hover .connect-card__icon::before {
  opacity: .2;
}
.connect-card:hover .connect-card__icon {
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.14);
}
.connect-card__label {
  font-size: .62rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  text-align: center;
  letter-spacing: .04em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Give Modal — Professional Redesign */
.give-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.give-modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.give-modal {
  background: var(--white); border-radius: 24px; padding: 0;
  width: min(94vw, 520px); position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
  transform: scale(.92) translateY(12px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}
.give-modal-overlay.open .give-modal { transform: scale(1) translateY(0); }
.give-modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: rgba(255,255,255,.25); border: none; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; color: rgba(255,255,255,.8);
  transition: background .15s, color .15s;
  backdrop-filter: blur(4px);
}
.give-modal__close:hover { background: rgba(255,255,255,.4); color: var(--white); }
.give-modal__header {
  background: linear-gradient(135deg, #0d0024 0%, #2d0060 50%, #7c3aed 100%);
  padding: 2rem 2rem 1.75rem;
  text-align: center;
  position: relative;
}
.give-modal__header::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg,transparent,transparent 24px,rgba(255,255,255,.025) 24px,rgba(255,255,255,.025) 25px);
  pointer-events: none;
}
.give-modal__header-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  position: relative; z-index: 1;
}
.give-modal__header-icon i { font-size: 1.375rem; color: #fbbf24; }
.give-modal__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: var(--white); margin: 0 0 .375rem;
  position: relative; z-index: 1;
}
.give-modal__subtitle {
  font-size: .875rem; color: rgba(255,255,255,.7);
  margin: 0; position: relative; z-index: 1;
}
.give-modal__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .625rem; padding: 1.5rem 1.5rem .75rem;
}
.give-modal__option {
  --gmc: #7c3aed;
  display: flex; flex-direction: column; align-items: center;
  gap: .375rem; text-decoration: none;
  border-radius: 16px; padding: 1.125rem .625rem .875rem;
  background: var(--light-gray); border: 2px solid #f0f0f5;
  text-align: center;
  transition: all .2s ease;
  cursor: pointer;
}
.give-modal__option:hover {
  border-color: var(--gmc);
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.give-modal__option-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  background: color-mix(in srgb, var(--gmc) 12%, transparent);
  color: var(--gmc);
  transition: background .2s, transform .2s;
}
.give-modal__option:hover .give-modal__option-icon {
  background: var(--gmc);
  color: var(--white);
  transform: scale(1.08);
}
.give-modal__option strong {
  font-family: 'Poppins', sans-serif;
  font-size: .8125rem; font-weight: 700;
  color: var(--dark-gray); display: block; line-height: 1.2;
}
.give-modal__option span {
  font-size: .6875rem; color: var(--text-muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.give-modal__quick {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .875rem 1.5rem 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-size: .8125rem; font-weight: 600;
  color: var(--primary); text-decoration: none;
  transition: color .15s;
}
.give-modal__quick:hover { color: #5b21b6; }
.give-modal__quick i { font-size: .75rem; transition: transform .15s; }
.give-modal__quick:hover i { transform: translateX(3px); }
body.page-give .floating-side-btns { display: none; }

@media (max-width: 640px) {
  .floating-round-btn__circle { width: 40px; height: 40px; }
  .give-modal__grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; padding: 1.25rem 1rem .5rem; }
  .give-modal__header { padding: 1.5rem 1.25rem 1.25rem; }
  .give-modal__title { font-size: 1.25rem; }
  .give-modal__option { padding: .875rem .5rem .75rem; border-radius: 12px; }
  .give-modal__option-icon { width: 38px; height: 38px; border-radius: 10px; }
}

/* ===================================================
   HOME PAGE — LIVE FEED & COMMUNITY
   =================================================== */
.home-live__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) { .home-live__grid { grid-template-columns: 1.6fr 1fr; } }

.home-live__stream-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  border: 1px solid var(--border);
}
.home-live__video-area {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.home-live__video-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.home-live__video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent 50%);
  pointer-events: none;
}
.home-live__badge {
  position: absolute; top: 1rem; left: 1rem;
  background: #ef4444; color: var(--white);
  font-weight: 700; font-size: .7rem;
  padding: .3rem .75rem; border-radius: 9999px;
  letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(239,68,68,.4);
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge { 0%,100% { opacity:1; } 50% { opacity:.65; } }
.home-live__viewers {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(0,0,0,.6); color: var(--white);
  font-size: .75rem; font-weight: 500;
  padding: .3rem .75rem; border-radius: 9999px;
  display: flex; align-items: center; gap: .35rem;
  backdrop-filter: blur(4px);
}
.home-live__play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 72px; height: 72px;
  background: rgba(255,255,255,.92);
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.home-live__play-btn svg { fill: var(--primary); margin-left: 3px; }
.home-live__play-btn:hover {
  transform: translate(-50%,-50%) scale(1.12);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.home-live__meta {
  position: absolute; bottom: 1.25rem; left: 1.25rem;
  color: var(--white); z-index: 2;
}
.home-live__title {
  font-weight: 700; font-size: 1.15rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.home-live__speaker {
  font-size: .85rem; opacity: .9;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.home-live__stream-footer {
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.home-live__side { display: flex; flex-direction: column; gap: 1.5rem; }
.home-live__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.home-live__stat {
  border-radius: var(--radius-lg);
  padding: 1rem .75rem;
  text-align: center;
  transition: transform .2s;
}
.home-live__stat:hover { transform: translateY(-2px); }
.home-live__stat--blue   { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.home-live__stat--green  { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.home-live__stat--purple { background: linear-gradient(135deg, #faf5ff, #f3e8ff); }
.home-live__stat--gold   { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.home-live__stat-num {
  font-size: 1.75rem; font-weight: 800;
  color: var(--primary); line-height: 1;
}
.home-live__stat-lbl {
  font-size: .65rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-top: .25rem;
}
.home-live__activity { display: flex; flex-direction: column; gap: .85rem; }
.home-live__activity-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem;
  border-radius: var(--radius);
  background: var(--light-gray);
  transition: background .15s;
}
.home-live__activity-item:hover { background: #f3f4f6; }
.home-live__avatar {
  width: 38px; height: 38px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* ===================================================
   HOME PAGE — MINISTRY ICON CARDS
   =================================================== */
.home-ministry-grid {
  margin-bottom: 2.5rem;
}
.home-ministry-icon-card {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.home-ministry-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.1);
}
.home-ministry-icon-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto .75rem;
  transition: transform .2s;
}
.home-ministry-icon-card:hover .home-ministry-icon-card__icon {
  transform: scale(1.1);
}
.home-ministry-icon-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: var(--dark-gray);
  line-height: 1.3;
  margin: 0;
}

/* ===================================================
   HOME PAGE — MINISTRY PHOTO CARDS
   =================================================== */
.home-ministry-photo-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.home-ministry-photo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}
.home-ministry-photo-card__img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.home-ministry-photo-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.home-ministry-photo-card:hover .home-ministry-photo-card__img {
  transform: scale(1.1);
}
.home-ministry-photo-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent 60%);
  pointer-events: none;
}
.home-ministry-photo-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home-ministry-photo-card__body h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .5rem;
  color: var(--dark-gray);
}
.home-ministry-photo-card__body p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

/* ===================================================
   HOME PAGE — SERMON GALLERY CARDS
   =================================================== */
.home-sermon-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.home-sermon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.home-sermon-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #7e22ce, var(--primary));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-sermon-card__play {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.92);
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  transition: transform .25s;
  z-index: 2;
}
.home-sermon-card__play svg { fill: var(--primary); margin-left: 2px; }
.home-sermon-card:hover .home-sermon-card__play {
  transform: scale(1.15);
}
.home-sermon-card__duration {
  position: absolute;
  bottom: .75rem; right: .75rem;
  background: rgba(0,0,0,.75); color: var(--white);
  font-size: .7rem; font-weight: 600;
  padding: .25rem .6rem; border-radius: var(--radius);
  backdrop-filter: blur(4px);
  z-index: 2;
}
.home-sermon-card__click {
  position: absolute;
  top: .75rem; left: .75rem;
  color: rgba(255,255,255,.8);
  font-size: .7rem; font-weight: 500;
  z-index: 2;
}
.home-sermon-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home-sermon-card__body h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: .4rem;
  color: var(--dark-gray);
}
.home-sermon-card__speaker {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.home-sermon-card__date {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ===================================================
   HOME PAGE — CHURCH LIFE GALLERY
   =================================================== */
.home-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .home-gallery { grid-template-columns: repeat(3, 1fr); } }

.home-gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s;
}
.home-gallery__item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
}
.home-gallery__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
  display: block;
}
.home-gallery__item:hover .home-gallery__img {
  transform: scale(1.08);
}
.home-gallery__label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4);
  color: var(--white); font-weight: 600; font-size: .95rem;
  opacity: 0; transition: opacity .3s;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  letter-spacing: .02em;
}
.home-gallery__item:hover .home-gallery__label { opacity: 1; }
.home-gallery__item--gradient {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s, box-shadow .3s;
}
.home-gallery__item--gradient:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
}
.home-gallery__gradient-content {
  text-align: center; color: var(--white);
}
.home-gallery__gradient-content p {
  font-weight: 600; margin-top: .5rem;
  font-size: .9rem;
}
.home-gallery__item--gradient .home-gallery__label {
  background: rgba(0,0,0,.25);
}

/* ===================================================
   HOME PAGE — NEWSLETTER
   =================================================== */
.home-newsletter__form {
  display: flex;
  gap: .75rem;
  max-width: 500px;
  margin: 0 auto;
}
@media (max-width: 480px) { .home-newsletter__form { flex-direction: column; } }
.home-newsletter__input {
  flex: 1;
  padding: .875rem 1.25rem;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: 1rem;
  transition: border-color .2s, background .2s;
}
.home-newsletter__input::placeholder { color: rgba(255,255,255,.55); }
.home-newsletter__input:focus {
  outline: none;
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.2);
}
.home-newsletter__form .btn { border-radius: 9999px; }

/* ===================================================
   DESIGN SYSTEM — Glassmorphism, Neumorphism, Neobrutalism
   =================================================== */

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Neumorphic card */
.neu-card {
  background: #f0f0f3;
  box-shadow: 8px 8px 16px #d1d1d4, -8px -8px 16px var(--white);
  border-radius: 16px;
}

/* Neobrutalism accent */
.neo-brutal {
  border: 3px solid #1a1a2e;
  box-shadow: 5px 5px 0 #1a1a2e;
  border-radius: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.neo-brutal:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #1a1a2e;
}

/* ===================================================
   LIVE SECTION (Conditional)
   =================================================== */
.section__eyebrow--live {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #dc2626;
  font-weight: 700;
}
.live-pulse {
  width: 10px;
  height: 10px;
  background: #dc2626;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .6); }
  50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}
.live-embed {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.live-embed__player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}
.live-embed__player iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.live-embed__info {
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.live-embed__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: .75rem;
}
.live-embed__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.live-embed__badge {
  background: #dc2626;
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 9999px;
  letter-spacing: .05em;
  animation: livePulse 1.5s ease-in-out infinite;
}
.live-embed__viewers {
  font-size: .875rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .live-embed { grid-template-columns: 1fr; }
}

/* ===================================================
   ABOUT SECTION — Glassmorphism
   =================================================== */
.home-about-glass {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0c29 0%, #1a0a3e 40%, #24243e 100%);
}
.home-about-glass__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.home-about-glass__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .4;
  animation: aboutOrbFloat 12s ease-in-out infinite;
}
.home-about-glass__orb--1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, .6), transparent 70%);
  top: -10%; left: -5%;
  animation-delay: 0s;
}
.home-about-glass__orb--2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(212, 175, 55, .5), transparent 70%);
  top: 50%; right: -5%;
  animation-delay: -4s;
  animation-duration: 15s;
}
.home-about-glass__orb--3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(34, 197, 94, .4), transparent 70%);
  bottom: -5%; left: 30%;
  animation-delay: -8s;
  animation-duration: 10s;
}
@keyframes aboutOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 15px) scale(.95); }
}

.home-about-glass__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}
.home-about-glass__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #d4af37;
  margin-bottom: .75rem;
}
.home-about-glass__eyebrow svg { stroke: #d4af37; }
.home-about-glass__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.home-about-glass__card {
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color .3s;
}
.home-about-glass__card:hover {
  border-color: rgba(212, 175, 55, .3);
}
.home-about-glass__desc {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 1rem;
}
.home-about-glass__desc:last-of-type {
  margin-bottom: 1.5rem;
}
.home-about-glass__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* Image */
.home-about-glass__image-wrap {
  position: relative;
  z-index: 1;
}
.home-about-glass__image-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .12);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, .3),
    inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.home-about-glass__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.home-about-glass__image-frame:hover .home-about-glass__image {
  transform: scale(1.03);
}
.home-about-glass__image-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  padding: .5rem 1rem;
}
.home-about-glass__badge-year {
  font-family: 'Poppins', sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  color: #d4af37;
  letter-spacing: .05em;
}

/* Stats */
.home-about-glass__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.home-about-glass__stat {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.home-about-glass__stat:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, .3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
}
.home-about-glass__stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(212, 175, 55, .12);
  border-radius: 14px;
  margin-bottom: .75rem;
}
.home-about-glass__stat-icon svg {
  stroke: #d4af37;
}
.home-about-glass__stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: .25rem;
}
.home-about-glass__stat-label {
  font-size: .9375rem;
  color: rgba(255, 255, 255, .55);
  font-weight: 500;
}
@media (max-width: 768px) {
  .home-about-glass__grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-about-glass__stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .home-about-glass__stat-number { font-size: 1.75rem; }
  .home-about-glass__orb { filter: blur(60px); opacity: .3; }
}
@media (max-width: 480px) {
  .home-about-glass__stats { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .home-about-glass__stat { padding: 1.25rem .75rem; }
  .home-about-glass__stat-number { font-size: 1.5rem; }
  .home-about-glass__stat-label { font-size: .75rem; }
  .home-about-glass { padding: 3rem 0; }
}

/* ===================================================
   MINISTRY CARDS (Neobrutalism)
   =================================================== */
.ministry-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.ministry-card {
  background: var(--white);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ministry-card__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent, #4B0082);
}
.ministry-card__icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  border-radius: 12px;
  border: 2px solid var(--border);
}
.ministry-card__name {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: .5rem;
  line-height: 1.3;
}
.ministry-card__desc {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: .75rem;
  flex: 1;
}
.ministry-card__link {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}
.ministry-card__link:hover { color: #7c3aed; }
@media (max-width: 1024px) { .ministry-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .ministry-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .ministry-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 360px)  { .ministry-cards-grid { grid-template-columns: 1fr; } }

/* ===================================================
   SERMON CARDS (Glassmorphism)
   =================================================== */
.sermon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.sermon-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.sermon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(75, 0, 130, .12);
}
.sermon-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e, var(--primary));
  overflow: hidden;
}
.sermon-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.sermon-card:hover .sermon-card__img { transform: scale(1.05); }
.sermon-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sermon-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(220, 38, 38, .9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: transform .3s ease, background .3s ease;
  z-index: 2;
}
.sermon-card__play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #dc2626;
}
.sermon-card__category {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: rgba(75, 0, 130, .85);
  color: var(--white);
  font-size: .6875rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sermon-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sermon-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: .375rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sermon-card__speaker {
  font-size: .8125rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: .25rem;
}
.sermon-card__date {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.sermon-card__actions {
  display: flex;
  gap: .5rem;
  margin-top: auto;
}
.btn--outline-green {
  background: transparent;
  color: #16a34a;
  border: 1.5px solid #16a34a;
}
.btn--outline-green:hover {
  background: #f0fdf4;
  color: #15803d;
}
@media (max-width: 1024px) { .sermon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .sermon-grid { grid-template-columns: 1fr; } }

/* ===================================================
   INSTAGRAM / BLOG CARDS
   =================================================== */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.insta-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
  text-decoration: none;
}
.insta-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.insta-card:hover .insta-card__img { transform: scale(1.08); }
.insta-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity .3s ease;
}
.insta-card:hover .insta-card__overlay { opacity: 1; }
.insta-card__type {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  padding: .2rem .6rem;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: .5rem;
}
.insta-card__caption {
  font-size: .8125rem;
  color: rgba(255,255,255,.9);
  line-height: 1.4;
}
/* Blog card fallback */
.blog-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.blog-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.blog-card__placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: .5rem 0 .375rem;
  line-height: 1.3;
}
.blog-card__meta {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.blog-card__excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
@media (max-width: 768px) { .insta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .insta-grid { grid-template-columns: 1fr; } }

/* ===================================================
   GALLERY — Bento Grid
   =================================================== */
.gallery-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery-bento__item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-bento__item--large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-bento__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-bento__item:hover .gallery-bento__img { transform: scale(1.08); }
.gallery-bento__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity .35s ease;
}
.gallery-bento__item:hover .gallery-bento__overlay { opacity: 1; }
.gallery-bento__overlay span {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
}
.gallery-bento__item--gradient {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-bento__gradient-inner {
  text-align: center;
  color: var(--white);
}
.gallery-bento__gradient-inner p {
  font-weight: 600;
  margin-top: .5rem;
  font-size: .9rem;
}
@media (max-width: 768px) {
  .gallery-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-bento__item--large {
    grid-column: span 2;
    grid-row: span 1;
  }
}
@media (max-width: 480px) {
  .gallery-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .gallery-bento__item--large { grid-column: span 1; }
}

/* ===================================================
   GIVE SECTION (Glassmorphism)
   =================================================== */
.home-give {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 50%, var(--primary-light) 100%);
  padding: 5rem 0;
}
.home-give__inner {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
.home-give__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.home-give__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--white);
  transition: transform .3s ease, box-shadow .3s ease;
}
.home-give__card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.home-give__card strong {
  font-size: 1rem;
  font-weight: 700;
}
.home-give__card span {
  font-size: .75rem;
  opacity: .8;
}
.home-give__card--tithe    { background: linear-gradient(135deg, #7c3aed, var(--primary-light)); }
.home-give__card--offering { background: linear-gradient(135deg, #e11d48, #be123c); }
.home-give__card--missions { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.home-give__card--general  { background: linear-gradient(135deg, #16a34a, #15803d); }
.home-give__mpesa {
  color: rgba(255,255,255,.8);
  font-size: .9375rem;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .home-give__cards { grid-template-columns: repeat(2, 1fr); }
  .home-give__inner { padding: 2rem 1.5rem; }
}

/* ===================================================
   PLAN YOUR VISIT (Neumorphism)
   =================================================== */
.section--light {
  background: #f5f5f7;
}
.home-visit__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.home-visit__desc {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 1.5rem;
}
.home-visit__services {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.home-visit__service {
  display: flex;
  flex-direction: column;
  gap: .125rem;
  padding: 1rem 1.25rem;
  background: #f0f0f3;
  box-shadow: 4px 4px 10px #d1d1d4, -4px -4px 10px var(--white);
  border-radius: 12px;
}
.home-visit__service strong {
  font-family: 'Poppins', sans-serif;
  font-size: .9375rem;
  color: #1f2937;
}
.home-visit__service span {
  font-size: .875rem;
  color: var(--primary);
  font-weight: 600;
}
.home-visit__service small {
  font-size: .8125rem;
  color: var(--text-muted);
}
.home-visit__image-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 6px 6px 12px #d1d1d4, -6px -6px 12px var(--white);
}
.home-visit__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .home-visit__grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-visit__image-wrap { order: -1; }
}

/* ===================================================
   PROFESSIONAL FOOTER
   =================================================== */
.footer-pro {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: #d4d4d8;
  padding: 4rem 0 0;
}
.footer-pro__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer-pro__brand { }
.footer-pro__logo-wrap {
  margin-bottom: 1.25rem;
}
.footer-pro__logo {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  display: block;
}
.footer-pro__tagline {
  font-size: .875rem;
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: .5rem;
}
.footer-pro__since {
  font-size: .8125rem;
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.footer-pro__socials {
  display: flex;
  gap: .5rem;
}
.footer-pro__social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #d4d4d8;
  text-decoration: none;
  transition: background .25s, color .25s, transform .25s;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.1);
}
.footer-pro__social:hover {
  background: rgba(245, 158, 11, .2);
  color: #f59e0b;
  transform: translateY(-2px);
}
.footer-pro__col-title {
  font-family: 'Poppins', sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: .5rem;
}
.footer-pro__col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #f59e0b;
  border-radius: 1px;
}
.footer-pro__links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-pro__links li {
  margin-bottom: .4rem;
}
.footer-pro__links a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: .8125rem;
  transition: color .2s, padding-left .2s;
  display: inline-block;
}
.footer-pro__links a:hover {
  color: #f59e0b;
  padding-left: .25rem;
}
.footer-pro__contact-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8125rem;
  color: #a1a1aa;
  margin-bottom: .75rem;
}
.footer-pro__contact-item svg {
  flex-shrink: 0;
  margin-top: .125rem;
  color: #f59e0b;
}
.footer-pro__newsletter-form {
  display: flex;
  gap: 0;
  margin-top: .5rem;
}
.footer-pro__newsletter-input {
  flex: 1;
  padding: .625rem .875rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--white);
  font-size: .8125rem;
  transition: border-color .2s, background .2s;
}
.footer-pro__newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.footer-pro__newsletter-input:focus {
  outline: none;
  border-color: #f59e0b;
  background: rgba(255,255,255,.12);
}
.footer-pro__newsletter-btn {
  background: #f59e0b;
  color: #1a1a2e;
  border: 1px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: .625rem .875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, transform .25s;
}
.footer-pro__newsletter-btn:hover {
  background: #d97706;
  transform: scale(1.05);
}
.footer-pro__divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 2.5rem 0;
}
.footer-pro__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  font-size: .8125rem;
  color: #71717a;
}
.footer-pro__bottom span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
@media (max-width: 1024px) {
  .footer-pro__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 640px) {
  .footer-pro__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-pro__bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .footer-pro__links a,
  .footer-pro__contact-email {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .2rem 0;
  }
  .footer-pro__social {
    width: 44px;
    height: 44px;
  }
  .footer-pro__newsletter-btn { min-height: 44px; }
}

/* ===================================================
   HOME PAGE — SERMON CARD V2 (Old System Style)
   =================================================== */
.sermon-card-v2 {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.sermon-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

/* Thumbnail area */
.sermon-card-v2__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.sermon-card-v2__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.sermon-card-v2:hover .sermon-card-v2__img {
  transform: scale(1.05);
}
.sermon-card-v2__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7e22ce 0%, var(--primary) 100%);
}

/* Red play circle — centered, always visible */
.sermon-card-v2__play-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: #dc2626;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(220, 38, 38, .45);
  transition: transform .25s ease, box-shadow .25s ease;
  z-index: 3;
  text-decoration: none;
  cursor: pointer;
}
.sermon-card-v2__play-circle svg {
  margin-left: 2px;
  flex-shrink: 0;
}
.sermon-card-v2:hover .sermon-card-v2__play-circle {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 8px 28px rgba(220, 38, 38, .55);
}

/* Duration badge — bottom right */
.sermon-card-v2__duration {
  position: absolute;
  bottom: .75rem;
  right: .75rem;
  background: rgba(0, 0, 0, .78);
  color: var(--white);
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  z-index: 3;
  letter-spacing: .02em;
}

/* Category badge — top left */
.sermon-card-v2__category {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: rgba(126, 34, 206, .85);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .25rem .7rem;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  z-index: 3;
}

/* Body */
.sermon-card-v2__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sermon-card-v2__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--dark-gray);
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sermon-card-v2__desc {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta row: date + speaker */
.sermon-card-v2__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.sermon-card-v2__date,
.sermon-card-v2__speaker {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.sermon-card-v2__speaker {
  color: var(--primary);
  font-weight: 600;
}

/* Action buttons */
.sermon-card-v2__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.sermon-card-v2__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  min-height: 40px;
  border: none;
  border-radius: var(--radius);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.sermon-card-v2__btn:hover {
  transform: translateY(-1px);
}

/* Watch Video — purple/primary */
.sermon-card-v2__btn--watch {
  background: var(--primary);
  color: var(--white);
}
.sermon-card-v2__btn--watch:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(126, 34, 206, .3);
}

/* Listen Audio — green */
.sermon-card-v2__btn--listen {
  background: #059669;
  color: var(--white);
}
.sermon-card-v2__btn--listen:hover {
  background: #047857;
  box-shadow: 0 4px 12px rgba(5, 150, 105, .3);
}

/* ---- Responsive for sermon-card-v2 ---- */
@media (max-width: 639px) {
  .sermon-card-v2__body { padding: 1rem; }
  .sermon-card-v2__title { font-size: .925rem; }
  .sermon-card-v2__actions { flex-direction: column; }
  .sermon-card-v2__btn { justify-content: center; min-height: 44px; }
  .sermon-card-v2__play-circle { width: 48px; height: 48px; }
  .sermon-card-v2__play-circle svg { width: 20px; height: 20px; }
}

/* Portrait sermon card — taller thumbnail */
.sermon-card-v2--portrait .sermon-card-v2__thumb {
  aspect-ratio: 9 / 16;
  max-height: 320px;
}
@media (min-width: 640px) {
  .sermon-card-v2--portrait .sermon-card-v2__thumb {
    max-height: 360px;
  }
}

/* ===================================================
   SERMON MODALS — Video & Audio
   =================================================== */

/* Overlay */
.sermon-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  padding: 1rem;
}
.sermon-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal base */
.sermon-modal {
  background: #111;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: scale(.92) translateY(20px);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  max-height: 95vh;
  width: 100%;
}
.sermon-modal-overlay.active .sermon-modal {
  transform: scale(1) translateY(0);
}

/* Header */
.sermon-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1.25rem;
  background: rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sermon-modal__title {
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 1rem;
  flex: 1;
}
.sermon-modal__close {
  background: rgba(255, 255, 255, .1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.sermon-modal__close:hover { background: rgba(255, 255, 255, .2); }

/* ---- VIDEO MODAL ---- */
.sermon-modal--video { max-width: 960px; }
.sermon-modal__video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
}
.sermon-modal__video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- AUDIO MODAL ---- */
.sermon-modal--audio { max-width: 440px; }

.sermon-modal__audio-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #22c55e;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sermon-modal__audio-body {
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
}

/* Album art with thumbnail */
.sermon-modal__audio-art {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  transition: transform .3s ease;
}
.sermon-modal__audio-art.playing {
  animation: audio-pulse 2s ease-in-out infinite;
}
@keyframes audio-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
  50% { transform: scale(1.03); box-shadow: 0 16px 50px rgba(34, 197, 94, .2); }
}

/* Audio visualizer bars */
.sermon-modal__audio-visualizer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 0 1rem .5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}
.sermon-modal__audio-visualizer span {
  width: 4px;
  border-radius: 2px;
  background: #22c55e;
  height: 8px;
  transition: height .15s ease;
}
.sermon-modal__audio-art.playing .sermon-modal__audio-visualizer span {
  animation: bar-dance 0.8s ease-in-out infinite alternate;
}
.sermon-modal__audio-art.playing .sermon-modal__audio-visualizer span:nth-child(1) { animation-delay: 0s; }
.sermon-modal__audio-art.playing .sermon-modal__audio-visualizer span:nth-child(2) { animation-delay: .15s; }
.sermon-modal__audio-art.playing .sermon-modal__audio-visualizer span:nth-child(3) { animation-delay: .3s; }
.sermon-modal__audio-art.playing .sermon-modal__audio-visualizer span:nth-child(4) { animation-delay: .45s; }
.sermon-modal__audio-art.playing .sermon-modal__audio-visualizer span:nth-child(5) { animation-delay: .6s; }
@keyframes bar-dance {
  0%   { height: 6px; }
  100% { height: 30px; }
}

.sermon-modal__audio-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sermon-modal__audio-speaker {
  color: rgba(255, 255, 255, .5);
  font-size: .85rem;
  margin-bottom: .25rem;
}

/* Play/pause controls */
.sermon-modal__audio-controls {
  margin-bottom: .75rem;
}
.sermon-modal__audio-btn {
  background: #22c55e;
  border: none;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 24px rgba(34, 197, 94, .35);
}
.sermon-modal__audio-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(34, 197, 94, .5);
}
.sermon-modal__audio-btn svg { margin-left: 2px; }

.sermon-modal__audio-hint {
  color: rgba(255, 255, 255, .3);
  font-size: .72rem;
  margin-top: .5rem;
}

/* Toggle to video button */
.sermon-modal__audio-toggle {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.sermon-modal__toggle-video-btn {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .7);
  padding: .5rem 1.25rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.sermon-modal__toggle-video-btn:hover {
  background: rgba(255, 255, 255, .14);
  color: var(--white);
}

/* ---- Responsive ---- */
@media (max-width: 639px) {
  .sermon-modal--video { max-width: 100%; border-radius: .75rem; }
  .sermon-modal--audio {
    max-width: 100%;
    border-radius: .75rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  .sermon-modal__audio-body { padding: 1.25rem 1rem 1.5rem; }
  .sermon-modal__audio-art { width: 140px; height: 140px; margin-bottom: 1rem; }
  .sermon-modal__audio-btn { width: 56px; height: 56px; }
  .sermon-modal__audio-title { font-size: 1rem; }
  .audio-controls-row { gap: 12px; }
  .audio-ctrl--play { width: 52px; height: 52px; }
  .audio-volume-row { gap: 8px; }
  .audio-volume__slider { width: 80px; }
  .audio-bottom-actions { gap: 8px; }
  .audio-action-btn { padding: 8px 14px; font-size: .78rem; }
}

/* ===================================================
   SERMON VIDEO MODAL — Logo Loading Spinner
   =================================================== */
.sermon-modal__loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(ellipse at center, #0d0d1a 0%, #000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transition: opacity .5s ease, visibility .5s ease;
}
.sermon-modal__loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Spinning logo — centered inside the ring */
.sermon-modal__loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  z-index: 3;
  animation: logo-pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(126, 34, 206, .5));
}
@keyframes logo-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 20px rgba(126, 34, 206, .5)); }
  50%      { transform: translate(-50%, -50%) scale(1.08); filter: drop-shadow(0 0 35px rgba(126, 34, 206, .8)); }
}

/* Orbital rings container */
.sermon-modal__loader-ring {
  position: relative;
  width: 140px;
  height: 140px;
}

/* Orbits */
.sermon-modal__loader-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #7e22ce;
  animation: orbit-spin 1.8s linear infinite;
}
.sermon-modal__loader-orbit--2 {
  inset: 10px;
  border-top-color: transparent;
  border-right-color: #a855f7;
  animation-duration: 2.4s;
  animation-direction: reverse;
}
.sermon-modal__loader-orbit--3 {
  inset: 20px;
  border-top-color: transparent;
  border-bottom-color: #c084fc;
  animation-duration: 3.2s;
}
@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

/* Glowing particles on the outer ring */
.sermon-modal__loader-orbit::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7e22ce;
  box-shadow: 0 0 12px 4px rgba(126, 34, 206, .7);
}
.sermon-modal__loader-orbit--2::after {
  background: #a855f7;
  box-shadow: 0 0 12px 4px rgba(168, 85, 247, .7);
  width: 6px;
  height: 6px;
  top: auto;
  bottom: 4px;
  left: 30%;
}
.sermon-modal__loader-orbit--3::after {
  background: #c084fc;
  box-shadow: 0 0 10px 3px rgba(192, 132, 252, .6);
  width: 5px;
  height: 5px;
  top: auto;
  bottom: 50%;
  left: 0;
}

/* Loading text */
.sermon-modal__loader-text {
  color: rgba(255, 255, 255, .6);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: .5rem;
}
.sermon-modal__loader-dots::after {
  content: '';
  animation: loading-dots 1.5s steps(4, end) infinite;
}
@keyframes loading-dots {
  0%  { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* Ambient background glow */
.sermon-modal__loader::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 34, 206, .15) 0%, transparent 70%);
  animation: ambient-glow 3s ease-in-out infinite;
  z-index: 1;
}
@keyframes ambient-glow {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.4); opacity: 1; }
}

/* Responsive */
@media (max-width: 639px) {
  .sermon-modal__loader-logo { width: 60px; height: 60px; }
  .sermon-modal__loader-ring { width: 110px; height: 110px; }
  .sermon-modal__loader-text { font-size: .7rem; }
}

/* ===================================================
   VIDEO MODAL — Fullscreen Button & Mode
   =================================================== */
.sermon-modal__header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.sermon-modal__fullscreen {
  background: rgba(255, 255, 255, .1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: background .2s;
}
.sermon-modal__fullscreen:hover { background: rgba(255, 255, 255, .2); }

/* Fullscreen state — fill entire screen */
.sermon-modal--fullscreen {
  max-width: 100% !important;
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.sermon-modal--fullscreen .sermon-modal__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, transparent 100%);
  border: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.sermon-modal--fullscreen:hover .sermon-modal__header,
.sermon-modal--fullscreen:focus-within .sermon-modal__header {
  opacity: 1;
}
.sermon-modal--fullscreen .sermon-modal__video-wrap {
  flex: 1;
  padding-bottom: 0;
  aspect-ratio: auto;
}
.sermon-modal--fullscreen .sermon-modal__video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---- Portrait Video Modal ---- */
.sermon-modal--portrait {
  max-width: 400px;
}
.sermon-modal--portrait .sermon-modal__video-wrap {
  padding-bottom: 177.78%; /* 9:16 */
}
.sermon-modal--portrait.sermon-modal--fullscreen {
  max-width: 100% !important;
}
.sermon-modal--portrait.sermon-modal--fullscreen .sermon-modal__video-wrap {
  padding-bottom: 0;
}

/* Mobile: video modal takes full viewport */
@media (max-width: 639px) {
  .sermon-modal-overlay { padding: 0; }
  .sermon-modal--video {
    max-width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  .sermon-modal--video .sermon-modal__video-wrap {
    flex: 1;
    padding-bottom: 0;
    position: relative;
  }
  .sermon-modal--video .sermon-modal__video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .sermon-modal--portrait .sermon-modal__video-wrap {
    padding-bottom: 0;
  }
  .sermon-modal__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0,0,0,.65) 0%, transparent 100%);
    border: none;
  }
}

/* ===== AUDIO MODAL – FULL CONTROLS ===== */

/* Progress bar */
.audio-progress { width: 100%; padding: 0 4px; margin-top: 18px; }
.audio-progress__bar { position: relative; width: 100%; height: 6px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: visible; }
.audio-progress__fill { position: absolute; top: 0; left: 0; height: 100%; background: linear-gradient(90deg, #e74c3c, #ff6b6b); border-radius: 3px; transition: width .15s linear; pointer-events: none; }
.audio-progress__seek { position: absolute; top: 50%; left: 0; width: 100%; height: 20px; margin: 0; padding: 0; transform: translateY(-50%); -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; z-index: 2; }
.audio-progress__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--white); box-shadow: 0 0 6px rgba(231,76,60,.6); border: 2px solid #e74c3c; margin-top: -4px; }
.audio-progress__seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--white); box-shadow: 0 0 6px rgba(231,76,60,.6); border: 2px solid #e74c3c; }
.audio-progress__seek::-webkit-slider-runnable-track { height: 6px; background: transparent; }
.audio-progress__seek::-moz-range-track { height: 6px; background: transparent; }
.audio-progress__time { display: flex; justify-content: space-between; font-size: .75rem; color: rgba(255,255,255,.55); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* Controls row */
.audio-controls-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; position: relative; }
.audio-ctrl { background: none; border: none; color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; padding: 0; transition: transform .15s ease, opacity .15s ease; }
.audio-ctrl:hover { transform: scale(1.1); }
.audio-ctrl--play { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #e74c3c, #c0392b); box-shadow: 0 4px 20px rgba(231,76,60,.45); }
.audio-ctrl--play:hover { box-shadow: 0 4px 28px rgba(231,76,60,.65); }
.audio-ctrl--skip { opacity: .7; }
.audio-ctrl--skip:hover { opacity: 1; }
.audio-ctrl__label { position: absolute; font-size: .55rem; font-weight: 700; bottom: 2px; color: rgba(255,255,255,.7); }

/* Volume row */
.audio-volume-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.audio-vol-btn { background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; padding: 4px; display: flex; align-items: center; }
.audio-vol-btn:hover { color: var(--white); }
.audio-volume__slider { -webkit-appearance: none; appearance: none; width: 110px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); outline: none; cursor: pointer; }
.audio-volume__slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--white); box-shadow: 0 0 4px rgba(0,0,0,.4); }
.audio-volume__slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--white); }

/* Bottom action buttons */
.audio-bottom-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.audio-action-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); font-size: .82rem; font-weight: 500; cursor: pointer; transition: all .2s ease; }
.audio-action-btn:hover { background: rgba(255,255,255,.12); color: var(--white); }
.audio-action-btn--bg { border-color: rgba(231,76,60,.4); background: rgba(231,76,60,.12); color: #ff6b6b; }
.audio-action-btn--bg:hover { background: rgba(231,76,60,.25); color: var(--white); }

/* ===== FLOATING MINI PLAYER (FAB) ===== */
.audio-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18,18,18,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 60px;
  padding: 8px 16px 8px 8px;
  z-index: 100000;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05) inset;
  animation: fab-slide-in .35s cubic-bezier(.22,1,.36,1);
}
@keyframes fab-slide-in { from { opacity: 0; transform: translateY(30px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }

.audio-fab__progress-ring { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.audio-fab__progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.audio-fab__ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 3; }
.audio-fab__ring-fill { fill: none; stroke: #e74c3c; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 169.65; stroke-dashoffset: 169.65; transition: stroke-dashoffset .5s linear; }
.audio-fab__play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #e74c3c, #c0392b); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(231,76,60,.4); }
.audio-fab__play-btn:hover { box-shadow: 0 2px 14px rgba(231,76,60,.6); }

.audio-fab__info { min-width: 0; }
.audio-fab__title { font-size: .78rem; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; margin: 0; }
.audio-fab__time { font-size: .68rem; color: rgba(255,255,255,.5); margin: 2px 0 0 0; font-variant-numeric: tabular-nums; }

.audio-fab__expand, .audio-fab__close { background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; padding: 6px; display: flex; align-items: center; border-radius: 50%; transition: all .15s ease; }
.audio-fab__expand:hover, .audio-fab__close:hover { color: var(--white); background: rgba(255,255,255,.1); }

/* Mobile adjustments */
@media (max-width: 600px) {
  .audio-fab {
    bottom: 64px;
    right: 12px;
    left: 12px;
    border-radius: 50px;
    padding: 6px 12px 6px 6px;
    gap: 8px;
  }
  .audio-fab__progress-ring { width: 42px; height: 42px; }
  .audio-fab__play-btn { width: 30px; height: 30px; }
  .audio-fab__play-btn svg { width: 16px; height: 16px; }
  .audio-fab__title { max-width: 100px; font-size: .72rem; }
  .audio-fab__time { font-size: .62rem; }
  .audio-fab__expand svg,
  .audio-fab__close svg,
  .audio-fab__queue-btn svg,
  .audio-fab__skip-btn svg { width: 14px; height: 14px; }
  .audio-fab__expand,
  .audio-fab__close,
  .audio-fab__queue-btn,
  .audio-fab__skip-btn { padding: 5px; }
  .audio-ctrl--play { width: 52px; height: 52px; }
  .audio-volume__slider { width: 80px; }
}
@media (max-width: 380px) {
  .audio-fab__info { display: none; }
  .audio-fab { justify-content: center; left: auto; right: 12px; border-radius: 50px; }
}

/* ===== FAB Extra Buttons (Queue, Skip) ===== */
.audio-fab__queue-btn, .audio-fab__skip-btn {
  background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer;
  padding: 6px; display: flex; align-items: center; border-radius: 50%;
  transition: all .15s ease;
}
.audio-fab__queue-btn:hover, .audio-fab__skip-btn:hover { color: var(--white); background: rgba(255,255,255,.1); }
.audio-fab__queue-btn--flash { color: var(--gold) !important; animation: fab-btn-flash .6s ease; }
@keyframes fab-btn-flash { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ===== Queue Drawer ===== */
.pq-drawer {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 340px;
  max-height: 460px;
  background: rgba(18,18,18,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  z-index: 100001;
  box-shadow: 0 12px 48px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fab-slide-in .3s cubic-bezier(.22,1,.36,1);
}
.pq-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.pq-drawer__title {
  margin: 0; font-size: .85rem; font-weight: 600; color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.pq-drawer__count {
  background: var(--primary); color: var(--white); font-size: .7rem; font-weight: 700;
  padding: 2px 7px; border-radius: 10px; min-width: 20px; text-align: center;
}
.pq-drawer__actions { display: flex; align-items: center; gap: 4px; }
.pq-drawer__clear {
  background: none; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.6);
  font-size: .7rem; padding: 4px 10px; border-radius: 20px; cursor: pointer;
  transition: all .15s ease;
}
.pq-drawer__clear:hover { color: #ff6b6b; border-color: rgba(231,76,60,.4); }
.pq-drawer__close {
  background: none; border: none; color: rgba(255,255,255,.4); cursor: pointer;
  padding: 4px; display: flex; align-items: center; border-radius: 50%;
}
.pq-drawer__close:hover { color: var(--white); }

/* Now Playing */
.pq-drawer__now {
  padding: 10px 16px; background: rgba(75,0,130,.15);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pq-drawer__now-label {
  display: block; font-size: .65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gold); margin-bottom: 6px;
}
.pq-drawer__now-item { display: flex; align-items: center; gap: 10px; }

.pq-drawer__thumb {
  width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
  background: rgba(255,255,255,.05);
}

.pq-drawer__item-info { min-width: 0; flex: 1; }
.pq-drawer__item-title {
  display: block; font-size: .78rem; font-weight: 600; color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pq-drawer__item-speaker {
  display: block; font-size: .68rem; color: rgba(255,255,255,.45); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Label */
.pq-drawer__label {
  padding: 8px 16px 4px; font-size: .65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: rgba(255,255,255,.35);
}

/* List */
.pq-drawer__list {
  list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1;
  max-height: 260px;
}
.pq-drawer__item {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px;
  transition: background .15s ease; cursor: default;
}
.pq-drawer__item:hover { background: rgba(255,255,255,.04); }
.pq-drawer__item-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.pq-drawer__item-play, .pq-drawer__item-remove {
  background: none; border: none; color: rgba(255,255,255,.4); cursor: pointer;
  padding: 5px; border-radius: 50%; display: flex; align-items: center;
  transition: all .15s ease;
}
.pq-drawer__item-play:hover { color: var(--gold); background: rgba(255,215,0,.1); }
.pq-drawer__item-remove:hover { color: #ff6b6b; background: rgba(231,76,60,.1); }

/* Empty state */
.pq-drawer__empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1rem; gap: .5rem;
}
.pq-drawer__empty p {
  margin: 0; font-size: .75rem; color: rgba(255,255,255,.35); text-align: center;
}

/* Queue button on sermon cards */
.sermon-card-v2__btn--queue {
  background: rgba(75,0,130,.08); color: #7e22ce; border-color: rgba(75,0,130,.2);
}
.sermon-card-v2__btn--queue:hover { background: rgba(75,0,130,.15); color: #9333ea; }
.sermon-card-v2__btn--queued { background: rgba(34,197,94,.12) !important; color: #22c55e !important; border-color: rgba(34,197,94,.3) !important; }

/* Queue drawer responsive */
@media (max-width: 600px) {
  .pq-drawer {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: 76px;
    max-height: 55vh;
    border-radius: 14px;
  }
  .pq-drawer__header { padding: 10px 12px; }
  .pq-drawer__title { font-size: .8rem; }
  .pq-drawer__now { padding: 8px 12px; }
  .pq-drawer__item { padding: 6px 12px; }
  .pq-drawer__thumb { width: 34px; height: 34px; }
  .pq-drawer__item-title { font-size: .72rem; }
  .pq-drawer__list { max-height: 200px; }
}

/* =================================================================
   MINISTRY & DEPARTMENT CARDS — Product-Card Inspired
   ================================================================= */

/* ---------- Grid ---------- */
.mcard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
@media (max-width: 1100px) { .mcard-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .mcard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .mcard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 360px)  { .mcard-grid { grid-template-columns: 1fr; } }

/* ---------- Card wrapper ---------- */
.mcard {
  position: relative;
  background: var(--white);
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
  will-change: transform;
}
.mcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(75,0,130,.12), 0 8px 16px rgba(0,0,0,.06);
}

/* ---------- Image area ---------- */
.mcard__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
  background: linear-gradient(135deg, var(--g-from, #4B0082), var(--g-to, #7c3aed));
}
.mcard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.mcard:hover .mcard__img { transform: scale(1.08); }

/* Placeholder when no image */
.mcard__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--g-from, #4B0082), var(--g-to, #7c3aed));
  position: relative;
}
.mcard__img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
}
.mcard__icon-big {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
  z-index: 1;
  transition: transform .4s ease;
}
.mcard:hover .mcard__icon-big { transform: scale(1.15) rotate(-5deg); }

/* Badge (floating icon) */
.mcard__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .3s ease;
  z-index: 2;
}
.mcard:hover .mcard__badge { transform: scale(1.12); }

/* Gradient fade from white into image */
.mcard__img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, var(--white) 10%, rgba(255,255,255,.7) 35%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Card body ---------- */
.mcard__body {
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mcard__name {
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 .4rem;
  line-height: 1.35;
  transition: color .2s ease;
}
.mcard:hover .mcard__name { color: var(--primary, #4B0082); }

.mcard__tagline {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 .85rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary, #4B0082);
  transition: gap .25s ease, color .2s ease;
}
.mcard:hover .mcard__cta { gap: 10px; color: var(--primary-light, var(--primary-light)); }

/* ---------- Department variant ---------- */
.mcard--dept .mcard__img-wrap::after { background: linear-gradient(to top, var(--light-gray, var(--light-gray)) 10%, rgba(249,250,251,.7) 35%, rgba(249,250,251,0) 100%); }
.section--white .mcard--dept .mcard__img-wrap::after { background: linear-gradient(to top, var(--white) 10%, rgba(255,255,255,.7) 35%, rgba(255,255,255,0) 100%); }

/* ---------- Scroll-reveal animation ---------- */
.mcard {
  opacity: 0;
  transform: translateY(32px);
  animation: mcard-reveal .6s cubic-bezier(.22,1,.36,1) forwards;
}
.mcard:nth-child(1) { animation-delay: .05s; }
.mcard:nth-child(2) { animation-delay: .12s; }
.mcard:nth-child(3) { animation-delay: .19s; }
.mcard:nth-child(4) { animation-delay: .26s; }
.mcard:nth-child(5) { animation-delay: .33s; }
.mcard:nth-child(6) { animation-delay: .40s; }
.mcard:nth-child(7) { animation-delay: .47s; }
.mcard:nth-child(8) { animation-delay: .54s; }

@keyframes mcard-reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Shimmer highlight on hover ---------- */
.mcard::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-20deg);
  transition: none;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}
.mcard:hover::before {
  animation: mcard-shimmer .75s ease forwards;
}
@keyframes mcard-shimmer {
  0% { left: -75%; opacity: 1; }
  100% { left: 125%; opacity: 0; }
}

/* ---------- Mobile touch ------- */
@media (max-width: 480px) {
  .mcard__body { padding: .85rem 1rem 1.25rem; }
  .mcard__name { font-size: .88rem; }
  .mcard__tagline { font-size: .76rem; }
  .mcard__badge { width: 32px; height: 32px; font-size: .95rem; top: 10px; right: 10px; }
}

/* ===================================================
   INSTAGRAM FEED — Redesigned Grid
   =================================================== */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ig-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
  text-decoration: none;
  animation: mcardReveal .6s ease both;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: transform .35s ease, box-shadow .35s ease;
}
.ig-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(75,0,130,.18);
}
.ig-card__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ig-card:hover .ig-card__media { transform: scale(1.1); }
.ig-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity .35s ease;
}
.ig-card:hover .ig-card__overlay { opacity: 1; }
.ig-card__stats {
  display: flex;
  gap: .75rem;
  margin-bottom: .5rem;
}
.ig-card__stat {
  font-size: .75rem;
  font-weight: 600;
  color: var(--white);
}
.ig-card__type {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: .25rem .7rem;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: .5rem;
}
.ig-card__caption {
  font-size: .8125rem;
  color: rgba(255,255,255,.92);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Instagram follow button */
.ig-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-radius: 50px;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 4px 18px rgba(131,58,180,.35);
}
.ig-follow-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px rgba(131,58,180,.45);
}
.ig-follow-btn svg { flex-shrink: 0; }

@media (max-width: 768px)  { .ig-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .ig-grid { grid-template-columns: 1fr; } }

/* ===================================================
   BLOG CARDS — Redesigned (bcard)
   =================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.bcard {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  animation: mcardReveal .6s ease both;
  transition: transform .35s ease, box-shadow .35s ease;
  border: 1px solid rgba(229,231,235,.6);
}
.bcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(75,0,130,.12);
}

/* — Image area — */
.bcard__img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.bcard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.bcard:hover .bcard__img { transform: scale(1.08); }

.bcard__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bcard__img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E") repeat;
}
.bcard__img-emoji {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.2));
  z-index: 1;
  animation: floatEmoji 3s ease-in-out infinite;
}
@keyframes floatEmoji {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* — Category badge — */
.bcard__badge {
  position: absolute;
  top: .875rem;
  left: .875rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .3rem .7rem;
  border-radius: 8px;
  z-index: 2;
}

/* — Date chip — */
.bcard__date-chip {
  position: absolute;
  top: .875rem;
  right: .875rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  padding: .35rem .5rem;
  text-align: center;
  line-height: 1;
  z-index: 2;
  min-width: 44px;
}
.bcard__date-day {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
}
.bcard__date-mon {
  display: block;
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
}

/* — Card body — */
.bcard__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bcard__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bcard__excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* — Footer: author + link — */
.bcard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid #f3f4f6;
}
.bcard__author {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.bcard__author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bcard__author-name {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bcard__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  transition: gap .3s ease, color .3s ease;
}
.bcard__link:hover { gap: .6rem; color: var(--primary-light); }
.bcard__link svg {
  transition: transform .3s ease;
}
.bcard__link:hover svg { transform: translateX(3px); }

/* ===================================================
   INSTAGRAM CTA BANNER
   =================================================== */
.ig-cta {
  position: relative;
  margin-top: 3rem;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  padding: 2.5rem 2rem;
}
.ig-cta__glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.ig-cta__content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 1;
}
.ig-cta__icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.2);
}
.ig-cta__text { flex: 1; }
.ig-cta__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .35rem;
}
.ig-cta__desc {
  font-size: .875rem;
  color: rgba(255,255,255,.88);
  line-height: 1.5;
  max-width: 480px;
}
.ig-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  font-size: .875rem;
  font-weight: 700;
  color: #833ab4;
  background: var(--white);
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.ig-cta__btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.ig-cta__btn svg { flex-shrink: 0; }

/* — Responsive — */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ig-cta__content { flex-direction: column; text-align: center; }
  .ig-cta__desc { max-width: 100%; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .bcard__img-wrap { height: 180px; }
}

/* ===================================================
   GALLERY LIGHTBOX (glb)
   =================================================== */
.glb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.glb.active {
  opacity: 1;
  visibility: visible;
}
.glb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* — Top bar — */
.glb__topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  background: rgba(0,0,0,.4);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.glb__counter {
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  min-width: 50px;
}
.glb__counter span:first-child {
  color: var(--white);
  font-size: .9375rem;
}
.glb__title {
  font-family: 'Poppins', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 1rem;
}
.glb__actions {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.glb__btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.glb__btn:hover {
  background: rgba(255,255,255,.18);
  transform: scale(1.08);
}
.glb__btn--close:hover {
  background: rgba(239,68,68,.6);
}

/* — Main stage — */
.glb__stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 1rem;
}
.glb__img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.glb__img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transition: opacity .35s ease, transform .3s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.glb.active .glb__img {
  animation: glbZoomIn .4s ease both;
}
@keyframes glbZoomIn {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* — Loader — */
.glb__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.glb__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: glbSpin .8s linear infinite;
}
@keyframes glbSpin {
  to { transform: rotate(360deg); }
}

/* — Navigation arrows — */
.glb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.glb__nav:hover {
  background: rgba(75,0,130,.6);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(75,0,130,.4);
}
.glb__nav--prev { left: 1.5rem; }
.glb__nav--next { right: 1.5rem; }

/* — Slideshow progress — */
.glb__progress {
  position: relative;
  z-index: 2;
  height: 3px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  opacity: 0;
  transition: opacity .3s ease;
}
.glb__progress.active { opacity: 1; }
.glb__progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 2px;
}

/* — Thumbnails strip — */
.glb__thumbs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  overflow-x: auto;
  justify-content: center;
  background: rgba(0,0,0,.5);
  border-top: 1px solid rgba(255,255,255,.06);
  scrollbar-width: none;
}
.glb__thumbs::-webkit-scrollbar { display: none; }
.glb__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .5;
  transition: opacity .25s, border-color .25s, transform .25s;
  background: none;
  padding: 0;
}
.glb__thumb:hover {
  opacity: .85;
  transform: scale(1.08);
}
.glb__thumb.active {
  opacity: 1;
  border-color: var(--gold);
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255,215,0,.4);
}
.glb__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* — Responsive — */
@media (max-width: 768px) {
  .glb__nav { width: 40px; height: 40px; }
  .glb__nav--prev { left: .5rem; }
  .glb__nav--next { right: .5rem; }
  .glb__img-wrap { max-width: 96vw; }
  .glb__thumb { width: 44px; height: 44px; }
  .glb__topbar { padding: .5rem .75rem; }
  .glb__title { font-size: .8125rem; }
}
@media (max-width: 480px) {
  .glb__nav { width: 36px; height: 36px; }
  .glb__nav svg { width: 20px; height: 20px; }
  .glb__thumbs { gap: .35rem; padding: .5rem .75rem; }
  .glb__thumb { width: 38px; height: 38px; border-radius: 6px; }
}

/* ===================================================
   GALLERY BENTO — Enhanced (gbento)
   =================================================== */
.gbento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

/* — Item base — */
.gbento__item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  animation: mcardReveal .6s ease both;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
}
.gbento__item:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 40px rgba(75,0,130,.18);
  z-index: 2;
}

/* — Layout variants — */
.gbento__item--hero {
  grid-column: span 2;
  grid-row: span 2;
}
.gbento__item--wide {
  grid-column: span 2;
}

/* — Image — */
.gbento__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.gbento__item:hover .gbento__img {
  transform: scale(1.1);
}

/* — Overlay (bottom gradient + text) — */
.gbento__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.35) 40%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity .35s ease;
}
.gbento__item:hover .gbento__overlay {
  opacity: 1;
}
.gbento__tag {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  background: rgba(255,215,0,.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: .2rem .6rem;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: .4rem;
  border: 1px solid rgba(255,215,0,.2);
}
.gbento__label {
  font-family: 'Poppins', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.gbento__item--hero .gbento__label {
  font-size: 1.25rem;
}
.gbento__sub {
  font-size: .8125rem;
  color: rgba(255,255,255,.78);
  margin-top: .2rem;
  line-height: 1.35;
}

/* — Expand badge (top-right glass pill) — */
.gbento__badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  color: var(--white);
  opacity: 0;
  transform: scale(.7) translateY(4px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  z-index: 3;
}
.gbento__item:hover .gbento__badge {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.gbento__badge:hover {
  background: rgba(255,255,255,.3);
}

/* — Gradient cards — */
.gbento__item--grad {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gbento__grad-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 1rem;
}
.gbento__grad-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  color: rgba(255,255,255,.9);
  transition: transform .5s ease, background .3s ease;
}
.gbento__item--grad:hover .gbento__grad-icon {
  transform: scale(1.12) rotate(5deg);
  background: rgba(255,255,255,.2);
}
.gbento__grad-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.gbento__grad-sub {
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  margin-top: .25rem;
}

/* — Floating particles on gradient cards — */
.gbento__grad-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.gbento__grad-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  animation: gbParticle 6s ease-in-out infinite;
}
.gbento__grad-particles span:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; }
.gbento__grad-particles span:nth-child(2) { left: 75%; top: 15%; animation-delay: 1.2s; width: 4px; height: 4px; }
.gbento__grad-particles span:nth-child(3) { left: 40%; top: 70%; animation-delay: 2.4s; width: 8px; height: 8px; }
.gbento__grad-particles span:nth-child(4) { left: 85%; top: 60%; animation-delay: 3.6s; }
.gbento__grad-particles span:nth-child(5) { left: 25%; top: 80%; animation-delay: 4.8s; width: 5px; height: 5px; }

@keyframes gbParticle {
  0%, 100% { transform: translateY(0) scale(1); opacity: .3; }
  50%      { transform: translateY(-20px) scale(1.5); opacity: .7; }
}

/* — Shimmer sweep on hover — */
.gbento__item::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%);
  transition: none;
  z-index: 4;
  pointer-events: none;
}
.gbento__item:hover::after {
  animation: gbShimmer .8s ease forwards;
}
@keyframes gbShimmer {
  from { left: -100%; }
  to   { left: 150%; }
}

/* ===================================================
   GALLERY BENTO — Responsive
   =================================================== */

/* Tablet */
@media (max-width: 900px) {
  .gbento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .gbento__item--hero {
    grid-column: span 2;
    grid-row: span 2;
  }
  .gbento__item--wide {
    grid-column: span 2;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .gbento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: .75rem;
  }
  .gbento__item--hero {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 240px;
  }
  .gbento__item--wide {
    grid-column: span 2;
  }
  .gbento__item {
    border-radius: 14px;
  }
  .gbento__label {
    font-size: .9375rem;
  }
  .gbento__item--hero .gbento__label {
    font-size: 1.0625rem;
  }
  /* Show overlays always on touch devices */
  .gbento__overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(0,0,0,.7) 0%,
      rgba(0,0,0,.15) 50%,
      transparent 100%
    );
  }
  .gbento__badge {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Mobile */
@media (max-width: 560px) {
  .gbento {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
    gap: .6rem;
  }
  .gbento__item--hero {
    grid-column: 1 / -1;
    grid-row: span 1;
    min-height: 220px;
  }
  .gbento__item--wide {
    grid-column: 1 / -1;
  }
  .gbento__item {
    border-radius: 12px;
  }
  .gbento__overlay {
    padding: .75rem;
  }
  .gbento__tag { font-size: .55rem; padding: .15rem .45rem; }
  .gbento__label { font-size: .8125rem; }
  .gbento__item--hero .gbento__label { font-size: .9375rem; }
  .gbento__sub { font-size: .7rem; }
  .gbento__badge { width: 28px; height: 28px; top: .5rem; right: .5rem; border-radius: 8px; }
  .gbento__badge svg { width: 12px; height: 12px; }
  .gbento__grad-icon { width: 48px; height: 48px; border-radius: 12px; }
  .gbento__grad-icon svg { width: 24px; height: 24px; }
  .gbento__grad-title { font-size: .875rem; }
  .gbento__grad-sub { font-size: .7rem; }
}

/* Small mobile */
@media (max-width: 380px) {
  .gbento {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }
  .gbento__item--hero,
  .gbento__item--wide {
    grid-column: span 1;
    min-height: 200px;
  }
}

/* ============================================================
   GALLERY CATEGORY CARDS (.gcat)
   ============================================================ */
.gcat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.gcat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--dark-gray);
  position: relative;
  overflow: hidden;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.gcat:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(75,0,130,.12);
  transform: translateY(-3px);
}
.gcat:hover .gcat__icon-wrap {
  transform: scale(1.1) rotate(-5deg);
}
.gcat:hover .gcat__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--primary);
}
.gcat__icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.gcat__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1f2937;
  margin: 0 0 .15rem;
  line-height: 1.2;
}
.gcat__sub {
  font-size: .8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}
.gcat__arrow {
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: all .3s ease;
}
@media (max-width: 900px) {
  .gcat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gcat-grid { grid-template-columns: 1fr; gap: .75rem; }
  .gcat { padding: 1rem 1.25rem; }
  .gcat__icon-wrap { width: 42px; height: 42px; min-width: 42px; border-radius: 12px; }
  .gcat__icon-wrap svg { width: 22px; height: 22px; }
  .gcat__title { font-size: .9375rem; }
  .gcat__arrow { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   LIGHTBOX DESCRIPTION (.glb__desc + .glb__topbar-center)
   ============================================================ */
.glb__topbar-center {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
  min-width: 0;
}
.glb__topbar-center .glb__title {
  flex: none;
  padding: 0;
}
.glb__desc {
  font-size: .8125rem;
  color: rgba(255,255,255,.6);
  margin-top: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 480px) {
  .glb__desc { display: none !important; }
}

/* ============================================================
   GALLERY PAGE — FILTER PILLS (.gfilter)
   ============================================================ */
.gfilter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.gfilter__pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.25rem;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  color: var(--dark-gray);
  background: #f3f4f6;
  border: 2px solid transparent;
  transition: all .25s ease;
  cursor: pointer;
}
.gfilter__pill:hover {
  background: #ede9fe;
  color: var(--primary);
  border-color: rgba(75,0,130,.15);
}
.gfilter__pill--active {
  background: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(75,0,130,.3);
}
.gfilter__pill--active:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.gfilter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 .4rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background: rgba(0,0,0,.08);
  color: inherit;
}
.gfilter__pill--active .gfilter__count {
  background: rgba(255,255,255,.25);
}

/* ============================================================
   GALLERY PAGE — IMAGE GRID (.ggrid)
   ============================================================ */
.ggrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.ggrid__item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #f3f4f6;
  aspect-ratio: 4/3;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
}
.ggrid__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(75,0,130,.15);
  z-index: 2;
}
.ggrid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.ggrid__item:hover .ggrid__img {
  transform: scale(1.08);
}
.ggrid__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity .3s ease;
}
.ggrid__item:hover .ggrid__overlay {
  opacity: 1;
}
.ggrid__cat {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(255,215,0,.2);
  color: var(--gold);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,215,0,.25);
  margin-bottom: .5rem;
  width: fit-content;
}
.ggrid__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin: 0 0 .3rem;
  line-height: 1.3;
}
.ggrid__desc {
  font-size: .8125rem;
  color: rgba(255,255,255,.75);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ggrid__zoom {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: scale(.8);
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.ggrid__item:hover .ggrid__zoom {
  opacity: 1;
  transform: scale(1);
}
.ggrid__zoom:hover {
  background: rgba(255,255,255,.25);
}

/* ============================================================
   GALLERY PAGE — EMPTY STATE (.gempty)
   ============================================================ */
.gempty {
  text-align: center;
  padding: 4rem 1rem;
}
.gempty__icon {
  color: #d1d5db;
  margin-bottom: 1.5rem;
}
.gempty__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark-gray);
  margin: 0 0 .5rem;
}
.gempty__text {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* ============================================================
   GALLERY PAGE — PAGINATION (.gpag)
   ============================================================ */
.gpag {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.gpag__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 1rem;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  color: var(--dark-gray);
  background: #f3f4f6;
  border: 1px solid var(--border);
  transition: all .2s ease;
}
.gpag__btn:hover {
  background: #ede9fe;
  color: var(--primary);
  border-color: var(--primary);
}
.gpag__btn--active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(75,0,130,.25);
}

/* Gallery grid responsive */
@media (max-width: 768px) {
  .ggrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
  .ggrid__overlay { opacity: 1; }
  .ggrid__zoom { opacity: 1; transform: scale(1); }
  .gfilter { gap: .35rem; }
  .gfilter__pill { padding: .4rem 1rem; font-size: .8125rem; }
}
@media (max-width: 480px) {
  .ggrid { grid-template-columns: 1fr; gap: .75rem; }
  .ggrid__item { aspect-ratio: 16/10; }
}

/* ============================================================
   HERO — SERVICE CARD ICON
   ============================================================ */
.service-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,215,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .4rem;
  color: var(--gold);
  border: 1px solid rgba(255,215,0,.3);
}
.service-card__icon svg { width: 14px; height: 14px; }
@media (min-width: 640px) {
  .service-card__icon { width: 40px; height: 40px; margin-bottom: .6rem; }
  .service-card__icon svg { width: 22px; height: 22px; }
}

/* ============================================================
   PLAN YOUR VISIT — ENHANCED (.hvisit)
   ============================================================ */
.hvisit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* — Media column — */
.hvisit__media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hvisit__img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.hvisit__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.hvisit__img-wrap:hover .hvisit__img {
  transform: scale(1.04);
}
.hvisit__img-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 500;
}
.hvisit__img-badge svg {
  color: var(--gold);
  min-width: 14px;
}

/* — Contact strip — */
.hvisit__contact {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.hvisit__contact-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .8125rem;
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  transition: all .25s ease;
}
.hvisit__contact-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(75,0,130,.1);
  transform: translateY(-1px);
}
.hvisit__contact-item svg {
  color: var(--primary);
  min-width: 16px;
}
.hvisit__contact-item--map {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.hvisit__contact-item--map:hover {
  background: #3b0066;
  color: var(--white);
}
.hvisit__contact-item--map svg {
  color: var(--gold);
}

/* — Service cards — */
.hvisit__cards {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.hvisit__card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.hvisit__card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(75,0,130,.1);
  transform: translateY(-2px);
}
.hvisit__card-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform .3s ease;
}
.hvisit__card:hover .hvisit__card-icon {
  transform: scale(1.08) rotate(-3deg);
}
.hvisit__card-body {
  flex: 1;
  min-width: 0;
}
.hvisit__card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: #1f2937;
  margin: 0 0 .15rem;
}
.hvisit__card-time {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 .25rem;
}
.hvisit__card-tag {
  display: inline-block;
  padding: .15rem .65rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: #f3f0ff;
  color: #7c3aed;
}

/* — Welcome banner — */
.hvisit__banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #fdf4ff, #f5f3ff);
  border: 1px solid #e9d5ff;
  border-radius: 14px;
  margin-top: 1rem;
}
.hvisit__banner-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.hvisit__banner-text strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .9375rem;
  color: #1f2937;
  margin-bottom: .15rem;
}
.hvisit__banner-text span {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* — Buttons — */
.hvisit__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* — Responsive — */
@media (max-width: 900px) {
  .hvisit {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 560px) {
  .hvisit__card {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .hvisit__card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
  }
  .hvisit__card-icon svg {
    width: 20px;
    height: 20px;
  }
  .hvisit__img-badge {
    bottom: .75rem;
    left: .75rem;
    right: .75rem;
    font-size: .75rem;
    padding: .5rem .75rem;
  }
  .hvisit__contact {
    flex-direction: column;
  }
  .hvisit__buttons {
    flex-direction: column;
  }
  .hvisit__buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== ABOUT PAGE: LEADERSHIP (.alead) ===== */
.alead { max-width: 1000px; margin: 0 auto; }
.alead__card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(75,0,130,.08), 0 1px 3px rgba(0,0,0,.06);
}
@media(min-width:768px) {
  .alead__card { grid-template-columns: 380px 1fr; }
}
.alead__img-col {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.alead__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.alead__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(75,0,130,.35) 100%);
}
.alead__badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: .375rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-weight: 700;
  font-size: .8125rem;
  padding: .5rem 1rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.alead__info {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media(max-width:767px) {
  .alead__info { padding: 1.5rem; }
}
.alead__name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.2;
}
.alead__role {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 600;
  padding: .3rem .875rem;
  border-radius: 2rem;
  margin-top: .5rem;
}
.alead__divider {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--gold), #f59e0b);
  border-radius: 2px;
}
.alead__bio {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  color: #4b5563;
  font-size: .9375rem;
  line-height: 1.75;
}
.alead__stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}
.alead__stat { text-align: center; flex: 1; min-width: 80px; }
.alead__stat-num {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.alead__stat-label {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: .125rem;
}
.alead__verse {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: #faf5ff;
  padding: 1rem 1.25rem;
  border-radius: .75rem;
  border-left: 4px solid var(--primary);
  color: var(--primary);
}
.alead__verse svg { flex-shrink: 0; margin-top: .125rem; opacity: .6; }
.alead__verse-text {
  font-size: .875rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--dark-gray);
}
.alead__verse-ref {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: .375rem;
  font-style: normal;
}

/* ===== ABOUT PAGE: FOUNDATION (.afound) ===== */
.afound {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media(min-width:640px) { .afound { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px) { .afound { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.afound__card {
  position: relative;
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.afound__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(75,0,130,.12);
}
.afound__icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.afound__card--mission .afound__icon { background: linear-gradient(135deg, var(--primary), #7c3aed); }
.afound__card--vision .afound__icon  { background: linear-gradient(135deg, #1e3a5f, #3b82f6); }
.afound__card--purpose .afound__icon { background: linear-gradient(135deg, #064e3b, #10b981); }
.afound__card--values .afound__icon  { background: linear-gradient(135deg, #78350f, #f59e0b); }

.afound__num {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  position: absolute;
  top: .75rem;
  right: 1rem;
  opacity: .04;
  line-height: 1;
  color: var(--primary);
}
.afound__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: .75rem;
}
.afound__text {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}
.afound__accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity .3s ease;
}
.afound__card:hover .afound__accent { opacity: 1; }
.afound__card--mission .afound__accent { background: linear-gradient(90deg, var(--primary), #7c3aed); }
.afound__card--vision .afound__accent  { background: linear-gradient(90deg, #1e3a5f, #3b82f6); }
.afound__card--purpose .afound__accent { background: linear-gradient(90deg, #064e3b, #10b981); }
.afound__card--values .afound__accent  { background: linear-gradient(90deg, #78350f, #f59e0b); }

/* ===== ABOUT PAGE: BELIEFS (.abelief) ===== */
.abelief {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.abelief__item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid #f3f4f6;
  border-radius: 1rem;
  transition: all .3s ease;
  animation: fadeInUp .5s ease both;
}
.abelief__item:hover {
  border-color: #ede9fe;
  box-shadow: 0 8px 30px rgba(75,0,130,.08);
  transform: translateX(4px);
}
.abelief__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  flex-shrink: 0;
}
.abelief__number {
  font-family: 'Poppins', sans-serif;
  font-size: .6875rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .05em;
}
.abelief__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  box-shadow: 0 4px 12px rgba(75,0,130,.2);
}
.abelief__content { flex: 1; min-width: 0; }
.abelief__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: .375rem;
}
.abelief__text {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: .5rem;
}
.abelief__ref {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  background: #ede9fe;
  padding: .2rem .625rem;
  border-radius: 1rem;
}
.abelief__check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .375rem;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media(max-width:640px) {
  .abelief__item { flex-wrap: wrap; padding: 1.25rem; gap: 1rem; }
  .abelief__left { flex-direction: row; gap: .5rem; }
  .abelief__check { display: none; }
  .alead__stats { gap: 1rem; }
}

/* ==========================================================================
   MINISTRY PAGE v2 — Professional Redesign
   ========================================================================== */

/* ===== HERO ===== */
.mhero {
  position: relative;
  --mhero-fg: var(--white);
  --mhero-muted: rgba(255,255,255,.85);
  --mhero-subtle: rgba(255,255,255,.7);
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 7rem 0 3.5rem;
  overflow: hidden;
  color: var(--mhero-fg);
}
.mhero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, var(--gf), var(--gt));
}
.mhero__bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.12) 0%, transparent 60%);
}
.mhero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2l4 3.25-4 3.25zM0 0h2v20H0V0z' fill='%23ffffff' fill-opacity='.03'/%3E%3C/svg%3E");
}
.mhero__img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: .18;
  mix-blend-mode: luminosity;
}
.mhero__inner { position: relative; z-index: 1; width: 100%; }
.mhero__crumb {
  display: inline-flex; align-items: center; gap: .375rem;
  color: var(--mhero-subtle); font-size: .8125rem; font-weight: 500;
  text-decoration: none; margin-bottom: 2rem; transition: color .2s;
}
.mhero__crumb:hover { color: var(--mhero-fg); }

/* Grid: text | visual */
.mhero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media(min-width:900px) {
  .mhero__grid { grid-template-columns: 1fr 380px; gap: 3.5rem; }
}

/* Badge pill */
.mhero__badge {
  display: inline-flex; align-items: center; gap: .375rem;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  padding: .375rem .875rem;
  border-radius: 2rem;
  font-size: .75rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,.15);
}

/* Title */
.mhero__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .75rem;
  color: var(--mhero-fg);
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}

/* Tagline */
.mhero__tagline {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--mhero-muted);
  max-width: 540px;
  margin-bottom: 1.25rem;
}

/* Info pills */
.mhero__pills {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.5rem;
}
.mhero__pill {
  display: inline-flex; align-items: center; gap: .375rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  padding: .375rem .75rem;
  border-radius: .5rem;
  font-size: .8125rem;
  font-weight: 500;
}

/* Leader row in hero */
.mhero__leader {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.5rem;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.08);
  border-radius: .75rem;
  border: 1px solid rgba(255,255,255,.1);
  width: fit-content;
}
.mhero__leader-av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.mhero__leader strong { display: block; font-size: .9rem; }
.mhero__leader span { display: block; font-size: .75rem; opacity: .7; }

/* Action buttons */
.mhero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.mhero__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .875rem;
  padding: .75rem 1.5rem;
  border-radius: .625rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  border: none; cursor: pointer;
}
.mhero__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.mhero__btn--primary { background: var(--gold); color: #1a1a2e; }
.mhero__btn--glass {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
}
.mhero__btn--glass:hover { background: rgba(255,255,255,.2); color: var(--white); }

/* Visual card */
.mhero__visual { display: flex; justify-content: center; }
.mhero__card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1.25rem;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.mhero__card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.mhero__card-placeholder {
  width: 100%;
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.5);
}
.mhero__card-stats {
  display: flex;
  border-top: 1px solid rgba(255,255,255,.12);
}
.mhero__card-stat {
  flex: 1;
  text-align: center;
  padding: .875rem .5rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.mhero__card-stat:last-child { border-right: none; }
.mhero__card-stat-val {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem; font-weight: 800;
}
.mhero__card-stat-lbl {
  display: block;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .7;
  margin-top: .125rem;
}
.mhero__card-contact {
  display: flex; align-items: center; justify-content: center; gap: .375rem;
  padding: .75rem;
  font-size: .8125rem; font-weight: 600;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,.1);
  transition: background .2s;
}
.mhero__card-contact:hover { background: rgba(255,255,255,.08); color: var(--white); }

/* ===== CONTENT LAYOUT ===== */
.mpage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media(min-width:900px) { .mpage { grid-template-columns: 1fr 340px; } }
.mpage__main { min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }

/* Content cards */
.mpage__card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.03);
  border: 1px solid #eee;
}
.mpage__heading {
  display: flex; align-items: center; gap: .625rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1.25rem;
}
.mpage__heading-dot {
  width: 4px; height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
}
.mpage__prose {
  font-size: .9375rem; line-height: 1.85;
  color: #505565;
}

/* Scripture block */
.mpage__scripture {
  background: linear-gradient(135deg, #faf5ff, #f0e7ff);
  border-radius: 1rem;
  padding: 2rem 2.25rem;
  position: relative;
  overflow: hidden;
  border: 1px solid #e9d5ff;
}
.mpage__scripture-mark {
  position: absolute;
  top: -.25rem; left: 1rem;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--gf, #4B0082);
  opacity: .12;
  line-height: 1;
  pointer-events: none;
}
.mpage__scripture-text {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--dark-gray);
  position: relative;
}
.mpage__scripture-ref {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--gf, #4B0082);
  margin-top: .625rem;
  font-style: normal;
}

/* Mission & Vision */
.mpage__mv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media(min-width:600px) { .mpage__mv { grid-template-columns: 1fr 1fr; } }
.mpage__mv-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.mpage__mv-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gf, #4B0082);
}
.mpage__mv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.mpage__mv-icon {
  width: 48px; height: 48px;
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--gf, #4B0082);
  color: var(--white);
  margin-bottom: 1rem;
}
.mpage__mv-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.0625rem; font-weight: 700;
  color: #1a1a2e;
  margin-bottom: .5rem;
}
.mpage__mv-text {
  font-size: .9rem; line-height: 1.7;
  color: var(--text-muted);
}

/* Checklists */
.mpage__checks { display: flex; flex-direction: column; gap: .625rem; }
.mpage__check {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .875rem 1rem;
  background: var(--light-gray);
  border-radius: .625rem;
  border: 1px solid #f3f4f6;
  transition: background .2s, border-color .2s;
}
.mpage__check:hover { background: #f3f0ff; border-color: #e9d5ff; }
.mpage__check-icon { flex-shrink: 0; margin-top: .125rem; }
.mpage__check span {
  font-size: .9rem; line-height: 1.6;
  color: var(--dark-gray);
}

/* Testimonial */
.mpage__testimonial {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
}
.mpage__testimonial::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gf, #4B0082), var(--gt, #7c3aed));
}
.mpage__testimonial-q {
  position: absolute;
  top: .75rem; left: 1.25rem;
  color: var(--gf, #4B0082);
}
.mpage__testimonial-text {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--dark-gray);
  padding-top: 1rem;
  position: relative;
}
.mpage__testimonial-who {
  display: flex; align-items: center; gap: .75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
}
.mpage__testimonial-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1.125rem;
  flex-shrink: 0;
}
.mpage__testimonial-who strong { display: block; font-size: .9rem; color: #1a1a2e; }
.mpage__testimonial-who span { display: block; font-size: .8rem; color: var(--text-muted); }

/* ===== SIDEBAR ===== */
.mpage__side { display: flex; flex-direction: column; gap: 1.25rem; }

.mside__glass {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.mside__heading {
  font-family: 'Poppins', sans-serif;
  font-size: .9375rem; font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
  padding-bottom: .625rem;
  border-bottom: 2px solid #f3f4f6;
}

/* Info rows */
.mside__info {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--light-gray);
}
.mside__info:last-child { border-bottom: none; }
.mside__info-icon {
  width: 34px; height: 34px;
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mside__info-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: .125rem;
}
.mside__info-value {
  display: block;
  font-size: .875rem;
  color: var(--dark-gray);
  font-weight: 500;
}
.mside__info-link {
  display: block;
  font-size: .875rem;
  color: var(--primary, #4B0082);
  text-decoration: none;
  font-weight: 500;
}
.mside__info-link:hover { text-decoration: underline; }

/* Leader card */
.mside__leader-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-top: .5rem;
}
.mside__leader-av {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gf), var(--gt));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1.375rem;
  margin-bottom: .625rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.mside__leader-card strong { font-size: .9375rem; color: #1a1a2e; display: block; }
.mside__leader-card span { font-size: .8125rem; color: var(--text-muted); display: block; }

/* CTA block */
.mside__cta {
  background: linear-gradient(135deg, var(--gf), var(--gt));
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.mside__cta-glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -60px; right: -60px;
  pointer-events: none;
}
.mside__cta svg { margin-bottom: .75rem; position: relative; }
.mside__cta h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.0625rem; font-weight: 700;
  margin-bottom: .375rem;
  position: relative;
}
.mside__cta p {
  font-size: .8125rem; opacity: .88;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  position: relative;
}
.mside__cta-btn {
  display: inline-flex; align-items: center; gap: .375rem;
  background: var(--gold); color: #1a1a2e;
  font-weight: 700; font-size: .875rem;
  padding: .6875rem 1.375rem;
  border-radius: .5rem;
  text-decoration: none;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.mside__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  color: #1a1a2e;
}

/* ===== OTHER MINISTRIES ===== */
.mother {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media(min-width:640px) { .mother { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px) { .mother { grid-template-columns: 1fr 1fr 1fr; } }

.mother__card {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none; color: inherit;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform .3s, box-shadow .3s;
}
.mother__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.mother__thumb {
  height: 140px;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
}
.mother__body { padding: 1.25rem; }
.mother__icon-sm {
  width: 28px; height: 28px;
  border-radius: .375rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: .5rem;
}
.mother__name {
  font-family: 'Poppins', sans-serif;
  font-size: .9375rem; font-weight: 700;
  color: #1a1a2e;
  margin-bottom: .25rem;
}
.mother__desc {
  font-size: .8125rem; color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: .75rem;
}
.mother__link {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .8125rem; font-weight: 600;
  color: var(--primary, #4B0082);
  transition: gap .2s;
}
.mother__card:hover .mother__link { gap: .5rem; }

/* ===== RESPONSIVE ===== */
@media(max-width:899px) {
  .mhero { min-height: auto; padding: 6rem 0 2.5rem; }
  .mhero__title { font-size: 2rem; }
  .mhero__visual { order: -1; }
  .mhero__card { max-width: 320px; }
}
@media(max-width:560px) {
  .mhero { padding: 5.5rem 0 2rem; }
  .mhero__title { font-size: 1.625rem; }
  .mhero__tagline { font-size: .9375rem; }
  .mhero__pills { gap: .375rem; }
  .mhero__pill { font-size: .75rem; padding: .25rem .5rem; }
  .mhero__leader { width: 100%; }
  .mhero__actions { flex-direction: column; }
  .mhero__btn { width: 100%; justify-content: center; }
  .mhero__card-img,
  .mhero__card-placeholder { height: 160px; }
  .mpage__card { padding: 1.5rem; }
  .mpage__heading { font-size: 1.0625rem; }
  .mside__glass { padding: 1.25rem; }
  .mother__thumb { height: 110px; }
}

/* ===== QUICK FACTS BAR ===== */
.mfacts {
  background: var(--white);
  border-bottom: 1px solid #eee;
  padding: 1.125rem 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.mfacts__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.mfacts__item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem 1.5rem;
  border-right: 1px solid #f0f0f0;
}
.mfacts__item:last-child { border-right: none; }
.mfacts__icon {
  width: 36px; height: 36px;
  border-radius: .5rem;
  background: var(--gf, #4B0082);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mfacts__label {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.mfacts__value {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: #1a1a2e;
}
@media(max-width:768px) {
  .mfacts__grid { gap: .25rem; }
  .mfacts__item { padding: .5rem .75rem; border-right: none; flex: 0 0 50%; }
}
@media(max-width:480px) {
  .mfacts__item { flex: 0 0 100%; }
}

/* ============================================
   SERMONS PAGE
   ============================================ */

/* ===== FEATURED THEATER (sft) ===== */
.sft {
  position: relative;
  background: #0d0a1a;
  overflow: hidden;
}
.sft__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.sft__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) brightness(.25) saturate(1.4);
  transform: scale(1.15);
}
.sft__container {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

/* Top bar */
.sft__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.sft__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
}
.sft__stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  color: rgba(255,255,255,.55);
  font-size: .78rem;
}
.sft__stat strong { color: var(--gold); font-weight: 700; }
.sft__stat-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
}

/* Player wrapper */
.sft__player {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
}

/* Poster / thumbnail */
.sft__poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
}
.sft__poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.sft__poster:hover .sft__poster-img { transform: scale(1.02); }

/* Big play button */
.sft__play-big {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.5) 100%);
  border: none;
  cursor: pointer;
  transition: background .3s;
}
.sft__play-big:hover { background: linear-gradient(180deg, rgba(75,0,130,.15) 0%, rgba(0,0,0,.6) 100%); }
.sft__play-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(75,0,130,.65);
  backdrop-filter: blur(10px);
  border: 2.5px solid rgba(255,255,255,.35);
  box-shadow: 0 0 30px rgba(75,0,130,.5), 0 0 60px rgba(75,0,130,.2);
  transition: all .3s;
}
.sft__play-big:hover .sft__play-ring {
  transform: scale(1.1);
  background: rgba(75,0,130,.85);
  box-shadow: 0 0 40px rgba(75,0,130,.7), 0 0 80px rgba(75,0,130,.3);
}
.sft__play-label {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.sft__dur {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,.85);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 5px;
  pointer-events: none;
  z-index: 2;
}

/* Iframe wrap */
.sft__iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}
.sft__iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.sft__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: radial-gradient(ellipse at center, #0d0d1a 0%, #000 100%);
  z-index: 5;
  transition: opacity .5s ease, visibility .5s ease;
}
.sft__loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.sft__loader::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 34, 206, .15) 0%, transparent 70%);
  animation: ambient-glow 3s ease-in-out infinite;
  z-index: 1;
}

/* "Play in Background" button for sermons audio */
.sft__audio-actions {
  display: flex;
  justify-content: center;
  margin-top: .75rem;
}

/* Inline Audio Player */
.sft__audio {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  min-height: 350px;
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #0d0a1a 100%);
}
.sft__audio-art {
  position: relative;
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.sft__audio-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.sft__audio-art.playing .sft__audio-art-img { transform: scale(1.05); }
.sft__audio-vis {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  opacity: 0;
  transition: opacity .3s;
}
.sft__audio-art.playing .sft__audio-vis { opacity: 1; }
.sft__audio-vis span {
  width: 4px;
  border-radius: 2px;
  background: var(--gold);
  animation: sftBar 1s ease-in-out infinite alternate;
}
.sft__audio-vis span:nth-child(1) { height: 8px; animation-delay: 0s; }
.sft__audio-vis span:nth-child(2) { height: 16px; animation-delay: .15s; }
.sft__audio-vis span:nth-child(3) { height: 24px; animation-delay: .3s; }
.sft__audio-vis span:nth-child(4) { height: 18px; animation-delay: .45s; }
.sft__audio-vis span:nth-child(5) { height: 12px; animation-delay: .6s; }
.sft__audio-vis span:nth-child(6) { height: 20px; animation-delay: .75s; }
.sft__audio-vis span:nth-child(7) { height: 10px; animation-delay: .9s; }
@keyframes sftBar {
  0% { height: 4px; }
  100% { height: 24px; }
}

.sft__audio-controls {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  color: var(--white);
}
.sft__audio-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--white);
}
.sft__audio-speaker {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin: 0;
}

/* Audio progress bar */
.sft__audio-progress { width: 100%; }
.sft__audio-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
  cursor: pointer;
}
.sft__audio-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #f0c040);
  border-radius: 3px;
  transition: width .15s;
}
.sft__audio-seek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  margin: 0;
}
.sft__audio-times {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  margin-top: .25rem;
}

/* Audio controls row */
.sft__audio-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.sft__audio-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  padding: .35rem;
  border-radius: 50%;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sft__audio-btn:hover { color: var(--white); background: rgba(255,255,255,.1); }
.sft__audio-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), #6a1cb7);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(75,0,130,.5);
  transition: all .2s;
}
.sft__audio-play:hover { transform: scale(1.08); box-shadow: 0 6px 25px rgba(75,0,130,.6); }

/* Volume row */
.sft__audio-vol {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sft__audio-vol-slider {
  -webkit-appearance: none;
  width: 110px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.2);
  outline: none;
  cursor: pointer;
}
.sft__audio-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}

/* Toolbar */
.sft__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.06);
}
.sft__toolbar-left,
.sft__toolbar-right {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.sft__tb-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.6);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.sft__tb-btn:hover { color: var(--white); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.sft__tb-btn--active {
  background: rgba(75,0,130,.35) !important;
  color: var(--gold) !important;
  border-color: rgba(255,215,0,.3) !important;
}

/* Info below player */
.sft__info {
  padding: 1.5rem 0 .5rem;
}
.sft__info-main { max-width: 800px; }
.sft__cat {
  display: inline-block;
  background: rgba(75,0,130,.35);
  color: #c9a0ff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 5px;
  margin-bottom: .6rem;
}
.sft__title {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 .6rem;
  line-height: 1.3;
}
.sft__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: .75rem;
}
.sft__meta-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.sft__meta-item svg { opacity: .5; }
.sft__desc {
  font-size: .88rem;
  color: rgba(255,255,255,.68);
  line-height: 1.6;
  margin: 0;
  max-width: 64ch;
}

/* Fullscreen state */
.sft--fullscreen {
  background: #000;
}
.sft--fullscreen .sft__container {
  padding: 0;
  max-width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sft--fullscreen .sft__topbar { display: none; }
.sft--fullscreen .sft__info { display: none; }
.sft--fullscreen .sft__player {
  flex: 1;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.sft--fullscreen .sft__poster,
.sft--fullscreen .sft__iframe-wrap {
  flex: 1;
  aspect-ratio: unset;
}
.sft--fullscreen .sft__audio {
  flex: 1;
  aspect-ratio: unset;
}
.sft--fullscreen .sft__toolbar {
  border-radius: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .sft__topbar { flex-direction: column; align-items: flex-start; }
  .sft__stats { gap: .5rem .75rem; }
  .sft__stat-dot { display: none; }
  .sft__play-ring { width: 60px; height: 60px; }
  .sft__play-ring svg { width: 36px; height: 36px; }
  .sft__audio { flex-direction: column; padding: 1.5rem; gap: 1.25rem; min-height: 280px; }
  .sft__audio-art { width: 120px; height: 120px; }
  .sft__audio-controls { align-items: center; text-align: center; }
  .sft__audio-vol { justify-content: center; }
  .sft__toolbar { flex-wrap: wrap; gap: .5rem; }
  .sft__tb-btn { min-height: 44px; justify-content: center; flex: 1 1 150px; }
  .sft__desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 480px) {
  .sft__container { padding-top: 1rem; padding-bottom: 1rem; }
  .sft__play-ring { width: 50px; height: 50px; }
  .sft__play-ring svg { width: 28px; height: 28px; }
  .sft__play-label { font-size: .72rem; }
  .sft__title { font-size: 1.05rem; }
  .sft__meta { gap: .55rem .85rem; }
  .sft__meta-item { font-size: .78rem; color: rgba(255,255,255,.76); }
  .sft__audio-art { width: 90px; height: 90px; }
  .sft__audio-title { font-size: 1rem; }
  .sft__tb-btn { padding: .35rem .6rem; font-size: .72rem; }
}

/* --- Filter Bar --- */
.srm-filter {
  padding: 2.5rem 0 1rem;
  background: #f8f7fc;
}
.srm-filter__bar,
.srm-filter__row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(75,0,130,0.06);
}
.srm-filter__search {
  position: relative;
  flex: 1 1 200px;
}
.srm-filter__form {
  margin: 0;
}
.srm-filter__search svg {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}
.srm-filter__search input {
  width: 100%;
  padding: .6rem .75rem .6rem 2.4rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: .88rem;
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
}
.srm-filter__search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(75,0,130,0.1);
  background: var(--white);
}
.srm-filter__select {
  padding: .6rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: .85rem;
  background: #fafafa;
  color: #333;
  cursor: pointer;
  min-width: 140px;
  transition: border-color .2s;
}
.srm-filter__select:focus {
  outline: none;
  border-color: var(--primary);
}
.srm-filter__btn {
  padding: .6rem 1.4rem;
  border: none;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  background: var(--primary);
  color: var(--white);
}
.srm-filter__btn:hover { background: #3a0066; }
.srm-filter__clear {
  color: var(--primary);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
}
.srm-filter__clear:hover { text-decoration: underline; }
.srm-filter__count {
  font-size: .82rem;
  color: #888;
  margin-left: auto;
}
@media (max-width: 640px) {
  .srm-filter { padding: 1.5rem 0 .75rem; }
  .srm-filter__bar,
  .srm-filter__row { flex-direction: column; padding: .75rem; gap: .5rem; }
  .srm-filter__search { flex: 1 1 auto; width: 100%; }
  .srm-filter__select { width: 100%; min-width: auto; }
  .srm-filter__btn { width: 100%; text-align: center; }
  .srm-filter__count { margin-left: 0; text-align: center; }
}

/* --- Sermon Grid Section --- */
.srm-grid-section {
  padding: 2rem 0 3rem;
  background: #f8f7fc;
}
.srm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .srm-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* --- Empty State --- */
.srm-empty {
  text-align: center;
  padding: 4rem 1rem;
}
.srm-empty svg {
  color: #c4b5d4;
  margin-bottom: 1rem;
}
.srm-empty h3 {
  font-size: 1.3rem;
  color: #1a1a2e;
  margin: 0 0 .5rem;
}
.srm-empty p {
  color: #777;
  margin: 0;
}

/* --- Pagination --- */
.srm-pag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.srm-pag__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid rgba(75,0,130,0.2);
  border-radius: 8px;
  text-decoration: none;
  background: var(--white);
  transition: all .2s;
}
.srm-pag__btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.srm-pag__nums { display: flex; gap: .35rem; }
.srm-pag__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: .85rem;
  font-weight: 600;
  color: #555;
  border-radius: 8px;
  text-decoration: none;
  background: var(--white);
  border: 1.5px solid transparent;
  transition: all .2s;
}
.srm-pag__num:hover { background: rgba(75,0,130,0.07); color: var(--primary); }
.srm-pag__num--active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* --- CTA --- */
.srm-cta {
  padding: 3.5rem 0;
  background: #1a0a2e;
}
.srm-cta__inner {
  position: relative;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(75,0,130,0.4), rgba(255,215,0,0.1));
  border-radius: 20px;
  border: 1px solid rgba(255,215,0,0.15);
  overflow: hidden;
}
.srm-cta__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,215,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.srm-cta__inner h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin: 1rem 0 .5rem;
  position: relative;
}
.srm-cta__inner p {
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  position: relative;
}
.srm-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(231,76,60,0.4);
  transition: all .3s;
  position: relative;
}
.srm-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(231,76,60,0.5); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .srm-filter__bar { flex-direction: column; align-items: stretch; }
  .srm-filter__count { margin-left: 0; text-align: center; }
  .srm-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .srm-pag { gap: .3rem; }
  .srm-pag__btn { padding: .45rem .8rem; font-size: .8rem; }
  .srm-pag__num { width: 32px; height: 32px; font-size: .8rem; }
}
@media (max-width: 480px) {
  .srm-grid { grid-template-columns: 1fr; }
}

/* --- Now Playing indicator on grid cards --- */
.sermon-card-v2--playing {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(75,0,130,0.15), 0 4px 20px rgba(75,0,130,0.12);
}
.sermon-card-v2--playing::before {
  content: '';
  position: absolute;
  top: .6rem;
  left: .6rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  z-index: 5;
  animation: sftPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(75,0,130,.5);
}
.sermon-card-v2--playing .sermon-card-v2__thumb::after {
  content: 'NOW PLAYING';
  position: absolute;
  top: .6rem;
  left: 1.6rem;
  background: rgba(75,0,130,0.85);
  color: var(--white);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .2rem .6rem;
  border-radius: 4px;
  z-index: 5;
}
@keyframes sftPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(75,0,130,.5); }
  50% { box-shadow: 0 0 0 6px rgba(75,0,130,0); }
}

/* ============================================================
   HKTC — Harvesters Kingdom Training Centre Page
   ============================================================ */

/* --- Section Utilities --- */
.hktc-section__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.hktc-section__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .5rem;
}
.hktc-section__subtitle {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: #555;
  line-height: 1.6;
}

/* --- Buttons --- */
.hktc-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 50px;
  padding: .75rem 1.75rem;
  text-decoration: none;
  transition: all .25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.hktc-btn--primary {
  background: var(--gold);
  color: #1a0033;
  border-color: var(--gold);
}
.hktc-btn--primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,215,0,.35);
}
.hktc-btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.hktc-btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.hktc-btn--ghost {
  background: transparent;
  color: var(--gold);
  border-color: transparent;
}
.hktc-btn--ghost:hover {
  background: rgba(255,215,0,.08);
}
.hktc-btn--lg {
  padding: .9rem 2rem;
  font-size: 1rem;
}

/* --- Hero --- */
.hktc-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a0033 0%, #3b006b 50%, #1a0033 100%);
  overflow: hidden;
  padding: 5rem 1rem 3rem;
}
.hktc-hero__overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(255,215,0,.06)"/></svg>') repeat;
  pointer-events: none;
}
.hktc-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hktc-hero__logo {
  max-width: 340px;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: 16px;
  padding: 1.25rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
}
.hktc-hero__tagline {
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
  font-weight: 600;
}
.hktc-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: .75rem;
}
.hktc-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 1rem;
  font-weight: 500;
}
.hktc-hero__desc {
  font-size: .95rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hktc-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hktc-hero__badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hktc-hero__badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: .4rem 1rem .4rem .4rem;
}
.hktc-hero__badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 2px;
}
.hktc-hero__badge span {
  font-size: .75rem;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}

/* --- Vision & Mission --- */
.hktc-vm__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.hktc-vm__card {
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.hktc-vm__card--vision {
  background: linear-gradient(135deg, #f3e8ff 0%, var(--white) 100%);
  border: 1px solid rgba(75,0,130,.1);
}
.hktc-vm__card--mission {
  background: linear-gradient(135deg, #fff8e1 0%, var(--white) 100%);
  border: 1px solid rgba(255,215,0,.2);
}
.hktc-vm__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.hktc-vm__card--vision .hktc-vm__icon {
  background: var(--primary);
  color: var(--white);
}
.hktc-vm__card--mission .hktc-vm__icon {
  background: var(--gold);
  color: #1a0033;
}
.hktc-vm__card h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: .75rem;
  font-weight: 700;
}
.hktc-vm__card p {
  color: #444;
  line-height: 1.7;
  font-size: .95rem;
}

/* --- Programs Grid --- */
.hktc-programs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}
.hktc-prog-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e8e8ee;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hktc-prog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(75,0,130,.08);
}
.hktc-prog-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--white);
}
.hktc-prog-card__icon--purple { background: var(--primary); }
.hktc-prog-card__icon--red    { background: #c0392b; }
.hktc-prog-card__icon--blue   { background: #2980b9; }
.hktc-prog-card__icon--gold   { background: #d4a017; }
.hktc-prog-card__icon--green  { background: #27ae60; }
.hktc-prog-card__icon--pink   { background: #e74c8b; }
.hktc-prog-card h4 {
  font-size: 1.1rem;
  color: #1a1a2e;
  margin-bottom: .5rem;
  font-weight: 700;
}
.hktc-prog-card > p {
  font-size: .88rem;
  color: #666;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.hktc-prog-card__courses {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.hktc-prog-card__courses li {
  font-size: .85rem;
  color: #333;
  padding: .45rem 0;
  border-bottom: 1px solid #f0f0f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hktc-prog-card__courses li:last-child { border: none; }
.hktc-prog-card__courses span {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--primary);
  background: rgba(75,0,130,.07);
  padding: .2rem .55rem;
  border-radius: 20px;
}
.hktc-prog-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap .2s;
}
.hktc-prog-card__link:hover {
  gap: .7rem;
  color: #3b006b;
}

/* --- Why HKTC --- */
.hktc-why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.hktc-why__card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e8e8ee;
  position: relative;
  transition: transform .25s ease;
}
.hktc-why__card:hover {
  transform: translateY(-3px);
}
.hktc-why__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(75,0,130,.07);
  line-height: 1;
  margin-bottom: .5rem;
}
.hktc-why__card h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: .5rem;
  font-weight: 700;
}
.hktc-why__card p {
  font-size: .88rem;
  color: #555;
  line-height: 1.65;
}

/* --- Core Values Pills --- */
.hktc-values__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.hktc-values__pill {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--white);
  border: 1px solid #e8e8ee;
  border-radius: 50px;
  padding: .55rem 1.5rem .55rem .55rem;
  font-size: .92rem;
  font-weight: 600;
  color: #333;
  transition: transform .2s;
}
.hktc-values__pill:hover {
  transform: translateY(-2px);
}
.hktc-values__letter {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
}

/* --- CTA Section --- */
.hktc-cta {
  background: linear-gradient(135deg, #1a0033 0%, #3b006b 100%);
  color: var(--white);
}
.hktc-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hktc-cta__text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .75rem;
  color: var(--white);
}
.hktc-cta__text p {
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 540px;
}
.hktc-cta__contact {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.hktc-cta__contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
}
.hktc-cta__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}
.hktc-cta__contact-item a {
  color: var(--gold);
  text-decoration: none;
}
.hktc-cta__contact-item a:hover {
  text-decoration: underline;
}
.hktc-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-width: 220px;
}

/* --- HKTC Responsive --- */
@media (max-width: 768px) {
  .hktc-hero {
    min-height: auto;
    padding: 6rem 1rem 2.5rem;
  }
  .hktc-hero__logo { max-width: 250px; }
  .hktc-hero__title { font-size: 1.75rem; }
  .hktc-hero__badges { flex-direction: column; gap: .75rem; }
  .hktc-section__title { font-size: 1.6rem; }
  .hktc-programs__grid,
  .hktc-why__grid {
    grid-template-columns: 1fr;
  }
  .hktc-cta__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hktc-cta__text p { margin-left: auto; margin-right: auto; }
  .hktc-cta__contact { align-items: center; }
  .hktc-cta__buttons { align-items: stretch; }
  .hktc-values__row { gap: .65rem; }
  .hktc-values__pill { font-size: .82rem; padding: .4rem 1rem .4rem .4rem; }
}

/* ============================================================
   EVENTS PAGE — Enhanced Redesign
   ============================================================ */

/* --- Buttons --- */
.ev-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .92rem;
  border-radius: 50px;
  padding: .7rem 1.5rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  font-family: inherit;
}
.ev-btn--register {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.ev-btn--register:hover {
  background: #3b006b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(75,0,130,.3);
}
.ev-btn--gold {
  background: var(--gold);
  color: #1a0033;
  border-color: var(--gold);
}
.ev-btn--gold:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,215,0,.35);
}
.ev-btn--outline-dark {
  background: transparent;
  color: #555;
  border-color: #ddd;
}
.ev-btn--outline-dark:hover { background: #f5f5f5; }
.ev-btn--full { width: 100%; justify-content: center; }
.ev-btn--lg { padding: .85rem 2rem; font-size: 1rem; }
.ev-btn:disabled { opacity: .6; cursor: not-allowed; }

/* --- Hero --- */
.ev-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #1a0033 0%, var(--primary) 50%, #3b006b 100%);
  padding: 5rem 1rem 3rem;
  overflow: hidden;
}
.ev-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,215,0,.06) 0%, transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(75,0,130,.2) 0%, transparent 50%);
  pointer-events: none;
}
.ev-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.ev-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .75rem;
}
.ev-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: .75rem;
}
.ev-hero__sub {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Label & Section Title --- */
.ev-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .35rem;
}
.ev-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* --- Services --- */
.ev-services { text-align: center; }
.ev-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.ev-svc-card {
  background: var(--white);
  border: 1px solid #e8e8ee;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.ev-svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(75,0,130,.06);
}
.ev-svc-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(75,0,130,.07);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.ev-svc-card h3 {
  font-size: 1.1rem;
  color: #1a1a2e;
  margin-bottom: .35rem;
  font-weight: 700;
}
.ev-svc-card__time {
  font-size: .85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: .5rem;
}
.ev-svc-card__desc {
  font-size: .85rem;
  color: #666;
  line-height: 1.55;
}
.ev-svc-loc {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #ede9fe;
  color: var(--primary);
  font-size: .88rem;
  font-weight: 600;
  padding: .65rem 1.25rem;
  border-radius: 50px;
}

/* --- Tabs --- */
.ev-tabs {
  display: flex;
  gap: .5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  padding-bottom: 0;
}
.ev-tabs__tab {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.25rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  border-radius: .5rem .5rem 0 0;
  transition: all .2s;
}
.ev-tabs__tab:hover { color: var(--primary); }
.ev-tabs__tab--active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--white);
}
.ev-tabs__count {
  background: var(--primary);
  color: var(--white);
  font-size: .72rem;
  padding: .1rem .55rem;
  border-radius: 999px;
  font-weight: 700;
}

/* --- Empty State --- */
.ev-empty {
  text-align: center;
  padding: 4rem 1rem;
}
.ev-empty__icon {
  color: #c4b5fd;
  margin-bottom: 1rem;
}
.ev-empty h3 {
  font-size: 1.2rem;
  color: var(--dark-gray);
  font-weight: 700;
  margin-bottom: .35rem;
}
.ev-empty p { color: var(--text-muted); font-size: .9rem; }

/* --- Event Cards --- */
.ev-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ev-card {
  background: var(--white);
  border: 1px solid #e8e8ee;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.ev-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(75,0,130,.06);
}
.ev-card--has-img {
  display: grid;
  grid-template-columns: 260px 1fr;
}
.ev-card__img {
  background-size: cover;
  background-position: center;
  min-height: 200px;
}
.ev-card__body {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem;
}
.ev-card__date-badge {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), #6b21a8);
  border-radius: 12px;
  padding: .75rem .5rem;
  color: var(--white);
}
.ev-card__day {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}
.ev-card__mon {
  font-size: .7rem;
  letter-spacing: .1em;
  font-weight: 700;
  opacity: .85;
}
.ev-card__yr {
  font-size: .65rem;
  opacity: .6;
}
.ev-card__content { flex: 1; min-width: 0; }
.ev-card__tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}
.ev-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 20px;
}
.ev-tag--type {
  background: rgba(75,0,130,.08);
  color: var(--primary);
}
.ev-tag--reg {
  background: rgba(39,174,96,.1);
  color: #27ae60;
}
.ev-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: .5rem;
  line-height: 1.3;
}
.ev-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .65rem;
}
.ev-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.ev-card__meta-item svg { color: var(--primary); flex-shrink: 0; }
.ev-card__meta-item--spots { color: #e67e22; font-weight: 600; }
.ev-card__meta-item--spots svg { color: #e67e22; }
.ev-card__desc {
  font-size: .88rem;
  color: #555;
  line-height: 1.6;
}
.ev-card__actions {
  flex-shrink: 0;
  align-self: center;
}

/* --- CTA --- */
.ev-cta {
  background: linear-gradient(135deg, #1a0033, var(--primary));
}

/* --- Modal Overlay --- */
.ev-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  padding: 1rem;
}
.ev-modal-overlay--open {
  opacity: 1;
  visibility: visible;
}
.ev-modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  transform: translateY(20px);
  transition: transform .3s;
}
.ev-modal-overlay--open .ev-modal { transform: translateY(0); }
.ev-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.ev-modal__close:hover { background: var(--border); }

/* Modal header */
.ev-modal__header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.ev-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(75,0,130,.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
}
.ev-modal__header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: .25rem;
}
.ev-modal__event-name {
  font-size: .88rem;
  color: var(--primary);
  font-weight: 600;
}

/* Form */
.ev-form-group {
  margin-bottom: 1rem;
}
.ev-form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: .35rem;
}
.ev-req { color: #e74c3c; }
.ev-form-opt { color: var(--text-muted); font-weight: 400; font-size: .78rem; }
.ev-form-group input {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .92rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  box-sizing: border-box;
}
.ev-form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(75,0,130,.08);
}
.ev-form-error {
  color: #e74c3c;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: .75rem;
  min-height: 1.2em;
}

/* Success */
.ev-modal__success-icon {
  text-align: center;
  margin-bottom: .75rem;
}
.ev-modal__dl-actions {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1.25rem;
}

/* --- Attendance Ticket Card --- */
.ev-ticket-wrap {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: .5rem;
}
.ev-ticket {
  background: var(--white);
  border-radius: 14px;
  border: 2px solid #e8e8ee;
  overflow: hidden;
  font-family: 'Poppins', -apple-system, sans-serif;
}
.ev-ticket__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--primary), #6b21a8);
  color: var(--white);
}
.ev-ticket__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--white);
  padding: 3px;
}
.ev-ticket__church {
  font-size: .85rem;
  font-weight: 700;
}
.ev-ticket__label {
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .8;
  font-weight: 600;
}
.ev-ticket__divider {
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold), var(--gold) 8px, transparent 8px, transparent 16px);
}
.ev-ticket__body {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  align-items: flex-start;
}
.ev-ticket__info { flex: 1; }
.ev-ticket__row {
  display: flex;
  gap: .5rem;
  margin-bottom: .45rem;
  font-size: .78rem;
  line-height: 1.4;
}
.ev-ticket__key {
  font-weight: 700;
  color: var(--text-muted);
  min-width: 50px;
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .04em;
  padding-top: 1px;
}
.ev-ticket__val {
  color: #1a1a2e;
  font-weight: 600;
}
.ev-ticket__code-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px dashed var(--border);
  font-size: .78rem;
}
.ev-ticket__code {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .08em;
  font-family: 'Courier New', monospace;
}
.ev-ticket__qr {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8e8ee;
  border-radius: 10px;
  padding: 4px;
  background: var(--white);
}
.ev-ticket__qr svg { width: 100% !important; height: 100% !important; }
.ev-ticket__footer {
  text-align: center;
  font-size: .65rem;
  color: var(--text-muted);
  padding: .5rem 1rem .75rem;
  border-top: 1px solid #f0f0f5;
  letter-spacing: .02em;
}

/* --- Tab button reset (was anchor, now button) --- */
.ev-tabs__tab {
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Skeleton loader --- */
@keyframes evSkShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.ev-sk {
  border-radius: 6px;
  background: linear-gradient(90deg, #ede9fe 25%, #f5f3ff 50%, #ede9fe 75%);
  background-size: 800px 100%;
  animation: evSkShimmer 1.4s ease infinite;
}
.ev-tab-skeleton { display: flex; flex-direction: column; gap: 1.25rem; }
.ev-skeleton-card {
  background: var(--white);
  border: 1px solid #e8e8ee;
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.ev-sk--date  { width: 72px; height: 82px; flex-shrink: 0; border-radius: 12px; }
.ev-sk-body   { flex: 1; display: flex; flex-direction: column; gap: .65rem; padding-top: .25rem; }
.ev-sk--tag   { width: 90px; height: 20px; }
.ev-sk--title { width: 60%; height: 22px; }
.ev-sk--meta  { width: 40%; height: 16px; }
.ev-sk--desc  { width: 90%; height: 14px; }

/* --- Fade transition for tab content --- */
#evTabContent { transition: opacity .2s; }

/* --- Events Responsive --- */
@media (max-width: 768px) {
  .ev-hero { min-height: auto; padding: 5.5rem 1rem 2.5rem; }
  .ev-hero__title { font-size: 1.75rem; }
  .ev-card--has-img { grid-template-columns: 1fr; }
  .ev-card__img { min-height: 160px; }
  .ev-card__body {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }
  .ev-card__date-badge {
    width: auto;
    display: flex;
    gap: .5rem;
    align-items: baseline;
    border-radius: 8px;
    padding: .5rem .75rem;
  }
  .ev-card__actions { align-self: stretch; }
  .ev-card__actions .ev-btn { width: 100%; justify-content: center; }
  .ev-ticket__body { flex-direction: column; }
  .ev-ticket__qr {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  .ev-modal { padding: 1.5rem; max-width: 100%; }
}

@media (max-width: 560px) {
  .ev-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    border-bottom: none;
  }

  .ev-tabs__tab {
    justify-content: center;
    min-height: 44px;
    padding: .8rem .75rem;
    border: 1px solid #e8e8ee;
    border-bottom: 1px solid #e8e8ee;
    border-radius: .875rem;
    background: var(--white);
  }

  .ev-tabs__tab--active {
    border-color: rgba(75,0,130,.18);
    box-shadow: 0 10px 24px rgba(75,0,130,.08);
  }
}

/* ===================================================================
   AUTH MODAL
   =================================================================== */
.auth-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(15,0,40,.7); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.auth-modal {
  background: var(--white);
  border-radius: 1.5rem;
  width: 100%; max-width: 440px;
  max-height: calc(100dvh - 2rem);
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 32px 80px rgba(75,0,130,.35), 0 8px 24px rgba(0,0,0,.2);
  overflow: hidden;
  animation: authSlideUp .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes authSlideUp {
  from { opacity: 0; transform: translateY(32px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* ── Branded header strip ── */
.auth-modal__header {
  background: linear-gradient(135deg, #4B0082 0%, #7c3aed 60%, #9333ea 100%);
  padding: 2rem 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  flex-shrink: 0;
}
.auth-modal__header-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .25rem;
}
.auth-modal__header-icon svg { color: #fde047; }
.auth-modal__header-title {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.2rem;
  color: #fff; margin: 0; letter-spacing: .01em;
}
.auth-modal__header-sub {
  font-size: .8rem; color: rgba(255,255,255,.7); margin: 0;
}

/* ── Close button ── */
.auth-modal__close {
  position: absolute; top: .875rem; right: .875rem;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.2); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: rgba(255,255,255,.9); cursor: pointer;
  transition: background .2s; line-height: 1; z-index: 1;
}
.auth-modal__close:hover { background: rgba(255,255,255,.35); color: #fff; }

/* ── Scrollable body ── */
.auth-modal__body {
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  flex: 1; padding: 1.5rem 1.75rem 1.75rem;
}

/* ── Tabs ── */
.auth-tabs {
  display: flex; gap: .375rem; margin-bottom: 1.5rem;
  background: #f3f4f6; border-radius: .75rem; padding: .3rem;
}
.auth-tab {
  flex: 1; padding: .55rem .5rem;
  border: none; background: none; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .9rem;
  color: #6b7280; border-radius: .5rem; transition: all .2s;
}
.auth-tab.active {
  color: var(--primary); background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

/* ── Messages ── */
.auth-msg {
  padding: .7rem 1rem; border-radius: .625rem; margin-bottom: 1rem;
  font-size: .85rem; font-weight: 500; display: flex; align-items: center; gap: .5rem;
}
.auth-msg--ok  { background: #dcfce7; color: #15803d; border-left: 3px solid #22c55e; }
.auth-msg--err { background: #fef2f2; color: #dc2626; border-left: 3px solid #ef4444; }

/* ── Form layout ── */
.auth-form { display: flex; flex-direction: column; gap: .875rem; }

/* ── Field with floating icon ── */
.auth-field { display: flex; flex-direction: column; gap: .3rem; }
.auth-field label {
  font-size: .78rem; font-weight: 600; color: #374151;
  text-transform: uppercase; letter-spacing: .06em;
}
.auth-field__wrap {
  position: relative; display: flex; align-items: center;
}
.auth-field__icon {
  position: absolute; left: .875rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: #9ca3af;
  display: flex; align-items: center;
}
.auth-field__toggle {
  position: absolute; right: .875rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #9ca3af;
  display: flex; align-items: center; padding: 0; transition: color .15s;
}
.auth-field__toggle:hover { color: var(--primary); }
.auth-field input {
  width: 100%; padding: .7rem 1rem .7rem 2.75rem;
  border: 1.5px solid #e5e7eb; border-radius: .625rem;
  font-size: .9375rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fafafa; color: var(--dark-gray);
}
.auth-field input.has-toggle { padding-right: 2.75rem; }
.auth-field input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
  background: #fff;
}

/* ── Submit button ── */
.auth-submit {
  width: 100%; padding: .8rem 1rem; font-size: 1rem; font-weight: 700;
  border-radius: .75rem; margin-top: .375rem;
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  border: none; color: #fff; cursor: pointer; font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 14px rgba(109,40,217,.35);
  transition: all .2s; letter-spacing: .01em;
}
.auth-submit:hover {
  background: linear-gradient(135deg, #5b21b6, #6d28d9);
  box-shadow: 0 6px 20px rgba(109,40,217,.45);
  transform: translateY(-1px);
}
.auth-submit:disabled {
  opacity: .65; transform: none; cursor: not-allowed;
}

/* ── Forgot / back links ── */
.auth-link {
  text-align: center; font-size: .85rem; margin-top: .25rem;
}
.auth-link a {
  color: var(--primary); text-decoration: none; font-weight: 500;
}
.auth-link a:hover { text-decoration: underline; }

/* ── Divider ── */
.auth-divider {
  display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0;
  color: #9ca3af; font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #e5e7eb;
}

/* ── Reset panel ── */
.auth-reset-title {
  font-size: 1rem; font-weight: 700; color: var(--primary);
  margin: 0 0 .375rem; display: flex; align-items: center; gap: .5rem;
}
.auth-reset-sub { font-size: .84rem; color: #6b7280; margin: 0 0 1.25rem; line-height: 1.5; }

/* ── Mobile ── */
@media (max-width: 480px) {
  .auth-modal { border-radius: 1.25rem; max-height: calc(100dvh - 1rem); }
  .auth-modal__header { padding: 1.5rem 1.25rem 1.25rem; }
  .auth-modal__body  { padding: 1.25rem 1.25rem 1.5rem; }
}

/* Nav user dropdown */
.nav-user-menu { position: relative; }
.nav-user-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border);
  cursor: pointer; overflow: hidden; padding: 0; background: #ede9fe;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s;
}
.nav-user-btn:hover { border-color: var(--primary); }
.nav-user-avatar { width: 100%; height: 100%; object-fit: cover; }
.nav-user-initials {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .875rem;
  color: var(--primary);
}
.nav-user-dropdown {
  position: absolute; top: calc(100% + .5rem); right: 0; width: 220px;
  background: var(--white); border-radius: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.15);
  border: 1px solid var(--border); display: none; z-index: 1000;
  overflow: hidden;
}
.nav-user-menu:hover .nav-user-dropdown,
.nav-user-menu:focus-within .nav-user-dropdown { display: block; }
.nav-user-dropdown__header {
  padding: 1rem; border-bottom: 1px solid #f3f4f6;
  display: flex; flex-direction: column;
}
.nav-user-dropdown__header strong { font-size: .875rem; color: var(--dark-gray); }
.nav-user-dropdown__header small { font-size: .75rem; color: var(--text-muted); margin-top: .125rem; }
.nav-user-dropdown__item {
  display: block; padding: .75rem 1rem; font-size: .875rem; color: var(--dark-gray);
  text-decoration: none; transition: background .15s;
}
.nav-user-dropdown__item:hover { background: var(--light-gray); }
.nav-user-dropdown__item--logout { color: #ef4444; }
.nav-user-dropdown__item--logout:hover { background: #fef2f2; }

/* Nav login button */
.nav-login-btn {
  display: flex; align-items: center; gap: .25rem;
  padding: .375rem .625rem; border: 1.5px solid var(--border); border-radius: 2rem;
  background: var(--white); cursor: pointer; font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: .7rem; color: var(--primary);
  transition: all .2s; white-space: nowrap;
}
@media (min-width: 1150px) {
  .nav-login-btn { font-size: .75rem; padding: .375rem .75rem; gap: .3rem; }
}
@media (min-width: 1360px) {
  .nav-login-btn { font-size: .8125rem; padding: .5rem 1rem; gap: .375rem; }
}
.nav-login-btn:hover { border-color: var(--primary); background: #ede9fe; }

/* Mobile user — sits inside the dark-purple mobile menu */
.mobile-menu__user {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem .875rem; margin-bottom: .25rem;
  background: rgba(255,255,255,.06); border-radius: .625rem;
  border: 1px solid rgba(255,255,255,.1);
}
.mobile-menu__user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.3); }
.mobile-menu__user-initials {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; color: #3b0764; font-size: .875rem;
  flex-shrink: 0;
}
.mobile-menu__user-name { font-weight: 600; font-size: .875rem; color: rgba(255,255,255,.9); }
.mobile-menu__login-btn {
  display: flex; align-items: center; justify-content: center; gap: .625rem;
  width: 100%; padding: .8rem 1rem;
  border: 1px solid rgba(253,224,71,.35);
  border-radius: .625rem;
  background: rgba(253,224,71,.08);
  color: #fde047;
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background .2s, border-color .2s;
  letter-spacing: .01em;
  margin-bottom: .25rem;
  -webkit-appearance: none;
  appearance: none;
}
.mobile-menu__login-btn:hover {
  background: rgba(253,224,71,.16);
  border-color: rgba(253,224,71,.6);
  color: #fff;
}

/* ===================================================================
   BLOG REDESIGN (blg-)
   =================================================================== */
/* Toolbar */
.blg-toolbar {
  background: var(--white); border-bottom: 1px solid #f3f4f6;
  padding: 1rem 0; position: sticky; top: 70px; z-index: 50;
}
.blg-toolbar__inner {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  flex-wrap: wrap;
}
.blg-pills {
  display: flex; gap: .5rem; flex-wrap: wrap; overflow-x: auto;
  scrollbar-width: none;
}
.blg-pills::-webkit-scrollbar { display: none; }
.blg-pill {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .5rem 1rem; border-radius: 2rem; font-size: .8125rem;
  font-weight: 600; color: #4b5563; background: #f3f4f6;
  text-decoration: none; white-space: nowrap; transition: all .2s;
}
.blg-pill:hover { background: #ede9fe; color: var(--primary); }
.blg-pill--active { background: var(--primary); color: var(--white); }
.blg-pill--active:hover { background: #3a006b; color: var(--white); }
.blg-pill__cnt {
  font-size: .6875rem; background: rgba(0,0,0,.1); padding: .125rem .375rem;
  border-radius: 1rem; line-height: 1;
}
.blg-pill--active .blg-pill__cnt { background: rgba(255,255,255,.2); }

/* Search */
.blg-search {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; background: var(--light-gray); border: 1.5px solid var(--border);
  border-radius: 2rem; min-width: 200px; transition: border-color .2s;
}
.blg-search:focus-within { border-color: var(--primary); background: var(--white); }
.blg-search svg { flex-shrink: 0; color: var(--text-muted); }
.blg-search input {
  border: none; background: transparent; flex: 1; font-size: .875rem;
  outline: none; font-family: inherit; min-width: 0;
}
.blg-search__clear {
  color: var(--text-muted); text-decoration: none; font-size: 1.25rem; line-height: 1;
}

/* Category tag */
.blg-cat-tag {
  display: inline-block; padding: .25rem .75rem; border-radius: 2rem;
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: #ede9fe; color: var(--primary);
}

/* Featured */
.blg-featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem;
  background: var(--white); border-radius: 1.25rem; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06); text-decoration: none; color: inherit;
  transition: box-shadow .3s, transform .3s;
}
.blg-featured:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1); transform: translateY(-2px); }
.blg-featured__img { position: relative; min-height: 320px; overflow: hidden; }
.blg-featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blg-featured:hover .blg-featured__img img { transform: scale(1.03); }
.blg-featured__placeholder {
  width: 100%; height: 100%; background: linear-gradient(135deg,var(--primary),#7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,.3);
}
.blg-featured__badge {
  position: absolute; top: 1rem; left: 1rem; padding: .375rem .875rem;
  background: var(--gold); color: #111; font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; border-radius: 2rem;
}
.blg-featured__body {
  padding: 2rem 2rem 2rem 0; display: flex; flex-direction: column;
  justify-content: center;
}
.blg-featured__title {
  font-family: 'Poppins', sans-serif; font-size: 1.625rem; font-weight: 800;
  color: var(--dark-gray); margin: .75rem 0; line-height: 1.3;
}
.blg-featured__excerpt { color: #4b5563; font-size: .9375rem; line-height: 1.7; margin-bottom: 1rem; }
.blg-featured__cta {
  font-weight: 700; color: var(--primary); font-size: .875rem; margin-top: auto;
}

/* Meta */
.blg-meta {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  font-size: .8125rem; color: var(--text-muted);
}
.blg-meta__author { display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; color: var(--dark-gray); }
.blg-meta__date { color: var(--text-muted); }
.blg-meta__stat { display: inline-flex; align-items: center; gap: .25rem; color: var(--text-muted); }

/* Grid */
.blg-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem; margin-top: 1.5rem;
}
.blg-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.04); transition: all .35s ease;
  display: flex; flex-direction: column;
}
.blg-card:hover {
  box-shadow: 0 12px 40px rgba(75,0,130,.1), 0 4px 12px rgba(0,0,0,.06);
  transform: translateY(-4px);
}
.blg-card__img-link { display: block; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.blg-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blg-card:hover .blg-card__img { transform: scale(1.06); }
.blg-card__placeholder {
  width: 100%; height: 100%; background: linear-gradient(135deg,var(--primary),#7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.3);
}
.blg-card__read-time {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  color: var(--white); font-size: .7rem; font-weight: 600;
  padding: .25rem .65rem; border-radius: 20px;
  letter-spacing: .03em;
}
.blg-card__body { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blg-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.blg-card__date { font-size: .75rem; color: var(--text-muted); }
.blg-card__title-link { text-decoration: none; color: inherit; }
.blg-card__title {
  font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--dark-gray); line-height: 1.4; margin-bottom: .5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; transition: color .2s;
}
.blg-card:hover .blg-card__title { color: var(--primary); }
.blg-card__excerpt {
  font-size: .875rem; color: var(--text-muted); line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: .85rem;
}
.blg-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .85rem; border-top: 1px solid #f0f0f2;
}
.blg-card__author {
  display: flex; align-items: center; gap: .5rem;
}
.blg-card__author-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--white); flex-shrink: 0;
}
.blg-card__author-name {
  font-size: .8rem; font-weight: 600; color: var(--dark-gray);
}
.blg-card__engage { display: flex; gap: .85rem; }
.blg-card__engage-item {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; color: var(--text-muted); font-weight: 500;
  transition: color .2s;
}
.blg-card__engage-item:hover { color: var(--primary); }
.blg-card__stats { display: flex; gap: .75rem; }

/* Pagination */
.blg-pagination {
  display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap;
}
.blg-pagination__btn {
  padding: .5rem 1rem; border-radius: .5rem; font-size: .875rem; font-weight: 600;
  color: #4b5563; background: #f3f4f6; text-decoration: none; transition: all .2s;
}
.blg-pagination__btn:hover { background: #ede9fe; color: var(--primary); }
.blg-pagination__btn--active { background: var(--primary); color: var(--white); }

/* ===================================================================
   BLOG – Social Feed Sections (YouTube, Facebook, Instagram, X)
   =================================================================== */
.blg-section-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.blg-section-header__icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.blg-section-header__icon--yt { background: #fee2e2; color: #dc2626; }
.blg-section-header__icon--ig {
  background: linear-gradient(135deg,#f9ce34,#ee2a7b,#6228d7); color: var(--white);
}
.blg-section-header__icon--fb { background: #dbeafe; color: #1877f2; }
.blg-section-header__icon--tw { background: #f3f4f6; color: #000; }
.blg-section-header__title { font-size: 1.5rem; font-weight: 700; color: #1f2937; margin: 0; }
.blg-section-header__subtitle { font-size: .9rem; color: var(--text-muted); margin: .25rem 0 0; }

/* Shared social card grid */
.blg-social-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.blg-social-card {
  position: relative; background: var(--white); border-radius: var(--radius-lg, .75rem);
  box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow: hidden;
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.blg-social-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }

/* Platform accent borders */
.blg-social-card--yt { border-top: 3px solid #dc2626; }
.blg-social-card--fb { border-top: 3px solid #1877f2; }
.blg-social-card--tw { border-top: 3px solid #000; }

.blg-social-card__media { position: relative; overflow: hidden; }
.blg-social-card__img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  transition: transform .3s;
}
.blg-social-card:hover .blg-social-card__img { transform: scale(1.05); }

.blg-social-card__body { padding: 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blg-social-card__text {
  font-size: .9rem; color: var(--dark-gray); line-height: 1.6; margin: 0 0 .75rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.blg-social-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: var(--text-muted); padding-top: .75rem; border-top: 1px solid #f3f4f6;
}
.blg-social-card__stats { display: flex; gap: .75rem; }
.blg-social-card__date { white-space: nowrap; }

/* Full-card clickable overlay link */
.blg-social-card__link {
  position: absolute; inset: 0; z-index: 1;
}

/* Follow buttons */
.blg-social-follow {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.6rem; border-radius: 2rem; font-weight: 600;
  font-size: .9rem; text-decoration: none; transition: all .25s;
}
.blg-social-follow--fb { background: #1877f2; color: var(--white); }
.blg-social-follow--fb:hover { background: #0d65d9; }
.blg-social-follow--tw { background: #000; color: var(--white); }
.blg-social-follow--tw:hover { background: #333; }

.blg-social-card--clickable { cursor: pointer; }

@media (max-width: 640px) {
  .blg-social-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
  YouTube Post View Modal (ytp-modal)
  =================================================================== */
.ytp-modal-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  padding: 1rem; backdrop-filter: blur(4px);
}
.ytp-modal-overlay--open { opacity: 1; visibility: visible; }

.ytp-modal {
  background: var(--white); border-radius: 1rem; max-width: 560px; width: 100%;
  max-height: 92vh; overflow: hidden; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: translateY(20px) scale(.97); transition: transform .3s ease;
  display: flex; flex-direction: column;
}
.ytp-modal-overlay--open .ytp-modal {
  transform: translateY(0) scale(1);
}
.ytp-modal__close {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: var(--white); border: none;
  font-size: 1.25rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s; line-height: 1;
}
.ytp-modal__close:hover { background: rgba(0,0,0,.8); }

.ytp-modal__inner {
  display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ── Image ── */
.ytp-modal__media {
  position: relative; flex-shrink: 0;
  background: #f8f8f8;
}
.ytp-modal__img {
  width: 100%; display: block;
  /* show full image, no cropping, no max-height — image scales naturally */
}

/* ── Details below image ── */
.ytp-modal__details {
  padding: 1.25rem 1.5rem 1.5rem; flex: 1;
}

.ytp-modal__header {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: 1rem; padding-bottom: .85rem;
  border-bottom: 1px solid #f0f0f0;
}
.ytp-modal__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fee2e2; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.ytp-modal__author {
  font-size: .95rem; font-weight: 700; color: #1f2937; margin: 0;
}
.ytp-modal__date { font-size: .78rem; color: var(--text-muted); display: block; margin-top: 1px; }

.ytp-modal__content {
  font-size: .9rem; line-height: 1.7; color: var(--dark-gray);
  margin-bottom: 1rem; white-space: pre-line;
  word-wrap: break-word;
}

.ytp-modal__stats {
  display: flex; gap: 1.25rem; margin-bottom: .85rem;
  padding: .65rem 0; border-top: 1px solid #f0f0f0;
}
.ytp-modal__stat {
  font-size: .85rem; color: #4b5563; font-weight: 500;
}

.ytp-modal__badge {
  display: inline-block; font-size: .7rem; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase; color: #dc2626;
  background: #fee2e2; padding: .25rem .7rem; border-radius: 2rem;
  margin-bottom: 1.1rem;
}

.ytp-modal__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.ytp-modal__btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.25rem; border-radius: .5rem; font-size: .85rem;
  font-weight: 600; text-decoration: none; transition: all .2s;
}
.ytp-modal__btn--primary { background: #dc2626; color: var(--white); }
.ytp-modal__btn--primary:hover { background: #b91c1c; }

/* ── Mobile: full-screen style ── */
@media (max-width: 640px) {
  .ytp-modal-overlay { padding: 0; align-items: flex-end; }
  .ytp-modal {
    max-width: 100%; max-height: 95vh;
    border-radius: 1rem 1rem 0 0;
    animation: ytpSlideUp .3s ease forwards;
  }
  @keyframes ytpSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .ytp-modal__details { padding: 1rem 1.15rem 1.25rem; }
  .ytp-modal__header { gap: .5rem; margin-bottom: .75rem; padding-bottom: .65rem; }
  .ytp-modal__avatar { width: 36px; height: 36px; }
  .ytp-modal__avatar svg { width: 18px; height: 18px; }
  .ytp-modal__author { font-size: .88rem; }
  .ytp-modal__content { font-size: .85rem; line-height: 1.65; }
  .ytp-modal__stat { font-size: .8rem; }
  .ytp-modal__btn { padding: .5rem 1rem; font-size: .8rem; }
}

/* ===================================================================
   BLOG POST (blg-post-)
   =================================================================== */
.blg-post-hero-meta {
  color: rgba(255,255,255,.85); font-size: .9375rem; margin-top: .75rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}
.blg-post-layout { max-width: 800px; margin: 0 auto; }
.blg-post__hero-img {
  width: 100%; height: 400px; object-fit: cover; border-radius: 1rem; margin-bottom: 2.5rem;
}

/* Engage bar */
.blg-engage {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding: 1.25rem 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.blg-like-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.25rem; border-radius: 2rem;
  border: 1.5px solid var(--border); background: var(--white); cursor: pointer;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .875rem;
  color: var(--text-muted); transition: all .2s;
}
.blg-like-btn:hover { border-color: #ef4444; color: #ef4444; }
.blg-like-btn--liked { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.blg-engage__comments {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .875rem; color: var(--text-muted); font-weight: 500;
}
.blg-engage__share { display: flex; gap: .5rem; margin-left: auto; }
.blg-share-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6;
  color: var(--text-muted); text-decoration: none; transition: all .2s;
}
.blg-share-icon:hover { background: #4267B2; color: var(--white); }
.blg-share-icon:nth-child(2):hover { background: #111; }
.blg-share-icon--wa:hover { background: #25D366; color: var(--white); }

/* Comments section */
.blg-comments { margin-top: 2.5rem; }
.blg-comments__heading {
  font-family: 'Poppins', sans-serif; font-size: 1.375rem; font-weight: 700;
  color: var(--dark-gray); margin-bottom: 1.5rem;
}
.blg-comments__count { color: var(--text-muted); font-weight: 400; }
.blg-comment-form-wrap {
  background: var(--light-gray); border-radius: 1rem; padding: 1.25rem; margin-bottom: 2rem;
}
.blg-comment-form__user {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem;
  font-size: .875rem; font-weight: 600; color: var(--dark-gray);
}
.blg-comment-form { display: flex; flex-direction: column; gap: .75rem; }
.blg-comment-input {
  padding: .625rem 1rem; border: 1.5px solid var(--border); border-radius: .625rem;
  font-size: .875rem; font-family: inherit;
}
.blg-comment-input:focus { outline: none; border-color: var(--primary); }
.blg-comment-textarea {
  padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: .625rem;
  font-size: .875rem; font-family: inherit; resize: vertical; min-height: 60px;
}
.blg-comment-textarea:focus { outline: none; border-color: var(--primary); }
.blg-comments__list { display: flex; flex-direction: column; gap: 1.25rem; }
.blg-comments__empty { color: var(--text-muted); font-size: .9375rem; text-align: center; padding: 2rem 0; }

/* Individual comment */
.blg-comment {
  padding: 1rem 1.25rem; background: var(--white); border-radius: .75rem;
  border: 1px solid #f3f4f6;
}
.blg-comment--new { animation: commentFadeIn .4s ease; }
@keyframes commentFadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.blg-comment--reply { margin-left: 2rem; background: #fafafa; }
.blg-comment__header { display: flex; align-items: center; gap: .625rem; margin-bottom: .5rem; }
.blg-comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.blg-comment-avatar--sm { width: 28px; height: 28px; }
.blg-comment-initials {
  width: 36px; height: 36px; border-radius: 50%; background: #ede9fe;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .8125rem;
  color: var(--primary); flex-shrink: 0;
}
.blg-comment-initials--sm { width: 28px; height: 28px; font-size: .6875rem; }
.blg-comment__name { font-size: .875rem; color: var(--dark-gray); }
.blg-comment__time { font-size: .75rem; color: var(--text-muted); display: block; }
.blg-comment__text { font-size: .9375rem; color: var(--dark-gray); line-height: 1.6; margin: 0; }
.blg-reply-toggle {
  background: none; border: none; cursor: pointer; font-size: .8125rem;
  color: var(--primary); font-weight: 600; margin-top: .5rem; padding: 0;
}
.blg-reply-toggle:hover { text-decoration: underline; }
.blg-reply-form {
  flex-direction: column; gap: .625rem; margin-top: .75rem; padding-left: 2.75rem;
}
.blg-replies { display: flex; flex-direction: column; gap: .75rem; margin-top: .75rem; }
.blg-back-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.blg-back-link:hover { text-decoration: underline; }

/* ===================================================================
   TESTIMONIALS (tst-)
   =================================================================== */
.tst-toolbar {
  background: var(--white); border-bottom: 1px solid #f3f4f6; padding: 1rem 0;
}
.tst-toolbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

/* Featured testimony */
.tst-featured {
  position: relative; background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-radius: 1.25rem; padding: 2.5rem; margin-bottom: 2rem;
  overflow: hidden;
}
.tst-featured__badge {
  display: inline-block; padding: .375rem .875rem;
  background: var(--gold); color: #111; font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; border-radius: 2rem;
  margin-bottom: 1rem;
}
.tst-featured__quote { position: absolute; top: 1.5rem; right: 2rem; opacity: .5; }
.tst-featured__title {
  font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800;
  color: var(--dark-gray); margin: .75rem 0;
}
.tst-featured__text { font-size: 1rem; color: var(--dark-gray); line-height: 1.8; margin-bottom: 1.5rem; }
.tst-featured__meta {
  display: flex; align-items: center; gap: 1rem; font-size: .875rem; color: var(--text-muted);
}
.tst-featured__meta strong { color: var(--dark-gray); }

/* Testimonial grid */
.tst-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}
.tst-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  transition: all .35s ease;
  display: flex; flex-direction: column;
}
.tst-card:hover {
  box-shadow: 0 12px 40px rgba(75,0,130,.1), 0 4px 12px rgba(0,0,0,.06);
  transform: translateY(-4px);
}
.tst-card--featured { border-left: 4px solid var(--gold); }
.tst-card__link {
  display: block; padding: 1.5rem 1.5rem 0; text-decoration: none; color: inherit;
  flex: 1;
}
.tst-card__header {
  display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem;
}
.tst-card__initials {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--white); flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(75,0,130,.25);
}
.tst-card__author-info { flex: 1; min-width: 0; }
.tst-card__name { font-size: .9rem; color: var(--dark-gray); display: block; font-weight: 700; }
.tst-card__time { font-size: .72rem; color: var(--text-muted); display: block; margin-top: .1rem; }
.tst-card__date { font-size: .75rem; color: var(--text-muted); display: block; }
.tst-card__cat-pill {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: .2rem .65rem; border-radius: 20px;
  background: #ede9fe; color: var(--primary); white-space: nowrap; flex-shrink: 0;
}
.tst-card__title {
  font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--dark-gray); margin-bottom: .5rem; line-height: 1.4;
  transition: color .2s;
}
.tst-card:hover .tst-card__title { color: var(--primary); }
.tst-card__content { position: relative; }
.tst-card__quote-mark {
  position: absolute; top: -2px; left: -2px; color: var(--primary); pointer-events: none;
}
.tst-card__text {
  font-size: .9rem; color: #4b5563; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; padding-left: .1rem;
}

/* Engagement bar */
.tst-card__engage {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.5rem; border-top: 1px solid #f0f0f2;
  margin-top: auto;
}
.tst-card__reactions { display: flex; gap: 1rem; }
.tst-card__reaction {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; color: var(--text-muted); font-weight: 500;
  transition: color .2s;
}
.tst-card__reaction--active { color: #ef4444; }
.tst-card__reaction:hover { color: var(--primary); }
.tst-card__read-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 700; color: var(--primary);
  text-decoration: none; padding: .35rem .85rem; border-radius: 20px;
  background: #ede9fe; transition: all .2s;
}
.tst-card__read-btn:hover { background: var(--primary); color: var(--white); }
.tst-card__read-more {
  font-size: .8125rem; font-weight: 600; color: var(--primary);
  text-decoration: none; white-space: nowrap;
}
.tst-card__read-more:hover { text-decoration: underline; }
.tst-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; margin-top: .75rem; border-top: 1px solid #f3f4f6;
}
.tst-card__stats { display: flex; gap: .75rem; }
.tst-featured .tst-card__stats { margin-top: 1rem; }

/* ===================================================================
   RESPONSIVE — Auth, Blog, Testimonials
   =================================================================== */
@media (max-width: 768px) {
  .blg-featured { grid-template-columns: 1fr; }
  .blg-featured__img { min-height: 200px; }
  .blg-featured__body { padding: 1.5rem; }
  .blg-featured__title { font-size: 1.25rem; }
  .blg-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .blg-toolbar__inner { flex-direction: column; align-items: stretch; }
  .blg-search { width: 100%; }
  .blg-engage { gap: .75rem; }
  .blg-engage__share { margin-left: 0; }
  .blg-comment--reply { margin-left: .75rem; }
  .blg-reply-form { padding-left: 0; }
  .blg-post__hero-img { height: 220px; }
  .tst-toolbar__inner { flex-direction: column; align-items: stretch; }
  .tst-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .tst-featured { padding: 1.5rem; }
  .tst-featured__title { font-size: 1.125rem; }
}

/* ===================================================================
   SINGLE TESTIMONY (tst-single-)
   =================================================================== */
.tst-single { max-width: 800px; margin: 0 auto; }
.tst-single__body {
  background: var(--white); border-radius: 1.25rem; padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.05); margin: 1.5rem 0;
}
.tst-single__text {
  font-size: 1.0625rem; color: var(--dark-gray); line-height: 1.9;
  margin-bottom: 2rem;
}
.tst-single__author {
  display: flex; align-items: center; gap: .75rem;
  padding-top: 1.5rem; border-top: 1px solid #f3f4f6;
}
.tst-single__author strong { display: block; color: var(--dark-gray); font-size: .9375rem; }

/* Card footer & read-more link */
.tst-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; margin-top: .75rem; border-top: 1px solid #f3f4f6;
}
.tst-card__stats { display: flex; gap: .75rem; }
.tst-card__read-more {
  font-size: .8125rem; font-weight: 600; color: var(--primary);
  text-decoration: none; white-space: nowrap;
}
.tst-card__read-more:hover { text-decoration: underline; }

/* Featured card stats */
.tst-featured .tst-card__stats { margin-top: 1rem; }

/* Prev / Next navigation */
.tst-single__nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.tst-single__nav-link {
  display: flex; flex-direction: column; gap: .25rem;
  text-decoration: none; max-width: 48%; transition: color .2s;
}
.tst-single__nav-link--next { text-align: right; margin-left: auto; }
.tst-single__nav-label { font-size: .75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tst-single__nav-title { font-size: .9375rem; color: var(--primary); font-weight: 600; line-height: 1.4; }
.tst-single__nav-link:hover .tst-single__nav-title { text-decoration: underline; }

@media (max-width: 768px) {
  .tst-single__body { padding: 1.5rem; }
  .tst-single__text { font-size: 1rem; }
  .tst-single__nav { flex-direction: column; }
  .tst-single__nav-link--next { text-align: left; margin-left: 0; }
  .tst-single__nav-link { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   APPLY MODAL — Ministry / Department Application
   ═══════════════════════════════════════════════════════ */
.apply-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.apply-modal--open { opacity: 1; visibility: visible; }
.apply-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
}
.apply-modal__dialog {
  position: relative; z-index: 1;
  width: 94%; max-width: 620px; max-height: 90vh;
  background: var(--white); border-radius: 16px;
  overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: translateY(20px);
  transition: transform .25s;
}
.apply-modal--open .apply-modal__dialog { transform: translateY(0); }
.apply-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  width: 36px; height: 36px; font-size: 22px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: background .2s;
}
.apply-modal__close:hover { background: rgba(255,255,255,.35); }

/* Header */
.apply-modal__header {
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
  color: var(--white); border-radius: 16px 16px 0 0;
}
.apply-modal__badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .75rem; border-radius: 20px;
  background: rgba(255,255,255,.22); color: var(--white); margin-bottom: .5rem;
}
.apply-modal__title { font-size: 1.4rem; margin: 0 0 .25rem; color: var(--white); }
.apply-modal__ministry { margin: 0; opacity: .85; font-size: .95rem; color: var(--white); }

/* Back button */
.apply-modal__back {
  background: none; border: none; color: rgba(255,255,255,.85); cursor: pointer;
  padding: 0; margin-bottom: .5rem; display: inline-flex; align-items: center; gap: .35rem;
  opacity: .85; font-size: .9rem;
}
.apply-modal__back:hover { opacity: 1; color: var(--white); }

/* Body */
.apply-modal__body { padding: 1.5rem 2rem; background: var(--white); }
.apply-modal__meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  padding-bottom: 1rem; border-bottom: 1px solid #e9d5ff; margin-bottom: 1rem;
}
.apply-modal__meta-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .9rem; color: #555;
}
.apply-modal__meta-item strong { color: #1a1a2e; }
.apply-modal__section { margin-bottom: 1rem; }
.apply-modal__section h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: #7c3aed; font-weight: 700; margin: 0 0 .4rem; }
.apply-modal__section p { margin: 0; color: #333; line-height: 1.6; font-size: .95rem; background: #f8f5ff; border-radius: 8px; padding: .75rem 1rem; border: 1px solid #e9d5ff; }

/* Footer */
.apply-modal__footer { padding: 1rem 2rem 1.5rem; text-align: right; background: var(--white); border-top: 1px solid #f3eeff; border-radius: 0 0 16px 16px; }

/* Buttons */
.apply-modal__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.8rem; border: none; border-radius: 8px;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .1s;
}
.apply-modal__btn:active { transform: scale(.97); }
.apply-modal__btn--primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 14px rgba(75,0,130,.25);
}
.apply-modal__btn--primary:hover { background: var(--primary-light); box-shadow: 0 6px 20px rgba(75,0,130,.35); }

/* Form */
.apply-modal__form { padding: 1.5rem 2rem; background: var(--white); }
.apply-modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.apply-modal__field { margin-bottom: .75rem; }
.apply-modal__field label {
  display: block; font-size: .85rem; font-weight: 600;
  color: #374151; margin-bottom: .3rem;
}
.apply-modal__field label .req { color: #ef4444; }
.apply-modal__field label small { font-weight: 400; color: #9ca3af; }
.apply-modal__field input,
.apply-modal__field select,
.apply-modal__field textarea {
  width: 100%; padding: .6rem .8rem;
  border: 1.5px solid #e0d0f0; border-radius: 8px;
  font-size: .9rem; font-family: inherit; color: #1a1a2e;
  background: #faf8ff;
  transition: border-color .2s, box-shadow .2s;
}
.apply-modal__field input:focus,
.apply-modal__field select:focus,
.apply-modal__field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(75,0,130,.08);
  background: var(--white);
}
.apply-modal__field input[type=file] { padding: .4rem; background: #faf8ff; }

/* Success */
.apply-modal__success-body {
  text-align: center; padding: 3rem 2rem;
}
.apply-modal__success-body svg { margin-bottom: 1rem; }
.apply-modal__success-body h2 { margin: 0 0 .5rem; color: #22c55e; }
.apply-modal__success-body p { color: #555; margin: 0 0 1.5rem; line-height: 1.6; }

@media (max-width: 600px) {
  .srm-filter__bar,
  .srm-filter__row { flex-direction: column; align-items: stretch; }
  .apply-modal__body,
  .apply-modal__form { padding: 1rem 1.25rem; }
  .apply-modal__footer { padding: .75rem 1.25rem 1.25rem; }
  .apply-modal__grid { grid-template-columns: 1fr; }
  .apply-modal__title { font-size: 1.15rem; }
}

/* ═══════════════════════════════════════════════════════
   POSTINGS PAGE — Ministry & Department Openings
   ═══════════════════════════════════════════════════════ */
.post-hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(135deg, #4B0082 0%, #2d0057 50%, #1a003a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(255,215,0,.08) 0%, transparent 65%);
  pointer-events: none;
}
.post-hero h1 {
  font-size: 2.2rem;
  margin: 0 0 .5rem;
  position: relative;
  color: var(--white);
}
.post-hero p {
  margin: 0;
  opacity: .9;
  font-size: 1.05rem;
  position: relative;
  color: var(--white);
}

/* Filters */
.post-filters {
  display: flex; justify-content: center; gap: .5rem;
  padding: 1.5rem 1rem; flex-wrap: wrap;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}
.post-filter {
  padding: .45rem 1.25rem; border: 1.5px solid #e0d0f0; border-radius: 25px;
  background: var(--white); font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .2s; color: #6b21a8;
  text-decoration: none; display: inline-block;
}
.post-filter:hover { border-color: var(--primary); color: var(--primary); background: rgba(75,0,130,.04); }
.post-filter--active {
  background: var(--primary); color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(75,0,130,.25);
}

/* Card Grid */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
  padding: 2rem 1.5rem calc(3rem + 80px);
}
@media (max-width: 767px) {
  .post-grid { padding-bottom: calc(2rem + 72px + env(safe-area-inset-bottom, 0px)); }
}

/* Posting Card */
.post-card {
  background: var(--white); border-radius: 16px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(75,0,130,.08);
  transition: transform .22s, box-shadow .22s;
  display: flex; flex-direction: column;
  border: 1px solid rgba(75,0,130,.06);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(75,0,130,.14); }
.post-card__accent {
  height: 5px;
  background: linear-gradient(90deg, var(--gf, #4B0082), var(--gt, #7c3aed));
}
.post-card__body { padding: 1.25rem 1.5rem; flex: 1; }
.post-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; }
.post-card__badge {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: .25rem .7rem; border-radius: 20px;
}
.post-card__badge--ministry { background: #f5e8ff; color: #6b21a8; }
.post-card__badge--department { background: #e8f0ff; color: #1d4ed8; }
.post-card__deadline { font-size: .8rem; color: #888; }
.post-card__deadline--soon { color: #ef4444; font-weight: 600; }
.post-card__title { font-size: 1.1rem; margin: 0 0 .25rem; color: #1a1a2e; font-weight: 700; }
.post-card__ministry { font-size: .85rem; color: #7c3aed; margin: 0 0 .75rem; font-weight: 600; }
.post-card__desc {
  font-size: .88rem; color: #555; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin: 0 0 1rem;
}
.post-card__meta {
  display: flex; gap: 1rem; font-size: .8rem; color: #888;
  margin-bottom: .5rem; flex-wrap: wrap;
}
.post-card__meta-item { display: flex; align-items: center; gap: .3rem; }
.post-card__footer { padding: .75rem 1.5rem 1.25rem; border-top: 1px solid #f3eeff; }
.post-card__apply {
  display: block; width: 100%; padding: .7rem;
  border: none; border-radius: 10px; font-size: .9rem; font-weight: 700;
  cursor: pointer; text-align: center;
  background: var(--primary); color: var(--white);
  transition: background .2s, box-shadow .2s;
  letter-spacing: .02em;
}
.post-card__apply:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 16px rgba(75,0,130,.3);
}

/* Empty state */
.post-empty {
  text-align: center; padding: 4rem 1rem; max-width: 500px; margin: 0 auto;
}
.post-empty svg { margin-bottom: 1rem; color: #c4b5fd; }
.post-empty h3 { color: #6b21a8; margin: 0 0 .5rem; font-size: 1.2rem; }
.post-empty p { color: #888; font-size: .9rem; }

/* Sidebar posting card (ministry/department pages) */
.mside__posting {
  background: var(--white); border-radius: 12px; padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.08); margin-bottom: 1rem;
  border-left: 4px solid var(--gf, #b8860b);
}
.mside__posting-title { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; color: #111; }
.mside__posting-meta { font-size: .8rem; color: #777; margin-bottom: .6rem; }
.mside__posting-meta span { margin-right: .75rem; }
.mside__posting-desc {
  font-size: .85rem; color: #555; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: .75rem;
}
.mside__posting-btn {
  display: inline-block; padding: .45rem 1.2rem;
  background: var(--gf, #b8860b); color: var(--white);
  border: none; border-radius: 6px; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: filter .2s;
}
.mside__posting-btn:hover { filter: brightness(1.1); }

@media (max-width: 768px) {
  .post-hero h1 { font-size: 1.6rem; }
  .post-grid { grid-template-columns: 1fr; padding: 0 1rem 2rem; }
}

/* ───────────────────────────────────────────────────────────
   CONSENT CHECKBOX
   ─────────────────────────────────────────────────────────── */
.consent-check {
  display: flex; align-items: flex-start; gap: .5rem;
  margin: 1rem 0; font-size: .82rem; color: #4b5563; line-height: 1.45;
}
.consent-check input[type="checkbox"] {
  margin-top: 3px; min-width: 16px; min-height: 16px; accent-color: var(--primary); cursor: pointer;
}
.consent-check label { cursor: pointer; }
.consent-check a { color: var(--primary); text-decoration: underline; }
/* compact variant for small forms */
.consent-check--sm { font-size: .75rem; margin: .5rem 0; }
/* event modal variant */
.ev-consent { display:flex; align-items:flex-start; gap:.5rem; margin:.75rem 0; font-size:.8rem; color:#4b5563; line-height:1.4; }
.ev-consent input[type="checkbox"] { margin-top:2px; min-width:15px; min-height:15px; accent-color:var(--primary); cursor:pointer; }
.ev-consent label { cursor:pointer; }
/* newsletter inline consent */
.nl-consent { display:flex; align-items:flex-start; gap:.4rem; margin-top:.35rem; font-size:.7rem; color:var(--text-muted); line-height:1.35; }
.nl-consent input[type="checkbox"] { margin-top:2px; min-width:13px; min-height:13px; accent-color:#a855f7; cursor:pointer; }
.nl-consent label { cursor:pointer; }

/* ================================
   eBOOK STORE — Hero
   ================================ */
.bk-hero {
  background: linear-gradient(135deg, #1a0033 0%, var(--primary) 50%, var(--primary-dark) 100%);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.bk-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.bk-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .bk-hero__inner { grid-template-columns: 1fr 380px; }
}
.bk-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,215,0,.15);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255,215,0,.25);
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}
.bk-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .bk-hero__title { font-size: 2.75rem; } }
.bk-hero__subtitle {
  color: rgba(255,255,255,.75);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 520px;
}
.bk-hero__stats {
  display: flex;
  gap: 2rem;
}
.bk-hero__stat { text-align: center; }
.bk-hero__stat-num {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
}
.bk-hero__stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.bk-hero__visual { display: none; }
@media (min-width: 768px) {
  .bk-hero__visual { display: flex; justify-content: center; align-items: center; }
}
.bk-hero__books-stack {
  position: relative;
  width: 320px;
  height: 280px;
}
.bk-hero__book-cover {
  position: absolute;
  width: 160px;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  transition: transform .3s ease;
}
.bk-hero__book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bk-hero__book-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
}
.bk-hero__book-cover--1 { top: 0; left: 0; z-index: 3; transform: rotate(-8deg); }
.bk-hero__book-cover--2 { top: 10px; left: 80px; z-index: 2; transform: rotate(3deg); }
.bk-hero__book-cover--3 { top: 25px; left: 150px; z-index: 1; transform: rotate(12deg); }
.bk-hero__books-stack:hover .bk-hero__book-cover--1 { transform: rotate(-12deg) translateY(-6px); }
.bk-hero__books-stack:hover .bk-hero__book-cover--2 { transform: rotate(0deg) translateY(-10px); }
.bk-hero__books-stack:hover .bk-hero__book-cover--3 { transform: rotate(16deg) translateY(-4px); }

/* ================================
   eBOOK STORE — Category Pills
   ================================ */
.bk-categories {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 70px;
  z-index: 90;
}
.bk-categories__row {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: .25rem 0;
}
.bk-categories__row::-webkit-scrollbar { display: none; }
.bk-categories__pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--dark-gray);
  background: var(--light-gray);
  border: 1px solid var(--border);
  white-space: nowrap;
  text-decoration: none;
  transition: all .2s ease;
  font-family: 'Inter', sans-serif;
}
.bk-categories__pill:hover {
  background: #ede9fe;
  color: var(--primary);
  border-color: var(--primary-light);
}
.bk-categories__pill--active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.bk-categories__pill--active:hover {
  background: var(--primary-dark);
  color: var(--white);
}
.bk-categories__count {
  background: rgba(0,0,0,.1);
  padding: .1rem .4rem;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 600;
}
.bk-categories__pill--active .bk-categories__count {
  background: rgba(255,255,255,.25);
}

/* ================================
   eBOOK STORE — Search
   ================================ */
.bk-search {
  padding: 1.5rem 0 .5rem;
}
.bk-search__form {
  display: flex;
  gap: .75rem;
  align-items: center;
}
.bk-search__input-wrap {
  position: relative;
  flex: 1;
  max-width: 500px;
}
.bk-search__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .875rem;
}
.bk-search__input {
  width: 100%;
  padding: .65rem 1rem .65rem 2.5rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: .9375rem;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  transition: border-color .2s;
}
.bk-search__input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(139,92,246,.1);
}
.bk-search__clear {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .875rem;
  text-decoration: none;
}
.bk-search__btn {
  border-radius: 50px;
  padding: .65rem 1.5rem;
}
.bk-search__results-info {
  margin-top: .75rem;
  font-size: .875rem;
  color: var(--text-muted);
}

/* ================================
   eBOOK STORE — Section Headers
   ================================ */
.bk-section-header {
  margin-bottom: 1.5rem;
}
.bk-section-header__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark-gray);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.bk-section-header__title i { color: var(--primary); font-size: 1.125rem; }
.bk-section-header__sub {
  color: var(--text-muted);
  font-size: .9375rem;
  margin-top: .25rem;
}

/* ================================
   eBOOK STORE — Featured Spotlight
   ================================ */
.bk-spotlight {
  padding: 2.5rem 0 1rem;
}
.bk-spotlight__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .bk-spotlight__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .bk-spotlight__grid { grid-template-columns: repeat(3, 1fr); } }

.bk-spotlight__card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all .3s ease;
}
.bk-spotlight__card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.bk-spotlight__cover {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bk-spotlight__cover img {
  max-height: 220px;
  max-width: 85%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.15));
}
.bk-spotlight__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #1a0033;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.bk-spotlight__info { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.bk-spotlight__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--dark-gray);
  margin-bottom: .25rem;
  line-height: 1.3;
}
.bk-spotlight__author {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.bk-spotlight__meta {
  display: flex;
  gap: 1rem;
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.bk-spotlight__meta i { color: var(--primary-light); margin-right: .2rem; }
.bk-spotlight__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.book-cover-stack {
  position: relative;
  width: min(170px, 84%);
  aspect-ratio: 3 / 4;
  pointer-events: auto;
}

.book-cover-stack--wide {
  width: min(186px, 80%);
}

.book-cover-stack__sheet {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(237,233,254,.92));
  box-shadow: 0 18px 32px rgba(15, 23, 42, .18);
  transition: transform .3s ease;
}

.book-cover-stack__sheet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.book-cover-stack__sheet--back {
  transform: translate(20px, 10px) rotate(8deg) scale(.96);
  opacity: .92;
  z-index: 1;
}

.book-cover-stack__sheet--front {
  z-index: 2;
}

/* ================================
   eBOOK STORE — Book Cards Grid
   ================================ */
.bk-grid-section { padding: 1.5rem 0 3rem; }
.bk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 480px) { .bk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .bk-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .bk-grid { grid-template-columns: repeat(4, 1fr); } }

.bk-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
}
.bk-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.bk-card__link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.bk-card__cover {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bk-card__cover img {
  max-height: 180px;
  max-width: 85%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.12));
  transition: transform .3s ease;
}
.bk-card:hover .bk-card__cover img { transform: scale(1.05); }
.bk-spotlight__cover .book-cover-stack__sheet img,
.bk-card__cover .book-cover-stack__sheet img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  filter: none;
}
.bk-spotlight__card:hover .book-cover-stack__sheet--front,
.bk-card:hover .book-cover-stack__sheet--front {
  transform: translate(-4px, -2px) rotate(-2deg);
}
.bk-spotlight__card:hover .book-cover-stack__sheet--back,
.bk-card:hover .book-cover-stack__sheet--back {
  transform: translate(26px, 12px) rotate(10deg) scale(.96);
}
.bk-card:hover .book-cover-stack__sheet img {
  transform: none;
}
.bk-card__cover .book-cover-stack {
  width: min(148px, 76%);
}
.bk-card__placeholder {
  font-size: 3.5rem;
  color: var(--primary-light);
  opacity: .4;
}
.bk-card__badge {
  position: absolute;
  top: .5rem;
  font-size: .625rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.bk-card__badge--gold {
  right: .5rem;
  background: var(--gold);
  color: #1a0033;
}
.bk-card__badge--free {
  left: .5rem;
  background: #16a34a;
  color: var(--white);
}
.bk-card__badge--hardcover {
  left: .5rem;
  bottom: .5rem;
  top: auto;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.bk-card__body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bk-card__cat {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .35rem;
}
.bk-card__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--dark-gray);
  line-height: 1.3;
  margin-bottom: .25rem;
}
.bk-card__author {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.bk-card__desc {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: .75rem;
  flex: 1;
}
.bk-card__meta {
  display: flex;
  gap: .75rem;
  font-size: .7rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.bk-card__meta i { color: var(--primary-light); margin-right: .15rem; }
.bk-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  gap: .5rem;
}

/* eBOOK shared price + CTA */
.bk-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
}
.bk-price--free {
  color: #16a34a;
  background: #dcfce7;
  padding: .15rem .6rem;
  border-radius: 50px;
  font-size: .8125rem;
}
.bk-price-options {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.bk-price-options .bk-price {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  font-weight: 700;
}
.bk-price-options .bk-price i {
  font-size: .7rem;
  opacity: .7;
}
.bk-price--hardcover {
  color: #ea580c;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.bk-stock {
  font-size: .625rem;
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.bk-stock--in {
  background: #dcfce7;
  color: #16a34a;
}
.bk-stock--out {
  background: #fee2e2;
  color: #dc2626;
}
.bk-cta {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary-light);
  transition: color .2s;
}
.bk-card:hover .bk-cta,
.bk-spotlight__card:hover .bk-cta { color: var(--primary); }

/* eBOOK empty state */
.bk-empty {
  text-align: center;
  padding: 4rem 1rem;
}
.bk-empty__icon {
  font-size: 3.5rem;
  color: var(--primary-light);
  opacity: .3;
  margin-bottom: 1rem;
}

/* ================================
   eBOOK STORE — Editorial Refresh
   ================================ */
.page-books .bk-hero {
  padding: 4.25rem 0 3.75rem;
  background:
    radial-gradient(circle at top left, rgba(255, 215, 0, .14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(167, 139, 250, .24), transparent 34%),
    linear-gradient(135deg, #120427 0%, #3d096b 46%, #24053f 100%);
}

.page-books .bk-hero__inner {
  gap: clamp(1.5rem, 4vw, 3rem);
}

.page-books .bk-hero__title {
  max-width: 11ch;
  letter-spacing: -.03em;
}

.page-books .bk-hero__subtitle {
  max-width: 560px;
}

.page-books .bk-hero__stats {
  flex-wrap: wrap;
  gap: .85rem;
}

.page-books .bk-hero__stat {
  min-width: 92px;
  padding: .9rem 1rem;
  border-radius: 20px;
  background: rgba(9, 12, 38, .26);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
}

.page-books .bk-hero__visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.page-books .bk-hero__books-stack {
  width: min(100%, 340px);
  height: 300px;
}

.page-books .bk-hero__book-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .55rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}

.page-books .bk-hero__book-cover .book-cover-stack {
  width: min(148px, 100%);
}

.page-books .bk-hero__book-pill,
.page-books .bk-spotlight__cover-note,
.page-books .bk-card__cover-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .32rem .65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.page-books .bk-hero__book-pill {
  position: absolute;
  left: 50%;
  bottom: .65rem;
  transform: translateX(-50%);
  white-space: nowrap;
}

.page-books .bk-spotlight__grid {
  gap: 1.4rem;
}

.page-books .bk-spotlight__card,
.page-books .bk-card {
  border-color: rgba(76, 29, 149, .08);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.page-books .bk-spotlight__cover,
.page-books .bk-card__cover {
  background: radial-gradient(circle at top left, rgba(139, 92, 246, .18), rgba(255, 255, 255, .96) 58%);
}

.page-books .bk-spotlight__cover-note,
.page-books .bk-card__cover-note {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
}

.page-books .bk-spotlight__meta {
  flex-wrap: wrap;
}

.page-books .bk-card__body {
  gap: .35rem;
}

.page-books .bk-card__title {
  min-height: 2.6em;
}

.page-books .bk-card__footer {
  align-items: flex-start;
  gap: .75rem;
}

@media (max-width: 767.98px) {
  .page-books .bk-hero {
    padding: 3rem 0 2.75rem;
  }

  .page-books .bk-hero__title {
    font-size: 2rem;
  }

  .page-books .bk-hero__stat {
    flex: 1 1 calc(50% - .65rem);
  }

  .page-books .bk-hero__books-stack {
    width: 280px;
    height: 220px;
    margin: 0 auto;
  }

  .page-books .bk-hero__book-cover {
    width: 118px;
    height: 170px;
  }

  .page-books .bk-hero__book-cover--1 {
    top: 0;
    left: 10px;
  }

  .page-books .bk-hero__book-cover--2 {
    top: 10px;
    left: 82px;
  }

  .page-books .bk-hero__book-cover--3 {
    top: 24px;
    left: 154px;
  }

  .page-books .bk-search__form {
    flex-direction: column;
    align-items: stretch;
  }

  .page-books .bk-search__input-wrap {
    max-width: none;
  }

  .page-books .bk-search__btn {
    width: 100%;
  }

  .page-books .bk-spotlight__price-row,
  .page-books .bk-card__footer {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ================================
   BOOK DETAIL — Editorial Refresh
   ================================ */
.page-book-detail {
  background: linear-gradient(180deg, #f5f2fb 0, #ffffff 28rem);
}

.page-book-detail .bd-hero {
  padding: 2rem 0 2.25rem;
}

.page-book-detail .bd-hero__shell {
  position: relative;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(245, 243, 255, .88));
  border: 1px solid rgba(139, 92, 246, .08);
  box-shadow: 0 26px 56px rgba(15, 23, 42, .1);
  overflow: hidden;
}

.page-book-detail .bd-hero__shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, .12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(251, 191, 36, .12), transparent 24%);
  pointer-events: none;
}

.page-book-detail .bd-hero__grid {
  position: relative;
  z-index: 1;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.page-book-detail .bd-hero__cover-wrap {
  gap: 1.2rem;
}

.page-book-detail .bd-hero__cover-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.page-book-detail .bd-hero__cover {
  border-radius: 24px;
  border: 1px solid rgba(139, 92, 246, .1);
  box-shadow: 0 22px 52px rgba(15, 23, 42, .18);
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(237, 233, 254, .75));
}

.page-book-detail .bd-hero__cover-alt {
  margin-top: -2.75rem;
  margin-right: -.25rem;
  width: min(72%, 220px);
  backdrop-filter: blur(12px);
}

.page-book-detail .bd-hero__cover-caption {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 16px 30px rgba(15, 23, 42, .08);
}

.page-book-detail .bd-hero__cover-caption-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, .1);
  color: #4c1d95;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-book-detail .bd-hero__cover-caption-text {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.page-book-detail .bd-hero__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -.03em;
}

.page-book-detail .bd-hero__social {
  justify-content: space-between;
  flex-wrap: wrap;
}

.page-book-detail .bd-hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: -.15rem 0 1.35rem;
}

.page-book-detail .bd-hero__highlight {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, .08);
  color: #4c1d95;
  font-size: .75rem;
  font-weight: 600;
}

.page-book-detail .bd-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  padding: 0;
  border: none;
}

.page-book-detail .bd-stat {
  padding: .85rem .95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(148, 163, 184, .16);
  color: var(--dark-gray);
}

.page-book-detail .bd-purchase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.page-book-detail .bd-purchase__card,
.page-book-detail .bd-section,
.page-book-detail .bd-sidebar-card,
.page-book-detail .bd-reviews__summary,
.page-book-detail .bd-reviews__form-wrap,
.page-book-detail .bd-review-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(148, 163, 184, .16);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
  border-radius: 20px;
}

.page-book-detail .bd-section {
  padding: 1.35rem 1.4rem;
}

.page-book-detail .bd-content {
  padding-top: 0;
}

.page-book-detail .bd-description__text--collapsed::after {
  background: linear-gradient(transparent, #fff);
}

@media (max-width: 992px) {
  .page-book-detail .bd-content__grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .page-book-detail .bd-hero {
    padding: 1.25rem 0 1.5rem;
  }

  .page-book-detail .bd-hero__shell {
    padding: 1rem;
    border-radius: 24px;
  }

  .page-book-detail .bd-hero__cover-wrap {
    max-width: min(88vw, 320px);
    margin: 0 auto;
  }

  .page-book-detail .bd-hero__cover-alt {
    width: 60%;
    margin-top: -2.25rem;
  }
}

@media (max-width: 576px) {
  .page-book-detail .bd-hero__title {
    font-size: 1.45rem;
  }

  .page-book-detail .bd-hero__highlight {
    width: 100%;
    justify-content: flex-start;
  }

  .page-book-detail .bd-section {
    padding: 1rem;
  }

  .page-book-detail .bd-share-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.bk-empty h3 { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--dark-gray); margin-bottom: .5rem; }
.bk-empty p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* eBOOK pagination */
.bk-pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.bk-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .875rem;
  color: var(--dark-gray);
  text-decoration: none;
  transition: all .2s;
  background: var(--white);
}
.bk-pagination__btn:hover { border-color: var(--primary); color: var(--primary); }
.bk-pagination__btn--active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ================================
   CHAPTER READER
   ================================ */
body.page-reader .navbar,
body.page-reader .footer-pro,
body.page-reader .scroll-top-btn {
  display: none !important;
}

body.page-reader {
  background: #f8f7fc;
}

body.page-reader[data-reader-theme="sepia"] {
  background: #f5f0e8;
}

body.page-reader[data-reader-theme="dark"] {
  background: #1e293b;
}

body.page-reader[data-reader-theme="night"] {
  background: #0f172a;
}

.reader {
  display: flex;
  min-height: calc(100vh - 70px);
  background: #f8f7fc;
  --reader-body-color: #1f2937;
  --reader-heading-color: var(--dark-gray);
  --reader-strong-color: var(--dark-gray);
  --reader-accent-color: var(--primary);
  --reader-link-color: var(--primary);
  --reader-link-hover-color: var(--primary-light);
  --reader-divider-color: var(--border);
  --reader-blockquote-bg: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  --reader-blockquote-text: var(--dark-gray);
  --reader-blockquote-border: var(--primary);
  --reader-blockquote-quote: rgba(109, 40, 217, .4);
  --reader-settings-label-color: #64748b;
  --reader-settings-chip-bg: #f8fafc;
  --reader-settings-chip-border: #e2e8f0;
  --reader-settings-chip-color: #475569;
  --reader-settings-chip-hover-bg: #ede9fe;
  --reader-settings-chip-hover-border: #a78bfa;
  --reader-settings-chip-hover-color: #7c3aed;
  --reader-settings-active-bg: #8b5cf6;
  --reader-settings-active-border: #8b5cf6;
  --reader-settings-active-color: var(--white);
  --reader-nav-bg: var(--white);
  --reader-nav-border: var(--border);
  --reader-nav-color: var(--dark-gray);
  --reader-nav-hover-bg: #faf7ff;
  --reader-nav-hover-border: var(--primary-light);
  --reader-nav-label-color: #566171;
  --reader-nav-ch-color: var(--dark-gray);
  --reader-nav-icon-color: var(--primary-light);
  --reader-toc-time-color: var(--text-muted);
  --reader-toc-locked-color: #d1d5db;
  --reader-toc-free-color: #16a34a;
}

body.page-reader .reader {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Sidebar ─────────────────────── */
.reader__sidebar {
  width: 300px;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,.3) transparent;
}

body.page-reader .reader__sidebar {
  top: 0;
  height: 100vh;
  height: 100dvh;
}

@media (max-width: 960px) {
  .reader__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1100;
    width: 280px;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
    height: 100dvh;
  }
  .reader__sidebar--open {
    transform: translateX(0);
    box-shadow: 6px 0 32px rgba(0,0,0,.18);
  }
}

/* Sidebar backdrop */
.reader__sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1090;
  opacity: 0;
  transition: opacity .28s ease;
}
.reader__sidebar-backdrop--visible {
  display: block;
  opacity: 1;
}

.reader__sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--border);
  min-height: 54px;
}
.reader__back {
  font-size: .8125rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color .15s;
}
.reader__back:hover { color: var(--primary-dark); }
.reader__sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: .25rem .4rem;
  border-radius: var(--radius);
  transition: background .15s;
}
.reader__sidebar-close:hover { background: var(--light-gray); }
@media (max-width: 960px) { .reader__sidebar-close { display: block; } }

.reader__book-info {
  padding: 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.reader__book-media {
  position: relative;
  width: 108px;
  margin: 0 auto .75rem;
  aspect-ratio: 3 / 4;
}
.reader__book-media--dual {
  width: 122px;
}
.reader__book-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15,23,42,.18);
  background: var(--reader-nav-bg);
  margin: 0;
}
.reader__book-thumb--back {
  transform: translate(18px, 8px) rotate(9deg) scale(.95);
  opacity: .92;
  z-index: 1;
}
.reader__book-thumb--front {
  z-index: 2;
}
.reader__book-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--text-muted);
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}
.reader__book-cover-note {
  margin-top: .5rem;
  font-size: .6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.reader__book-title {
  font-family: 'Poppins', sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--dark-gray);
  line-height: 1.3;
  margin-bottom: .25rem;
}
.reader__book-author {
  font-size: .8125rem;
  color: var(--text-muted);
}
.reader__purchase-cta { margin-top: 1rem; }
.reader__preview-note {
  font-size: .75rem;
  color: #d97706;
  background: #fffbeb;
  padding: .4rem .75rem;
  border-radius: var(--radius);
  margin-bottom: .5rem;
}

/* Progress */
.reader__progress {
  padding: .75rem 1.125rem;
  border-bottom: 1px solid var(--border);
}
.reader__progress-bar {
  height: 5px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: .35rem;
}
.reader__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 50px;
  transition: width .4s ease;
}
.reader__progress-text {
  font-size: .6875rem;
  color: var(--text-muted);
}

/* Table of Contents */
.reader__toc { flex: 1; overflow-y: auto; padding: .375rem 0; }
.reader__toc-title {
  font-family: 'Poppins', sans-serif;
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding: .75rem 1.125rem .4rem;
}
.reader__toc-list { list-style: none; padding: 0; margin: 0; }
.reader__toc-item { border-bottom: 1px solid rgba(0,0,0,.04); }
.reader__toc-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .625rem 1.125rem;
  text-decoration: none;
  color: var(--dark-gray);
  font-size: .8rem;
  transition: background .12s;
}
.reader__toc-link:hover { background: #f5f3ff; }
.reader__toc-item--active .reader__toc-link {
  background: #f0eeff;
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: calc(1.125rem - 3px);
  font-weight: 600;
}
.reader__toc-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  color: var(--text-muted);
  font-size: .625rem;
  font-weight: 700;
  border-radius: 50%;
}
.reader__toc-item--active .reader__toc-num {
  background: var(--primary);
  color: var(--white);
}
.reader__toc-ch-title { flex: 1; line-height: 1.35; }
.reader__toc-time { font-size: .6875rem; color: var(--reader-toc-time-color); flex-shrink: 0; }
.reader__toc-lock { font-size: .625rem; color: var(--reader-toc-locked-color); flex-shrink: 0; }
.reader__toc-link--locked { color: var(--reader-toc-locked-color); cursor: not-allowed; }
.reader__toc-item--locked .reader__toc-num { background: #f3f4f6; color: #d1d5db; }

/* Section items (front_matter, intro, conclusion) */
.reader__toc-item--section > .reader__toc-link,
.reader__toc-item--section > .reader__toc-link--locked {
  font-style: normal;
  font-weight: 500;
  color: var(--primary);
  font-size: .8rem;
  background: rgba(75,0,130,.04);
  border-left: 2px solid rgba(75,0,130,.2);
  padding-left: calc(1.125rem - 2px);
}
.reader__toc-item--section > .reader__toc-link:hover { background: rgba(75,0,130,.08); }
.reader__toc-item--section.reader__toc-item--active > .reader__toc-link {
  background: #f0eeff;
  border-left: 3px solid var(--primary);
  padding-left: calc(1.125rem - 3px);
  font-weight: 600;
}
.reader__toc-section-icon {
  font-size: .7rem;
  color: var(--primary);
  opacity: .7;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

/* Chapter-count divider */
.reader__toc-divider {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.125rem .3rem;
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  border-bottom: none;
  pointer-events: none;
}
.reader__toc-divider::before,
.reader__toc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,.1);
}
.reader__toc-divider--end {
  padding: .2rem 0 0;
}
.reader__toc-divider--end::before { display: block; }
.reader__toc-divider--end span { display: none; }

.reader__toc-item--completed .reader__toc-num { background: #22c55e; color: #fff; }
.reader__toc-item--completed .reader__toc-ch-title { color: #22c55e; }
.reader__toc-free { font-size: .625rem; color: var(--reader-toc-free-color); flex-shrink: 0; }

/* ── Main content area ───────────── */
.reader__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #f8f7fc;
}

.reader__topbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 70px;
  z-index: 80;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

body.page-reader .reader__topbar {
  top: 0;
}

@media (max-width: 960px) {
  .reader__topbar {
    top: 0;
    padding: .5rem 1rem;
  }
}

.reader__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .4rem .6rem;
  font-size: 1rem;
  color: var(--dark-gray);
  cursor: pointer;
  transition: background .15s;
}
.reader__menu-btn:hover { background: var(--light-gray); }
@media (max-width: 960px) { .reader__menu-btn { display: flex; } }

.reader__topbar-info { flex: 1; overflow: hidden; }
.reader__topbar-title {
  font-family: 'Poppins', sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--dark-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.reader__topbar-ch {
  font-size: .6875rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reader__topbar-actions { display: flex; gap: .35rem; }
.reader__font-btn {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .35rem .55rem;
  font-size: .75rem;
  color: var(--dark-gray);
  cursor: pointer;
  transition: all .15s;
  min-width: 32px;
  text-align: center;
}
.reader__font-btn:hover { background: #ede9fe; border-color: var(--primary-light); color: var(--primary); }

/* ── Chapter reading area ──────────── */
.reader__content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.75rem;
  width: 100%;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
@media (min-width: 600px)  { .reader__content { padding: 2.5rem 2rem 2rem; } }
@media (min-width: 960px)  { .reader__content { padding: 3rem 2.5rem 2.25rem; } }

.reader__chapter-head {
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.reader__chapter-label {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: .6875rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .12em;
  background: #f0eeff;
  padding: .2rem .65rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.reader__chapter-label--section {
  background: rgba(75,0,130,.08);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.reader__chapter-label--section i { font-size: .7em; }
.reader__chapter-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--dark-gray);
  line-height: 1.25;
  margin: 0 0 .875rem;
  letter-spacing: -.01em;
}
@media (min-width: 600px) { .reader__chapter-title { font-size: 2rem; } }
@media (min-width: 960px) { .reader__chapter-title { font-size: 2.25rem; } }
.reader__chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem 1.5rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.reader__chapter-meta i { color: var(--primary-light); margin-right: .3rem; }

/* ── Body text typography ──────────── */
.reader__body-text {
  font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--reader-body-color);
}
@media (min-width: 600px) { .reader__body-text { font-size: 1.1875rem; } }

.reader__body-text h1,
.reader__body-text h2,
.reader__body-text h3,
.reader__body-text h4 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
}
.reader__body-text h1,
.reader__body-text h2,
.reader__body-text h4 { color: var(--reader-heading-color); }
.reader__body-text h1 { font-size: 1.5rem;  font-weight: 700; margin: 2.25rem 0 1rem; }
.reader__body-text h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .75rem; padding-top: .25rem; border-top: 1px solid var(--reader-divider-color); }
.reader__body-text h2:first-child { border-top: none; padding-top: 0; }
.reader__body-text h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.625rem 0 .5rem; color: var(--reader-accent-color); }
.reader__body-text h4 { font-size: 1rem; font-weight: 600; margin: 1.375rem 0 .5rem; }

.reader__body-text p { margin-bottom: 1.25rem; }

.reader__body-text blockquote {
  position: relative;
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem 1.25rem 1.875rem;
  border-left: 4px solid var(--reader-blockquote-border);
  background: var(--reader-blockquote-bg);
  border-radius: 0 8px 8px 0;
  color: var(--reader-blockquote-text);
  font-style: italic;
  font-size: 1.0625rem;
}
.reader__body-text blockquote::before {
  content: '\201C';
  position: absolute;
  top: .125rem;
  left: .5rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--reader-blockquote-quote);
  opacity: .4;
  font-family: Georgia, serif;
  font-style: normal;
}

.reader__body-text ul,
.reader__body-text ol {
  margin: 1rem 0 1.25rem;
  padding-left: 1.625rem;
}
.reader__body-text li { margin-bottom: .625rem; }
.reader__body-text strong { font-weight: 600; color: var(--reader-strong-color); }
.reader__body-text em { font-style: italic; }
.reader__body-text hr { border: none; border-top: 1px solid var(--reader-divider-color); margin: 2.25rem 0; }
.reader__body-text a { color: var(--reader-link-color); text-decoration: underline; text-underline-offset: 2px; }
.reader__body-text a:hover { color: var(--reader-link-hover-color); }

/* ── Tables ────────────────────────────────────────── */
.reader__body-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: .9375rem;
  border: 1px solid var(--reader-divider-color);
  border-radius: 8px;
  overflow: hidden;
}
.reader__body-text table td,
.reader__body-text table th {
  padding: .65rem 1rem !important;
  color: var(--reader-body-color) !important;
  border-bottom: 1px solid var(--reader-divider-color) !important;
  vertical-align: top;
  line-height: 1.55;
}
.reader__body-text table td strong,
.reader__body-text table th strong {
  color: var(--reader-accent-color) !important;
}
.reader__body-text table tr:last-child td { border-bottom: none !important; }
.reader__body-text table tr:nth-child(odd) td { background: rgba(75,0,130,.02); }
.reader__body-text table tr:nth-child(even) td { background: rgba(75,0,130,.05); }
.reader__body-text table thead tr th,
.reader__body-text table tr:first-child th {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: none !important;
}

/* ── Callout boxes ──────────────────────────────────── */
.reader__body-text .callout {
  position: relative;
  margin: 1.75rem 0;
  padding: 1.125rem 1.375rem 1.125rem 1.25rem;
  border-left: 4px solid var(--reader-accent-color);
  background: rgba(75,0,130,.05);
  border-radius: 0 8px 8px 0;
}
.reader__body-text .callout > *:first-child { margin-top: 0; }
.reader__body-text .callout > *:last-child { margin-bottom: 0; }
.reader__body-text .callout-title {
  font-family: 'Poppins', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--reader-accent-color);
}
.reader__body-text .callout-title i { font-size: .8rem; }
/* Key Principle — purple */
.reader__body-text .callout--key {
  border-left-color: var(--primary);
  background: rgba(75,0,130,.05);
}
.reader__body-text .callout--key .callout-title { color: var(--primary); }
/* Definition — blue */
.reader__body-text .callout--definition {
  border-left-color: #2563eb;
  background: rgba(37,99,235,.05);
}
.reader__body-text .callout--definition .callout-title { color: #2563eb; }
/* Warning / Caution — amber */
.reader__body-text .callout--warning {
  border-left-color: #d97706;
  background: rgba(217,119,6,.05);
}
.reader__body-text .callout--warning .callout-title { color: #d97706; }
/* Study Note / Reflection — green */
.reader__body-text .callout--note {
  border-left-color: #16a34a;
  background: rgba(22,163,74,.05);
}
.reader__body-text .callout--note .callout-title { color: #16a34a; }
/* Process / Steps — teal */
.reader__body-text .callout--process {
  border-left-color: #0891b2;
  background: rgba(8,145,178,.05);
}
.reader__body-text .callout--process .callout-title { color: #0891b2; }
.reader__body-text .callout--process ol { margin: .25rem 0 0; padding-left: 1.4rem; }
.reader__body-text .callout--process ol li {
  padding: .3rem 0;
  border-bottom: 1px dashed rgba(8,145,178,.2);
  font-weight: 500;
}
.reader__body-text .callout--process ol li:last-child { border-bottom: none; }

/* ── Inline badges ──────────────────────────────────── */
.reader__body-text .badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: 'Poppins', sans-serif;
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .6rem;
  border-radius: 50px;
  vertical-align: middle;
  margin-right: .3rem;
  line-height: 1.4;
}
.reader__body-text .badge--key { background: rgba(75,0,130,.1); color: var(--primary); }
.reader__body-text .badge--verse { background: #fef9c3; color: #854d0e; }
.reader__body-text .badge--def { background: #dbeafe; color: #1d4ed8; }
.reader__body-text .badge--note { background: #dcfce7; color: #15803d; }
.reader__body-text .badge--ref { background: #f1f5f9; color: #475569; }

/* ── Locked chapter ──────────────── */
.reader__locked {
  text-align: center;
  padding: 5rem 1.5rem;
  max-width: 420px;
  margin: 0 auto;
}
.reader__locked-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #f0eeff, #ede9fe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(139,92,246,.15);
}
.reader__locked h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: .5rem;
}
.reader__locked p { font-family: 'Inter', sans-serif; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.reader__locked-hint {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.reader__locked-hint a { color: var(--primary); text-decoration: underline; }

/* ── Bottom navigation ───────────── */
.reader__nav-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 480px) {
  .reader__nav-bottom {
    flex-direction: column;
    gap: .75rem;
  }
}

.reader__nav-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--reader-nav-bg);
  border: 1px solid var(--reader-nav-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--reader-nav-color);
  transition: all .2s ease;
  max-width: 48%;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.reader__nav-btn:hover {
  background: var(--reader-nav-hover-bg);
  border-color: var(--reader-nav-hover-border);
  box-shadow: 0 4px 12px rgba(139,92,246,.14);
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .reader__nav-btn {
    max-width: 100%;
    width: 100%;
  }
  .reader__nav-btn--next { justify-content: flex-end; }
}

.reader__nav-btn--locked {
  color: var(--text-muted);
  border-style: dashed;
  pointer-events: auto;
}
.reader__nav-btn--locked:hover { transform: none; box-shadow: none; }
.reader__nav-btn--prev { margin-right: auto; }
.reader__nav-btn--next { margin-left: auto; text-align: right; }
.reader__nav-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: .625rem;
  color: var(--reader-nav-label-color);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
}
.reader__nav-ch {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .8125rem;
  line-height: 1.35;
  margin-top: .2rem;
  color: var(--reader-nav-ch-color);
}
.reader__nav-btn i { font-size: .875rem; flex-shrink: 0; color: var(--reader-nav-icon-color); }

/* Hide main footer padding in reader */

.reader__page-footer {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

@media (min-width: 600px) {
  .reader__page-footer {
    padding: 0 2rem 2.25rem;
  }
}

@media (min-width: 960px) {
  .reader__page-footer {
    padding: 0 2.5rem 2.5rem;
  }
}

.reader__legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 1.1rem;
  flex-wrap: wrap;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--reader-nav-border);
  background: var(--reader-nav-bg);
  color: var(--reader-settings-label-color);
  font-size: .75rem;
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
}

.reader__legal-footer-brand {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.reader__legal-footer-kicker {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--reader-settings-label-color);
}

.reader__legal-footer-copy {
  font-weight: 600;
  color: var(--reader-nav-ch-color);
}

.reader__legal-footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem .8rem;
  flex-wrap: wrap;
}

.reader__legal-footer-book {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(139,92,246,.08);
  color: var(--reader-nav-ch-color);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.35;
}

.reader__legal-footer a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.reader__legal-footer-powered {
  white-space: nowrap;
}

.reader__legal-footer a:hover {
  color: var(--reader-link-color);
}

@media (max-width: 640px) {
  .reader__page-footer {
    padding-bottom: 1.5rem;
  }

  .reader__legal-footer {
    align-items: stretch;
    justify-content: center;
    text-align: center;
  }

  .reader__legal-footer-brand,
  .reader__legal-footer-meta {
    width: 100%;
    justify-content: center;
  }

  .reader__legal-footer-meta {
    flex-direction: column;
  }

  .reader__legal-footer-book,
  .reader__legal-footer-powered {
    white-space: normal;
  }
}
.reader + .footer { margin-top: 0; }

/* ══════════════════════════════════════════════════════
   DEVOTIONAL READER — devreader__ prefix
   ══════════════════════════════════════════════════════ */

/* Sidebar book-info icon */
.devreader__book-info { text-align: center; }
.devreader__series-icon { font-size: 2.5rem; display: block; margin-bottom: .5rem; }

/* Category filter chips */
.devreader__cat-filter {
  display: flex; flex-wrap: wrap; gap: .35rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--reader-divider-color);
}
.devreader__cat-btn {
  padding: .2rem .65rem; border-radius: 20px;
  border: 1px solid transparent;
  background: var(--light-gray, #f3f4f6);
  font-size: .75rem; cursor: pointer;
  transition: background .18s, color .18s;
  color: var(--text-muted);
}
.devreader__cat-btn--active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.devreader__cat-btn:hover:not(.devreader__cat-btn--active) {
  background: #ede9fe; color: var(--primary);
}

/* TOC list items */
.devreader__toc-link { display: flex; align-items: flex-start; gap: .55rem; padding: .55rem 1rem; }
.devreader__toc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: .45rem;
}
.devreader__toc-body {
  display: flex; flex-direction: column; gap: .15rem; min-width: 0;
}
.devreader__toc-meta { font-size: .7rem; color: var(--text-muted); }

/* Reading progress bar */
.devreader__progress {
  height: 3px;
  background: var(--reader-divider-color);
  position: sticky; top: 48px; z-index: 5;
}
.devreader__progress-bar {
  height: 100%; background: var(--primary);
  transition: width .08s linear; width: 0%;
}

/* Category badge inside article */
.devreader__cat-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: color-mix(in srgb, var(--cat-color, #7c3aed) 12%, transparent);
  color: var(--cat-color, #7c3aed);
  border: 1px solid color-mix(in srgb, var(--cat-color, #7c3aed) 28%, transparent);
  border-radius: 20px; padding: .28rem 1rem;
  font-size: .8rem; font-weight: 600; margin-bottom: 1.25rem;
}

/* Scripture feature card */
.devreader__scripture-card {
  position: relative;
  background: color-mix(in srgb, var(--cat-color, #7c3aed) 8%, transparent);
  border-left: 4px solid var(--cat-color, #7c3aed);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 1.5rem 0 2rem; overflow: hidden;
}
.devreader__scripture-deco {
  position: absolute; top: -1.1rem; left: .5rem;
  font-size: 6rem; font-family: Georgia, serif;
  color: var(--cat-color, #7c3aed); opacity: .12;
  line-height: 1; pointer-events: none; user-select: none;
}
.devreader__scripture-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem; font-style: italic; line-height: 1.75;
  margin: 0 0 .75rem; position: relative; z-index: 1; color: inherit;
}
.devreader__scripture-ref {
  display: block; font-size: .9rem; font-weight: 700;
  color: var(--cat-color, #7c3aed); font-style: normal;
  position: relative; z-index: 1;
}
.devreader__ref-only { text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Excerpt / summary */
.devreader__excerpt {
  margin: 1.5rem 0 2rem;
  padding: 1.2rem 1.3rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--cat-color, #7c3aed) 20%, var(--reader-divider-color));
  background: color-mix(in srgb, var(--cat-color, #7c3aed) 8%, transparent);
}
.devreader__section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cat-color, #7c3aed);
}
.devreader__excerpt-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--reader-text-color);
}

/* Reflection banner */
.devreader__reflect {
  display: flex; align-items: flex-start; gap: .9rem;
  background: rgba(107, 40, 217, .07);
  border: 1px solid rgba(107, 40, 217, .15);
  border-radius: 12px; padding: 1.25rem 1.5rem; margin: 2.5rem 0 2rem;
}
.devreader__reflect-icon { font-size: 1.75rem; flex-shrink: 0; }
.devreader__reflect strong { display: block; color: var(--primary); margin-bottom: .3rem; font-size: 1rem; }
.devreader__reflect p { margin: 0; color: var(--text-muted); font-size: .9rem; }

/* Supporting verses */
.devreader__sv-block { margin: 2rem 0; }
.devreader__sv-title { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; color: var(--primary); }
.devreader__sv-list { display: flex; flex-direction: column; gap: .75rem; }
.devreader__sv-card {
  border: 1px solid var(--reader-divider-color);
  border-radius: 10px; padding: .85rem 1.1rem;
}
.devreader__sv-card--main { border-color: var(--primary); background: #f5f0ff; }
.reader[data-theme="dark"]  .devreader__sv-card--main,
.reader[data-theme="night"] .devreader__sv-card--main { background: rgba(107,40,217,.15); }
.devreader__sv-ref {
  font-size: .85rem; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .4rem;
}
.devreader__sv-badge {
  background: var(--primary); color: #fff;
  border-radius: 4px; padding: .1rem .4rem;
  font-size: .7rem; font-weight: 700;
}
.devreader__sv-trans { color: var(--text-muted); font-weight: 400; }
.devreader__sv-text {
  margin: 0; font-size: .9rem; font-style: italic;
  line-height: 1.65;
}

/* Sermon / broadcast notes */
.devreader__notes-block { margin: 2.25rem 0; }
.devreader__notes-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .85rem;
  color: var(--primary);
}
.devreader__notes-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.devreader__note-card {
  border: 1px solid var(--reader-divider-color);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: color-mix(in srgb, var(--cat-color, #7c3aed) 5%, transparent);
}
.devreader__note-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .7rem;
}
.devreader__note-icon {
  flex: 0 0 auto;
  color: var(--cat-color, #7c3aed);
}
.devreader__note-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--reader-heading-color);
}
.devreader__note-body p {
  margin: 0 0 .7rem;
}
.devreader__note-body p:last-child {
  margin-bottom: 0;
}
.devreader__note-body ul,
.devreader__note-body ol {
  margin: 0;
  padding-left: 1.3rem;
}
.devreader__note-body li + li {
  margin-top: .4rem;
}

/* Share / action row */
.devreader__share-row {
  display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--reader-divider-color);
}
.devreader__action-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1.1rem; border-radius: 8px;
  border: 1px solid var(--reader-divider-color);
  background: transparent; color: inherit;
  font-size: .875rem; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
}
.devreader__action-btn:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Filter hide */
.reader__toc-item.devreader--hidden { display: none !important; }

/* Sepia / dark / night theme adjustments for devreader elements */
.reader[data-theme="sepia"] .devreader__reflect { background: rgba(139,115,85,.12); border-color: rgba(139,115,85,.25); }
.reader[data-theme="sepia"] .devreader__reflect strong { color: #7a4928; }
.reader[data-theme="sepia"] .devreader__excerpt { background: rgba(139,115,85,.12); border-color: rgba(139,115,85,.22); }
.reader[data-theme="sepia"] .devreader__note-card { background: rgba(139,115,85,.08); border-color: rgba(139,115,85,.18); }
.reader[data-theme="dark"]  .devreader__reflect,
.reader[data-theme="night"] .devreader__reflect { background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.2); }
.reader[data-theme="dark"]  .devreader__excerpt,
.reader[data-theme="night"] .devreader__excerpt { background: rgba(96,165,250,.08); border-color: rgba(96,165,250,.18); }
.reader[data-theme="dark"]  .devreader__note-card,
.reader[data-theme="night"] .devreader__note-card { background: rgba(96,165,250,.06); border-color: rgba(96,165,250,.14); }
.reader[data-theme="dark"]  .devreader__cat-btn,
.reader[data-theme="night"] .devreader__cat-btn { background: rgba(255,255,255,.08); color: #94a3b8; }
.reader[data-theme="dark"]  .devreader__cat-btn:hover:not(.devreader__cat-btn--active),
.reader[data-theme="night"] .devreader__cat-btn:hover:not(.devreader__cat-btn--active) { background: rgba(139,92,246,.2); color: #c4b5fd; }

/* ══════════════════════════════════════════════════════
   BOOK DETAIL PAGE (bd-*)
   ══════════════════════════════════════════════════════ */

/* Breadcrumb */
.bd-breadcrumb { margin-bottom: 1.5rem; font-size: .875rem; }
.bd-breadcrumb a { color: var(--primary-light); text-decoration: none; }
.bd-breadcrumb a:hover { text-decoration: underline; }
.bd-breadcrumb__sep { margin: 0 .5rem; color: var(--text-muted); }

/* Hero */
.bd-hero { padding: 2.5rem 0 2rem; }
.bd-hero__grid { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 768px) { .bd-hero__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Cover */
.bd-hero__cover-wrap { position: sticky; top: 5rem; display: flex; flex-direction: column; gap: 1rem; }
.bd-hero__cover { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.35); aspect-ratio: 3/4; }
.bd-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.bd-hero__cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); font-size: 3rem; color: var(--text-muted); }
.bd-hero__badge { position: absolute; top: .75rem; left: .75rem; padding: .25rem .75rem; border-radius: 20px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.bd-hero__badge--featured { background: linear-gradient(135deg, var(--gold), #ff8c00); color: #000; }
.bd-hero__badge--best { background: linear-gradient(135deg, #ff4500, #ff6347); color: var(--white); }
.bd-hero__cover-alt {
  width: min(78%, 200px);
  margin-left: auto;
  padding: .6rem;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.bd-hero__cover-alt img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
.bd-hero__cover-alt-label {
  display: inline-flex;
  margin-bottom: .5rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .bd-hero__cover-wrap { position: static; max-width: 240px; margin: 0 auto; }
  .bd-hero__cover-alt { width: 72%; }
}

/* Info */
.bd-hero__meta-top { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.bd-hero__category { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .75rem; border-radius: 20px; background: rgba(var(--primary-rgb, 139,92,246), .15); color: var(--primary-light); font-size: .75rem; font-weight: 600; }
.bd-hero__series { font-size: .8rem; color: var(--text-muted); padding: .25rem 0; }
.bd-hero__title { font-family: 'Poppins', sans-serif; font-size: 1.75rem; font-weight: 800; line-height: 1.2; margin-bottom: .5rem; color: var(--dark-gray); }
.bd-hero__author { font-size: 1rem; color: var(--text-muted); margin-bottom: 1rem; }

/* Social row */
.bd-hero__social { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
.bd-hero__rating { display: flex; align-items: center; gap: .5rem; }
.bd-hero__rating-text { font-size: .9rem; font-weight: 600; }
.bd-stars { display: inline-flex; gap: 2px; color: #fbbf24; font-size: .875rem; }
.bd-stars--sm { font-size: .75rem; }

/* Like button */
.bd-like-btn { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: .4rem .75rem; border-radius: 20px; cursor: pointer; color: var(--text-muted); font-size: .875rem; font-weight: 600; transition: all .2s; }
.bd-like-btn:hover { border-color: #ef4444; color: #ef4444; }
.bd-like-btn--active { color: #ef4444; border-color: #ef4444; background: rgba(239,68,68,.1); }
.bd-like-btn--active i { color: #ef4444; }

/* Stats row */
.bd-hero__stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; padding: .75rem 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.bd-stat { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-muted); }
.bd-stat i { color: var(--primary-light); font-size: .75rem; }

/* Purchase cards */
.bd-purchase { display: flex; gap: 1rem; flex-wrap: wrap; }
.bd-purchase__card { flex: 1; min-width: 200px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; overflow: hidden; }
.bd-purchase__card--hc { border-color: rgba(230,126,34,.3); }
.bd-purchase__card-header { padding: .6rem 1rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: rgba(255,255,255,.02); border-bottom: 1px solid rgba(255,255,255,.06); color: var(--text-muted); }
.bd-purchase__card-header i { margin-right: .35rem; }
.bd-purchase__card--hc .bd-purchase__card-header { color: #e67e22; background: rgba(230,126,34,.05); }
.bd-purchase__card-body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.bd-purchase__price { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--dark-gray); }
.bd-purchase__price--free { color: #22c55e; }
.bd-purchase__owned { display: inline-flex; align-items: center; gap: .35rem; color: #22c55e; font-weight: 600; font-size: .85rem; }
.bd-purchase__stock { font-size: .75rem; font-weight: 600; }
.bd-purchase__stock--in { color: #22c55e; }
.bd-purchase__stock--out { color: #ef4444; }
.bd-purchase__preview { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--primary-light); text-decoration: none; margin-top: .25rem; }
.bd-purchase__preview:hover { text-decoration: underline; }

/* Buttons */
.bd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1.25rem; border-radius: 8px; font-weight: 700; font-size: .85rem; text-decoration: none; border: none; cursor: pointer; transition: all .2s; }
.bd-btn--digital { background: var(--primary); color: var(--white); }
.bd-btn--digital:hover { background: var(--primary-light); color: var(--white); }
.bd-btn--hardcover { background: #e67e22; color: var(--white); }
.bd-btn--hardcover:hover { background: #d35400; color: var(--white); }
.bd-btn--hardcover:disabled { opacity: .4; cursor: not-allowed; }
.bd-btn--outline { background: transparent; border: 1px solid rgba(255,255,255,.15); color: var(--text-muted); }
.bd-btn--outline:hover { border-color: var(--primary); color: var(--primary-light); }

/* Content section */
.bd-content { padding: 2rem 0; }
.bd-content__grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
@media (max-width: 992px) { .bd-content__grid { grid-template-columns: 1fr; } }

.bd-section { margin-bottom: 2rem; }
.bd-section__title { font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; color: var(--dark-gray); }
.bd-section__title i { color: var(--primary-light); }

/* Description */
.bd-description__text { line-height: 1.75; font-size: .925rem; color: var(--text-muted); }
.bd-description__text--collapsed { max-height: 8rem; overflow: hidden; position: relative; }
.bd-description__text--collapsed::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3rem; background: linear-gradient(transparent, var(--body-bg, #120a1e)); }
.bd-description__toggle { display: inline-flex; align-items: center; gap: .35rem; color: var(--primary-light); font-weight: 600; font-size: .85rem; background: none; border: none; cursor: pointer; padding: .35rem 0; }

/* Meta row */
.bd-meta-row { display: flex; gap: .5rem; font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }
.bd-meta-row__label { font-weight: 600; color: var(--dark-gray); }

/* TOC */
.bd-toc { display: flex; flex-direction: column; gap: 2px; }
.bd-toc__item { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: 8px; background: rgba(255,255,255,.02); border: 1px solid transparent; transition: background .2s; }
.bd-toc__item:hover { background: rgba(255,255,255,.05); }
.bd-toc__item--locked { opacity: .5; }
.bd-toc__item--special { background: rgba(var(--primary-rgb, 139,92,246), .05); }
.bd-toc__num { min-width: 1.75rem; height: 1.75rem; border-radius: 50%; background: rgba(var(--primary-rgb, 139,92,246), .12); color: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; }
.bd-toc__title { flex: 1; font-size: .85rem; font-weight: 500; color: var(--dark-gray); }
.bd-toc__meta { font-size: .7rem; color: var(--text-muted); }
.bd-toc__status { font-size: .75rem; }
.bd-toc__free { color: #22c55e; font-weight: 600; font-size: .7rem; }
.bd-toc__status .fa-lock { color: var(--text-muted); }
.bd-toc__status .fa-unlock-alt { color: #22c55e; }

/* Sidebar */
.bd-content__sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.bd-sidebar-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 1.25rem; }
.bd-sidebar-card__title { font-family: 'Poppins', sans-serif; font-size: .9rem; font-weight: 700; margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; color: var(--dark-gray); }
.bd-sidebar-card__title i { color: var(--primary-light); }

/* Series list */
.bd-series-list { display: flex; flex-direction: column; gap: .5rem; }
.bd-series-item { display: flex; align-items: center; gap: .75rem; padding: .5rem; border-radius: 8px; text-decoration: none; transition: background .2s; }
.bd-series-item:hover { background: rgba(255,255,255,.05); }
.bd-series-item__cover { width: 40px; height: 55px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.bd-series-item__cover--placeholder { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); color: var(--text-muted); font-size: .75rem; }
.bd-series-item__info { display: flex; flex-direction: column; }
.bd-series-item__part { font-size: .65rem; font-weight: 700; text-transform: uppercase; color: var(--primary-light); }
.bd-series-item__title { font-size: .8rem; font-weight: 600; color: var(--dark-gray); }

/* Share buttons */
.bd-share-btns { display: flex; gap: .5rem; }
.bd-share-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: var(--text-muted); text-decoration: none; cursor: pointer; transition: all .2s; }
.bd-share-btn:hover { background: rgba(255,255,255,.1); color: var(--white); }
.bd-share-btn--wa:hover { border-color: #25d366; color: #25d366; }
.bd-share-btn--tw:hover { border-color: #1da1f2; color: #1da1f2; }
.bd-share-btn--fb:hover { border-color: #1877f2; color: #1877f2; }

/* Enhanced Share Grid */
.bd-share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.bd-share-card { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .65rem .35rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); text-decoration: none; cursor: pointer; transition: all .25s ease; }
.bd-share-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.bd-share-card__icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--white); transition: transform .2s; }
.bd-share-card:hover .bd-share-card__icon { transform: scale(1.1); }
.bd-share-card__label { font-size: .65rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.bd-share-card--copy { color: #e2e8f0; }
.bd-share-card--copy .bd-share-card__icon { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.bd-share-card--copy:hover { border-color: rgba(139,92,246,.4); background: rgba(139,92,246,.08); color: #c4b5fd; }
.bd-share-card--wa { color: #e2e8f0; }
.bd-share-card--wa .bd-share-card__icon { background: linear-gradient(135deg, #25d366, #128c7e); }
.bd-share-card--wa:hover { border-color: rgba(37,211,102,.4); background: rgba(37,211,102,.08); color: #86efac; }
.bd-share-card--tw { color: #e2e8f0; }
.bd-share-card--tw .bd-share-card__icon { background: linear-gradient(135deg, #1d1d1d, #333); }
.bd-share-card--tw:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #f1f5f9; }
.bd-share-card--fb { color: #e2e8f0; }
.bd-share-card--fb .bd-share-card__icon { background: linear-gradient(135deg, #1877f2, #0d5cbf); }
.bd-share-card--fb:hover { border-color: rgba(24,119,242,.4); background: rgba(24,119,242,.08); color: #93c5fd; }
.bd-share-card--tg { color: #e2e8f0; }
.bd-share-card--tg .bd-share-card__icon { background: linear-gradient(135deg, #0088cc, #229ed9); }
.bd-share-card--tg:hover { border-color: rgba(0,136,204,.4); background: rgba(0,136,204,.08); color: #7dd3fc; }
.bd-share-card--email { color: #e2e8f0; }
.bd-share-card--email .bd-share-card__icon { background: linear-gradient(135deg, #ef4444, #dc2626); }
.bd-share-card--email:hover { border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.08); color: #fca5a5; }

/* Enhanced Login Prompt */
.bd-reviews__login-prompt h4 { font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 700; margin: .5rem 0 .25rem; color: var(--dark-gray,#e2e8f0); }
.bd-reviews__login-prompt a { color: var(--primary-light,#a78bfa); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.bd-reviews__login-prompt a:hover { color: #c4b5fd; }

/* ── Reviews Section ──────────────────────────────── */
.bd-reviews { padding: 2rem 0 3rem; }
.bd-reviews__grid { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .bd-reviews__grid { grid-template-columns: 1fr; } }

/* Rating summary */
.bd-reviews__summary { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 1.25rem; }
.bd-reviews__avg { text-align: center; margin-bottom: 1rem; }
.bd-reviews__avg-num { font-family: 'Poppins', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--dark-gray); margin-right: .25rem; }
.bd-reviews__avg-count { display: block; font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
.bd-reviews__bars { display: flex; flex-direction: column; gap: .4rem; }
.bd-reviews__bar-row { display: flex; align-items: center; gap: .5rem; }
.bd-reviews__bar-label { font-size: .75rem; color: var(--text-muted); min-width: 2rem; text-align: right; }
.bd-reviews__bar-label i { color: #fbbf24; font-size: .6rem; }
.bd-reviews__bar-track { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.bd-reviews__bar-fill { height: 100%; background: #fbbf24; border-radius: 3px; transition: width .3s; }
.bd-reviews__bar-count { font-size: .7rem; color: var(--text-muted); min-width: 1.5rem; }

/* Review form */
.bd-reviews__form-wrap { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 1.25rem; }
.bd-reviews__login-prompt { text-align: center; padding: 2rem 1rem; color: var(--text-muted); }
.bd-reviews__login-prompt i { font-size: 2rem; display: block; margin-bottom: .75rem; color: var(--primary-light); }
.bd-reviews__login-prompt a { color: var(--primary-light); font-weight: 600; }
.bd-review-form__title { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: .75rem; color: var(--dark-gray); }
.bd-review-form__stars { font-size: 1.5rem; margin-bottom: .75rem; cursor: pointer; }
.bd-review-form__stars i { color: #d1d5db; transition: color .15s; margin-right: 2px; }
.bd-review-form__stars i.fas { color: #fbbf24; }
.bd-review-form__stars i:hover { color: #fbbf24; }
.bd-review-form__msg { font-size: .85rem; margin-top: .5rem; }
.bd-review-form__msg--success { color: #22c55e; }
.bd-review-form__msg--error { color: #ef4444; }

/* Review cards */
.bd-reviews__list { display: flex; flex-direction: column; gap: 1rem; }
.bd-reviews__empty { text-align: center; padding: 2rem; color: var(--text-muted); }
.bd-reviews__empty i { font-size: 2rem; display: block; margin-bottom: .5rem; }
.bd-review-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 1rem 1.25rem; }
.bd-review-card__header { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.bd-review-card__avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: rgba(var(--primary-rgb, 139,92,246), .15); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--primary-light); flex-shrink: 0; }
.bd-review-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bd-review-card__info { flex: 1; }
.bd-review-card__info strong { display: block; font-size: .85rem; color: var(--dark-gray); }
.bd-review-card__date { font-size: .7rem; color: var(--text-muted); }
.bd-review-card__text { font-size: .875rem; line-height: 1.6; color: var(--text-muted); margin: 0; }

.bd-reviews__load-more { display: block; margin: 1.5rem auto 0; }

/* Purchase type toggle in modal */
.bd-purchase-type { display: flex; gap: .5rem; margin-bottom: .75rem; }
.bd-purchase-type__btn { flex: 1; padding: .5rem; border: 2px solid rgba(255,255,255,.15); border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; font-weight: 600; font-size: .8rem; transition: all .2s; text-align: center; }
.bd-purchase-type__btn--active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.bd-purchase-type__btn[data-type="hardcover"].bd-purchase-type__btn--active { background: #e67e22; border-color: #e67e22; }

/* ── Book Card Action Buttons (bk-btn-tag) ────────── */
.bk-btn-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 6px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.bk-btn-tag--free { background: rgba(34,197,94,.15); color: #22c55e; }
.bk-btn-tag--owned { background: rgba(34,197,94,.12); color: #16a34a; }
.bk-btn-tag--digital { background: rgba(var(--primary-rgb, 139,92,246), .15); color: var(--primary-light); }
.bk-btn-tag--hardcover { background: rgba(230,126,34,.12); color: #e67e22; }
.bk-btn-tag--hardcover small { font-size: .6rem; margin-left: .25rem; opacity: .7; }
.bk-btn-tag--disabled { opacity: .4; }

/* Book card social row */
.bk-card__social { display: flex; gap: .75rem; margin-bottom: .35rem; font-size: .75rem; }
.bk-card__rating { color: #fbbf24; font-weight: 600; }
.bk-card__rating i { margin-right: 2px; }
.bk-card__likes { color: #ef4444; }
.bk-card__likes i { margin-right: 2px; }
.bk-card__actions { display: flex; flex-wrap: wrap; gap: .35rem; }

/* Spotlight rating */
.bk-spotlight__rating { color: #fbbf24; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   REVIEW REPLIES & ENHANCED REVIEW CARDS
   ═══════════════════════════════════════════════════════════ */
.bd-review-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 1.25rem; transition: border-color .2s; }
.bd-review-card:hover { border-color: rgba(255,255,255,.15); }
.bd-review-card__initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; color: var(--white); background: linear-gradient(135deg, var(--primary,#8b5cf6), #a78bfa); border-radius: 50%; }
.bd-review-card__rating-badge { background: rgba(251,191,36,.15); color: #fbbf24; font-weight: 700; font-size: .8rem; padding: .25rem .6rem; border-radius: 6px; display: flex; align-items: center; gap: .2rem; flex-shrink: 0; }
.bd-review-card__rating-badge i { font-size: .7rem; }
.bd-review-card__actions { display: flex; gap: .75rem; margin-top: .75rem; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.06); }
.bd-review-card__reply-toggle,
.bd-review-card__replies-toggle { background: none; border: none; color: var(--text-muted); font-size: .8rem; cursor: pointer; display: flex; align-items: center; gap: .35rem; padding: .25rem .5rem; border-radius: 6px; transition: all .2s; }
.bd-review-card__reply-toggle:hover,
.bd-review-card__replies-toggle:hover { background: rgba(var(--primary-rgb,139,92,246),.1); color: var(--primary-light); }

/* Replies */
.bd-review-replies { margin-top: .75rem; padding-left: .75rem; border-left: 2px solid rgba(var(--primary-rgb,139,92,246),.2); }
.bd-reply { display: flex; gap: .6rem; padding: .6rem 0; }
.bd-reply + .bd-reply { border-top: 1px solid rgba(255,255,255,.04); }
.bd-reply__avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: rgba(var(--primary-rgb,139,92,246),.12); display: flex; align-items: center; justify-content: center; }
.bd-reply__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bd-reply__initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 700; color: var(--white); background: linear-gradient(135deg, #6366f1, #a78bfa); border-radius: 50%; }
.bd-reply__body { flex: 1; min-width: 0; }
.bd-reply__header { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .15rem; }
.bd-reply__header strong { font-size: .8rem; color: var(--dark-gray,#e2e8f0); }
.bd-reply__date { font-size: .65rem; color: var(--text-muted); }
.bd-reply__delete { background: none; border: none; color: rgba(239,68,68,.5); cursor: pointer; font-size: .7rem; padding: 2px 4px; border-radius: 4px; margin-left: auto; transition: all .2s; }
.bd-reply__delete:hover { color: #ef4444; background: rgba(239,68,68,.1); }
.bd-reply__text { font-size: .82rem; line-height: 1.5; color: var(--text-muted); margin: 0; }

/* Reply form */
.bd-reply-form-wrap { margin-top: .5rem; padding-top: .5rem; }
.bd-reply-form { display: flex; gap: .5rem; align-items: flex-start; }
.bd-reply-form__avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: rgba(var(--primary-rgb,139,92,246),.12); display: flex; align-items: center; justify-content: center; }
.bd-reply-form__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bd-reply-form__input { flex: 1; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: .5rem .75rem; color: inherit; font-size: .82rem; resize: none; font-family: inherit; transition: border-color .2s; }
.bd-reply-form__input:focus { outline: none; border-color: var(--primary-light); }
.bd-reply-form__submit { background: var(--primary,#8b5cf6); border: none; color: var(--white); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; transition: background .2s; }
.bd-reply-form__submit:hover { background: var(--primary-dark,#7c3aed); }

/* ═══════════════════════════════════════════════════════════
   READER TOOLS — Settings, Notes, Bookmarks Panels
   ═══════════════════════════════════════════════════════════ */
.reader__tool-btn { background: none; border: none; color: var(--text-muted,#94a3b8); cursor: pointer; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all .2s; }
.reader__tool-btn:hover { background: rgba(0,0,0,.08); color: var(--primary,#8b5cf6); }
.reader__tool-btn--active { color: var(--primary,#8b5cf6); }
.reader__tool-btn--active i { font-weight: 900; }

/* Settings Panel */
.reader__settings-panel { position: absolute; top: 52px; right: .75rem; width: 280px; background: var(--white); border: 1px solid rgba(0,0,0,.1); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.15); padding: 1rem; z-index: 100; }
@media (max-width: 480px) {
  .reader__settings-panel {
    left: .75rem;
    right: .75rem;
    width: auto;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
  }
}
.reader__settings-section { margin-bottom: 1rem; }
.reader__settings-section:last-child { margin-bottom: 0; }
.reader__settings-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--reader-settings-label-color); display: block; margin-bottom: .4rem; }
.reader__settings-row { display: flex; align-items: center; gap: .5rem; }
.reader__settings-value { font-size: .85rem; font-weight: 600; min-width: 40px; text-align: center; color: #334155; }
.reader__settings-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--reader-settings-chip-border); background: var(--reader-settings-chip-bg); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--reader-settings-chip-color); font-size: .8rem; transition: all .15s; }
.reader__settings-btn:hover { background: var(--reader-settings-chip-hover-bg); border-color: var(--reader-settings-chip-hover-border); color: var(--reader-settings-chip-hover-color); }

/* Font options */
.reader__settings-fonts { display: flex; gap: .35rem; flex-wrap: wrap; }
.reader__font-option { padding: .35rem .65rem; border: 1px solid var(--reader-settings-chip-border); border-radius: 6px; background: var(--reader-settings-chip-bg); color: var(--reader-settings-chip-color); font-size: .75rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.reader__font-option:hover { border-color: var(--reader-settings-chip-hover-border); background: var(--reader-settings-chip-hover-bg); color: var(--reader-settings-chip-hover-color); }
.reader__font-option--active { background: var(--reader-settings-active-bg); border-color: var(--reader-settings-active-border); color: var(--reader-settings-active-color); }

/* Theme buttons */
.reader__settings-themes { display: flex; gap: .5rem; }
.reader__theme-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #e2e8f0; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: all .15s; }
.reader__theme-btn--active { border-width: 3px; transform: scale(1.1); }
.reader__theme-btn--light { background: var(--white); color: #f59e0b; }
.reader__theme-btn--light.reader__theme-btn--active { border-color: #f59e0b; }
.reader__theme-btn--sepia { background: #f5f0e8; color: #92400e; }
.reader__theme-btn--sepia.reader__theme-btn--active { border-color: #92400e; }
.reader__theme-btn--dark { background: #1e293b; color: #94a3b8; }
.reader__theme-btn--dark.reader__theme-btn--active { border-color: #94a3b8; }
.reader__theme-btn--night { background: #0f172a; color: #fbbf24; }
.reader__theme-btn--night.reader__theme-btn--active { border-color: #fbbf24; }

/* Align buttons */
.reader__align-btn { width: 36px; height: 32px; border-radius: 6px; border: 1px solid var(--reader-settings-chip-border); background: var(--reader-settings-chip-bg); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--reader-settings-chip-color); transition: all .15s; }
.reader__align-btn:hover { border-color: var(--reader-settings-chip-hover-border); background: var(--reader-settings-chip-hover-bg); color: var(--reader-settings-chip-hover-color); }
.reader__align-btn--active { background: var(--reader-settings-active-bg); color: var(--reader-settings-active-color); border-color: var(--reader-settings-active-border); }

/* ── Reader Themes ── */

/* Hide floating action buttons in reader mode */
body.page-reader .floating-side-btns { display: none !important; }

/* ── SEPIA THEME ── */
.reader--sepia {
  background: #f4edd8;
  --reader-heading-color: #2c1d0e;
  --reader-strong-color: #3b2f1a;
  --reader-accent-color: #8b6914;
  --reader-link-color: #8b6914;
  --reader-link-hover-color: #6b4f10;
  --reader-divider-color: #e0d4b8;
  --reader-blockquote-bg: linear-gradient(135deg, #efe4c8 0%, #e6d8b8 100%);
  --reader-blockquote-text: #4a3b24;
  --reader-blockquote-border: #b8941e;
  --reader-blockquote-quote: rgba(184, 148, 30, .55);
  --reader-settings-label-color: #7a6c53;
  --reader-settings-chip-bg: #ede5d8;
  --reader-settings-chip-border: #d4c8b5;
  --reader-settings-chip-color: #5d4e37;
  --reader-settings-chip-hover-bg: #e4d9c3;
  --reader-settings-chip-hover-border: #b8941e;
  --reader-settings-chip-hover-color: #6b4f10;
  --reader-settings-active-bg: #b8941e;
  --reader-settings-active-border: #b8941e;
  --reader-nav-bg: #ede5d8;
  --reader-nav-border: #d4c8b5;
  --reader-nav-color: #5d4e37;
  --reader-nav-hover-bg: #e4d9c3;
  --reader-nav-hover-border: #b8941e;
  --reader-nav-label-color: #6d5a3a;
  --reader-nav-ch-color: #3b2f1a;
  --reader-nav-icon-color: #8b6914;
  --reader-toc-time-color: #8b7a5e;
  --reader-toc-locked-color: #b7aa91;
  --reader-toc-free-color: #2f855a;
}
.reader--sepia .reader__sidebar { background: #faf5e9; border-color: #e0d4b8; }
.reader--sepia .reader__sidebar-header { border-color: #e0d4b8; }
.reader--sepia .reader__back { color: #8b6914; }
.reader--sepia .reader__sidebar-close { color: #8b7a5e; }
.reader--sepia .reader__book-info { border-color: #e0d4b8; }
.reader--sepia .reader__book-title { color: #3b2f1a; }
.reader--sepia .reader__book-author { color: #7a6c53; }
.reader--sepia .reader__progress { border-color: #e0d4b8; }
.reader--sepia .reader__progress-bar { background: #e0d4b8; }
.reader--sepia .reader__progress-text { color: #7a6c53; }
.reader--sepia .reader__toc-title { color: #7a6c53; }
.reader--sepia .reader__toc-item { border-color: rgba(139,112,66,.08); }
.reader--sepia .reader__toc-link { color: #4a3f2a; }
.reader--sepia .reader__toc-link:hover { background: #f0e8d0; }
.reader--sepia .reader__toc-item--active .reader__toc-link { background: #efe4c8; color: #6b4f10; border-color: #b8941e; }
.reader--sepia .reader__toc-num { background: #e8dcc0; color: #7a6c53; }
.reader--sepia .reader__toc-item--active .reader__toc-num { background: #b8941e; color: var(--white); }
.reader--sepia .reader__toc-time { color: #8b7a5e; }

.reader--sepia .reader__main { background: #f5f0e8; }
.reader--sepia .reader__topbar { background: #f5f0e8; border-color: #e0d4b8; box-shadow: 0 1px 4px rgba(107,79,16,.08); }
.reader--sepia .reader__topbar-title { color: #3b2f1a; }
.reader--sepia .reader__topbar-ch { color: #7a6c53; }
.reader--sepia .reader__menu-btn { color: #5d4e37; border-color: #d4c8b5; }
.reader--sepia .reader__menu-btn:hover { background: #ede5d8; }
.reader--sepia .reader__tool-btn { color: #8b7a5e; }
.reader--sepia .reader__tool-btn:hover { background: rgba(139,112,66,.1); color: #6b4f10; }
.reader--sepia .reader__tool-btn--active { color: #8b6914; }

.reader--sepia .reader__content { color: #3d2e1e; }
.reader--sepia .reader__chapter-title { color: #2c1d0e; }
.reader--sepia .reader__chapter-label { color: #8b6914; }
.reader--sepia .reader__chapter-label--section { background: rgba(184,148,30,.12); }
.reader--sepia .reader__toc-item--section > .reader__toc-link { color: #8b6914; background: rgba(184,148,30,.06); border-left-color: rgba(184,148,30,.35); }
.reader--sepia .reader__toc-item--section > .reader__toc-link:hover { background: rgba(184,148,30,.12); }
.reader--sepia .reader__toc-section-icon { color: #8b6914; }
.reader--sepia .reader__toc-divider { color: #b09870; }
.reader--sepia .reader__toc-divider::before, .reader--sepia .reader__toc-divider::after { background: rgba(139,112,66,.15); }
.reader--sepia .reader__chapter-meta { color: #7a6c53; }
.reader--sepia .reader__chapter-meta i { color: #b8941e; }
.reader--sepia .reader__chapter-head { border-color: #e0d4b8; }
.reader--sepia .reader__body-text { color: #3d2e1e; }
.reader--sepia .reader__body-text table { border-color: #d4c8b5; }
.reader--sepia .reader__body-text table td, .reader--sepia .reader__body-text table th { border-bottom-color: #d4c8b5 !important; }
.reader--sepia .reader__body-text table tr:nth-child(odd) td { background: rgba(184,148,30,.03); }
.reader--sepia .reader__body-text table tr:nth-child(even) td { background: rgba(184,148,30,.08); }
.reader--sepia .reader__body-text table thead tr th, .reader--sepia .reader__body-text table tr:first-child th { background: #7a5c14 !important; }
.reader--sepia .reader__body-text .callout { background: rgba(184,148,30,.06); border-left-color: #b8941e; }
.reader--sepia .reader__body-text .callout-title { color: #8b6914; }
.reader--sepia .reader__body-text .callout--key { border-left-color: #b8941e; }
.reader--sepia .reader__body-text .callout--key .callout-title { color: #8b6914; }
.reader--sepia .reader__body-text .callout--process { background: rgba(120,100,40,.06); border-left-color: #8b7a30; }
.reader--sepia .reader__body-text .callout--process .callout-title { color: #7a6c30; }
.reader--sepia .reader__body-text .callout--process ol li { border-bottom-color: rgba(120,100,40,.2); }
.reader--sepia .reader__body-text .badge--key { background: rgba(184,148,30,.15); color: #7a5c14; }
.reader--sepia .reader__body-text .badge--verse { background: rgba(184,148,30,.2); color: #6b4f10; }

.reader--sepia .reader__settings-panel { background: #faf6f0; border-color: #d4c8b5; box-shadow: 0 8px 30px rgba(107,79,16,.15); }
.reader--sepia .reader__settings-label { color: #7a6c53; }
.reader--sepia .reader__settings-value { color: #3b2f1a; }
.reader--sepia .reader__settings-btn { background: #ede5d8; border-color: #d4c8b5; color: #5d4e37; }
.reader--sepia .reader__settings-btn:hover { background: #e4d9c3; border-color: #b8941e; color: #6b4f10; }
.reader--sepia .reader__font-option { background: #ede5d8; border-color: #d4c8b5; color: #5d4e37; }
.reader--sepia .reader__font-option:hover { border-color: #b8941e; }
.reader--sepia .reader__font-option--active { background: #b8941e; color: var(--white); border-color: #b8941e; }
.reader--sepia .reader__align-btn { background: #ede5d8; border-color: #d4c8b5; color: #5d4e37; }
.reader--sepia .reader__align-btn:hover { border-color: #b8941e; }
.reader--sepia .reader__align-btn--active { background: #b8941e; color: var(--white); border-color: #b8941e; }
.reader--sepia .reader__theme-btn { border-color: #d4c8b5; }

.reader--sepia .reader__nav-btn { background: #ede5d8; border-color: #d4c8b5; color: #5d4e37; }
.reader--sepia .reader__nav-btn:hover { background: #e4d9c3; border-color: #b8941e; }

.reader--sepia .reader__locked { background: #faf6f0; }
.reader--sepia .reader__locked h2 { color: #3b2f1a; }
.reader--sepia .reader__locked p { color: #7a6c53; }
.reader--sepia .reader__locked-icon i { color: #d4c8b5; }

.reader--sepia .reader__notes-panel { background: #faf6f0; border-color: #d4c8b5; box-shadow: -4px 0 20px rgba(107,79,16,.12); }
.reader--sepia .reader__notes-header { border-color: #e0d4b8; }
.reader--sepia .reader__notes-tab { color: #7a6c53; }
.reader--sepia .reader__notes-tab:hover { background: #ede5d8; }
.reader--sepia .reader__notes-tab--active { background: #f0e8d0; color: #6b4f10; }
.reader--sepia .reader__notes-close { color: #8b7a5e; }
.reader--sepia .reader__notes-add { border-color: #e0d4b8; }
.reader--sepia .reader__notes-textarea { background: var(--white); border-color: #d4c8b5; color: #3d2e1e; }
.reader--sepia .reader__note-card { background: #f0e8d0; border-color: #d4c8b5; }
.reader--sepia .reader__note-card__text { color: #3d2e1e; }
.reader--sepia .reader__note-card__chapter { color: #7a6c53; }
.reader--sepia .reader__note-card__date { color: #8b7a5e; }
.reader--sepia .reader__notes-export { border-color: #e0d4b8; color: #7a6c53; }

/* ── DARK THEME ── */
.reader--dark {
  background: #1a2332;
  --reader-heading-color: #f1f5f9;
  --reader-strong-color: #f8fafc;
  --reader-accent-color: #c4b5fd;
  --reader-link-color: #c4b5fd;
  --reader-link-hover-color: #ddd6fe;
  --reader-divider-color: #334155;
  --reader-blockquote-bg: linear-gradient(135deg, rgba(167, 139, 250, .16) 0%, rgba(51, 65, 85, .92) 100%);
  --reader-blockquote-text: #e2e8f0;
  --reader-blockquote-border: #a78bfa;
  --reader-blockquote-quote: rgba(196, 181, 253, .55);
  --reader-settings-label-color: #cbd5e1;
  --reader-settings-chip-bg: #334155;
  --reader-settings-chip-border: #475569;
  --reader-settings-chip-color: #e2e8f0;
  --reader-settings-chip-hover-bg: #3d4f6a;
  --reader-settings-chip-hover-border: #a78bfa;
  --reader-settings-chip-hover-color: #c4b5fd;
  --reader-settings-active-bg: #8b5cf6;
  --reader-settings-active-border: #8b5cf6;
  --reader-nav-bg: #334155;
  --reader-nav-border: #475569;
  --reader-nav-color: #e2e8f0;
  --reader-nav-hover-bg: #3d4f6a;
  --reader-nav-hover-border: #a78bfa;
  --reader-nav-label-color: #cbd5e1;
  --reader-nav-ch-color: #f1f5f9;
  --reader-nav-icon-color: #c4b5fd;
  --reader-toc-time-color: #94a3b8;
  --reader-toc-locked-color: #64748b;
  --reader-toc-free-color: #34d399;
}
.reader--dark .reader__sidebar { background: #162032; border-color: #2a3a50; }
.reader--dark .reader__sidebar-header { border-color: #2a3a50; }
.reader--dark .reader__back { color: #a78bfa; }
.reader--dark .reader__sidebar-close { color: #94a3b8; }
.reader--dark .reader__book-info { border-color: #2a3a50; }
.reader--dark .reader__book-title { color: #e2e8f0; }
.reader--dark .reader__book-author { color: #94a3b8; }
.reader--dark .reader__progress { border-color: #2a3a50; }
.reader--dark .reader__progress-bar { background: #334155; }
.reader--dark .reader__progress-text { color: #94a3b8; }
.reader--dark .reader__toc-title { color: #64748b; }
.reader--dark .reader__toc-item { border-color: rgba(255,255,255,.04); }
.reader--dark .reader__toc-link { color: #cbd5e1; }
.reader--dark .reader__toc-link:hover { background: #1e2d40; }
.reader--dark .reader__toc-item--active .reader__toc-link { background: rgba(139,92,246,.12); color: #a78bfa; border-color: #a78bfa; }
.reader--dark .reader__toc-num { background: #334155; color: #94a3b8; }
.reader--dark .reader__toc-item--active .reader__toc-num { background: #8b5cf6; color: var(--white); }
.reader--dark .reader__toc-time { color: #94a3b8; }
.reader--dark .reader__toc-lock { color: #64748b; }
.reader--dark .reader__toc-link--locked { color: #64748b; }

.reader--dark .reader__main { background: #1e293b; }
.reader--dark .reader__topbar { background: #1e293b; border-color: #334155; color: #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.reader--dark .reader__topbar-title { color: #e2e8f0; }
.reader--dark .reader__topbar-ch { color: #94a3b8; }
.reader--dark .reader__menu-btn { color: #e2e8f0; border-color: #334155; }
.reader--dark .reader__menu-btn:hover { background: #334155; }
.reader--dark .reader__tool-btn { color: #94a3b8; }
.reader--dark .reader__tool-btn:hover { background: rgba(255,255,255,.08); color: #a78bfa; }
.reader--dark .reader__tool-btn--active { color: #a78bfa; }

.reader--dark .reader__content { color: #cbd5e1; }
.reader--dark .reader__chapter-title { color: #f1f5f9; }
.reader--dark .reader__chapter-label { color: #a78bfa; }
.reader--dark .reader__chapter-label--section { background: rgba(139,92,246,.12); }
.reader--dark .reader__toc-item--section > .reader__toc-link { color: #a78bfa; background: rgba(139,92,246,.07); border-left-color: rgba(139,92,246,.3); }
.reader--dark .reader__toc-item--section > .reader__toc-link:hover { background: rgba(139,92,246,.14); }
.reader--dark .reader__toc-section-icon { color: #a78bfa; }
.reader--dark .reader__toc-divider { color: #475569; }
.reader--dark .reader__toc-divider::before, .reader--dark .reader__toc-divider::after { background: rgba(255,255,255,.08); }
.reader--dark .reader__chapter-meta { color: #94a3b8; }
.reader--dark .reader__chapter-meta i { color: #a78bfa; }
.reader--dark .reader__chapter-head { border-color: #334155; }
.reader--dark .reader__body-text { color: #cbd5e1; }
.reader--dark .reader__body-text table { border-color: #334155; }
.reader--dark .reader__body-text table td, .reader--dark .reader__body-text table th { border-bottom-color: #334155 !important; }
.reader--dark .reader__body-text table tr:nth-child(odd) td { background: rgba(139,92,246,.04); }
.reader--dark .reader__body-text table tr:nth-child(even) td { background: rgba(139,92,246,.09); }
.reader--dark .reader__body-text table thead tr th, .reader--dark .reader__body-text table tr:first-child th { background: #4c1d95 !important; }
.reader--dark .reader__body-text .callout { background: rgba(167,139,250,.08); border-left-color: #a78bfa; }
.reader--dark .reader__body-text .callout-title { color: #a78bfa; }
.reader--dark .reader__body-text .callout--key { border-left-color: #a78bfa; }
.reader--dark .reader__body-text .callout--key .callout-title { color: #a78bfa; }
.reader--dark .reader__body-text .callout--definition { background: rgba(96,165,250,.08); border-left-color: #60a5fa; }
.reader--dark .reader__body-text .callout--definition .callout-title { color: #60a5fa; }
.reader--dark .reader__body-text .callout--warning { background: rgba(251,191,36,.08); border-left-color: #fbbf24; }
.reader--dark .reader__body-text .callout--warning .callout-title { color: #fbbf24; }
.reader--dark .reader__body-text .callout--note { background: rgba(74,222,128,.08); border-left-color: #4ade80; }
.reader--dark .reader__body-text .callout--note .callout-title { color: #4ade80; }
.reader--dark .reader__body-text .callout--process { background: rgba(34,211,238,.08); border-left-color: #22d3ee; }
.reader--dark .reader__body-text .callout--process .callout-title { color: #22d3ee; }
.reader--dark .reader__body-text .callout--process ol li { border-bottom-color: rgba(34,211,238,.2); }
.reader--dark .reader__body-text .badge--key { background: rgba(167,139,250,.15); color: #c4b5fd; }
.reader--dark .reader__body-text .badge--verse { background: rgba(251,191,36,.15); color: #fde68a; }
.reader--dark .reader__body-text .badge--def { background: rgba(96,165,250,.15); color: #93c5fd; }
.reader--dark .reader__body-text .badge--note { background: rgba(74,222,128,.15); color: #86efac; }
.reader--dark .reader__body-text .badge--ref { background: rgba(255,255,255,.07); color: #94a3b8; }

.reader--dark .reader__settings-panel { background: #1e293b; border-color: #334155; color: #e2e8f0; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.reader--dark .reader__settings-label { color: #cbd5e1; }
.reader--dark .reader__settings-value { color: #e2e8f0; }
.reader--dark .reader__settings-btn { background: #334155; border-color: #475569; color: #e2e8f0; }
.reader--dark .reader__settings-btn:hover { background: #3d4f6a; border-color: #a78bfa; color: #c4b5fd; }
.reader--dark .reader__font-option { background: #334155; border-color: #475569; color: #e2e8f0; }
.reader--dark .reader__font-option:hover { border-color: #a78bfa; background: #3d4f6a; color: #c4b5fd; }
.reader--dark .reader__font-option--active { background: #8b5cf6; color: var(--white); border-color: #8b5cf6; }
.reader--dark .reader__align-btn { background: #334155; border-color: #475569; color: #e2e8f0; }
.reader--dark .reader__align-btn:hover { border-color: #a78bfa; background: #3d4f6a; color: #c4b5fd; }
.reader--dark .reader__align-btn--active { background: #8b5cf6; color: var(--white); border-color: #8b5cf6; }
.reader--dark .reader__theme-btn { border-color: #475569; }

.reader--dark .reader__nav-btn { background: #334155; border-color: #475569; color: #e2e8f0; }
.reader--dark .reader__nav-btn:hover { background: #3d4f6a; border-color: #a78bfa; }

.reader--dark .reader__locked { background: #162032; }
.reader--dark .reader__locked h2 { color: #e2e8f0; }
.reader--dark .reader__locked p { color: #94a3b8; }
.reader--dark .reader__locked-icon i { color: #475569; }

.reader--dark .reader__notes-panel { background: #1e293b; border-color: #334155; box-shadow: -4px 0 20px rgba(0,0,0,.35); }
.reader--dark .reader__notes-header { border-color: #334155; }
.reader--dark .reader__notes-tab { color: #94a3b8; }
.reader--dark .reader__notes-tab:hover { background: #334155; }
.reader--dark .reader__notes-tab--active { background: rgba(139,92,246,.15); color: #a78bfa; }
.reader--dark .reader__notes-close { color: #94a3b8; }
.reader--dark .reader__notes-close:hover { background: rgba(239,68,68,.15); color: #f87171; }
.reader--dark .reader__notes-add { border-color: #334155; }
.reader--dark .reader__notes-textarea { background: #162032; border-color: #334155; color: #e2e8f0; }
.reader--dark .reader__notes-textarea:focus { border-color: #8b5cf6; }
.reader--dark .reader__note-card { background: #162032; border-color: #2a3a50; }
.reader--dark .reader__note-card__text { color: #cbd5e1; }
.reader--dark .reader__note-card__chapter { color: #94a3b8; }
.reader--dark .reader__note-card__date { color: #64748b; }
.reader--dark .reader__notes-export { border-color: #334155; color: #94a3b8; }

/* ── NIGHT THEME ── */
.reader--night {
  background: #0a0f1c;
  --reader-body-color: #a8b3c7;
  --reader-heading-color: #dbe7f5;
  --reader-strong-color: #e7eef8;
  --reader-accent-color: #a5b4fc;
  --reader-link-color: #a5b4fc;
  --reader-link-hover-color: #c7d2fe;
  --reader-divider-color: #1e293b;
  --reader-blockquote-bg: linear-gradient(135deg, rgba(99, 102, 241, .14) 0%, rgba(30, 41, 59, .92) 100%);
  --reader-blockquote-text: #cbd5e1;
  --reader-blockquote-border: #818cf8;
  --reader-blockquote-quote: rgba(165, 180, 252, .55);
  --reader-settings-label-color: #94a3b8;
  --reader-settings-chip-bg: #1e293b;
  --reader-settings-chip-border: #334155;
  --reader-settings-chip-color: #cbd5e1;
  --reader-settings-chip-hover-bg: #263348;
  --reader-settings-chip-hover-border: #818cf8;
  --reader-settings-chip-hover-color: #c7d2fe;
  --reader-settings-active-bg: #6366f1;
  --reader-settings-active-border: #6366f1;
  --reader-nav-bg: #1e293b;
  --reader-nav-border: #334155;
  --reader-nav-color: #cbd5e1;
  --reader-nav-hover-bg: #263348;
  --reader-nav-hover-border: #818cf8;
  --reader-nav-label-color: #94a3b8;
  --reader-nav-ch-color: #dbe7f5;
  --reader-nav-icon-color: #a5b4fc;
  --reader-toc-time-color: #94a3b8;
  --reader-toc-locked-color: #64748b;
  --reader-toc-free-color: #4ade80;
}
.reader--night .reader__sidebar { background: #0d1322; border-color: #1a2236; }
.reader--night .reader__sidebar-header { border-color: #1a2236; }
.reader--night .reader__back { color: #818cf8; }
.reader--night .reader__sidebar-close { color: #64748b; }
.reader--night .reader__book-info { border-color: #1a2236; }
.reader--night .reader__book-title { color: #cbd5e1; }
.reader--night .reader__book-author { color: #64748b; }
.reader--night .reader__progress { border-color: #1a2236; }
.reader--night .reader__progress-bar { background: #1e293b; }
.reader--night .reader__progress-text { color: #64748b; }
.reader--night .reader__toc-title { color: #475569; }
.reader--night .reader__toc-item { border-color: rgba(255,255,255,.03); }
.reader--night .reader__toc-link { color: #a8b3c7; }
.reader--night .reader__toc-link:hover { background: var(--dark-gray); }
.reader--night .reader__toc-item--active .reader__toc-link { background: rgba(99,102,241,.1); color: #818cf8; border-color: #6366f1; }
.reader--night .reader__toc-num { background: #1e293b; color: #64748b; }
.reader--night .reader__toc-item--active .reader__toc-num { background: #6366f1; color: var(--white); }
.reader--night .reader__toc-time { color: #94a3b8; }
.reader--night .reader__toc-lock { color: #64748b; }
.reader--night .reader__toc-link--locked { color: #64748b; }

.reader--night .reader__main { background: #0f172a; }
.reader--night .reader__topbar { background: #0f172a; border-color: #1e293b; color: #94a3b8; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.reader--night .reader__topbar-title { color: #cbd5e1; }
.reader--night .reader__topbar-ch { color: #64748b; }
.reader--night .reader__menu-btn { color: #94a3b8; border-color: #1e293b; }
.reader--night .reader__menu-btn:hover { background: #1e293b; }
.reader--night .reader__tool-btn { color: #64748b; }
.reader--night .reader__tool-btn:hover { background: rgba(255,255,255,.05); color: #818cf8; }
.reader--night .reader__tool-btn--active { color: #818cf8; }

.reader--night .reader__content { color: #a8b3c7; }
.reader--night .reader__chapter-title { color: #dbe7f5; }
.reader--night .reader__chapter-label { color: #6366f1; }
.reader--night .reader__chapter-label--section { background: rgba(99,102,241,.12); }
.reader--night .reader__toc-item--section > .reader__toc-link { color: #818cf8; background: rgba(99,102,241,.07); border-left-color: rgba(99,102,241,.3); }
.reader--night .reader__toc-item--section > .reader__toc-link:hover { background: rgba(99,102,241,.14); }
.reader--night .reader__toc-section-icon { color: #818cf8; }
.reader--night .reader__toc-divider { color: #3f4267; }
.reader--night .reader__toc-divider::before, .reader--night .reader__toc-divider::after { background: rgba(255,255,255,.06); }
.reader--night .reader__chapter-meta { color: #64748b; }
.reader--night .reader__chapter-meta i { color: #6366f1; }
.reader--night .reader__chapter-head { border-color: #1e293b; }
.reader--night .reader__body-text { color: #a8b3c7; }
.reader--night .reader__body-text table { border-color: #1e293b; }
.reader--night .reader__body-text table td, .reader--night .reader__body-text table th { border-bottom-color: #1e293b !important; }
.reader--night .reader__body-text table tr:nth-child(odd) td { background: rgba(99,102,241,.04); }
.reader--night .reader__body-text table tr:nth-child(even) td { background: rgba(99,102,241,.09); }
.reader--night .reader__body-text table thead tr th, .reader--night .reader__body-text table tr:first-child th { background: #312e81 !important; }
.reader--night .reader__body-text .callout { background: rgba(99,102,241,.07); border-left-color: #6366f1; }
.reader--night .reader__body-text .callout-title { color: #818cf8; }
.reader--night .reader__body-text .callout--key { border-left-color: #818cf8; }
.reader--night .reader__body-text .callout--key .callout-title { color: #818cf8; }
.reader--night .reader__body-text .callout--definition { background: rgba(99,102,241,.07); border-left-color: #6366f1; }
.reader--night .reader__body-text .callout--definition .callout-title { color: #818cf8; }
.reader--night .reader__body-text .callout--warning { background: rgba(251,191,36,.07); border-left-color: #f59e0b; }
.reader--night .reader__body-text .callout--warning .callout-title { color: #f59e0b; }
.reader--night .reader__body-text .callout--note { background: rgba(52,211,153,.07); border-left-color: #34d399; }
.reader--night .reader__body-text .callout--note .callout-title { color: #34d399; }
.reader--night .reader__body-text .callout--process { background: rgba(56,189,248,.07); border-left-color: #38bdf8; }
.reader--night .reader__body-text .callout--process .callout-title { color: #38bdf8; }
.reader--night .reader__body-text .callout--process ol li { border-bottom-color: rgba(56,189,248,.18); }
.reader--night .reader__body-text .badge--key { background: rgba(99,102,241,.18); color: #a5b4fc; }
.reader--night .reader__body-text .badge--verse { background: rgba(251,191,36,.15); color: #fde68a; }
.reader--night .reader__body-text .badge--def { background: rgba(56,189,248,.15); color: #7dd3fc; }
.reader--night .reader__body-text .badge--note { background: rgba(52,211,153,.15); color: #6ee7b7; }
.reader--night .reader__body-text .badge--ref { background: rgba(255,255,255,.06); color: #64748b; }

.reader--night .reader__settings-panel { background: #0f172a; border-color: #1e293b; color: #94a3b8; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.reader--night .reader__settings-label { color: #94a3b8; }
.reader--night .reader__settings-value { color: #94a3b8; }
.reader--night .reader__settings-btn { background: #1e293b; border-color: #334155; color: #cbd5e1; }
.reader--night .reader__settings-btn:hover { background: #263348; border-color: #818cf8; color: #c7d2fe; }
.reader--night .reader__font-option { background: #1e293b; border-color: #334155; color: #cbd5e1; }
.reader--night .reader__font-option:hover { border-color: #818cf8; background: #263348; color: #c7d2fe; }
.reader--night .reader__font-option--active { background: #6366f1; color: var(--white); border-color: #6366f1; }
.reader--night .reader__align-btn { background: #1e293b; border-color: #334155; color: #cbd5e1; }
.reader--night .reader__align-btn:hover { border-color: #818cf8; background: #263348; color: #c7d2fe; }
.reader--night .reader__align-btn--active { background: #6366f1; color: var(--white); border-color: #6366f1; }
.reader--night .reader__theme-btn { border-color: #334155; }

.reader--night .reader__nav-btn { background: #1e293b; border-color: #334155; color: #cbd5e1; }
.reader--night .reader__nav-btn:hover { background: #263348; border-color: #818cf8; }

.reader--night .reader__locked { background: #0d1322; }
.reader--night .reader__locked h2 { color: #94a3b8; }
.reader--night .reader__locked p { color: #64748b; }
.reader--night .reader__locked-icon i { color: #334155; }

.reader--night .reader__notes-panel { background: #0f172a; border-color: #1e293b; box-shadow: -4px 0 20px rgba(0,0,0,.45); }
.reader--night .reader__notes-header { border-color: #1e293b; }
.reader--night .reader__notes-tab { color: #64748b; }
.reader--night .reader__notes-tab:hover { background: #1e293b; }
.reader--night .reader__notes-tab--active { background: rgba(99,102,241,.12); color: #818cf8; }
.reader--night .reader__notes-close { color: #64748b; }
.reader--night .reader__notes-close:hover { background: rgba(239,68,68,.12); color: #f87171; }
.reader--night .reader__notes-add { border-color: #1e293b; }
.reader--night .reader__notes-textarea { background: #0a0f1c; border-color: #1e293b; color: #94a3b8; }
.reader--night .reader__notes-textarea:focus { border-color: #6366f1; }
.reader--night .reader__note-card { background: #0d1322; border-color: #1a2236; }
.reader--night .reader__note-card__text { color: #7c8599; }
.reader--night .reader__note-card__chapter { color: #64748b; }
.reader--night .reader__note-card__date { color: #475569; }
.reader--night .reader__notes-export { border-color: #1e293b; color: #64748b; }

/* ── Notes Panel ── */
.reader__notes-panel { position: fixed; top: 0; right: 0; width: 340px; max-width: 90vw; height: 100vh; background: var(--white); border-left: 1px solid rgba(0,0,0,.1); box-shadow: -4px 0 20px rgba(0,0,0,.1); z-index: 200; display: flex; flex-direction: column; }
.reader__notes-header { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-bottom: 1px solid rgba(0,0,0,.08); }
.reader__notes-tabs { display: flex; gap: .25rem; }
.reader__notes-tab { padding: .4rem .75rem; border: none; background: none; color: #64748b; font-size: .8rem; font-weight: 600; cursor: pointer; border-radius: 6px; display: flex; align-items: center; gap: .3rem; transition: all .15s; }
.reader__notes-tab:hover { background: #f1f5f9; }
.reader__notes-tab--active { background: #ede9fe; color: #7c3aed; }
.reader__notes-close { background: none; border: none; cursor: pointer; color: #64748b; font-size: 1rem; width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.reader__notes-close:hover { background: #fee2e2; color: #dc2626; }

.reader__notes-add { padding: .75rem 1rem; border-bottom: 1px solid rgba(0,0,0,.08); }
.reader__notes-textarea { width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; padding: .5rem .75rem; font-size: .82rem; resize: none; font-family: inherit; color: #334155; transition: border-color .2s; }
.reader__notes-textarea:focus { outline: none; border-color: #8b5cf6; }
.reader__notes-colors { display: flex; gap: .4rem; margin: .5rem 0; }
.reader__note-color { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: all .15s; }
.reader__note-color:hover { transform: scale(1.15); }
.reader__note-color--active { border-color: #1e293b; box-shadow: 0 0 0 2px rgba(0,0,0,.1); }
.reader__notes-save { width: 100%; padding: .45rem; border: none; border-radius: 8px; background: #8b5cf6; color: var(--white); font-size: .8rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .3rem; transition: background .15s; }
.reader__notes-save:hover { background: #7c3aed; }

.reader__notes-list { flex: 1; overflow-y: auto; padding: .5rem .75rem; }
.reader__notes-empty { text-align: center; padding: 2rem 1rem; color: #94a3b8; }
.reader__notes-empty i { font-size: 2rem; display: block; margin-bottom: .5rem; }

.reader__note-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: .75rem; margin-bottom: .5rem; }
.reader__note-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.reader__note-card__chapter { font-size: .7rem; font-weight: 600; color: #64748b; }
.reader__note-card__del { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: .7rem; padding: 2px 4px; border-radius: 4px; }
.reader__note-card__del:hover { color: #ef4444; background: #fef2f2; }
.reader__note-card__highlight { font-size: .75rem; font-style: italic; color: #64748b; border-left: 2px solid #fbbf24; padding-left: .5rem; margin: .25rem 0; }
.reader__note-card__text { font-size: .8rem; color: #334155; line-height: 1.5; margin: .25rem 0; }
.reader__note-card__date { font-size: .65rem; color: #94a3b8; }
.reader__note-card__link { font-size: .7rem; color: #8b5cf6; text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; margin-top: .25rem; }
.reader__note-card__link:hover { text-decoration: underline; }

.reader__notes-export { padding: .75rem 1rem; border-top: 1px solid rgba(0,0,0,.08); display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: #64748b; }
.reader__export-btn { padding: .3rem .65rem; border-radius: 6px; background: #f1f5f9; color: #475569; text-decoration: none; font-size: .7rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; transition: all .15s; }
.reader__export-btn:hover { background: #ede9fe; color: #7c3aed; }

/* Reader theme adjustments for notes panel */
.reader--dark .reader__notes-panel,
.reader--night .reader__notes-panel { background: #1e293b; border-color: #334155; }
.reader--dark .reader__notes-header,
.reader--night .reader__notes-header,
.reader--dark .reader__notes-add,
.reader--night .reader__notes-add { border-color: #334155; }
.reader--dark .reader__notes-tab,
.reader--night .reader__notes-tab { color: #94a3b8; }
.reader--dark .reader__notes-tab--active,
.reader--night .reader__notes-tab--active { background: rgba(139,92,246,.15); color: #a78bfa; }
.reader--dark .reader__notes-textarea,
.reader--night .reader__notes-textarea { background: #0f172a; border-color: #334155; color: #e2e8f0; }
.reader--dark .reader__note-card,
.reader--night .reader__note-card { background: #0f172a; border-color: #334155; }
.reader--dark .reader__note-card__text,
.reader--night .reader__note-card__text { color: #e2e8f0; }
.reader--dark .reader__notes-export,
.reader--night .reader__notes-export { border-color: #334155; }
.reader--dark .reader__export-btn,
.reader--night .reader__export-btn { background: #334155; color: #e2e8f0; }

.reader--sepia .reader__notes-panel { background: #faf6f0; }
.reader--sepia .reader__notes-header,
.reader--sepia .reader__notes-add { border-color: #e8dcc8; }
.reader--sepia .reader__note-card { background: #f5f0e8; border-color: #e8dcc8; }
.reader--sepia .reader__notes-textarea { background: var(--white); border-color: #d4c8b5; color: #3d2e1e; }

@media (max-width: 767.98px) {
  .reader__notes-panel { width: 100%; max-width: 100%; }
  .reader__settings-panel { width: calc(100vw - 1.5rem); right: .75rem; left: .75rem; }
}

/* ═══════════════════════════════════════════════════════════
   BOOK DETAIL — MOBILE RESPONSIVENESS
   ═══════════════════════════════════════════════════════════ */

/* ── Purchase Modal — mobile scroll + full-width ── */
.purchase-modal__card {
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
}
.purchase-modal__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 576px) {
  .purchase-modal {
    align-items: flex-end;
    padding: 0;
  }
  .purchase-modal__card {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: calc(100dvh - 1rem);
    animation: purchaseSlideUp .35s ease-out;
  }
  .purchase-modal__header {
    padding: 1rem 1.25rem;
    font-size: .9rem;
  }
  .purchase-modal__body {
    padding: 1.25rem;
  }
  .purchase-modal__body h3 {
    font-size: 1rem !important;
  }
  .bd-purchase-type {
    flex-direction: column;
  }
  .bd-purchase-type__btn {
    font-size: .75rem;
    padding: .6rem;
  }
}
@keyframes purchaseSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Hero section — small mobile ── */
@media (max-width: 576px) {
  .bd-hero { padding: 1.5rem 0 1.25rem; }
  .bd-hero__grid { gap: 1.25rem; }
  .bd-hero__cover-wrap { max-width: 60%; }
  .bd-hero__title { font-size: 1.3rem; }
  .bd-hero__author { font-size: .9rem; margin-bottom: .75rem; }
  .bd-hero__social { flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }
  .bd-hero__rating-text { font-size: .8rem; }
  .bd-hero__stats { gap: .6rem .75rem; padding: .6rem 0; margin-bottom: 1rem; }
  .bd-stat { font-size: .75rem; }
  .bd-breadcrumb { margin-bottom: 1rem; font-size: .8rem; }
}

/* ── Purchase cards — stack on mobile ── */
@media (max-width: 576px) {
  .bd-purchase { flex-direction: column; }
  .bd-purchase__card { min-width: 0; }
  .bd-purchase__price { font-size: 1.25rem; }
  .bd-btn { width: 100%; justify-content: center; padding: .65rem 1rem; }
}

/* ── Content section — mobile spacing ── */
@media (max-width: 576px) {
  .bd-content { padding: 1.25rem 0; }
  .bd-content__grid { gap: 1.5rem; }
  .bd-section { margin-bottom: 1.25rem; }
  .bd-section__title { font-size: 1rem; }
  .bd-sidebar-card { padding: 1rem; }
  .bd-sidebar-card__title { font-size: .85rem; }
}

/* ── TOC items — larger touch targets ── */
@media (max-width: 576px) {
  .bd-toc__item { padding: .75rem .75rem; min-height: 44px; }
  .bd-toc__title { font-size: .82rem; }
}

/* ── Share grid — 2 columns on very small ── */
@media (max-width: 400px) {
  .bd-share-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .bd-share-card { padding: .5rem .25rem; }
  .bd-share-card__icon { width: 32px; height: 32px; font-size: .85rem; }
  .bd-share-card__label { font-size: .6rem; }
}

/* ── Reviews section — mobile ── */
@media (max-width: 576px) {
  .bd-reviews { padding: 1.5rem 0 2rem; }
  .bd-reviews__grid { gap: 1.25rem; margin-bottom: 1.25rem; }
  .bd-reviews__summary { padding: 1rem; }
  .bd-reviews__avg-num { font-size: 2rem; }
  .bd-reviews__form-wrap { padding: 1rem; }
  .bd-review-form__title { font-size: .9rem; }
  .bd-review-form__stars { font-size: 1.35rem; }
  .bd-review-card { padding: 1rem; }
  .bd-review-card__header { gap: .5rem; }
  .bd-review-card__avatar { width: 32px; height: 32px; }
  .bd-review-card__info strong { font-size: .8rem; }
  .bd-review-card__text { font-size: .82rem; }
}

/* ── Touch targets — min 44px for interactive elements ── */
@media (max-width: 767.98px) {
  .bd-like-btn { min-height: 44px; min-width: 44px; padding: .5rem .85rem; }
  .bd-review-card__reply-toggle,
  .bd-review-card__replies-toggle { min-height: 44px; padding: .4rem .6rem; }
  .bd-reviews__load-more { min-height: 44px; }
  .bd-btn { min-height: 44px; }
  .bd-description__toggle { min-height: 44px; }
  .ev-tabs__tab { min-height: 44px; }
  .mhero__btn,
  .mhero__crumb,
  .mside__info-link,
  .mside__cta-btn,
  .mside__posting-btn { min-height: 44px; }
  .mhero__crumb,
  .mside__info-link {
    display: inline-flex;
    align-items: center;
  }
  .mhero__crumb {
    padding: .4rem .7rem;
    border-radius: .6rem;
    background: rgba(255,255,255,.08);
  }
  .mside__posting-btn,
  .mside__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── Reply threads — mobile ── */
@media (max-width: 576px) {
  .bd-review-replies { padding-left: .5rem; }
  .bd-reply { gap: .5rem; }
  .bd-reply__avatar { width: 24px; height: 24px; }
  .bd-reply__header strong { font-size: .75rem; }
  .bd-reply__text { font-size: .78rem; }
  .bd-reply-form { gap: .4rem; }
  .bd-reply-form__avatar { width: 24px; height: 24px; }
  .bd-reply-form__input { padding: .4rem .6rem; font-size: .78rem; }
  .bd-reply-form__submit { width: 30px; height: 30px; font-size: .75rem; }
}

/* ── Meta row — wrap on mobile ── */
@media (max-width: 576px) {
  .bd-meta-row { flex-wrap: wrap; gap: .25rem .5rem; font-size: .8rem; }
}

/* ── Series list items in sidebar — mobile ── */
@media (max-width: 576px) {
  .bd-series-item { padding: .4rem; }
  .bd-series-item__cover { width: 36px; height: 48px; }
  .bd-series-item__title { font-size: .78rem; }
}

/* === HOMEPAGE enhancements — 2026-05-20 === */

/* C2: Skip-to-content accessibility link */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -999;
}
.skip-to-content:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: .75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  z-index: 99999;
  border-radius: 0 0 var(--radius) 0;
  outline: 3px solid var(--gold);
  overflow: visible;
  text-decoration: none;
}

/* M1: Section CTA wrapper — replaces repeated inline style="text-align:center;margin-top:2.5rem;" */
.section__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* M3: Give section headings — dark-bg override (section title/subtitle inside home-give__inner) */
.home-give__inner .section__title    { color: var(--white); }
.home-give__inner .section__subtitle { color: rgba(255,255,255,.85); margin-bottom: 2.5rem; }
.home-give .container                { text-align: center; }
.home-give__inner > .btn             { margin-top: 1.5rem; }

/* M4: Gallery category icon-wrap gradient modifiers (static, design-system colors) */
.gcat__icon-wrap--purple { background: linear-gradient(135deg,#7e22ce,#4338ca); }
.gcat__icon-wrap--blue   { background: linear-gradient(135deg,#1d4ed8,#7e22ce); }
.gcat__icon-wrap--teal   { background: linear-gradient(135deg,#059669,#0d9488); }
.gcat__icon-wrap--red    { background: linear-gradient(135deg,#dc2626,#ea580c); }
.gcat__icon-wrap--amber  { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.gcat__icon-wrap--violet { background: linear-gradient(135deg,var(--primary),#7c3aed); }

/* M5: Visit section card icon gradient modifiers */
.hvisit__card-icon--purple { background: linear-gradient(135deg,#7e22ce,#4338ca); }
.hvisit__card-icon--blue   { background: linear-gradient(135deg,#1d4ed8,#7e22ce); }
.hvisit__card-icon--teal   { background: linear-gradient(135deg,#059669,#0d9488); }

/* M6: Empty state block */
.section__empty { text-align: center; padding: 3rem; }
.section__empty p { color: var(--text-muted); margin-bottom: 1rem; }
.section__empty .btn { margin-top: .5rem; }
.section__empty--grid-span { grid-column: 1 / -1; }

/* Audio player hidden target */
.audio-player-target { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Gallery bento staggered entrance */
.gbento__item:nth-child(1) { animation-delay: .05s; }
.gbento__item:nth-child(2) { animation-delay: .12s; }
.gbento__item:nth-child(3) { animation-delay: .19s; }
.gbento__item:nth-child(4) { animation-delay: .26s; }

/* M7: Live embed CTA button spacing */
.live-embed__info > .btn { margin-top: 1.5rem; }

/* Eyebrow inline SVG alignment — global */
.section__eyebrow svg { vertical-align: middle; margin-right: .25rem; }
.hvisit__banner-icon svg { vertical-align: middle; margin-right: .3rem; }

/* m1: Footer newsletter & contact inline style cleanup */
.footer-pro__contact-email { color: #d4d4d8; text-decoration: none; }
.footer-pro__contact-email:hover { color: var(--white); }
.footer-pro__newsletter-title { margin-top: 1.5rem; }
.footer-pro__newsletter-hint  { color: var(--text-muted); font-size: .8125rem; margin-bottom: .5rem; }
.footer-pro__newsletter-msg   { font-size: .75rem; margin-top: .25rem; color: var(--text-muted); }
.footer-pro__bottom a         { color: inherit; text-decoration: underline; }
/* === About Page enhancements — 2026-05-20 === */
.about-story__heading { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 700; color: var(--dark-gray); margin-bottom: 1.5rem; }
.about-story__text { display: flex; flex-direction: column; gap: 1rem; font-size: 1.0625rem; color: var(--dark-gray); line-height: 1.8; }
.about-story__visual { position: relative; background: linear-gradient(135deg, var(--primary), #7c3aed); border-radius: var(--radius-lg); padding: 3rem; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.about-story__logo { max-width: 280px; object-fit: contain; }
.about-story__badge { position: absolute; bottom: -1.5rem; left: -1.5rem; background: var(--gold); color: var(--primary); padding: 1.25rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-story__badge-year { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.about-story__badge-label { font-size: .875rem; font-weight: 600; }
.section--pt-0 { padding-top: 0; }
.section--purple .text-center { text-align: center; }
.section--purple .section__title--white { color: var(--white); }
.section--purple .section__subtitle--white { color: rgba(255,255,255,.85); margin-bottom: 2rem; }
.btn-group--center { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* === Ministry/Department common enhancements === */
.ministry-header { padding: 3rem 2rem; border-radius: var(--radius-lg); text-align: center; margin-bottom: 3rem; }
.ministry-header__icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.2); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.ministry-header__title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--white); margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.ministry-header__subtitle { font-size: 1.125rem; color: rgba(255,255,255,.9); max-width: 600px; margin: 0 auto; line-height: 1.6; }
.activities-grid { display: grid; gap: 1.5rem; }
@media(min-width:768px){ .activities-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .activities-grid { grid-template-columns: repeat(3, 1fr); } }
.activity-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); transition: all .3s; border: 1px solid var(--border); }
.activity-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.activity-card__icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.activity-card__title { font-size: 1.25rem; font-weight: 700; color: var(--dark-gray); margin-bottom: .75rem; }
.activity-card__description { color: var(--text-muted); font-size: .9375rem; line-height: 1.6; }
.leader-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); text-align: center; }
.leader-card__avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 1.5rem; border: 4px solid; }
.leader-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader-card__name { font-size: 1.25rem; font-weight: 700; color: var(--dark-gray); margin-bottom: .5rem; }
.leader-card__role { color: var(--text-muted); font-size: .9375rem; margin-bottom: 1rem; font-weight: 500; }
.leader-card__bio { color: #4b5563; font-size: .875rem; line-height: 1.6; }

/* === Sermons Page enhancements === */
.sermon-filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.sermon-filters__btn { padding: .625rem 1.25rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); font-size: .875rem; font-weight: 500; cursor: pointer; transition: all .2s; color: var(--dark-gray); }
.sermon-filters__btn:hover, .sermon-filters__btn--active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.sermon-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all .3s; border: 1px solid var(--border); }
.sermon-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.sermon-card__header { padding: 1.5rem; border-bottom: 1px solid var(--border); }
.sermon-card__meta { display: flex; align-items: center; gap: 1rem; color: var(--text-muted); font-size: .875rem; margin-bottom: .75rem; }
.sermon-card__meta-item { display: flex; align-items: center; gap: .375rem; }
.sermon-card__title { font-size: 1.25rem; font-weight: 700; color: var(--dark-gray); margin-bottom: .5rem; }
.sermon-card__speaker { color: var(--primary); font-size: .9375rem; font-weight: 600; }
.sermon-card__verse { background: var(--light-gray); padding: 1rem 1.5rem; color: #4b5563; font-size: .875rem; font-style: italic; border-left: 3px solid var(--primary); }
.sermon-card__actions { padding: 1.5rem; display: flex; gap: .75rem; }

/* === Events Page enhancements === */
.events-grid { display: grid; gap: 2rem; }
@media(min-width:1024px){ .events-grid { grid-template-columns: repeat(2, 1fr); } }
.event-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all .3s; }
.event-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.event-card__image-wrap { position: relative; height: 240px; overflow: hidden; }
.event-card__image { width: 100%; height: 100%; object-fit: cover; }
.event-card__date-badge { position: absolute; top: 1rem; left: 1rem; background: var(--white); border-radius: var(--radius); padding: .75rem 1rem; text-align: center; box-shadow: var(--shadow); }
.event-card__date-day { font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1; }
.event-card__date-month { font-size: .75rem; font-weight: 600; color: var(--dark-gray); text-transform: uppercase; }
.event-card__content { padding: 1.5rem; }
.event-card__category { display: inline-block; padding: .375rem .875rem; border-radius: var(--radius); font-size: .75rem; font-weight: 600; margin-bottom: .75rem; }
.event-card__title { font-size: 1.5rem; font-weight: 700; color: var(--dark-gray); margin-bottom: 1rem; }
.event-card__meta { display: flex; flex-direction: column; gap: .75rem; color: var(--text-muted); font-size: .875rem; margin-bottom: 1.5rem; }
.event-card__meta-item { display: flex; align-items: flex-start; gap: .625rem; }
.event-card__footer { padding: 0 1.5rem 1.5rem; }

/* === Gallery Page enhancements === */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; justify-content: center; }
.gallery-filters__btn { padding: .625rem 1.25rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); font-size: .875rem; font-weight: 500; cursor: pointer; transition: all .2s; color: var(--dark-gray); }
.gallery-filters__btn:hover, .gallery-filters__btn--active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* === Blog & Devotionals enhancements === */
.blog-grid { display: grid; gap: 2rem; }
@media(min-width:768px){ .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all .3s; }
.blog-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.blog-card__image-wrap { height: 200px; overflow: hidden; }
.blog-card__image { width: 100%; height: 100%; object-fit: cover; }
.blog-card__content { padding: 1.5rem; }
.blog-card__meta { display: flex; align-items: center; gap: 1rem; color: var(--text-muted); font-size: .8125rem; margin-bottom: .75rem; }
.blog-card__meta-item { display: flex; align-items: center; gap: .375rem; }
.blog-card__title { font-size: 1.125rem; font-weight: 700; color: var(--dark-gray); margin-bottom: .75rem; line-height: 1.4; }
.blog-card__excerpt { color: var(--text-muted); font-size: .9375rem; line-height: 1.6; margin-bottom: 1rem; }
.blog-card__footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border); }
.blog-card__author { display: flex; align-items: center; gap: .625rem; font-size: .875rem; color: #4b5563; }
.blog-card__author-avatar { width: 32px; height: 32px; border-radius: 50%; }

/* === Contact Page enhancements === */
.contact-grid { display: grid; gap: 2rem; }
@media(min-width:1024px){ .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.contact-info__item { display: flex; gap: 1rem; padding: 1.5rem; background: var(--light-gray); border-radius: var(--radius); margin-bottom: 1rem; }
.contact-info__item:last-child { margin-bottom: 0; }
.contact-info__icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info__content h4 { font-size: 1rem; font-weight: 700; color: var(--dark-gray); margin-bottom: .375rem; }
.contact-info__content p { color: var(--text-muted); font-size: .9375rem; line-height: 1.5; }
.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.contact-form__group { margin-bottom: 1.5rem; }
.contact-form__label { display: block; font-weight: 600; color: var(--dark-gray); margin-bottom: .5rem; font-size: .9375rem; }
.contact-form__input, .contact-form__textarea { width: 100%; padding: .875rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9375rem; font-family: inherit; transition: all .2s; }
.contact-form__input:focus, .contact-form__textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(75,0,130,.1); }
.contact-form__textarea { resize: vertical; min-height: 120px; }

/* === Form Pages (Prayer, Testimony, Guest Registration) enhancements === */
.form-page { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; }
.form-page__intro { text-align: center; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.form-page__intro h2 { font-size: 1.75rem; font-weight: 700; color: var(--dark-gray); margin-bottom: .75rem; }
.form-page__intro p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.form-group { margin-bottom: 1.5rem; }
.form-group__label { display: block; font-weight: 600; color: var(--dark-gray); margin-bottom: .5rem; font-size: .9375rem; }
.form-group__label--required::after { content: " *"; color: #dc2626; }
.form-group__input, .form-group__textarea, .form-group__select { width: 100%; padding: .875rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9375rem; font-family: inherit; transition: all .2s; }
.form-group__input:focus, .form-group__textarea:focus, .form-group__select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(75,0,130,.1); }
.form-group__textarea { resize: vertical; min-height: 140px; }
.form-group__hint { color: var(--text-muted); font-size: .8125rem; margin-top: .375rem; }
.form-actions { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.form-actions--center { text-align: center; }

/* === Postings Page enhancements === */
.postings-grid { display: grid; gap: 1.5rem; }
@media(min-width:768px){ .postings-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .postings-grid { grid-template-columns: repeat(3, 1fr); } }
.posting-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all .3s; }
.posting-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.posting-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.posting-card__title { font-size: 1.125rem; font-weight: 700; color: var(--dark-gray); }
.posting-card__date { font-size: .8125rem; color: var(--text-muted); }
.posting-card__description { color: var(--text-muted); font-size: .9375rem; line-height: 1.6; margin-bottom: 1rem; }
.posting-card__meta { display: flex; gap: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); color: #4b5563; font-size: .875rem; }
.posting-card__meta-item { display: flex; align-items: center; gap: .375rem; }

/* === Give Page enhancements === */
.give-methods { display: grid; gap: 2rem; margin-bottom: 3rem; }
@media(min-width:768px){ .give-methods { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .give-methods { grid-template-columns: repeat(3, 1fr); } }
.give-method { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); text-align: center; border: 2px solid transparent; transition: all .3s; }
.give-method:hover { border-color: var(--primary); box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.give-method__icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #7c3aed); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin: 0 auto 1.25rem; }
.give-method__title { font-size: 1.25rem; font-weight: 700; color: var(--dark-gray); margin-bottom: .75rem; }
.give-method__description { color: var(--text-muted); font-size: .9375rem; line-height: 1.6; margin-bottom: 1.5rem; }
.give-method__details { background: var(--light-gray); padding: 1rem; border-radius: var(--radius); text-align: left; }
.give-method__details p { color: #4b5563; font-size: .875rem; line-height: 1.5; margin-bottom: .5rem; }
.give-method__details p:last-child { margin-bottom: 0; }

/* === Blog Post Page enhancements === */
.blog-post { max-width: 840px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); padding: 3rem; box-shadow: var(--shadow); }
.blog-post__header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.blog-post__meta { display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--text-muted); font-size: .875rem; margin-bottom: 1rem; }
.blog-post__meta-item { display: flex; align-items: center; gap: .375rem; }
.blog-post__title { font-size: clamp(2rem, 5vw, 2.5rem); font-weight: 800; color: var(--dark-gray); line-height: 1.2; margin-bottom: 1rem; }
.blog-post__excerpt { color: var(--text-muted); font-size: 1.125rem; line-height: 1.6; }
.blog-post__content { font-size: 1.0625rem; line-height: 1.8; color: var(--dark-gray); }
.blog-post__content p { margin-bottom: 1.25rem; }
.blog-post__content h2 { font-size: 1.75rem; font-weight: 700; color: var(--dark-gray); margin: 2rem 0 1rem; }
.blog-post__content h3 { font-size: 1.375rem; font-weight: 700; color: var(--dark-gray); margin: 1.5rem 0 .75rem; }

/* === Ministries Page enhancements === */
.ministries-grid { display: grid; gap: 2rem; }
@media(min-width:768px){ .ministries-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .ministries-grid { grid-template-columns: repeat(3, 1fr); } }
.ministry-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all .3s; }
.ministry-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.ministry-card__header { padding: 2rem; text-align: center; }
.ministry-card__icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1rem; }
.ministry-card__title { font-size: 1.375rem; font-weight: 700; color: var(--dark-gray); margin-bottom: .75rem; }
.ministry-card__description { color: var(--text-muted); font-size: .9375rem; line-height: 1.6; }
.ministry-card__divider { height: 1px; background: var(--border); }
.ministry-card__footer { padding: 1.5rem 2rem; text-align: center; }

/* === Utility classes === */
.mt-sm { margin-top: 1.5rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 2.5rem; }
.mb-sm { margin-bottom: 1.5rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 2.5rem; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.text-white { color: var(--white); }
.text-white-90 { color: rgba(255,255,255,.9); }
.text-white-85 { color: rgba(255,255,255,.85); }

/* === Contact Page additional enhancements === */
.contact-layout { display: grid; gap: 2rem; }
@media(min-width:1024px){ .contact-layout { grid-template-columns: 1fr 400px; } }
.contact-form__heading { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--dark-gray); margin-bottom: 1.5rem; }
.contact-info__heading { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--dark-gray); margin-bottom: .25rem; }
.contact-info__subtext { color: var(--text-muted); font-size: .9375rem; line-height: 1.6; }
.contact-info__link { color: var(--primary); font-weight: 600; text-decoration: none; font-size: .9375rem; }
.contact-info__link:hover { text-decoration: underline; }
.contact-info__link-block { display: block; }
.contact-service-time { display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; }
.contact-service-time__row { }
.contact-service-time__label { font-weight: 700; color: rgba(255,255,255,.9); }
.contact-service-time__value { color: rgba(255,255,255,.7); }
.form-required { color: #ef4444; }
.form-optional { color: var(--text-muted); font-weight: 400; }
.btn--full { width: 100%; }
.contact-info-grid { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info__card { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__icon-box { width: 48px; height: 48px; background: #ede9fe; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.5rem; }
.service-times__title { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--gold); margin-bottom: 1rem; }

/* === Prayer/Testimony Form enhancements === */
.form-page__title { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--dark-gray); margin-bottom: .75rem; font-size: 1.75rem; }
.form-page__description { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.form-consent { display: flex; align-items: flex-start; gap: .75rem; }
.form-consent__checkbox { margin-top: .25rem; width: 18px; height: 18px; flex-shrink: 0; }
.form-consent__label { color: var(--text-muted); font-size: .9375rem; line-height: 1.5; }

/* === Blog/Devotionals additional enhancements === */
.blog-filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.blog-filter__btn { padding: .625rem 1.25rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); font-size: .875rem; font-weight: 500; cursor: pointer; transition: all .2s; color: var(--dark-gray); }
.blog-filter__btn:hover, .blog-filter__btn--active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.pagination__btn { padding: .625rem 1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); font-size: .875rem; font-weight: 500; cursor: pointer; transition: all .2s; color: var(--dark-gray); text-decoration: none; }
.pagination__btn:hover, .pagination__btn--active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination__btn:disabled { opacity: .5; cursor: not-allowed; }

/* === Testimonials enhancements === */
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border); position: relative; }
.testimonial-card__quote { position: absolute; top: 1rem; left: 1.5rem; font-size: 4rem; color: var(--primary); opacity: .1; line-height: 1; font-family: Georgia, serif; }
.testimonial-card__text { color: var(--dark-gray); font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-card__author { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.testimonial-card__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.125rem; }
.testimonial-card__author-info h4 { font-size: 1rem; font-weight: 700; color: var(--dark-gray); margin-bottom: .125rem; }
.testimonial-card__author-info p { color: var(--text-muted); font-size: .8125rem; }

/* === Give Page additional enhancements === */
.give-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.give-intro__verse { background: linear-gradient(135deg, var(--primary), #7c3aed); color: var(--white); padding: 2rem; border-radius: var(--radius-lg); margin-bottom: 2rem; }
.give-intro__verse-text { font-size: 1.125rem; font-style: italic; line-height: 1.7; margin-bottom: .75rem; }
.give-intro__verse-ref { font-size: .9375rem; font-weight: 600; opacity: .9; }

/* === Postings additional enhancements === */
.posting-header { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); margin-bottom: 2rem; text-align: center; }
.posting-header__title { font-size: 2rem; font-weight: 700; color: var(--dark-gray); margin-bottom: .75rem; }
.posting-header__subtitle { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

/* === Ministries Page enhancements === */
.ministries-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.ministries-intro__title { font-size: 2rem; font-weight: 700; color: var(--dark-gray); margin-bottom: 1rem; }
.ministries-intro__text { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.7; }

/* === Card gradient variant === */
.card--gradient-purple { background: linear-gradient(135deg, var(--primary), #7c3aed); color: var(--white); }

/* === Testimonial empty state ===  */
.testimonial-empty__title { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--dark-gray); margin-bottom: .5rem; }

/* === Testimonial featured link === */
.tst-featured { text-decoration: none; color: inherit; display: block; }

/* === MINISTRIES PAGE enhancements — 2026-05-20 === */
.grid--gap-lg  { gap: 1.75rem; }
.grid--gap-md  { gap: 1.25rem; }
.link-no-dec   { text-decoration: none; }
.flex-cta      { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* === EVENTS PAGE enhancements — 2026-05-20 === */
.ev-cta__title { color: var(--white); font-size: 1.75rem; font-weight: 800; margin-bottom: .5rem; }
.ev-cta__text  { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.ev-success__title { text-align: center; color: var(--dark-gray); margin-bottom: .25rem; }
.ev-success__text  { text-align: center; color: var(--text-muted); font-size: .88rem; margin-bottom: 1.5rem; }

/* === TESTIMONIALS PAGE enhancements — 2026-05-20 === */
.section__empty-icon { font-size: 4rem; margin-bottom: 1rem; }

/* === BLOG POST PAGE enhancements — 2026-05-20 === */
.page-hero .blg-cat-tag { margin-bottom: 1rem; }
.blg-reply-actions      { display: flex; gap: .5rem; }
.blg-grid--sm           { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* === BLOG PAGE enhancements — 2026-05-20 === */
.section--no-pb       { padding-bottom: 0; }
.empty-state__title   { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--dark-gray); margin-bottom: .5rem; }

/* === SHARE-TESTIMONY PAGE enhancements — 2026-05-20 === */
.stm-container        { max-width: 760px; margin: 0 auto; }
.form-message--lg     { padding: 1.5rem; border-radius: var(--radius-lg); margin-bottom: 2rem; text-align: center; }
.stm-success__icon    { font-size: 3rem; margin-bottom: .5rem; }
.stm-success__title   { font-family: 'Poppins', sans-serif; font-weight: 700; margin-bottom: .5rem; }
.stm-success__link    { display: inline-block; margin-top: 1rem; color: var(--primary); font-weight: 600; text-decoration: none; }
.stm-callout          { background: linear-gradient(135deg, #ede9fe, #f5f3ff); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 2rem; display: flex; gap: 1rem; align-items: flex-start; }
.stm-callout__icon    { font-size: 2.5rem; flex-shrink: 0; }
.stm-callout__title   { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--dark-gray); margin-bottom: .5rem; }
.stm-callout__text    { color: var(--text-muted); font-size: .9375rem; line-height: 1.7; }
.stm-anon-toggle      { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; padding: 1rem; background: var(--light-gray); border-radius: var(--radius-lg); }
.stm-anon-label       { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.stm-anon-text        { font-weight: 600; color: var(--dark-gray); font-size: .9375rem; }
.stm-anon-hint        { color: var(--text-muted); font-size: .8125rem; }

/* === BLOG PAGE (continuation) enhancements — 2026-05-20 === */
.mr-sm { margin-right: 1rem; }
.blg-content-empty { color: var(--text-muted); font-style: italic; }

/* === DEVOTIONALS PAGE enhancements — 2026-05-20 === */
.breadcrumb--hero                        { justify-content: center; margin-bottom: 1rem; }
.page-hero .breadcrumb a                 { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb span              { color: rgba(255,255,255,.5); }
.page-hero .breadcrumb .breadcrumb__current { color: var(--white); }
.container--md                           { max-width: 800px; margin-left: auto; margin-right: auto; }
.article-meta                            { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.article-nav                             { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.section--py-sm                          { padding: 3rem 0; }
.devotional-featured__footer             { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.filter-bar form                         { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; width: 100%; }
.filter-bar .form-control--sm            { max-width: 200px; }
.filter-bar .form-control--search        { max-width: 260px; }
.section--pt-sm                          { padding-top: 2rem; }
.mb-xs                                   { margin-bottom: .75rem; }
@media (max-width: 640px) {
  .devotional-featured__footer { flex-direction: column; align-items: stretch; }
  .devotional-featured__footer .btn { width: 100%; justify-content: center; }
  .filter-bar form { flex-direction: column; align-items: stretch; }
  .filter-bar .form-control,
  .filter-bar .form-control--sm,
  .filter-bar .form-control--search,
  .filter-bar .btn { width: 100%; max-width: none; }
}

/* === GUEST REGISTRATION PAGE enhancements — 2026-05-20 === */
.form-message--xl   { padding: 2rem; border-radius: var(--radius-lg); margin-bottom: 2rem; text-align: center; }
.gst-callout        { background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 2rem; color: var(--white); display: flex; gap: 1rem; }
.gst-callout__icon  { font-size: 2.5rem; flex-shrink: 0; }
.gst-callout__title { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--gold); margin-bottom: .5rem; }
.gst-callout__text  { font-size: .9375rem; line-height: 1.7; color: rgba(255,255,255,.9); }
.btn-spinner        { display: inline-block; width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.3); border-top-color: var(--white); border-radius: 50%; animation: hgc-spin .6s linear infinite; vertical-align: middle; margin-right: .5rem; }
@keyframes hgc-spin { to { transform: rotate(360deg); } }

/* === MISC utility fixes — 2026-05-20 === */
.icon-inline                { vertical-align: middle; margin-right: .3rem; }
.g-info-icon--purple        { background: #f5f3ff; }
.g-info-icon--purple i      { color: #7c3aed; }
.g-info-icon--blue          { background: #eff6ff; }
.g-info-icon--blue i        { color: #0369a1; }

/* === ABOUT PAGE enhancements — 2026-05-20 === */
.about-story-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-story-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .about-story__badge {
    left: .75rem;
    bottom: .75rem;
    padding: .875rem 1rem;
    border-radius: .75rem;
  }
  .about-story__badge-year { font-size: 1.25rem; }
}

/* === BLOG PAGE enhancements — 2026-05-20 === */
.svg-btn-icon { vertical-align: -2px; margin-right: .4rem; }

/* === GIVE PAGE enhancements — 2026-05-20 === */
.g-note-box { margin-top: .625rem; }

/* === GIVE PAGE — full page styles moved from inline <style> — 2026-05-20 === */
.g-hero{background:linear-gradient(135deg,#0d0024 0%,#2d0060 40%,#5b21b6 75%,#7c3aed 100%);padding:5rem 1.5rem 4.5rem;text-align:center;position:relative;overflow:hidden}
.g-hero::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(45deg,transparent,transparent 34px,rgba(255,255,255,.03) 34px,rgba(255,255,255,.03) 35px);pointer-events:none}
.g-hero__tag{display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:50px;padding:.375rem 1rem;font-family:'Poppins',sans-serif;font-size:.75rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#e0d4ff;margin-bottom:1.5rem;position:relative;z-index:1}
.g-hero__title{font-family:'Poppins',sans-serif;font-size:clamp(2.25rem,5vw,3.75rem);font-weight:900;color:var(--white);line-height:1.1;margin:0 0 1.25rem;text-shadow:0 4px 30px rgba(0,0,0,.35);position:relative;z-index:1}
.g-hero__verse{font-family:'Crimson Pro',Georgia,serif;font-size:clamp(1rem,2.5vw,1.25rem);font-style:italic;color:rgba(255,255,255,.82);max-width:620px;margin:0 auto 3rem;line-height:1.75;position:relative;z-index:1}
.g-hero__stats{display:flex;align-items:center;justify-content:center;gap:.75rem;flex-wrap:wrap;position:relative;z-index:1}
.g-hero__stat{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(10px);border-radius:50px;padding:.625rem 1.375rem;display:flex;align-items:center;gap:.625rem}
.g-hero__stat i{color:#fbbf24;font-size:.875rem}
.g-hero__stat span{font-family:'Poppins',sans-serif;font-size:.8125rem;font-weight:600;color:rgba(255,255,255,.85)}
.g-section{background:#f4f2fb;padding:3rem 0 5rem;overflow:hidden}
.g-container{max-width:1120px;margin:0 auto;padding:0 1.25rem;display:grid;grid-template-columns:55fr 45fr;gap:1.75rem;align-items:start}
.g-container>*{min-width:0}
@media(max-width:940px){.g-container{grid-template-columns:1fr}}
.g-card{background:var(--white);border-radius:24px;box-shadow:0 8px 48px rgba(75,0,130,.1),0 1px 4px rgba(0,0,0,.06);overflow:hidden}
.g-card__head{padding:1.75rem 2rem 1.25rem;border-bottom:1px solid #f0eeff;background:linear-gradient(135deg,#faf9ff,#f5f0ff)}
.g-card__eyebrow{font-size:.6875rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#7c3aed;margin-bottom:.375rem;display:flex;align-items:center;gap:.4rem}
.g-card__title{font-family:'Poppins',sans-serif;font-size:1.4375rem;font-weight:800;color:#1a1a2e;line-height:1.25;margin:0}
.g-card__body{padding:1.75rem 2rem 2rem}
@media(max-width:520px){.g-card__head{padding:1.25rem 1.25rem 1rem}.g-card__body{padding:1.25rem 1.25rem 1.5rem}}
.g-tab-lbl{font-family:'Poppins',sans-serif;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--text-muted);margin-bottom:.625rem;display:block}
.g-type-scroll{margin:0 0 .25rem}
.g-type-tabs{display:flex;flex-wrap:wrap;gap:.5rem;padding-bottom:.25rem}
.g-type-tab{--tc:#7c3aed;display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:.5rem .75rem;border-radius:12px;border:2px solid var(--border);background:#f9f9fb;cursor:pointer;transition:all .16s ease;min-width:0;flex:1 1 0;max-width:calc(16.666% - .42rem);font-family:inherit}
.g-type-tab i{font-size:1rem;color:var(--text-muted);transition:color .16s}
.g-type-tab span{font-family:'Poppins',sans-serif;font-size:.625rem;font-weight:700;color:var(--text-muted);text-align:center;line-height:1.2;transition:color .16s;overflow:hidden;text-overflow:ellipsis}
.g-type-tab:hover{border-color:var(--tc);background:var(--white)}
.g-type-tab:hover i,.g-type-tab:hover span{color:var(--tc)}
.g-type-tab--on{border-color:var(--tc);background:var(--white);box-shadow:0 2px 12px rgba(0,0,0,.1)}
.g-type-tab--on i,.g-type-tab--on span{color:var(--tc) !important}
.g-type-banner{--tc:#7c3aed;background:linear-gradient(135deg,#f5f3ff,#fdf4ff);border:1.5px solid #ede9fe;border-left:4px solid var(--tc);border-radius:12px;padding:.875rem 1rem;margin:.875rem 0 1.75rem;display:flex;align-items:flex-start;gap:.75rem;transition:border-color .2s;min-width:0;overflow:hidden}
.g-type-banner__ico{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .2s,color .2s}
.g-type-banner__ico i{font-size:1rem;transition:color .2s}
.g-type-banner__text{font-family:'Crimson Pro',Georgia,serif;font-size:1.0625rem;font-style:italic;color:#4b5563;line-height:1.55;margin:.25rem 0 0}
.g-lbl{font-family:'Poppins',sans-serif;font-size:.75rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--dark-gray);margin-bottom:.75rem;display:block}
.g-amount-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:.875rem}
.g-amt-btn{padding:.8125rem .5rem;border:2px solid var(--border);border-radius:12px;background:var(--light-gray);font-family:'Poppins',sans-serif;font-size:.875rem;font-weight:700;color:var(--dark-gray);cursor:pointer;transition:all .15s;text-align:center;display:flex;flex-direction:column;align-items:center;line-height:1.2;width:100%}
.g-amt-btn small{font-size:.5625rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin-top:.2rem;color:var(--text-muted)}
.g-amt-btn:hover{border-color:var(--primary);background:#f5f3ff;color:var(--primary)}
.g-amt-btn--on{border-color:var(--primary);background:#f0eeff;color:var(--primary);box-shadow:0 0 0 3px rgba(124,58,237,.12)}
.g-amt-btn--on small{color:#a78bfa}
.g-custom-wrap{position:relative;margin-bottom:1.5rem}
.g-custom-pre{position:absolute;left:1rem;top:50%;transform:translateY(-50%);font-family:'Poppins',sans-serif;font-weight:800;font-size:.9375rem;color:var(--dark-gray);pointer-events:none}
.g-custom-in{width:100%;padding:.875rem 1rem .875rem 3.5rem;border:2px solid var(--border);border-radius:14px;font-family:'Poppins',sans-serif;font-size:1.5rem;font-weight:800;color:#1a1a2e;background:var(--white);box-sizing:border-box;transition:border-color .15s;text-align:right}
.g-custom-in:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 4px rgba(124,58,237,.1)}
.g-field{margin-bottom:1.125rem}
.g-field>label{display:block;font-family:'Poppins',sans-serif;font-size:.8125rem;font-weight:600;color:var(--dark-gray);margin-bottom:.4rem}
.g-field>label em{font-style:normal;font-weight:400;color:var(--text-muted);font-size:.75rem}
.g-field small{font-size:.75rem;color:var(--text-muted);display:block;margin-top:.3rem}
.g-ph-wrap{position:relative}
.g-ph-pre{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);font-family:'Poppins',sans-serif;font-weight:700;font-size:.875rem;color:var(--dark-gray);pointer-events:none;white-space:nowrap}
.g-ph-in{padding-left:4.125rem !important}
.g-note-btn{font-family:'Poppins',sans-serif;font-size:.8125rem;font-weight:600;color:var(--primary);background:none;border:1.5px dashed #c4b5fd;border-radius:8px;padding:.5rem .875rem;cursor:pointer;display:flex;align-items:center;gap:.4rem;transition:background .15s}
.g-note-btn:hover{background:#f5f3ff}
.g-err{background:#fef2f2;border:1.5px solid #fca5a5;border-left:4px solid #ef4444;border-radius:10px;color:#b91c1c;font-size:.875rem;font-weight:600;padding:.75rem 1rem;margin-bottom:1rem;display:none}
.g-submit{width:100%;padding:1.125rem 1.5rem;background:linear-gradient(135deg,#3b0082,#7c3aed);color:var(--white);font-family:'Poppins',sans-serif;font-size:1rem;font-weight:800;border:none;border-radius:16px;cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:0 6px 24px rgba(75,0,130,.35);display:flex;align-items:center;justify-content:center;gap:.675rem;letter-spacing:.01em;margin-bottom:1.125rem}
.g-submit:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 36px rgba(75,0,130,.45)}
.g-submit:disabled{opacity:.6;cursor:not-allowed;transform:none}
.g-secure{display:flex;align-items:center;justify-content:center;gap:1.25rem;flex-wrap:wrap;padding-top:1rem;border-top:1px solid #f0eeff}
.g-secure span{display:flex;align-items:center;gap:.3rem;font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--text-muted)}
.g-secure i{color:#16a34a}
.g-info-col{display:flex;flex-direction:column;gap:1.5rem}
.g-info-card{background:var(--white);border-radius:20px;box-shadow:0 4px 24px rgba(0,0,0,.06);overflow:hidden;min-width:0}
.g-info-card__hd{display:flex;align-items:center;gap:.875rem;padding:1.25rem 1.5rem 1rem;border-bottom:1px solid #f3f4f6;background:#fafafa}
.g-info-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.0625rem;flex-shrink:0}
.g-info-card__hd h3{font-family:'Poppins',sans-serif;font-size:1rem;font-weight:700;color:var(--dark-gray);margin:0 0 .1rem;line-height:1.25}
.g-info-card__hd p{font-size:.75rem;color:var(--text-muted);margin:0}
.g-info-card__bd{padding:1.25rem 1.5rem}
.g-reasons{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.75rem}
.g-reasons li{display:flex;gap:.75rem;align-items:flex-start;color:var(--dark-gray);font-size:.9375rem;line-height:1.5}
.g-tick{width:20px;height:20px;min-width:20px;background:linear-gradient(135deg,var(--primary),#7c3aed);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:.15rem}
.g-tick i{font-size:.475rem;color:var(--white)}
.g-methods{display:flex;flex-direction:column;gap:.875rem}
.g-method{border-radius:14px;padding:1.125rem 1.125rem .875rem;border:1.5px solid transparent;transition:box-shadow .18s,transform .18s;min-width:0;overflow:hidden}
.g-method:hover{box-shadow:0 6px 24px rgba(0,0,0,.1);transform:translateY(-2px)}
.g-method__hd{display:flex;align-items:center;gap:.75rem;margin-bottom:.875rem}
.g-method__ico{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0}
.g-method__title{display:block;font-family:'Poppins',sans-serif;font-size:.9375rem;font-weight:700;color:var(--dark-gray);line-height:1.2}
.g-method__sub{display:block;font-size:.75rem;color:var(--text-muted);margin-top:.1rem}
.g-method__bd{display:flex;flex-direction:column;gap:.5rem;min-width:0}
.g-method__row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;background:rgba(255,255,255,.7);border-radius:8px;padding:.5rem .75rem;min-width:0}
.g-method__key{font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);min-width:48px;flex-shrink:0}
.g-method__vw{display:flex;align-items:center;gap:.5rem;flex:1;justify-content:flex-end;min-width:0;overflow:hidden}
.g-method__val{font-family:'Poppins',sans-serif;font-size:.875rem;font-weight:700;color:var(--dark-gray);overflow-wrap:break-word;word-break:break-word;text-align:right;min-width:0}
.g-copy{background:none;border:1.5px solid var(--border);border-radius:6px;width:28px;height:28px;min-width:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-muted);transition:all .15s;flex-shrink:0}
.g-copy:hover{border-color:var(--primary);color:var(--primary);background:#f5f3ff}
.g-copy i{font-size:.7rem}
.g-method__note{font-size:.78125rem;color:var(--text-muted);font-style:italic;line-height:1.5;margin:.25rem 0 0;padding:0 .25rem}
.g-banner{background:linear-gradient(135deg,#0b001a,#2d0060,var(--primary));padding:4.5rem 1.5rem;text-align:center}
.g-banner__inner{max-width:700px;margin:0 auto}
.g-banner blockquote{margin:0}
.g-banner blockquote::before{content:'\201C';display:block;font-family:'Crimson Pro',Georgia,serif;font-size:5rem;line-height:.5;color:rgba(255,255,255,.15);margin-bottom:1rem}
.g-banner blockquote p{font-family:'Crimson Pro',Georgia,serif;font-size:clamp(1.25rem,3vw,1.5625rem);font-style:italic;color:rgba(255,255,255,.9);line-height:1.7;margin:0 0 1rem}
.g-banner cite{font-family:'Poppins',sans-serif;font-size:.8125rem;font-weight:700;color:#fbbf24;letter-spacing:.12em;text-transform:uppercase}
.g-overlay{display:none;position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.72);backdrop-filter:blur(8px);align-items:center;justify-content:center}
.g-overlay--on{display:flex}
.g-overlay__card{background:var(--white);border-radius:28px;padding:2.75rem 2rem 2.25rem;max-width:460px;width:calc(100% - 2rem);text-align:center;box-shadow:0 24px 80px rgba(0,0,0,.4);animation:gSlideIn .3s cubic-bezier(.34,1.56,.64,1)}
@keyframes gSlideIn{from{transform:scale(.88);opacity:0}to{transform:scale(1);opacity:1}}
.g-overlay__spin{width:72px;height:72px;border:5px solid #ede9fe;border-top:5px solid #7c3aed;border-radius:50%;margin:0 auto 1.75rem;animation:gSpin .9s linear infinite}
@keyframes gSpin{to{transform:rotate(360deg)}}
.g-overlay__icon{font-size:3.75rem;margin-bottom:1rem;line-height:1;display:none}
.g-overlay__title{font-family:'Poppins',sans-serif;font-size:1.4375rem;font-weight:800;color:var(--dark-gray);margin:0 0 .5rem}
.g-overlay__msg{color:var(--text-muted);font-size:.9375rem;line-height:1.65;margin:0 0 1rem}
.g-overlay__timer{font-size:.8125rem;font-weight:600;color:#a78bfa;margin-bottom:1.25rem}
.g-overlay__close{background:linear-gradient(135deg,#3b0082,#7c3aed);color:var(--white);border:none;padding:.875rem 2.25rem;border-radius:50px;font-family:'Poppins',sans-serif;font-size:.9375rem;font-weight:700;cursor:pointer;display:none;align-items:center;gap:.5rem;transition:transform .15s,box-shadow .15s;box-shadow:0 4px 16px rgba(75,0,130,.3)}
.g-overlay__close:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(75,0,130,.4)}
@media(max-width:940px){
  .g-hero{padding:3.5rem 1.25rem 3rem}
  .g-hero__title{font-size:2.25rem}
  .g-section{padding:2rem 0 3.5rem}
  .g-info-col{display:contents}
  .g-form-col{order:1}
  .g-info-card--why{order:2}
  .g-info-card--methods{order:3}
}
@media(max-width:640px){
  .g-hero{padding:3rem 1rem 2.5rem}
  .g-hero__title{font-size:1.75rem}
  .g-hero__verse{font-size:.9375rem;margin-bottom:2rem}
  .g-hero__stats{gap:.5rem}
  .g-hero__stat{padding:.5rem 1rem}
  .g-hero__stat span{font-size:.75rem}
  .g-section{padding:1.25rem 0 3rem}
  .g-container{padding:0 .75rem;gap:1.25rem}
  .g-amount-grid{grid-template-columns:repeat(3,1fr);gap:.375rem}
  .g-amt-btn{font-size:.75rem;padding:.625rem .375rem;border-radius:10px}
  .g-custom-in{font-size:1.25rem;padding:.75rem .875rem .75rem 3rem}
  .g-custom-pre{font-size:.8125rem}
  .g-type-tab{flex:1 1 calc(33.333% - .34rem);min-width:calc(33.333% - .34rem);max-width:calc(33.333% - .34rem);padding:.625rem .5rem}
  .g-type-tab i{font-size:1rem}
  .g-type-tab span{font-size:.625rem}
  .g-type-banner{padding:.75rem .875rem;margin:.75rem 0 1.25rem}
  .g-type-banner__ico{width:32px;height:32px;border-radius:8px}
  .g-type-banner__text{font-size:.9375rem}
  .g-submit{padding:.9375rem 1.25rem;font-size:.875rem;border-radius:14px}
  .g-secure{gap:.75rem}
  .g-secure span{font-size:.625rem}
  .g-info-card__hd{padding:1rem 1.125rem .75rem}
  .g-info-card__bd{padding:1rem 1.125rem}
  .g-method{padding:.875rem .875rem .75rem}
  .g-method__val{font-size:.75rem}
  .g-method__title{font-size:.8125rem}
  .g-banner{padding:3rem 1rem}
  .g-banner blockquote::before{font-size:3.5rem}
  .g-banner blockquote p{font-size:1.0625rem}
  .g-overlay__card{padding:2rem 1.25rem 1.75rem;border-radius:22px}
  .g-overlay__spin{width:56px;height:56px}
  .g-overlay__title{font-size:1.125rem}
  .g-overlay__msg{font-size:.8125rem}
}
@media(max-width:380px){
  .g-hero__title{font-size:1.5rem}
  .g-hero__verse{font-size:.875rem}
  .g-hero__stat{padding:.4375rem .75rem}
  .g-hero__stat span{font-size:.6875rem}
  .g-card__head{padding:1rem 1rem .75rem}
  .g-card__body{padding:1rem 1rem 1.25rem}
  .g-card__title{font-size:1.125rem}
  .g-amount-grid{grid-template-columns:repeat(2,1fr)}
  .g-type-tab{flex:1 1 calc(33.333% - .34rem);min-width:calc(33.333% - .34rem);max-width:calc(33.333% - .34rem);padding:.5rem .5rem;border-radius:10px}
  .g-method__row{flex-wrap:wrap;gap:.375rem}
  .g-method__key{min-width:100%}
  .g-method__vw{justify-content:flex-start}
}

/* === GLOBAL — button focus-visible ring — 2026-05-20 === */
.btn:focus-visible,
.g-submit:focus-visible,
.g-amt-btn:focus-visible,
.g-type-tab:focus-visible,
.g-note-btn:focus-visible,
.g-copy:focus-visible,
.g-overlay__close:focus-visible,
.ev-btn:focus-visible,
.post-card__apply:focus-visible,
.mhero__btn:focus-visible,
.hktc-btn:focus-visible,
.blg-pagination__btn:focus-visible,
.tst-card__reaction:focus-visible,
.bk-card__btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* === GIVE MODAL — Step 2 inline form — 2026-05-20 === */

/* Step 2 container — scrollable */
#giveStep2 {
  max-height: min(90vh, 680px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ── Step 2 nav header ── */
.give-form__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem .625rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--white);
  flex-shrink: 0;
}
.give-form__back {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: var(--light-gray);
  border: none;
  border-radius: 8px;
  padding: .375rem .625rem;
  cursor: pointer;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--dark-gray);
  transition: background .15s;
}
.give-form__back:hover { background: var(--border); }
.give-form__type-badge {
  --gmc: #7c3aed;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: color-mix(in srgb, var(--gmc) 12%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--gmc) 28%, transparent);
  border-radius: 20px;
  padding: .35rem .75rem;
}
.give-form__type-badge i   { color: var(--gmc); font-size: .875rem; }
.give-form__type-badge span { font-size: .8125rem; font-weight: 700; color: var(--dark-gray); }

/* ── Form body ── */
.give-form__body {
  padding: 1.125rem 1.5rem 1.5rem;
  flex: 1;
}
.give-form__type-desc {
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 1.125rem;
  padding: .625rem .875rem;
  background: var(--light-gray);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  line-height: 1.5;
}
.give-form__lbl {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dark-gray);
  margin: 0 0 .5rem;
}

/* Amount grid */
.give-form__amt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .375rem;
  margin-bottom: .625rem;
}
.give-form__amt-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  padding: .5rem .25rem;
  font-family: 'Poppins', sans-serif;
  font-size: .775rem;
  font-weight: 600;
  color: var(--dark-gray);
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1.2;
}
.give-form__amt-btn small  { font-size: .6rem; font-weight: 500; color: var(--text-muted); display: block; }
.give-form__amt-btn:hover  { border-color: var(--primary); color: var(--primary); }
.give-form__amt-btn--on    { border-color: var(--primary); background: var(--primary); color: var(--white); }
.give-form__amt-btn--on small { color: rgba(255,255,255,.75); }

/* Custom amount input */
.give-form__custom {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 0 .75rem;
  margin: .5rem 0 1.125rem;
  transition: border-color .15s;
}
.give-form__custom:focus-within { border-color: var(--primary); }
.give-form__custom span          { font-size: .8125rem; font-weight: 700; color: var(--text-muted); }
.give-form__custom-in {
  flex: 1;
  border: none;
  padding: .6rem 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--dark-gray);
  text-align: right;
  outline: none;
  background: transparent;
}

/* Phone field */
.give-form__phone {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: .35rem;
  transition: border-color .15s;
}
.give-form__phone:focus-within { border-color: var(--primary); }
.give-form__phone > span {
  padding: .6rem .75rem;
  background: var(--light-gray);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--dark-gray);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.give-form__phone-in {
  flex: 1;
  border: none;
  padding: .6rem .75rem;
  font-size: .9375rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  background: transparent;
}
.give-form__hint { font-size: .6875rem; color: var(--text-muted); display: block; margin-bottom: 1rem; }

/* Name field */
.give-form__text-in {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: .6rem .75rem;
  font-size: .9375rem;
  font-family: 'Poppins', sans-serif;
  color: var(--dark-gray);
  outline: none;
  transition: border-color .15s;
  margin-bottom: 1.125rem;
  box-sizing: border-box;
}
.give-form__text-in:focus { border-color: var(--primary); }

/* Margin between lbl + fields */
.give-form__lbl + .give-form__amt-grid,
.give-form__lbl + .give-form__phone,
.give-form__lbl + .give-form__text-in { margin-top: 0; }

/* Error */
.give-form__err {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: .625rem .875rem;
  font-size: .8125rem;
  color: #dc2626;
  margin-bottom: 1rem;
}

/* Submit */
.give-form__submit {
  width: 100%;
  padding: .875rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: all .2s ease;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(75,0,130,.3);
}
.give-form__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(75,0,130,.45);
}
.give-form__submit:disabled { opacity: .65; cursor: not-allowed; }

/* Security badges */
.give-form__secure {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .6875rem;
  color: var(--text-muted);
}
.give-form__secure span { display: flex; align-items: center; gap: .25rem; }

/* ── Payment overlay (absolute — covers full modal) ── */
.give-pay-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  z-index: 20;
}
.give-pay-overlay__inner { text-align: center; padding: 2rem 1.5rem; }
.give-pay-overlay__spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  animation: gSpinAnim .8s linear infinite;
  margin: 0 auto 1.25rem;
}
@keyframes gSpinAnim { to { transform: rotate(360deg); } }
.give-pay-overlay__icon   { font-size: 3rem; line-height: 1; margin: 0 auto 1rem; }
.give-pay-overlay__title  { font-family: 'Poppins', sans-serif; font-size: 1.125rem; font-weight: 700; color: var(--dark-gray); margin: 0 0 .5rem; }
.give-pay-overlay__msg    { font-size: .875rem; color: var(--text-muted); margin: 0 0 1rem; max-width: 280px; margin-inline: auto; line-height: 1.5; }
.give-pay-overlay__timer  { font-size: .75rem; color: var(--text-muted); margin: 0 0 1.5rem; }
.give-pay-overlay__close  {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: .625rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  align-items: center;
  gap: .35rem;
}
.give-pay-overlay__close:hover { background: var(--primary-dark); }

/* Mobile adjustments */
@media (max-width: 640px) {
  .give-form__body     { padding: 1rem; }
  .give-form__amt-btn  { font-size: .7rem; padding: .4rem .15rem; }
  .give-form__nav      { padding: .625rem .75rem; }
}

/* === GIVE MODAL — mobile & parity fixes — 2025-07-20 === */

/* Note toggle button */
.give-form__note-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: .5rem .875rem;
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  width: 100%;
  margin-bottom: .625rem;
  box-sizing: border-box;
  transition: border-color .15s, background .15s;
}
.give-form__note-btn:hover {
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  border-color: var(--primary);
}

/* Note textarea */
.give-form__note-in {
  resize: vertical;
  min-height: 72px;
  margin-bottom: .875rem;
  font-size: .875rem;
  line-height: 1.5;
}

/* Summary line above submit */
.give-form__summary {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin: 0 0 .625rem;
  min-height: 1.25em;
}

/* Custom amount — prevent overflow */
.give-form__custom {
  box-sizing: border-box;
  width: 100%;
}
.give-form__custom-in { min-width: 0; }

/* Mobile: modal sizing, body padding, submit size */
@media (max-width: 640px) {
  .give-modal {
    width: calc(100% - 32px);
    max-height: 92vh;
    overflow-y: auto;
  }
  .give-form__body { padding: 1rem; }
  .give-form__submit { font-size: .9rem; padding: .85rem; }
}

/* === GIVE MODAL — sticky submit footer — 2026-05-20 === */

/* #giveStep2: flex column, fixed height — body scrolls, footer sticks */
#giveStep2 {
  overflow-y: visible; /* body scrolls instead of the whole step */
  height: min(90vh, 680px);
}
.give-form__body {
  flex: 1;
  min-height: 0;       /* critical: lets flex child shrink and overflow-y work */
  overflow-y: auto;
  padding-bottom: 0.5rem; /* reduce, footer takes over bottom */
}
.give-form__footer {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  border-radius: 0 0 24px 24px;
}
@media (max-width: 640px) {
  #giveStep2 { height: min(92vh, 680px); }
  .give-form__footer { padding: 0.625rem 1rem 1rem; }
}

/* === GIVE — phone any-format input — 2026-05-20 === */
.give-form__phone-full {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: .65rem .875rem;
  font-size: .9375rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s;
}
.give-form__phone-full:focus { border-color: var(--primary); }
/* give page: full-width phone input (no +254 prefix) */
.g-ph-full {
  border-left: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding-left: .875rem !important;
}

/* === GIVE MODAL — interaction stability — 2026-05-20 === */
/* Prevent touch events on overlay backdrop from bleeding into modal */
.give-modal-overlay { touch-action: none; }
.give-modal          { touch-action: auto; }
/* Ensure form body and step containers absorb all pointer events */
#giveStep1, #giveStep2, .give-form__body, .give-form__footer { pointer-events: auto; }

/* === GIVE MODAL — keyboard-aware mobile layout — 2026-05-20 === */

/* On mobile: anchor overlay to top so when keyboard opens the modal
   shifts up (stays visible) rather than being clipped at the bottom */
@media (max-width: 640px) {
  .give-modal-overlay {
    align-items: flex-start;
    padding: env(safe-area-inset-top, 12px) 0 0;
    /* Fallback: overflow-y lets modal scroll within overlay if needed */
    overflow-y: auto;
  }
  .give-modal {
    /* Use dvh (dynamic viewport height) — shrinks when keyboard opens.
       Falls back to svh then vh for browsers without dvh support. */
    max-height: calc(100svh - env(safe-area-inset-top, 12px));
    max-height: calc(100dvh - env(safe-area-inset-top, 12px));
    margin: 12px auto;
    width: calc(100% - 24px);
    border-radius: 20px;
    /* Ensure modal can shrink so footer never hides inputs */
    display: flex;
    flex-direction: column;
  }
  #giveStep2 {
    /* dvh recalculates when keyboard opens — modal shrinks, body scrolls */
    height: auto;
    max-height: calc(100svh - 80px);
    max-height: calc(100dvh - 80px);
    flex: 1;
    min-height: 0;
  }
  .give-form__body {
    /* Leave gap at bottom equal to approx footer height so scrollIntoView
       doesn't hide the focused input under the sticky footer */
    scroll-padding-bottom: 110px;
  }
}

/* === GIVE MODAL — payment states — 2026-05-20 === */

/* ── State-coloured icon ── */
.give-pay-overlay__icon--success { color: #15803d; }
.give-pay-overlay__icon--failed  { color: #dc2626; }
.give-pay-overlay__icon--timeout { color: #d97706; }

/* ── State-coloured title ── */
.give-pay-overlay__title--success { color: #15803d; }
.give-pay-overlay__title--failed  { color: #dc2626; }
.give-pay-overlay__title--timeout { color: #d97706; }

/* ── Receipt line in success message ── */
.give-pay-overlay__receipt {
  display: block;
  margin-top: .25rem;
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .5px;
}

/* ── "Try Again" button variant (failure state) ── */
.give-pay-overlay__close--retry {
  background: #dc2626;
}
.give-pay-overlay__close--retry:hover { background: #b91c1c; }

/* === GIVE MODAL — animated success card (church celebration) === */
@keyframes gpsPopIn {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  65%  { transform: scale(1.22) rotate(5deg);  opacity: 1; }
  100% { transform: scale(1)   rotate(0deg);   opacity: 1; }
}
@keyframes gpsGlowPulse {
  0%,100% { transform: scale(1);   opacity: .55; }
  50%      { transform: scale(1.35); opacity: 1;   }
}
@keyframes gpsHandsWave {
  0%,100% { transform: rotate(0);    }
  25%     { transform: rotate(-18deg) scale(1.25); }
  75%     { transform: rotate(18deg)  scale(1.25); }
}
@keyframes gpsSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes gpsShimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}

/* Success overlay — dark church celebration background */
.give-pay-overlay--success {
  background: linear-gradient(155deg, #1e0b3e 0%, #0f172a 55%, #0d2818 100%) !important;
  align-items: center !important;
}
.give-pay-overlay--success .give-pay-overlay__inner {
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Canvas — full overlay for particle rain */
.gps-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Scrollable success card */
.gps-card {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.75rem 1.5rem 1.5rem;
  max-width: 340px;
  width: calc(100% - 2rem);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Check circle */
.gps-check-wrap {
  position: relative;
  width: 86px; height: 86px;
  margin: 0 auto 1rem;
  animation: gpsPopIn .55s cubic-bezier(.34,1.56,.64,1) .1s both;
}
.gps-check-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.45) 0%, transparent 70%);
  animation: gpsGlowPulse 2.2s ease-in-out infinite;
}
.gps-check-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #059669, #10b981, #34d399);
  box-shadow: 0 0 28px rgba(16,185,129,.6), 0 0 60px rgba(16,185,129,.2);
}
.gps-check-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  width: 86px; height: 86px;
  line-height: 86px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.gps-hands {
  font-size: 2rem;
  margin: 0 0 .2rem;
  display: block;
  animation: gpsHandsWave 1.1s ease .55s both;
}
.gps-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 .5rem;
  letter-spacing: -.02em;
  text-shadow: 0 0 24px rgba(139,92,246,.8), 0 2px 4px rgba(0,0,0,.4);
  animation: gpsSlideUp .35s ease .3s both;
}
.gps-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .4rem;
  margin: 0 0 .6rem;
  animation: gpsSlideUp .35s ease .4s both;
}
.gps-currency {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  letter-spacing: .03em;
}
.gps-amount-val {
  font-family: 'Poppins', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 40%, #fde68a 60%, #f59e0b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gpsShimmer 2.5s linear .8s infinite;
  filter: drop-shadow(0 0 10px rgba(251,191,36,.5));
}
.gps-type-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(139,92,246,.2);
  border: 1px solid rgba(139,92,246,.45);
  color: #c4b5fd;
  border-radius: 20px;
  padding: .28rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: .8rem;
  animation: gpsSlideUp .35s ease .45s both;
}
.gps-type-badge i { color: #a78bfa; }
.gps-receipt {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.35);
  border-radius: 8px;
  padding: .3rem .8rem;
  font-size: .75rem;
  color: #6ee7b7;
  margin-bottom: .8rem;
  animation: gpsSlideUp .35s ease .5s both;
}
.gps-receipt i { color: #34d399; }
.gps-verse {
  font-style: italic;
  font-size: .775rem;
  color: rgba(255,255,255,.55);
  max-width: 270px;
  margin: 0 auto .8rem;
  line-height: 1.65;
  border-left: 3px solid #8b5cf6;
  padding-left: .7rem;
  text-align: left;
  animation: gpsSlideUp .35s ease .55s both;
}
.gps-thanks {
  font-size: .84rem;
  color: rgba(255,255,255,.75);
  max-width: 250px;
  margin: 0 auto 1.25rem;
  line-height: 1.65;
  animation: gpsSlideUp .35s ease .6s both;
}
.gps-done-btn {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6, #6d28d9);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: .75rem 2.25rem;
  font-family: 'Poppins', sans-serif;
  font-size: .925rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  animation: gpsSlideUp .35s ease .65s both;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  box-shadow: 0 4px 22px rgba(124,58,237,.55);
  letter-spacing: .01em;
}
.gps-done-btn:hover  { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,.65); }
.gps-done-btn:active { transform: translateY(0); }
.gps-done-btn i { color: #fbbf24; }

/* ================================================================
   DEVOTIONAL SINGLE VIEW — Public Page
   ================================================================ */

/* Reading progress bar */
.dev-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: rgba(0,0,0,.08);
}
.dev-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #f59e0b);
  transition: width .1s linear;
}

/* Devotional Hero */
.dev-hero {
  position: relative;
  background: linear-gradient(135deg, #1e0b3e 0%, #2d1b69 40%, #0f2027 100%);
  padding: 5.5rem 0 3rem;
  overflow: hidden;
  color: #fff;
}
@media (max-width: 640px) {
  .dev-hero { padding: 4.5rem 0 2.25rem; }
}
.dev-hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 70% 30%, rgba(var(--cat-color, 124,58,237), .18) 0%, transparent 65%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.dev-hero__inner { position: relative; z-index: 1; }
.dev-hero__cat-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: .35rem 1rem;
  font-size: .8125rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}
.dev-cat-icon { font-size: 1.1rem; }
.dev-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
  max-width: 780px;
}
.dev-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  font-size: .8625rem;
  color: rgba(255,255,255,.65);
}
.dev-hero__meta i { color: rgba(255,255,255,.4); margin-right: .25rem; }

/* Article Layout */
.dev-article-section { padding-top: 3rem; }
.dev-layout { max-width: 780px; margin: 0 auto; }

/* Scripture Feature Card */
.dev-scripture-card {
  position: relative;
  background: linear-gradient(135deg, #fffbeb, #fef9ee);
  border: 1px solid #fde68a;
  border-left: 5px solid var(--cat-color, #f59e0b);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
@media (max-width: 640px) {
  .dev-scripture-card { padding: 1.75rem 1.25rem 1.5rem; }
}
.dev-scripture-card__deco {
  position: absolute;
  top: -1rem;
  left: 1.5rem;
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  color: rgba(245,158,11,.12);
  pointer-events: none;
  user-select: none;
}
.dev-scripture-card__text {
  font-family: 'Crimson Pro', 'Georgia', serif;
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  line-height: 1.75;
  color: #78350f;
  font-style: italic;
  margin-bottom: .875rem;
  position: relative;
}
.dev-scripture-card__ref {
  display: block;
  font-size: .9375rem;
  font-style: normal;
  font-weight: 700;
  color: #92400e;
  position: relative;
}

/* Article Body */
.dev-article-body {
  font-size: clamp(1rem, 1.5vw, 1.09375rem);
  line-height: 1.9;
  color: #1f2937;
  margin-bottom: 2.5rem;
}
.dev-article-body p { margin-bottom: 1.5rem; }

/* Reflection Banner */
.dev-reflect-banner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 1px solid #ddd6fe;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.dev-reflect-banner__icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.dev-reflect-banner strong {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  color: #5b21b6;
  margin-bottom: .35rem;
}
.dev-reflect-banner p {
  font-size: .875rem;
  color: #6d28d9;
  line-height: 1.6;
  margin: 0;
}

/* Article Footer */
.dev-article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.dev-article-footer__info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.dev-article-footer__author {
  font-weight: 600;
  font-size: .875rem;
  color: var(--dark-gray);
}
.dev-article-footer__author i { color: var(--primary); margin-right: .35rem; }
.dev-article-footer__date { font-size: .8125rem; color: var(--text-muted); }
.dev-article-footer__actions { display: flex; gap: .625rem; flex-wrap: wrap; }

/* Prev/Next Navigation */
.dev-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 480px) {
  .dev-nav { grid-template-columns: 1fr; }
}
.dev-nav__item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .18s;
}
.dev-nav__item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.dev-nav__item--next { text-align: right; }
.dev-nav__label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
}
.dev-nav__title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark-gray);
  line-height: 1.4;
}

/* Related section */
.dev-related-section { padding-top: 3rem; }
.section-title--left { text-align: left; }

/* =============================================================
   BIBLE READER PAGE
   ============================================================= */
.bible-reader-page {
  min-height: 100vh;
  background: var(--bg-light, #f8f9fa);
  padding: 0;
}

/* Themes */
.bible-reader-page[data-theme="dark"]   { --bible-bg: #1a1a2e; --bible-text: #e8e8f0; --bible-verse-bg: #16213e; --bible-border: #2d2d4e; --bible-topbar-bg: #0f0f23; --bible-sidebar-bg: #16213e; --bible-accent: #6c63ff; }
.bible-reader-page[data-theme="sepia"]  { --bible-bg: #f4ecd8; --bible-text: #4a3728; --bible-verse-bg: #ede3cc; --bible-border: #c8b89a; --bible-topbar-bg: #e8d5b0; --bible-sidebar-bg: #ede3cc; --bible-accent: #8b4513; }
.bible-reader-page[data-theme="night"]  { --bible-bg: #0d0d0d; --bible-text: #c9d1d9; --bible-verse-bg: #161b22; --bible-border: #30363d; --bible-topbar-bg: #010409; --bible-sidebar-bg: #161b22; --bible-accent: #58a6ff; }
.bible-reader-page[data-theme="light"],
.bible-reader-page:not([data-theme])   { --bible-bg: #fff; --bible-text: #1a1a1a; --bible-verse-bg: #fafafa; --bible-border: #e5e7eb; --bible-topbar-bg: #fff; --bible-sidebar-bg: #f9fafb; --bible-accent: #6a0dad; }

.bible-reader-layout {
  display: flex;
  height: calc(100vh - 80px);
  overflow: hidden;
  background: var(--bible-bg);
  color: var(--bible-text);
}

/* Sidebar */
.bible-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--bible-sidebar-bg);
  border-right: 1px solid var(--bible-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s ease;
  z-index: 200;
}
.bible-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--bible-border);
  font-weight: 700;
  font-size: .875rem;
}
.bible-sidebar__title { font-size: 1rem; font-weight: 700; }
.bible-sidebar__close {
  background: none; border: none; cursor: pointer; color: inherit; font-size: 1.1rem; padding: 0 .25rem; display: none;
}
.bible-search-box { padding: .5rem .75rem; border-bottom: 1px solid var(--bible-border); }
.bible-search-input {
  width: 100%; padding: .4rem .75rem; border: 1px solid var(--bible-border);
  border-radius: 6px; font-size: .8125rem; background: var(--bible-bg); color: var(--bible-text);
  outline: none;
}
.bible-search-input:focus { border-color: var(--bible-accent); }
.bible-book-list {
  overflow-y: auto; flex: 1; padding: .5rem 0;
  scrollbar-width: thin;
}
.bible-book-list__section { margin-bottom: .75rem; }
.bible-book-list__label {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bible-accent); padding: .375rem 1rem .25rem; opacity: .8;
}
.bible-book-item {
  display: flex; align-items: center; gap: .5rem; width: 100%; padding: .35rem 1rem;
  background: none; border: none; color: var(--bible-text); cursor: pointer; text-align: left;
  font-size: .8125rem; transition: background .15s;
}
.bible-book-item:hover { background: rgba(106,13,173,.08); }
.bible-book-item.active { background: rgba(106,13,173,.15); font-weight: 700; color: var(--bible-accent); }
.bible-book-item__short {
  width: 32px; min-width: 32px; font-size: .7rem; font-weight: 700; opacity: .6; text-align: right;
}
.bible-sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199;
}
.bible-sidebar-overlay.visible { display: block; }

/* Main reader */
.bible-main {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bible-bg); color: var(--bible-text);
}

/* Topbar */
.bible-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .625rem 1rem; border-bottom: 1px solid var(--bible-border);
  background: var(--bible-topbar-bg); flex-shrink: 0;
}
.bible-topbar__left, .bible-topbar__right { display: flex; align-items: center; gap: .5rem; }
.bible-menu-btn {
  background: none; border: none; cursor: pointer; padding: .35rem; color: inherit;
  border-radius: 6px; display: none;
}
.bible-menu-btn:hover { background: rgba(106,13,173,.1); }
.bible-breadcrumb { display: flex; align-items: center; gap: .375rem; font-size: .9375rem; font-weight: 600; }
.bible-breadcrumb__sep { opacity: .4; }
.bible-translation-tabs { display: flex; gap: .25rem; flex-wrap: wrap; }
.bible-trans-tab {
  padding: .3rem .625rem; border: 1px solid var(--bible-border); border-radius: 6px; cursor: pointer;
  font-size: .75rem; font-weight: 600; background: none; color: var(--bible-text);
  transition: all .15s; text-decoration: none; display: flex; align-items: center; gap: .2rem;
}
.bible-trans-tab:hover { background: rgba(106,13,173,.08); border-color: var(--bible-accent); }
.bible-trans-tab.active { background: var(--bible-accent); border-color: var(--bible-accent); color: #fff; }
.bible-trans-tab--unavail { opacity: .5; cursor: not-allowed; }
.bible-trans-tab--ext { color: var(--bible-accent); border-color: var(--bible-accent); }
.bible-trans-tab__badge {
  background: #e5e7eb; color: #6b7280; font-size: .5rem; padding: 0 4px; border-radius: 3px;
}
.bible-settings-btn {
  background: none; border: 1px solid var(--bible-border); border-radius: 6px; cursor: pointer;
  padding: .35rem .5rem; color: inherit; display: flex; align-items: center;
}
.bible-settings-btn:hover { background: rgba(106,13,173,.08); }

/* Settings panel */
.bible-settings-panel {
  position: absolute; right: 1rem; top: 56px; z-index: 300;
  background: var(--bible-topbar-bg); border: 1px solid var(--bible-border);
  border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.15); padding: 1rem 1.25rem; min-width: 280px;
}
.bible-settings-panel__inner { display: flex; flex-direction: column; gap: 1rem; }
.bible-settings-row { display: flex; align-items: center; gap: 1rem; }
.bible-settings-label { font-size: .8125rem; font-weight: 700; min-width: 48px; opacity: .7; }
.bible-font-btns, .bible-theme-btns { display: flex; gap: .375rem; flex-wrap: wrap; }
.bible-font-btn, .bible-theme-btn {
  padding: .3rem .65rem; border: 1px solid var(--bible-border); border-radius: 6px; cursor: pointer;
  font-size: .75rem; background: none; color: var(--bible-text); transition: all .15s;
}
.bible-font-btn:hover, .bible-theme-btn:hover { border-color: var(--bible-accent); }
.bible-font-btn.active, .bible-theme-btn.active { background: var(--bible-accent); color: #fff; border-color: var(--bible-accent); }
.bible-size-row { display: flex; align-items: center; gap: .5rem; }
.bible-size-btn {
  width: 30px; height: 30px; border: 1px solid var(--bible-border); border-radius: 6px; cursor: pointer;
  background: none; color: inherit; font-size: .8125rem; font-weight: 700;
}
.bible-size-val { font-size: .8125rem; min-width: 36px; text-align: center; opacity: .8; }

/* Chapter nav */
.bible-chapter-nav {
  display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem;
  border-bottom: 1px solid var(--bible-border); background: var(--bible-topbar-bg); flex-shrink: 0;
}
.bible-ch-nav-btn {
  background: none; border: 1px solid var(--bible-border); border-radius: 6px; cursor: pointer;
  padding: .35rem .5rem; color: inherit; display: flex; align-items: center;
  transition: all .15s;
}
.bible-ch-nav-btn:hover { background: rgba(106,13,173,.08); border-color: var(--bible-accent); }
.bible-chapter-selector { flex: 1; }
.bible-chapter-select {
  width: 100%; padding: .35rem .75rem; border: 1px solid var(--bible-border); border-radius: 6px;
  font-size: .875rem; background: var(--bible-bg); color: var(--bible-text); cursor: pointer;
  outline: none;
}
.bible-chapter-select:focus { border-color: var(--bible-accent); }

/* Content row */
.bible-content-row {
  display: flex; flex: 1; overflow: hidden; position: relative;
}
.bible-content {
  flex: 1; overflow-y: auto; padding: 2rem 2.5rem;
  scrollbar-width: thin; scroll-behavior: smooth;
  background: var(--bible-bg);
}

/* Loading */
.bible-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 200px; gap: 1rem; opacity: .6;
}
.bible-loading__spinner {
  width: 36px; height: 36px; border: 3px solid rgba(106,13,173,.2); border-top-color: var(--bible-accent);
  border-radius: 50%; animation: bibleSpin .8s linear infinite;
}
@keyframes bibleSpin { to { transform: rotate(360deg); } }

/* Verses */
.bible-verses { max-width: 680px; margin: 0 auto; }
.bible-verse {
  margin: 0; padding: .5rem .75rem; border-radius: 6px; cursor: pointer;
  transition: background .15s; display: block; color: var(--bible-text); line-height: 1.8;
}
.bible-verse:hover { background: rgba(106,13,173,.06); }
.bible-verse.selected { background: rgba(106,13,173,.12); border-left: 3px solid var(--bible-accent); padding-left: calc(.75rem - 3px); }
.bible-verse-num {
  font-size: .625rem; font-weight: 700; color: var(--bible-accent); margin-right: .375rem;
  vertical-align: super; opacity: .8;
}
.bible-verse-text { font-size: inherit; line-height: 1.8; }
.bible-empty-chapter { text-align: center; padding: 3rem 1rem; opacity: .6; }
.bible-empty-chapter p { margin: .5rem 0; }
.bible-empty-chapter .small { font-size: .875rem; }

/* Cross-refs panel */
.bible-crossref-panel {
  width: 260px; min-width: 260px; border-left: 1px solid var(--bible-border);
  background: var(--bible-sidebar-bg); display: flex; flex-direction: column; overflow: hidden;
}
.bible-crossref-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem; border-bottom: 1px solid var(--bible-border); font-size: .8125rem; font-weight: 700;
}
.bible-crossref-panel__close {
  background: none; border: none; cursor: pointer; font-size: 1rem; color: inherit; padding: 0 .25rem;
}
.bible-crossref-panel__list { overflow-y: auto; flex: 1; padding: .5rem; }
.bible-xref-item {
  display: block; width: 100%; text-align: left; padding: .5rem .75rem; border-radius: 6px;
  background: none; border: none; cursor: pointer; color: var(--bible-accent); font-size: .8125rem;
  transition: background .15s;
}
.bible-xref-item:hover { background: rgba(106,13,173,.1); }
.bible-xref-loading, .bible-xref-empty { padding: 1rem; font-size: .8125rem; opacity: .6; }

/* Verse popup */
.bible-verse-popup {
  position: absolute; z-index: 500; background: var(--bible-topbar-bg);
  border: 1px solid var(--bible-border); border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: .5rem .75rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.bible-verse-popup__ref { font-size: .75rem; font-weight: 700; color: var(--bible-accent); margin-right: .25rem; }
.bible-verse-popup__btn {
  background: none; border: 1px solid var(--bible-border); border-radius: 6px; cursor: pointer;
  padding: .25rem .5rem; font-size: .75rem; color: var(--bible-text); transition: all .15s;
}
.bible-verse-popup__btn:hover { background: rgba(106,13,173,.08); border-color: var(--bible-accent); }

/* Mobile responsive */
@media (max-width: 900px) {
  .bible-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 300;
    transform: translateX(-100%);
  }
  .bible-sidebar.open { transform: translateX(0); }
  .bible-sidebar__close { display: block; }
  .bible-menu-btn { display: flex; }
  .bible-content { padding: 1.25rem 1rem; }
  .bible-crossref-panel { display: none; }
  .bible-translation-tabs { gap: .2rem; }
  .bible-trans-tab { padding: .25rem .45rem; font-size: .7rem; }
  .bible-settings-panel { right: .5rem; top: 110px; }
}

@media (max-width: 600px) {
  .bible-breadcrumb__chapter { display: none; }
  .bible-content { padding: 1rem .75rem; }
  .bible-verses { max-width: 100%; }
}

/* Bible page body adjustments */
body.page-bible .site-footer { display: none; }
/* Hide desktop floating sidebar on Bible page; show mobile bottom bar */
@media (min-width: 768px) {
  body.page-bible .floating-side-btns { display: none; }
}
@media (max-width: 767px) {
  body.page-bible .bible-content { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
