/* =============================================================
   HGC Website – Main Stylesheet
   Colors: Purple #4B0082 | Gold #FFD700 | Dark Gray #374151
   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: #fff;
  -webkit-text-size-adjust: 100%;
}

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: #fff;
  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, #1d4ed8, #1e40af, #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__item {
  display: flex;
  align-items: center;
  padding: .5rem .75rem;
  border-radius: var(--radius);
  color: #fff;
  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;
}

/* Mobile menu toggle */
.navbar__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: #fff;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
}

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

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, #7e22ce 0%, #6b21a8 100%);
  border-top: 1px solid rgba(255,255,255,.15);
  gap: .125rem;
  padding: .75rem 1rem 1.25rem;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.mobile-menu__link {
  color: rgba(255,255,255,.95);
  font-size: .9375rem;
  font-weight: 500;
  padding: .8rem 1rem;
  border-radius: var(--radius);
  display: block;
  transition: background .2s, color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu__link:hover { background: rgba(147,51,234,.6); color: #fde047; }
.mobile-menu__link.active,
.mobile-menu__link--active { background: rgba(147,51,234,.6); color: #fde047; }

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

.mobile-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.95);
  font-size: .9375rem;
  font-weight: 500;
  padding: .8rem 1rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu__toggle:hover { background: rgba(147,51,234,.6); color: #fde047; }

.mobile-menu__toggle .chevron {
  transition: transform .2s;
}
.mobile-menu__toggle.open .chevron {
  transform: rotate(180deg);
}

.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: linear-gradient(to right, #22c55e, #16a34a);
  color: #fff;
  border: 2px solid #15803d;
  margin-top: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s;
}

.mobile-menu__donate:hover {
  background: linear-gradient(to right, #16a34a, #15803d);
  color: #fff;
}

.mobile-menu__section-title {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .5rem 1rem;
  margin-top: .5rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(to right, #4B0082, #7e22ce);
  color: #fff;
  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: #fff;
  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: .72rem;
  color: #fff;
  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: .68rem;
  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: #fff;
  border-color: var(--primary);
}

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

.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: #fff;
  color: var(--primary);
  border-color: #fff;
}

.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: #fff; }

.btn--outline-white {
  background: transparent;
  color: #fff;
  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: #fff;
  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: #fff; }
.section--purple {
  background: linear-gradient(to right, #9333ea, #7e22ce);
  color: #fff;
}

.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: #fff; }

.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: #fff;
  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: #fff;
  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;
}

/* --- Sermon Card --- */
.sermon-card {
  background: #fff;
  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: #fff;
  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: #fff;
  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; }

/* --- Ministry Card --- */
.ministry-card {
  background: #fff;
  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, #9333ea, #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: #fff;
  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: #fff; }
.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: #fff;
  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: #fff; width: 32px; height: 32px; }

/* --- Blog --- */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: #fff;
  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: #fff;
}

.pagination__btn:hover { border-color: var(--primary); color: var(--primary); }
.pagination__btn.active { background: var(--primary); color: #fff; 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: #fff;
}

.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: #fff;
}

.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: #fff; }

.footer__tagline { font-size: .9375rem; color: #9ca3af; margin-bottom: 1.25rem; line-height: 1.6; }

.footer__socials { display: flex; gap: .875rem; }
.footer__social-link { color: #9ca3af; 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: #fff; margin-bottom: 1.25rem; }

.footer__links { display: flex; flex-direction: column; gap: .625rem; }
.footer__link { color: #9ca3af; 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: #374151;
  color: #fff;
  font-size: .9375rem;
}

.footer__newsletter input::placeholder { color: #6b7280; }
.footer__newsletter input:focus { outline: none; border-color: var(--primary); }

.footer__newsletter-btn {
  background: var(--primary);
  color: #fff;
  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: #6b7280;
}

@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: #fff;
  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: #fff; }
.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 {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1; }

/* --- Sermon pages --- */
.sermon-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  background: #fff;
  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; }

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

/* 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: #fff;
  fill: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #374151;
}
.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: #fff;
  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: #fff;
}
.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: 56px; }
}

/* =============================================================
   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 1s ease, visibility 1s ease;
  font-family: 'Crimson Pro', Georgia, serif;
  color: #fff;
  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: 1.5rem;
}
.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: #FFD700;
  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: #FFD700;
  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: #FFD700;
  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;
  opacity: 0;
  transform: translateY(10px);
  transition: all .8s ease;
}
.preloader__tagline.reveal {
  opacity: .8;
  transform: translateY(0);
}

/* 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, #4B0082, #FFD700, #4B0082);
  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-width: 480px) {
  .preloader__verse-line { font-size: 1.1rem; }
  .preloader__logo { width: 70px; height: 70px; }
  .preloader__church-name { font-size: 1.1rem; }
}

/* =============================================================
   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: #fff;
  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: #fff; 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: #fff;
  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__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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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);
}

/* =============================================================
   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: #6b7280;
}

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

/* =============================================================
   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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.purchase-modal__body { padding: 1.5rem; }

/* ================================
   PODCAST CARDS
   ================================ */
.podcast-card {
  background: #fff;
  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: #fff;
  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: #fff;
  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: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: #fff;
  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: #fff; }
.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: #fff;
}
.ministry-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: .75rem;
  color: #fff;
}
.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: #374151;
  margin-bottom: 2rem;
}
.ministry-detail__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.ministry-detail__card {
  background: #f9fafb;
  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: #fff;
  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: #6b7280;
  line-height: 1.6;
}
.ministry-detail__leader {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: #f9fafb;
  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: #fff;
  font-size: 1.375rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ministry-detail__leader-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #9ca3af;
}
.ministry-detail__leader-name {
  font-weight: 700;
  color: #1f2937;
  font-size: 1rem;
}
.ministry-detail__leader-title {
  font-size: .85rem;
  color: #6b7280;
}

/* --- Ministry Sidebar --- */
.ministry-detail__sidebar-card {
  background: #f9fafb;
  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 #e5e7eb;
}
.ministry-detail__info-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .875rem;
  font-size: .9rem;
  color: #374151;
}
.ministry-detail__info-row a {
  color: #4B0082;
  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: #fff;
}
.ministry-detail__cta h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #FFD700;
  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: #fff;
  margin-bottom: 1rem;
}
.ministry-card__link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: 1rem;
  color: #4B0082;
  font-weight: 600;
  font-size: .875rem;
}

/* --- Department Hero --- */
.dept-hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  color: #fff;
  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: #fff; }
.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: #fff;
}
.dept-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: .75rem;
  color: #fff;
}
.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: #f9fafb;
  padding: 2.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.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: #374151;
  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: #374151;
}
.dept-intro__mission {
  background: #f9fafb;
  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: #6b7280;
  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: #6b7280;
  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: #fff;
  border-radius: .625rem;
  padding: 1.125rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.section--white .dept-list-item { background: #f9fafb; }
.dept-list-item__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.dept-list-item p {
  font-size: .9375rem;
  color: #374151;
  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: #f9fafb;
  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: #6b7280;
}

/* --- 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: #fff;
  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: #fff;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}
.dept-why-card p {
  font-size: .9375rem;
  color: #374151;
  line-height: 1.55;
}

/* --- Department Testimonial --- */
.dept-testimonial {
  padding: 3.5rem 0;
  color: #fff;
}
.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: #FFD700;
  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: #6b7280;
  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: #fff;
  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: #fff;
  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: #6b7280;
  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: #4B0082;
}

/* --- 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: bottom bar layout */
@media (max-width: 767px) {
  .floating-side-btns {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-evenly;
    gap: 0;
    background: linear-gradient(180deg, rgba(75,0,130,.95), rgba(126,34,206,.98));
    border-top: 1px solid rgba(255,255,255,.15);
    padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom, 0px));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  }
}

.floating-round-btn--give {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.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);
}

.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: #fff; flex-shrink: 0; }
.floating-round-btn__label {
  font-size: .6875rem;
  font-weight: 500;
  color: #374151;
  background: rgba(255,255,255,.9);
  padding: .125rem .5rem;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* Mobile: compact bottom-bar items */
@media (max-width: 767px) {
  .floating-round-btn {
    gap: .1rem;
    min-width: 44px;
  }
  .floating-round-btn__circle {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
    border: 1.5px solid rgba(255,255,255,.25);
  }
  .floating-round-btn__circle svg { width: 14px; height: 14px; }
  .floating-round-btn__label {
    font-size: .5rem;
    color: rgba(255,255,255,.9);
    background: transparent;
    padding: 0;
    box-shadow: none;
    font-weight: 600;
    letter-spacing: .03em;
  }
}
.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--store .floating-round-btn__circle {
  background: linear-gradient(to right, #3b82f6, #9333ea);
}
.floating-round-btn--store:hover .floating-round-btn__circle {
  background: linear-gradient(to right, #2563eb, #7e22ce);
}
.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--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 {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.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; }
}

/* 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: #fff; 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: #fff; }
.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: #fff; 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: #f9fafb; border: 2px solid #f0f0f5;
  text-align: center;
  transition: all .2s ease;
  cursor: pointer;
}
.give-modal__option:hover {
  border-color: var(--gmc);
  background: #fff;
  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: #fff;
  transform: scale(1.08);
}
.give-modal__option strong {
  font-family: 'Poppins', sans-serif;
  font-size: .8125rem; font-weight: 700;
  color: #111827; display: block; line-height: 1.2;
}
.give-modal__option span {
  font-size: .6875rem; color: #6b7280; 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: #fff;
  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: #fff;
  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: #fff;
  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: #fff; 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: #f9fafb;
  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: #fff; 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: #fff;
  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: #fff;
  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: #fff;
  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, #4B0082);
  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: #fff;
  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: #fff; 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: #fff;
}
.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: #fff;
  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 #ffffff;
  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: #f9fafb;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}
.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: #fff;
  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: #6b7280;
}
@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: #fff;
  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: #fff;
  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: 1fr; }
  .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: #fff;
  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: #f9fafb;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
}
.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: #6b7280;
  line-height: 1.5;
  margin-bottom: .75rem;
  flex: 1;
}
.ministry-card__link {
  font-size: .8125rem;
  font-weight: 600;
  color: #4B0082;
  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: 1fr; } }

/* ===================================================
   SERMON CARDS (Glassmorphism)
   =================================================== */
.sermon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.sermon-card {
  background: #fff;
  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, #4B0082);
  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: #fff;
  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: #fff;
  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: #4B0082;
  font-weight: 600;
  margin-bottom: .25rem;
}
.sermon-card__date {
  font-size: .8125rem;
  color: #9ca3af;
  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: #fff;
  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: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  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, #4B0082, #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: #9ca3af;
  margin-bottom: .75rem;
}
.blog-card__excerpt {
  font-size: .875rem;
  color: #6b7280;
  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: #fff;
  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: #fff;
}
.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, #4B0082 0%, #7c3aed 50%, #6d28d9 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: #fff;
  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, #6d28d9); }
.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 #ffffff;
  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: #4B0082;
  font-weight: 600;
}
.home-visit__service small {
  font-size: .8125rem;
  color: #9ca3af;
}
.home-visit__image-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 6px 6px 12px #d1d1d4, -6px -6px 12px #ffffff;
}
.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: #fff;
  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: #fff;
  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;
  padding-bottom: 1.5rem;
  font-size: .8125rem;
  color: #71717a;
}
@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; }
}

/* ===================================================
   HOME PAGE — SERMON CARD V2 (Old System Style)
   =================================================== */
.sermon-card-v2 {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  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%, #4B0082 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: #fff;
  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: #fff;
  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;
  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: #fff;
}
.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: #fff;
}
.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; }
  .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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
}

/* ---- 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: #fff;
  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: #fff; 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: #fff; 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: #fff; 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: #fff; }
.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: #fff; box-shadow: 0 0 4px rgba(0,0,0,.4); }
.audio-volume__slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; }

/* 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: #fff; }
.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: #fff; }

/* ===== 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: #fff; 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: #fff; 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: #fff; background: rgba(255,255,255,.1); }
.audio-fab__queue-btn--flash { color: #FFD700 !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: #fff;
  display: flex; align-items: center; gap: 8px;
}
.pq-drawer__count {
  background: #4B0082; color: #fff; 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: #fff; }

/* 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: #FFD700; 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: #fff;
  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: #FFD700; 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: 1fr; max-width: 360px; margin-inline: auto; } }

/* ---------- Card wrapper ---------- */
.mcard {
  position: relative;
  background: #fff;
  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, #fff 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: #6b7280;
  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, #6d28d9); }

/* ---------- Department variant ---------- */
.mcard--dept .mcard__img-wrap::after { background: linear-gradient(to top, var(--light-gray, #f9fafb) 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, #fff 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: #fff;
}
.ig-card__type {
  font-size: .6875rem;
  font-weight: 700;
  color: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #6b7280;
  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: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bcard__author-name {
  font-size: .75rem;
  color: #9ca3af;
  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: #fff;
  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: #fff;
  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: #fff;
  font-size: .9375rem;
}
.glb__title {
  font-family: 'Poppins', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  color: #374151;
  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: #fff;
  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: #6b7280;
  margin: 0;
  line-height: 1.3;
}
.gcat__arrow {
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 700;
  color: #9ca3af;
  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: #374151;
  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: #fff !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: #fff;
  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: #fff;
  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: #374151;
  margin: 0 0 .5rem;
}
.gempty__text {
  color: #6b7280;
  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: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  transition: all .2s ease;
}
.gpag__btn:hover {
  background: #ede9fe;
  color: var(--primary);
  border-color: var(--primary);
}
.gpag__btn--active {
  background: var(--primary);
  color: #fff;
  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: #fff;
  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: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: .8125rem;
  color: #374151;
  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: #fff;
}
.hvisit__contact-item--map:hover {
  background: #3b0066;
  color: #fff;
}
.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: #fff;
  border: 1px solid #e5e7eb;
  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: #fff;
  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: #fff;
}
.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: #6b7280;
  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: #fff;
  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: #4B0082;
  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, #4B0082, #7c3aed);
  color: #fff;
  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, #FFD700, #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: #4B0082;
  line-height: 1.2;
}
.alead__stat-label {
  display: block;
  font-size: .75rem;
  color: #9ca3af;
  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 #4B0082;
  color: #4B0082;
}
.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: #374151;
}
.alead__verse-ref {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: #4B0082;
  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: #fff;
  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: #fff;
  position: relative;
  z-index: 1;
}
.afound__card--mission .afound__icon { background: linear-gradient(135deg, #4B0082, #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: #4B0082;
}
.afound__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: .75rem;
}
.afound__text {
  color: #6b7280;
  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, #4B0082, #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: #fff;
  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: #4B0082;
  letter-spacing: .05em;
}
.abelief__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4B0082, #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: #6b7280;
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: .5rem;
}
.abelief__ref {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: #4B0082;
  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;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 7rem 0 3.5rem;
  overflow: hidden;
  color: #fff;
}
.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: rgba(255,255,255,.7); font-size: .8125rem; font-weight: 500;
  text-decoration: none; margin-bottom: 2rem; transition: color .2s;
}
.mhero__crumb:hover { color: #fff; }

/* 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;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}

/* Tagline */
.mhero__tagline {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255,255,255,.85);
  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: #FFD700; color: #1a1a2e; }
.mhero__btn--glass {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.mhero__btn--glass:hover { background: rgba(255,255,255,.2); color: #fff; }

/* 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: #fff; }

/* ===== 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: #fff;
  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: #374151;
  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: #fff;
  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: #fff;
  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: #6b7280;
}

/* Checklists */
.mpage__checks { display: flex; flex-direction: column; gap: .625rem; }
.mpage__check {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .875rem 1rem;
  background: #f9fafb;
  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: #374151;
}

/* Testimonial */
.mpage__testimonial {
  background: #fff;
  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: #374151;
  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: #fff; 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: #9ca3af; }

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

.mside__glass {
  background: #fff;
  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 #f9fafb;
}
.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: #9ca3af;
  margin-bottom: .125rem;
}
.mside__info-value {
  display: block;
  font-size: .875rem;
  color: #374151;
  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: #fff; 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: #9ca3af; 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: #fff;
  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: #FFD700; 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: #fff;
  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: #fff;
  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: #9ca3af;
  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__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: #fff;
  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: #fff;
  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: #9ca3af;
}
.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: #FFD700;
  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;
  gap: .75rem;
  color: rgba(255,255,255,.55);
  font-size: .78rem;
}
.sft__stat strong { color: #FFD700; 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: #fff;
  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: #fff;
  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: #FFD700;
  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: #fff;
}
.sft__audio-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.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, #FFD700, #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: #fff; background: rgba(255,255,255,.1); }
.sft__audio-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #4B0082, #6a1cb7);
  color: #fff;
  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: #FFD700;
  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: #fff; 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: #FFD700 !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: #fff;
  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,.45);
  line-height: 1.6;
  margin: 0;
}

/* 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__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; }
}
@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__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 {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  background: #fff;
  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__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: #4B0082;
  box-shadow: 0 0 0 3px rgba(75,0,130,0.1);
  background: #fff;
}
.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: #4B0082;
}
.srm-filter__btn {
  padding: .6rem 1.4rem;
  border: none;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  background: #4B0082;
  color: #fff;
}
.srm-filter__btn:hover { background: #3a0066; }
.srm-filter__clear {
  color: #4B0082;
  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 { 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: #4B0082;
  border: 1.5px solid rgba(75,0,130,0.2);
  border-radius: 8px;
  text-decoration: none;
  background: #fff;
  transition: all .2s;
}
.srm-pag__btn:hover { background: #4B0082; color: #fff; border-color: #4B0082; }
.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: #fff;
  border: 1.5px solid transparent;
  transition: all .2s;
}
.srm-pag__num:hover { background: rgba(75,0,130,0.07); color: #4B0082; }
.srm-pag__num--active {
  background: #4B0082;
  color: #fff;
  border-color: #4B0082;
}

/* --- 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: #fff;
  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: #fff;
  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 #4B0082;
  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: #4B0082;
  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: #fff;
  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: #fff;
  border-color: rgba(255,255,255,.5);
}
.hktc-btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}
.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: #fff;
  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: #fff;
  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: #fff;
  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%, #fff 100%);
  border: 1px solid rgba(75,0,130,.1);
}
.hktc-vm__card--mission {
  background: linear-gradient(135deg, #fff8e1 0%, #fff 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: #fff;
}
.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: #fff;
  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: #fff;
}
.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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
}
.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: #fff;
}
.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: #fff;
  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%, #4B0082 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: #fff;
  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: #fff;
  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 #e5e7eb;
  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: #6b7280;
  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: #fff;
}
.ev-tabs__count {
  background: var(--primary);
  color: #fff;
  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: #374151;
  font-weight: 700;
  margin-bottom: .35rem;
}
.ev-empty p { color: #6b7280; font-size: .9rem; }

/* --- Event Cards --- */
.ev-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ev-card {
  background: #fff;
  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, #4B0082, #6b21a8);
  border-radius: 12px;
  padding: .75rem .5rem;
  color: #fff;
}
.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: #6b7280;
}
.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, #4B0082);
}

/* --- 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: #fff;
  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: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.ev-modal__close:hover { background: #e5e7eb; }

/* 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: #374151;
  margin-bottom: .35rem;
}
.ev-req { color: #e74c3c; }
.ev-form-opt { color: #9ca3af; font-weight: 400; font-size: .78rem; }
.ev-form-group input {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid #e5e7eb;
  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: #fff;
  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, #4B0082, #6b21a8);
  color: #fff;
}
.ev-ticket__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  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: #6b7280;
  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 #e5e7eb;
  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: #fff;
}
.ev-ticket__qr svg { width: 100% !important; height: 100% !important; }
.ev-ticket__footer {
  text-align: center;
  font-size: .65rem;
  color: #9ca3af;
  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: #fff;
  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%; }
}

/* ===================================================================
   AUTH MODAL
   =================================================================== */
.auth-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.auth-modal {
  background: #fff; border-radius: 1.25rem; padding: 2.5rem 2rem;
  width: 100%; max-width: 420px; position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  animation: authSlideUp .3s ease;
}
@keyframes authSlideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.auth-modal__close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  font-size: 1.75rem; color: #9ca3af; cursor: pointer; line-height: 1;
}
.auth-modal__close:hover { color: #374151; }
.auth-tabs {
  display: flex; gap: .5rem; margin-bottom: 1.5rem;
  border-bottom: 2px solid #f3f4f6; padding-bottom: .75rem;
}
.auth-tab {
  flex: 1; padding: .625rem; border: none; background: none; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .9375rem;
  color: #9ca3af; border-radius: .5rem; transition: all .2s;
}
.auth-tab.active { color: #4B0082; background: #ede9fe; }
.auth-msg {
  padding: .75rem 1rem; border-radius: .5rem; margin-bottom: 1rem;
  font-size: .875rem; font-weight: 500;
}
.auth-msg--ok  { background: #dcfce7; color: #15803d; }
.auth-msg--err { background: #fef2f2; color: #dc2626; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-field label {
  display: block; font-size: .8125rem; font-weight: 600; color: #374151;
  margin-bottom: .375rem;
}
.auth-field input {
  width: 100%; padding: .7rem 1rem; border: 1.5px solid #e5e7eb;
  border-radius: .625rem; font-size: .9375rem; transition: border-color .2s;
  font-family: inherit;
}
.auth-field input:focus { outline: none; border-color: #4B0082; box-shadow: 0 0 0 3px rgba(75,0,130,.1); }
.auth-submit {
  width: 100%; padding: .75rem; font-size: 1rem; font-weight: 600;
  border-radius: .625rem; margin-top: .25rem;
}
.auth-divider {
  display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0;
  color: #9ca3af; font-size: .8125rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #e5e7eb;
}

/* Nav user dropdown */
.nav-user-menu { position: relative; }
.nav-user-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid #e5e7eb;
  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: #4B0082; }
.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: #4B0082;
}
.nav-user-dropdown {
  position: absolute; top: calc(100% + .5rem); right: 0; width: 220px;
  background: #fff; border-radius: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.15);
  border: 1px solid #e5e7eb; 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: #111827; }
.nav-user-dropdown__header small { font-size: .75rem; color: #6b7280; margin-top: .125rem; }
.nav-user-dropdown__item {
  display: block; padding: .75rem 1rem; font-size: .875rem; color: #374151;
  text-decoration: none; transition: background .15s;
}
.nav-user-dropdown__item:hover { background: #f9fafb; }
.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 #e5e7eb; border-radius: 2rem;
  background: #fff; cursor: pointer; font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: .7rem; color: #4B0082;
  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: #4B0082; background: #ede9fe; }

/* Mobile user */
.mobile-menu__user {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem; margin: .5rem 0; background: #f9fafb; border-radius: .75rem;
}
.mobile-menu__user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.mobile-menu__user-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; color: #4B0082; font-size: .875rem;
}
.mobile-menu__user-name { font-weight: 600; font-size: .875rem; color: #111827; }
.mobile-menu__login-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .875rem; border: 1.5px solid #4B0082; border-radius: .75rem;
  background: transparent; color: #4B0082; font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: .9375rem; cursor: pointer; margin-top: .5rem;
  transition: all .2s;
}
.mobile-menu__login-btn:hover { background: #4B0082; color: #fff; }

/* ===================================================================
   BLOG REDESIGN (blg-)
   =================================================================== */
/* Toolbar */
.blg-toolbar {
  background: #fff; 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: #4B0082; }
.blg-pill--active { background: #4B0082; color: #fff; }
.blg-pill--active:hover { background: #3a006b; color: #fff; }
.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: #f9fafb; border: 1.5px solid #e5e7eb;
  border-radius: 2rem; min-width: 200px; transition: border-color .2s;
}
.blg-search:focus-within { border-color: #4B0082; background: #fff; }
.blg-search svg { flex-shrink: 0; color: #9ca3af; }
.blg-search input {
  border: none; background: transparent; flex: 1; font-size: .875rem;
  outline: none; font-family: inherit; min-width: 0;
}
.blg-search__clear {
  color: #9ca3af; 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: #4B0082;
}

/* Featured */
.blg-featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem;
  background: #fff; 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,#4B0082,#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: #FFD700; 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: #111827; 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: #4B0082; font-size: .875rem; margin-top: auto;
}

/* Meta */
.blg-meta {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  font-size: .8125rem; color: #6b7280;
}
.blg-meta__author { display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; color: #374151; }
.blg-meta__date { color: #9ca3af; }
.blg-meta__stat { display: inline-flex; align-items: center; gap: .25rem; color: #6b7280; }

/* Grid */
.blg-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem; margin-top: 1.5rem;
}
.blg-card {
  background: #fff; 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,#4B0082,#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: #fff; 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: #9ca3af; }
.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: #111827; 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: #4B0082; }
.blg-card__excerpt {
  font-size: .875rem; color: #6b7280; 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, #4B0082, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.blg-card__author-name {
  font-size: .8rem; font-weight: 600; color: #374151;
}
.blg-card__engage { display: flex; gap: .85rem; }
.blg-card__engage-item {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; color: #6b7280; font-weight: 500;
  transition: color .2s;
}
.blg-card__engage-item:hover { color: #4B0082; }
.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: #4B0082; }
.blg-pagination__btn--active { background: #4B0082; color: #fff; }

/* ===================================================================
   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: #fff;
}
.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: #6b7280; 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: #fff; 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: #374151; 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: #6b7280; 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: #fff; }
.blg-social-follow--fb:hover { background: #0d65d9; }
.blg-social-follow--tw { background: #000; color: #fff; }
.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: #fff; 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: #fff; 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: #6b7280; display: block; margin-top: 1px; }

.ytp-modal__content {
  font-size: .9rem; line-height: 1.7; color: #374151;
  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: #fff; }
.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 #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.blg-like-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.25rem; border-radius: 2rem;
  border: 1.5px solid #e5e7eb; background: #fff; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .875rem;
  color: #6b7280; 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: #6b7280; 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: #6b7280; text-decoration: none; transition: all .2s;
}
.blg-share-icon:hover { background: #4267B2; color: #fff; }
.blg-share-icon:nth-child(2):hover { background: #111; }
.blg-share-icon--wa:hover { background: #25D366; color: #fff; }

/* Comments section */
.blg-comments { margin-top: 2.5rem; }
.blg-comments__heading {
  font-family: 'Poppins', sans-serif; font-size: 1.375rem; font-weight: 700;
  color: #111827; margin-bottom: 1.5rem;
}
.blg-comments__count { color: #9ca3af; font-weight: 400; }
.blg-comment-form-wrap {
  background: #f9fafb; 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: #374151;
}
.blg-comment-form { display: flex; flex-direction: column; gap: .75rem; }
.blg-comment-input {
  padding: .625rem 1rem; border: 1.5px solid #e5e7eb; border-radius: .625rem;
  font-size: .875rem; font-family: inherit;
}
.blg-comment-input:focus { outline: none; border-color: #4B0082; }
.blg-comment-textarea {
  padding: .75rem 1rem; border: 1.5px solid #e5e7eb; border-radius: .625rem;
  font-size: .875rem; font-family: inherit; resize: vertical; min-height: 60px;
}
.blg-comment-textarea:focus { outline: none; border-color: #4B0082; }
.blg-comments__list { display: flex; flex-direction: column; gap: 1.25rem; }
.blg-comments__empty { color: #9ca3af; font-size: .9375rem; text-align: center; padding: 2rem 0; }

/* Individual comment */
.blg-comment {
  padding: 1rem 1.25rem; background: #fff; 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: #4B0082; flex-shrink: 0;
}
.blg-comment-initials--sm { width: 28px; height: 28px; font-size: .6875rem; }
.blg-comment__name { font-size: .875rem; color: #111827; }
.blg-comment__time { font-size: .75rem; color: #9ca3af; display: block; }
.blg-comment__text { font-size: .9375rem; color: #374151; line-height: 1.6; margin: 0; }
.blg-reply-toggle {
  background: none; border: none; cursor: pointer; font-size: .8125rem;
  color: #4B0082; 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: #4B0082; font-weight: 600; text-decoration: none; }
.blg-back-link:hover { text-decoration: underline; }

/* ===================================================================
   TESTIMONIALS (tst-)
   =================================================================== */
.tst-toolbar {
  background: #fff; 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: #FFD700; 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: #111827; margin: .75rem 0;
}
.tst-featured__text { font-size: 1rem; color: #374151; line-height: 1.8; margin-bottom: 1.5rem; }
.tst-featured__meta {
  display: flex; align-items: center; gap: 1rem; font-size: .875rem; color: #6b7280;
}
.tst-featured__meta strong { color: #111827; }

/* Testimonial grid */
.tst-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}
.tst-card {
  background: #fff; 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 #FFD700; }
.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, #4B0082, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem;
  color: #fff; 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: #111827; display: block; font-weight: 700; }
.tst-card__time { font-size: .72rem; color: #9ca3af; display: block; margin-top: .1rem; }
.tst-card__date { font-size: .75rem; color: #9ca3af; 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: #4B0082; white-space: nowrap; flex-shrink: 0;
}
.tst-card__title {
  font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: #111827; margin-bottom: .5rem; line-height: 1.4;
  transition: color .2s;
}
.tst-card:hover .tst-card__title { color: #4B0082; }
.tst-card__content { position: relative; }
.tst-card__quote-mark {
  position: absolute; top: -2px; left: -2px; color: #4B0082; 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: #6b7280; font-weight: 500;
  transition: color .2s;
}
.tst-card__reaction--active { color: #ef4444; }
.tst-card__reaction:hover { color: #4B0082; }
.tst-card__read-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 700; color: #4B0082;
  text-decoration: none; padding: .35rem .85rem; border-radius: 20px;
  background: #ede9fe; transition: all .2s;
}
.tst-card__read-btn:hover { background: #4B0082; color: #fff; }
.tst-card__read-more {
  font-size: .8125rem; font-weight: 600; color: #4B0082;
  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) {
  .auth-modal { padding: 2rem 1.25rem; }
  .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: #fff; 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: #374151; 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: #111827; 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: #4B0082;
  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 #e5e7eb;
}
.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: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tst-single__nav-title { font-size: .9375rem; color: #4B0082; 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: #fff; 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,.85); border: none; border-radius: 50%;
  width: 36px; height: 36px; font-size: 22px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #333; transition: background .2s;
}
.apply-modal__close:hover { background: #fff; }

/* Header */
.apply-modal__header {
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(135deg, #b8860b, #8B6914);
  color: #fff; 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,.2); margin-bottom: .5rem;
}
.apply-modal__title { font-size: 1.4rem; margin: 0 0 .25rem; }
.apply-modal__ministry { margin: 0; opacity: .85; font-size: .95rem; }

/* Back button */
.apply-modal__back {
  background: none; border: none; color: #fff; cursor: pointer;
  padding: 0; margin-bottom: .5rem; display: inline-flex; align-items: center; gap: .35rem;
  opacity: .8; font-size: .9rem;
}
.apply-modal__back:hover { opacity: 1; }

/* Body */
.apply-modal__body { padding: 1.5rem 2rem; }
.apply-modal__meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  padding-bottom: 1rem; border-bottom: 1px solid #eee; 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: #222; }
.apply-modal__section { margin-bottom: 1rem; }
.apply-modal__section h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #888; margin: 0 0 .4rem; }
.apply-modal__section p { margin: 0; color: #333; line-height: 1.6; font-size: .95rem; }

/* Footer */
.apply-modal__footer { padding: 1rem 2rem 1.5rem; text-align: right; }

/* 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, transform .1s;
}
.apply-modal__btn:active { transform: scale(.97); }
.apply-modal__btn--primary {
  background: var(--clr-primary, #b8860b); color: #fff;
}
.apply-modal__btn--primary:hover { filter: brightness(1.1); }

/* Form */
.apply-modal__form { padding: 1.5rem 2rem; }
.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: #444; margin-bottom: .3rem;
}
.apply-modal__field label .req { color: #ef4444; }
.apply-modal__field label small { font-weight: 400; color: #888; }
.apply-modal__field input,
.apply-modal__field select,
.apply-modal__field textarea {
  width: 100%; padding: .6rem .8rem;
  border: 1.5px solid #ddd; border-radius: 8px;
  font-size: .9rem; font-family: inherit;
  transition: border-color .2s;
}
.apply-modal__field input:focus,
.apply-modal__field select:focus,
.apply-modal__field textarea:focus {
  outline: none; border-color: var(--clr-primary, #b8860b);
  box-shadow: 0 0 0 3px rgba(184,134,11,.12);
}
.apply-modal__field input[type=file] { padding: .4rem; }

/* 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) {
  .apply-modal__header { padding: 1.5rem 1.25rem 1.25rem; }
  .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: 3.5rem 1.5rem 2.5rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
}
.post-hero h1 { font-size: 2.2rem; margin: 0 0 .5rem; }
.post-hero p { margin: 0; opacity: .8; font-size: 1.05rem; }

/* Filters */
.post-filters {
  display: flex; justify-content: center; gap: .5rem;
  padding: 1.5rem 1rem; flex-wrap: wrap;
}
.post-filter {
  padding: .5rem 1.25rem; border: 1.5px solid #ddd; border-radius: 25px;
  background: #fff; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .2s; color: #555;
}
.post-filter:hover { border-color: var(--clr-primary, #b8860b); color: var(--clr-primary, #b8860b); }
.post-filter--active {
  background: var(--clr-primary, #b8860b); color: #fff;
  border-color: var(--clr-primary, #b8860b);
}

/* Card Grid */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* Posting Card */
.post-card {
  background: #fff; border-radius: 14px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.post-card__accent {
  height: 5px;
  background: linear-gradient(90deg, var(--gf, #b8860b), var(--gt, #8B6914));
}
.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: .2rem .6rem; border-radius: 15px;
}
.post-card__badge--ministry { background: #fef3c7; color: #92400e; }
.post-card__badge--department { background: #dbeafe; color: #1e40af; }
.post-card__deadline { font-size: .8rem; color: #888; }
.post-card__deadline--soon { color: #ef4444; font-weight: 600; }
.post-card__title { font-size: 1.15rem; margin: 0 0 .25rem; color: #111; }
.post-card__ministry { font-size: .85rem; color: #666; margin: 0 0 .75rem; }
.post-card__desc {
  font-size: .9rem; color: #555; line-height: 1.5;
  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: #777;
  margin-bottom: 1rem;
}
.post-card__meta-item { display: flex; align-items: center; gap: .3rem; }
.post-card__footer { padding: 0 1.5rem 1.25rem; }
.post-card__apply {
  display: block; width: 100%; padding: .65rem;
  border: none; border-radius: 8px; font-size: .9rem; font-weight: 600;
  cursor: pointer; text-align: center;
  background: var(--clr-primary, #b8860b); color: #fff;
  transition: filter .2s;
}
.post-card__apply:hover { filter: brightness(1.1); }

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

/* Postings Apply Modal */
.post-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.post-modal-overlay--open { opacity: 1; pointer-events: auto; }
.post-modal {
  background: #fff; border-radius: 16px; width: 95%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 2rem;
  transform: translateY(30px); transition: transform .3s;
}
.post-modal-overlay--open .post-modal { transform: translateY(0); }
.post-modal__close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.5rem; color: #999;
  cursor: pointer; line-height: 1; padding: .25rem;
}
.post-modal__close:hover { color: #333; }
.post-modal__header { text-align: center; margin-bottom: 1.25rem; }
.post-modal__header h3 { font-size: 1.25rem; font-weight: 800; color: #1a1a2e; margin: .5rem 0 .25rem; }
.post-modal__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #f0e6d2; color: #b8860b; margin: 0 auto .5rem; }
.post-modal__ministry { font-size: .85rem; color: #888; }
.post-modal__subtitle { font-size: .85rem; color: #888; margin: 0; }
.post-modal__details { margin-bottom: 1.25rem; }
.post-modal__details > div { margin-bottom: .75rem; }
.post-modal__details strong { display: block; font-size: .75rem; color: #888; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }
.post-modal__text { font-size: .9rem; color: #444; line-height: 1.6; max-height: 120px; overflow-y: auto; padding: .5rem; background: #f9f9f9; border-radius: 8px; }
.post-modal__meta { display: flex; flex-wrap: wrap; gap: .5rem .75rem; font-size: .8rem; color: #666; margin-top: .5rem; }
.post-modal__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.post-modal__actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.25rem; }
.post-modal__success { text-align: center; padding: 2rem 0; }
.post-modal__success h3 { font-size: 1.25rem; font-weight: 800; color: #1a1a2e; margin: 1rem 0 .5rem; }
.post-modal__success p { color: #666; font-size: .9rem; margin-bottom: 1.5rem; }
.post-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.25rem; border-radius: 8px; font-size: .9rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none; transition: filter .2s;
}
.post-btn--primary { background: var(--clr-primary, #b8860b); color: #fff; }
.post-btn--primary:hover { filter: brightness(1.1); }
.post-btn--outline { background: transparent; color: #666; border: 1px solid #ddd; }
.post-btn--outline:hover { background: #f5f5f5; }
.post-btn--full { width: 100%; }
.post-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.post-form-group { margin-bottom: .75rem; }
.post-form-group label { display: block; font-size: .8rem; font-weight: 600; color: #555; margin-bottom: .25rem; }
.post-form-group input,
.post-form-group select,
.post-form-group textarea {
  width: 100%; padding: .55rem .75rem; border: 1px solid #ddd; border-radius: 8px;
  font-size: .9rem; background: #f9f9f9; transition: border-color .2s;
}
.post-form-group input:focus,
.post-form-group select:focus,
.post-form-group textarea:focus { border-color: #b8860b; outline: none; background: #fff; }
.post-form-group textarea { resize: vertical; }
.post-req { color: #e53e3e; }
.post-form-opt { color: #999; font-weight: 400; font-size: .75rem; }
.post-form-error { color: #e53e3e; font-size: .85rem; margin-bottom: .5rem; min-height: 1.2em; }
@media (max-width: 540px) { .post-form-row { grid-template-columns: 1fr; } }

/* Sidebar posting card (ministry/department pages) */
.mside__posting {
  background: #fff; 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: #fff;
  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: #4B0082; cursor: pointer;
}
.consent-check label { cursor: pointer; }
.consent-check a { color: #4B0082; 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:#4B0082; 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:#9ca3af; 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%, #3b006a 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: #fff;
  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: #fff;
  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: #fff;
  border-color: var(--primary);
}
.bk-categories__pill--active:hover {
  background: var(--primary-dark);
  color: #fff;
}
.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: #fff;
  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: #fff;
  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);
}

/* ================================
   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: #fff;
  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-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: #fff;
}
.bk-card__badge--hardcover {
  left: .5rem;
  bottom: .5rem;
  top: auto;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff;
  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: #6b7280;
  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;
}
.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: #fff;
}
.bk-pagination__btn:hover { border-color: var(--primary); color: var(--primary); }
.bk-pagination__btn--active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ================================
   CHAPTER READER
   ================================ */
.reader {
  display: flex;
  min-height: calc(100vh - 70px);
  background: #f8f7fc;
}

/* ── Sidebar ─────────────────────── */
.reader__sidebar {
  width: 300px;
  background: #fff;
  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;
}
@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-thumb {
  width: 90px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  margin-bottom: .75rem;
}
.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: #fff;
}
.reader__toc-ch-title { flex: 1; line-height: 1.35; }
.reader__toc-time { font-size: .6875rem; color: var(--text-muted); flex-shrink: 0; }
.reader__toc-lock { font-size: .625rem; color: #d1d5db; flex-shrink: 0; }
.reader__toc-link--locked { color: #9ca3af; cursor: not-allowed; }
.reader__toc-item--locked .reader__toc-num { background: #f3f4f6; color: #d1d5db; }
.reader__toc-item--section > .reader__toc-link { font-style: italic; color: #6b7280; }
.reader__toc-item--section > .reader__toc-link .reader__toc-ch-title { font-size: .8rem; }
.reader__toc-free { font-size: .625rem; color: #16a34a; flex-shrink: 0; }

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

.reader__topbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 70px;
  z-index: 80;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
@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 4rem;
  width: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
@media (min-width: 600px)  { .reader__content { padding: 2.5rem 2rem 4.5rem; } }
@media (min-width: 960px)  { .reader__content { padding: 3rem 2.5rem 5rem; } }

.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-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
  color: #111827;
  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: #1f2937;
}
@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;
  color: #111827;
  line-height: 1.3;
}
.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(--border); }
.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(--primary); }
.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(--primary);
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-radius: 0 8px 8px 0;
  color: #374151;
  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(--primary-light);
  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: #111827; }
.reader__body-text em { font-style: italic; }
.reader__body-text hr { border: none; border-top: 1px solid var(--border); margin: 2.25rem 0; }
.reader__body-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* ── 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: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--dark-gray);
  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 {
  border-color: var(--primary-light);
  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: #9ca3af;
  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(--text-muted);
  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(--dark-gray);
}
.reader__nav-btn i { font-size: .875rem; flex-shrink: 0; color: var(--primary-light); }

/* Hide main footer padding in reader */
.reader + .footer { margin-top: 0; }

/* ══════════════════════════════════════════════════════
   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; }
.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, #ffd700, #ff8c00); color: #000; }
.bd-hero__badge--best { background: linear-gradient(135deg, #ff4500, #ff6347); color: #fff; }
@media (max-width: 768px) {
  .bd-hero__cover-wrap { position: static; max-width: 220px; margin: 0 auto; }
}

/* 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: #fff; }
.bd-btn--digital:hover { background: var(--primary-light); color: #fff; }
.bd-btn--hardcover { background: #e67e22; color: #fff; }
.bd-btn--hardcover:hover { background: #d35400; color: #fff; }
.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: #fff; }
.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: #fff; 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: #fff; }
.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: #fff; 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: #fff; 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: #fff; 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: #fff; 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; }
.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: #64748b; 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 #e2e8f0; background: #f8fafc; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #475569; font-size: .8rem; transition: all .15s; }
.reader__settings-btn:hover { background: #ede9fe; border-color: #a78bfa; color: #7c3aed; }

/* Font options */
.reader__settings-fonts { display: flex; gap: .35rem; flex-wrap: wrap; }
.reader__font-option { padding: .35rem .65rem; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fafc; color: #475569; font-size: .75rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.reader__font-option:hover { border-color: #a78bfa; }
.reader__font-option--active { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }

/* 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: #fff; 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 #e2e8f0; background: #f8fafc; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #475569; transition: all .15s; }
.reader__align-btn:hover { border-color: #a78bfa; }
.reader__align-btn--active { background: #8b5cf6; color: #fff; border-color: #8b5cf6; }

/* ── 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--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: #fff; }
.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-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__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: #fff; 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: #fff; 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: #fff; 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--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: #fff; }
.reader--dark .reader__toc-time { color: #64748b; }
.reader--dark .reader__toc-lock { color: #475569; }
.reader--dark .reader__toc-link--locked { color: #475569; }

.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-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__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: #94a3b8; }
.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: #a78bfa; }
.reader--dark .reader__font-option { background: #334155; border-color: #475569; color: #e2e8f0; }
.reader--dark .reader__font-option:hover { border-color: #a78bfa; }
.reader--dark .reader__font-option--active { background: #8b5cf6; color: #fff; border-color: #8b5cf6; }
.reader--dark .reader__align-btn { background: #334155; border-color: #475569; color: #e2e8f0; }
.reader--dark .reader__align-btn:hover { border-color: #a78bfa; }
.reader--dark .reader__align-btn--active { background: #8b5cf6; color: #fff; 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--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: #94a3b8; }
.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: #7c8599; }
.reader--night .reader__toc-link:hover { background: #111827; }
.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: #fff; }
.reader--night .reader__toc-time { color: #475569; }
.reader--night .reader__toc-lock { color: #334155; }
.reader--night .reader__toc-link--locked { color: #334155; }

.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: #94a3b8; }
.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: #7c8599; }
.reader--night .reader__chapter-title { color: #94a3b8; }
.reader--night .reader__chapter-label { color: #6366f1; }
.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: #7c8599; }

.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: #64748b; }
.reader--night .reader__settings-value { color: #94a3b8; }
.reader--night .reader__settings-btn { background: #1e293b; border-color: #334155; color: #94a3b8; }
.reader--night .reader__settings-btn:hover { background: #263348; border-color: #6366f1; color: #818cf8; }
.reader--night .reader__font-option { background: #1e293b; border-color: #334155; color: #94a3b8; }
.reader--night .reader__font-option:hover { border-color: #6366f1; }
.reader--night .reader__font-option--active { background: #6366f1; color: #fff; border-color: #6366f1; }
.reader--night .reader__align-btn { background: #1e293b; border-color: #334155; color: #94a3b8; }
.reader--night .reader__align-btn:hover { border-color: #6366f1; }
.reader--night .reader__align-btn--active { background: #6366f1; color: #fff; border-color: #6366f1; }
.reader--night .reader__theme-btn { border-color: #334155; }

.reader--night .reader__nav-btn { background: #1e293b; border-color: #334155; color: #94a3b8; }
.reader--night .reader__nav-btn:hover { background: #263348; border-color: #6366f1; }

.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: #fff; 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: #fff; 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: #fff; 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; }
}

/* ── 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; }
}
