/* ═══════════════════════════════════════════════════════════════════════
   BAKERSFIELD ESTATE — DESIGN SYSTEM
   Palette: Deep Forest Green · Aged Gold · Warm Cream · Rich Earth
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --green-deep:    #0f2d1a;
  --green-mid:     #1a4a2f;
  --green-bright:  #2d6a47;
  --gold-rich:     #c4991f;
  --gold-light:    #e8c660;
  --gold-pale:     #f5e9b0;
  --cream:         #f8f4ec;
  --cream-dark:    #ede5d4;
  --earth:         #5a3e1b;
  --text-dark:     #1a1208;
  --text-mid:      #3a3020;
  --text-light:    #7a6840;
  --white:         #ffffff;
  --shadow-sm:     0 2px 12px rgba(0,0,0,.08);
  --shadow-md:     0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.18);
  --radius:        10px;
  --radius-lg:     18px;
  --transition:    0.3s cubic-bezier(0.4,0,0.2,1);
  /* Aliases used across portal & footer */
  --border:        #e0d8c8;
  --cream-light:   #f8f4ec;
  --text:          #1a1208;
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
.mbe-landing, .mbe-portal, .mbe-auth-page {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

.mbe-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */
.mbe-hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mbe-hero__slideshow {
  position: absolute;
  inset: 0;
}

.mbe-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  /* Fallback gradient when no images loaded */
  background-color: var(--green-deep);
  background-image:
    linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 40%, var(--green-bright) 80%, #1a4a2f 100%);
}

.mbe-hero__slide.active { opacity: 1; }

.mbe-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,45,26,.65) 0%,
    rgba(15,45,26,.45) 40%,
    rgba(15,45,26,.75) 100%
  );
}

.mbe-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 800px;
}

.mbe-hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  animation: fadeUp .8s ease both;
}

.mbe-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-rich);
  display: inline-block;
}

.mbe-hero__logo-lockup {
  margin-bottom: 16px;
  animation: fadeUp .8s .15s ease both;
}

.mbe-hero__mhasibu {
  display: block;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
}

.mbe-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  letter-spacing: -1px;
}

.mbe-hero__title em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
}

.mbe-hero__tagline {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,.8);
  margin-bottom: 24px;
  animation: fadeUp .8s .3s ease both;
}

.mbe-hero__scripture {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--gold-pale);
  border-left: 2px solid var(--gold-rich);
  padding-left: 16px;
  text-align: left;
  display: inline-block;
  margin-bottom: 32px;
  animation: fadeUp .8s .45s ease both;
}

.mbe-hero__scripture cite {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
  font-style: normal;
}

.mbe-hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp .8s .6s ease both;
}

.mbe-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: fadeUp .8s .75s ease both;
}

.mbe-stat {
  text-align: center;
}

.mbe-stat__num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}

.mbe-stat__lbl {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
}

.mbe-stat__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}

.mbe-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  width: 42px; height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
  z-index: 2;
}

.mbe-hero__scroll span {
  width: 8px; height: 8px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  margin-top: -4px;
}

.mbe-hero__slide-dots {
  position: absolute;
  bottom: 32px;
  right: 32px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.mbe-hero__slide-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.mbe-hero__slide-dots button.active { background: var(--gold-rich); width: 24px; border-radius: 4px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.mbe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: var(--transition);
  font-family: inherit;
}

.mbe-btn--gold {
  background: var(--gold-rich);
  color: var(--green-deep);
  border-color: var(--gold-rich);
}
.mbe-btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,153,31,.35);
}

.mbe-btn--ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.4);
}
.mbe-btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
}

.mbe-btn--dark {
  background: var(--green-deep);
  color: var(--gold-light);
  border-color: var(--green-deep);
}
.mbe-btn--dark:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
}

.mbe-btn--full { width: 100%; }

.mbe-btn--submit { margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════ */
.mbe-about {
  padding: 100px 0;
  background: var(--white);
}

.mbe-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.mbe-about__visual { position: relative; }

.mbe-about__image-frame {
  position: relative;
  height: 480px;
}

.mbe-about__img-main {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-mid), var(--green-bright));
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mbe-about__img-main::before {
  content: "🏘";
  font-size: 80px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: .15;
}

.mbe-about__img-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 200px;
  height: 160px;
  background: linear-gradient(135deg, var(--gold-rich), var(--gold-light));
  border-radius: var(--radius);
  opacity: .3;
}

.mbe-about__badge {
  position: absolute;
  bottom: 12px;
  left: -24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cream-dark);
}

.mbe-badge__icon { font-size: 28px; }
.mbe-badge__text { font-size: 12px; color: var(--text-light); line-height: 1.4; }
.mbe-badge__text strong { display: block; color: var(--green-deep); font-size: 14px; }

.mbe-section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-rich);
  margin-bottom: 12px;
  font-weight: 600;
}
.mbe-section-label--light { color: var(--gold-light); }

.mbe-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-deep);
  margin-bottom: 24px;
}
.mbe-section-title em { color: var(--gold-rich); font-style: italic; font-weight: 300; }
.mbe-section-title--light { color: var(--white); }

.mbe-about__text p {
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.75;
}

.mbe-scripture-inline {
  background: var(--cream);
  border-left: 3px solid var(--gold-rich);
  padding: 14px 18px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.mbe-scripture-mark { color: var(--gold-rich); margin-right: 8px; }
.mbe-scripture-inline em { font-style: italic; color: var(--text-mid); font-size: 14px; }
.mbe-scripture-inline cite { display: block; font-size: 12px; color: var(--text-light); margin-top: 4px; font-style: normal; }

.mbe-about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.mbe-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.mbe-feature__icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.mbe-feature strong { display: block; font-size: 14px; color: var(--green-deep); }
.mbe-feature div { font-size: 13px; color: var(--text-light); }

/* ═══════════════════════════════════════════════════════════════════
   LOCATION SECTION
   ═══════════════════════════════════════════════════════════════════ */
.mbe-location {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.mbe-location__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 60%, var(--green-bright) 100%);
}

.mbe-location { position: relative; }

.mbe-location .mbe-section-label,
.mbe-location .mbe-section-title { position: relative; z-index: 1; }

.mbe-location__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.mbe-location__card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 32px 20px;
  color: white;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.mbe-location__card:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-4px);
}
.mbe-location__card span { font-size: 32px; display: block; margin-bottom: 10px; }
.mbe-location__card strong { font-size: 24px; font-family: 'Cormorant Garamond',serif; color: var(--gold-light); display: block; }
.mbe-location__card p { font-size: 13px; color: rgba(255,255,255,.7); margin: 6px 0 0; }

/* ═══════════════════════════════════════════════════════════════════
   PORTAL CARDS
   ═══════════════════════════════════════════════════════════════════ */
.mbe-portals { padding: 100px 0; background: var(--cream); text-align: center; }
.mbe-portals__subtitle {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--text-light);
  font-size: 16px;
}

.mbe-portals__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: left;
}

.mbe-portal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.06);
}
.mbe-portal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.mbe-portal-card__header {
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.mbe-portal-card--resident .mbe-portal-card__header { background: linear-gradient(135deg, var(--green-deep), var(--green-mid)); color: white; }
.mbe-portal-card--committee .mbe-portal-card__header { background: linear-gradient(135deg, #1a2a4a, #2d4a7a); color: white; }

.mbe-portal-card__icon { font-size: 36px; }
.mbe-portal-card__header h3 { color: white; font-size: 20px; margin: 0 0 4px; }
.mbe-portal-tag { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); }

.mbe-portal-card__features {
  padding: 24px 28px;
  list-style: none;
  border-bottom: 1px solid var(--cream-dark);
}
.mbe-portal-card__features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--cream);
}
.mbe-portal-card__features li:last-child { border: none; }

.mbe-portal-card__actions { padding: 24px 28px; }
.mbe-portal-card__note { font-size: 12px; color: var(--text-light); margin: 10px 0 0; text-align: center; }
.mbe-portal-card__note a { color: var(--gold-rich); }

/* ═══════════════════════════════════════════════════════════════════
   FAITH BANNER
   ═══════════════════════════════════════════════════════════════════ */
.mbe-faith-banner {
  background: linear-gradient(135deg, var(--earth), #3a2010);
  padding: 64px 24px;
  text-align: center;
}

.mbe-faith-banner__inner { max-width: 700px; margin: 0 auto; }
.mbe-faith-banner__cross { font-size: 28px; color: var(--gold-light); margin-bottom: 20px; display: block; }
.mbe-faith-banner blockquote { font-family: 'Cormorant Garamond',Georgia,serif; font-style: italic; font-size: clamp(18px,2.5vw,24px); color: var(--gold-pale); line-height: 1.7; }
.mbe-faith-banner cite { display: block; margin-top: 16px; color: rgba(255,255,255,.5); font-size: 13px; font-style: normal; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.mbe-footer {
  background: var(--green-deep);
  padding: 64px 0 0;
  color: rgba(255,255,255,.75);
}

.mbe-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.mbe-footer__logo { font-family: 'Cormorant Garamond',serif; font-size: 22px; color: var(--gold-light); margin-bottom: 12px; }
.mbe-footer__address { margin-top: 12px; font-size: 13px; }
.mbe-footer h4 { color: var(--gold-light); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.mbe-footer ul { list-style: none; }
.mbe-footer ul li { margin-bottom: 8px; }
.mbe-footer a { color: rgba(255,255,255,.65); text-decoration: none; font-size: 14px; transition: color .2s; }
.mbe-footer a:hover { color: var(--gold-light); }
.mbe-footer p { font-size: 14px; line-height: 1.7; }

.mbe-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
}
.mbe-footer__bottom p { font-size: 12px; color: rgba(255,255,255,.4); margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════ */
.mbe-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.mbe-modal.open { display: flex; }

.mbe-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  animation: fadeIn .3s ease;
}

.mbe-modal__box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp .4s cubic-bezier(0.4,0,0.2,1);
}

.mbe-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--cream);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 1;
  color: var(--text-mid);
}

.mbe-modal__header {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  padding: 32px;
  text-align: center;
  color: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.mbe-modal__icon { font-size: 40px; margin-bottom: 8px; }
.mbe-modal__header h2 { color: white; margin: 0 0 6px; font-size: 22px; }
.mbe-modal__header p { color: rgba(255,255,255,.7); font-size: 14px; margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════════ */
.mbe-form { padding: 24px 32px 32px; }

.mbe-form__group {
  margin-bottom: 18px;
}

.mbe-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mbe-form__group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--text-mid);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.mbe-form__group input,
.mbe-form__group select,
.mbe-form__group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  transition: border-color .2s;
  background: var(--white);
}

.mbe-form__group input:focus,
.mbe-form__group select:focus,
.mbe-form__group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(26,74,47,.08);
}

.mbe-form__hint { font-size: 12px; color: var(--text-light); margin-top: 4px; display: block; }

.mbe-form__notice {
  background: var(--gold-pale);
  border: 1px solid var(--gold-rich);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--earth);
  margin-bottom: 16px;
}

.mbe-form__message {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  display: none;
}
.mbe-form__message.success { background: #e8f5e9; color: #2e7d32; display: block; }
.mbe-form__message.error   { background: #ffebee; color: #c62828; display: block; }

/* ═══════════════════════════════════════════════════════════════════
   AUTH PAGE
   ═══════════════════════════════════════════════════════════════════ */
.mbe-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

.mbe-auth-page__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 60%, var(--green-bright) 100%);
}

.mbe-auth-page--committee .mbe-auth-page__bg {
  background: linear-gradient(135deg, #0a1828 0%, #1a2a4a 60%, #2d4a7a 100%);
}

.mbe-auth-page__content { position: relative; z-index: 1; width: 100%; max-width: 480px; }

.mbe-auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mbe-auth-card__header {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  padding: 36px;
  text-align: center;
  color: white;
}
.mbe-auth-page--committee .mbe-auth-card__header { background: linear-gradient(135deg, #0a1828, #1a2a4a); }
.mbe-auth-card__logo { font-size: 48px; margin-bottom: 10px; display: block; }
.mbe-auth-card__header h1 { color: white; font-size: 24px; margin: 0 0 6px; font-family: 'Cormorant Garamond',serif; }
.mbe-auth-card__subtitle { color: var(--gold-light); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin: 0; }
.mbe-auth-card__roles { color: rgba(255,255,255,.5); font-size: 12px; margin-top: 6px; }

.mbe-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--cream-dark);
}
.mbe-auth-tab {
  padding: 14px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  font-family: inherit;
}
.mbe-auth-tab.active {
  color: var(--green-mid);
  border-bottom-color: var(--green-mid);
  background: var(--cream);
}

.mbe-auth-panel { display: none; }
.mbe-auth-panel.active { display: block; }

.mbe-auth-card__footer {
  padding: 16px 32px 24px;
  border-top: 1px solid var(--cream-dark);
  text-align: center;
}
.mbe-auth-scripture {
  font-style: italic;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-family: 'Cormorant Garamond',serif;
}
.mbe-auth-back { font-size: 13px; color: var(--gold-rich); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════
   PORTAL LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.mbe-portal {
  display: flex;
  min-height: 100vh;
  background: var(--cream);
}

/* SIDEBAR */
.mbe-portal__sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--green-deep);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform var(--transition);
}

.mbe-portal__sidebar--dark { background: #0a1828; }

.mbe-portal__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mbe-portal__brand-icon { font-size: 28px; }
.mbe-portal__brand-name { font-family: 'Cormorant Garamond',serif; font-size: 18px; color: white; font-weight: 700; }
.mbe-portal__brand-sub { font-size: 10px; color: var(--gold-light); letter-spacing: 2px; text-transform: uppercase; }

.mbe-portal__nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mbe-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius);
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
}
.mbe-nav-item:hover { background: rgba(255,255,255,.06); color: white; }
.mbe-nav-item.active { background: rgba(196,153,31,.15); color: var(--gold-light); border-left: 3px solid var(--gold-rich); }
.mbe-nav-icon { font-size: 16px; width: 20px; }

.mbe-badge-pending {
  margin-left: auto;
  background: #ff5722;
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 7px;
}

.mbe-portal__sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mbe-portal__user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  margin-bottom: 8px;
}
.mbe-portal__user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-rich);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mbe-portal__user-avatar--gold { background: var(--gold-rich); }
.mbe-portal__user-name { font-size: 13px; color: white; font-weight: 600; }
.mbe-portal__user-plot { font-size: 11px; color: rgba(255,255,255,.5); }
.mbe-logout-btn {
  display: block;
  text-align: center;
  padding: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
}
.mbe-logout-btn:hover { background: rgba(255,255,255,.06); color: white; }

/* MAIN */
.mbe-portal__main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.mbe-portal__topbar {
  background: white;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.mbe-portal__greeting { flex: 1; font-size: 15px; font-weight: 600; color: var(--green-deep); }
.mbe-portal__date { font-size: 13px; color: var(--text-light); }
.mbe-sidebar-toggle { background: none; border: none; font-size: 20px; cursor: pointer; display: none; padding: 4px 8px; }

/* SECTIONS */
.mbe-section { display: none; padding: 32px; }
.mbe-section.active { display: block; }

.mbe-page-header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mbe-page-header h2 { font-family: 'Cormorant Garamond',serif; font-size: 32px; color: var(--green-deep); margin: 0 0 4px; }
.mbe-page-header p { color: var(--text-light); font-size: 14px; margin: 0; }

.mbe-scripture-strip {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-pale);
  font-style: italic;
  font-family: 'Cormorant Garamond',serif;
  font-size: 15px;
}
.mbe-scripture-strip__icon { color: var(--gold-rich); flex-shrink: 0; }
.mbe-scripture-strip cite { margin-left: auto; font-size: 12px; color: rgba(255,255,255,.5); font-style: normal; flex-shrink: 0; }

/* KPI GRID */
.mbe-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.mbe-kpi {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dark);
  transition: var(--transition);
}
.mbe-kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mbe-kpi--gold { background: linear-gradient(135deg, var(--green-deep), var(--green-mid)); color: white; }
.mbe-kpi--green { background: linear-gradient(135deg, #1b5e20, #2e7d32); color: white; }
.mbe-kpi--orange { background: linear-gradient(135deg, #e65c00, #f57c00); color: white; }
.mbe-kpi--blue { background: linear-gradient(135deg, #0d47a1, #1565c0); color: white; }

.mbe-kpi__icon { font-size: 28px; margin-bottom: 8px; }
.mbe-kpi__value { font-family: 'Cormorant Garamond',serif; font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.mbe-kpi__label { font-size: 12px; opacity: .75; letter-spacing: .5px; }
.mbe-kpi--gold .mbe-kpi__value, .mbe-kpi--gold .mbe-kpi__label { color: white; }

/* WIDGETS & TABLES */
.mbe-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mbe-widget { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--cream-dark); overflow: hidden; }
.mbe-widget__header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--cream-dark); }
.mbe-widget__header h3 { font-size: 15px; font-weight: 600; color: var(--green-deep); margin: 0; }
.mbe-nav-link { font-size: 13px; color: var(--gold-rich); text-decoration: none; }

.mbe-table-wrap { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--cream-dark); }
.mbe-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mbe-table thead th { background: var(--green-deep); color: white; padding: 12px 16px; text-align: left; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; font-weight: 600; }
.mbe-table tbody tr { border-bottom: 1px solid var(--cream); transition: background .15s; }
.mbe-table tbody tr:hover { background: var(--cream); }
.mbe-table tbody td { padding: 12px 16px; color: var(--text-mid); vertical-align: middle; }
.mbe-table .mbe-loading { text-align: center; color: var(--text-light); padding: 32px; }

/* STATUS BADGES */
.mbe-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.mbe-status--approved { background: #e8f5e9; color: #2e7d32; }
.mbe-status--pending  { background: #fff3e0; color: #e65c00; }
.mbe-status--suspended{ background: #ffebee; color: #c62828; }
.mbe-status--confirmed{ background: #e3f2fd; color: #1565c0; }
.mbe-status--proposed { background: #e8eaf6; color: #283593; }
.mbe-status--ongoing  { background: #fffde7; color: #f57f17; }
.mbe-status--completed{ background: #e8f5e9; color: #1b5e20; }

/* NEWS FEED */
.mbe-news-feed { display: flex; flex-direction: column; gap: 20px; }
.mbe-news-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--cream-dark); overflow: hidden; transition: var(--transition); }
.mbe-news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mbe-news-card__header { background: linear-gradient(135deg, var(--green-deep), var(--green-mid)); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.mbe-news-card__cat { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); }
.mbe-news-card__date { font-size: 11px; color: rgba(255,255,255,.5); }
.mbe-news-card h3 { padding: 16px 20px 8px; font-size: 17px; color: var(--green-deep); margin: 0; }
.mbe-news-card p { padding: 0 20px 20px; font-size: 14px; color: var(--text-mid); line-height: 1.6; margin: 0; }

/* NEWS LIST (widget) */
.mbe-news-list { padding: 16px 24px; }
.mbe-news-item { padding: 12px 0; border-bottom: 1px solid var(--cream); }
.mbe-news-item:last-child { border: none; }
.mbe-news-item h4 { font-size: 14px; color: var(--green-deep); margin: 0 0 4px; }
.mbe-news-item span { font-size: 12px; color: var(--text-light); }

/* PROJECTS */
.mbe-projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.mbe-project-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--cream-dark); overflow: hidden; transition: var(--transition); }
.mbe-project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mbe-project-card__header { padding: 20px; border-bottom: 1px solid var(--cream-dark); }
.mbe-project-card__header h3 { font-size: 16px; margin: 0 0 8px; color: var(--green-deep); }
.mbe-project-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.mbe-project-card__body { padding: 16px 20px; }
.mbe-project-card__body p { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin: 0 0 14px; }
.mbe-progress { background: var(--cream-dark); border-radius: 4px; height: 8px; overflow: hidden; margin-top: 4px; }
.mbe-progress__fill { height: 100%; background: linear-gradient(90deg, var(--green-mid), var(--gold-rich)); border-radius: 4px; transition: width .8s ease; }
.mbe-progress__label { font-size: 11px; color: var(--text-light); margin-top: 4px; display: block; }

/* BYLAWS */
.mbe-accordion { display: flex; flex-direction: column; gap: 12px; }
.mbe-accordion-item { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--cream-dark); overflow: hidden; }
.mbe-accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; cursor: pointer; user-select: none; }
.mbe-accordion-header:hover { background: var(--cream); }
.mbe-accordion-header-left { display: flex; align-items: center; gap: 14px; }
.mbe-accordion-num { background: var(--green-deep); color: var(--gold-light); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.mbe-accordion-title { font-size: 15px; font-weight: 600; color: var(--green-deep); }
.mbe-accordion-toggle { color: var(--text-light); font-size: 20px; transition: transform .3s; }
.mbe-accordion-item.open .mbe-accordion-toggle { transform: rotate(45deg); }
.mbe-accordion-body { display: none; padding: 0 24px 20px; font-size: 14px; color: var(--text-mid); line-height: 1.7; }
.mbe-accordion-item.open .mbe-accordion-body { display: block; }

/* PLOT CARD */
.mbe-plot-card { padding: 24px; }
.mbe-plot-detail { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--cream); font-size: 14px; }
.mbe-plot-detail:last-child { border: none; }
.mbe-plot-detail span:first-child { color: var(--text-light); }
.mbe-plot-detail span:last-child { font-weight: 600; color: var(--green-deep); }

/* PENDING LIST */
.mbe-pending-list { padding: 16px 24px; }
.mbe-pending-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--cream); gap: 12px; }
.mbe-pending-item:last-child { border: none; }
.mbe-pending-info { flex: 1; }
.mbe-pending-info strong { display: block; font-size: 14px; color: var(--green-deep); }
.mbe-pending-info span { font-size: 12px; color: var(--text-light); }
.mbe-pending-actions { display: flex; gap: 8px; }
.mbe-btn-approve { background: var(--gold-rich); color: var(--green-deep); border: none; padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.mbe-btn-reject  { background: #ffebee; color: #c62828; border: none; padding: 6px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; }

/* FILTER BAR */
.mbe-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.mbe-filter { padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--cream-dark); background: white; font-size: 13px; cursor: pointer; transition: var(--transition); font-family: inherit; }
.mbe-filter.active, .mbe-filter:hover { background: var(--green-deep); color: white; border-color: var(--green-deep); }

.mbe-search-bar { margin-bottom: 20px; }
.mbe-search-bar input { width: 100%; max-width: 360px; padding: 10px 16px; border: 1.5px solid var(--cream-dark); border-radius: var(--radius); font-size: 14px; font-family: inherit; }
.mbe-search-bar input:focus { outline: none; border-color: var(--green-mid); }

/* PAYMENT SUMMARY */
.mbe-payment-summary { background: linear-gradient(135deg, var(--green-deep), var(--green-mid)); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; color: white; }
.mbe-payment-summary strong { font-family: 'Cormorant Garamond',serif; font-size: 28px; display: block; color: var(--gold-light); }
.mbe-payment-summary span { font-size: 13px; color: rgba(255,255,255,.65); }

/* DOCUMENTS */
.mbe-documents-grid { padding: 40px 0; }
.mbe-empty-state { text-align: center; padding: 60px 0; }
.mbe-empty-state__icon { font-size: 48px; margin-bottom: 16px; opacity: .5; }
.mbe-empty-state h3 { color: var(--green-deep); margin-bottom: 8px; }
.mbe-empty-state p { color: var(--text-light); font-size: 14px; }

/* COLLAPSIBLE */
.mbe-collapsible { margin-bottom: 24px; }

/* UTILITY */
.mbe-loading { text-align: center; padding: 40px; color: var(--text-light); font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes countUp {
  from { opacity: 0; } to { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .mbe-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .mbe-about__grid { grid-template-columns: 1fr; gap: 40px; }
  .mbe-location__grid { grid-template-columns: repeat(2, 1fr); }
  .mbe-portals__grid { grid-template-columns: 1fr; }
  .mbe-footer__grid { grid-template-columns: 1fr 1fr; }
  .mbe-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mbe-portal__sidebar { transform: translateX(-100%); }
  .mbe-portal__sidebar.open { transform: translateX(0); }
  .mbe-portal__main { margin-left: 0; }
  .mbe-sidebar-toggle { display: block; }
  .mbe-section { padding: 20px 16px; }
  .mbe-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mbe-form__row { grid-template-columns: 1fr; }
  .mbe-location__grid { grid-template-columns: 1fr 1fr; }
  .mbe-footer__grid { grid-template-columns: 1fr; }
  .mbe-table-wrap { overflow-x: auto; }
}

@media (max-width: 480px) {
  .mbe-hero__ctas { flex-direction: column; align-items: center; }
  .mbe-kpi-grid { grid-template-columns: 1fr; }
  .mbe-location__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   BIBLE & AI COMPANION
   ══════════════════════════════════════════════════════════════════════════════ */

/* Stats bar */
.mbe-bible-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 2fr;
  gap: 12px;
  margin-bottom: 24px;
}
.mbe-bstat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.mbe-bstat--scripture {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 13px;
  color: var(--earth);
  font-style: italic;
  padding: 16px 20px;
}
.mbe-bstat__num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1;
}
.mbe-bstat__label {
  display: block;
  font-size: 11px;
  color: var(--earth);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Bible cards */
.mbe-bible-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.mbe-bible-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.mbe-bible-card__icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}
.mbe-bible-card__header h3 {
  margin: 0 0 4px;
  color: var(--green-deep);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
}
.mbe-bible-card__header p {
  margin: 0;
  font-size: 13px;
  color: var(--earth);
}

/* Intention card */
.mbe-intention-card {
  border-left: 4px solid var(--gold-rich);
  background: linear-gradient(135deg, #fffdf6 0%, #fff 100%);
}
.mbe-intention-textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.6;
}
.mbe-intention-textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,106,71,0.08);
}

/* Testament tabs */
.mbe-testament-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.mbe-test-tab {
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: var(--earth);
  cursor: pointer;
  transition: all 0.2s;
}
.mbe-test-tab.active {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: white;
}

/* Book grid */
.mbe-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.mbe-book-btn {
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--green-deep);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  position: relative;
}
.mbe-book-btn:hover {
  background: var(--green-deep);
  color: white;
  border-color: var(--green-deep);
}
.mbe-book-btn.has-progress {
  border-color: var(--gold-rich);
}
.mbe-book-btn .mbe-progress-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-rich);
  margin-right: 4px;
  vertical-align: middle;
}
.mbe-book-chapters {
  font-size: 10px;
  color: var(--earth);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

/* Chapter reader */
.mbe-reader-card {
  border-left: 4px solid var(--green-mid);
}
.mbe-reader-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.mbe-reader-header h2 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--green-deep);
}
.mbe-chapter-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mbe-chapter-nav select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--green-deep);
}
.mbe-chapter-text {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.9;
  color: #2a2a2a;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
}
.mbe-verse-num {
  font-size: 11px;
  color: var(--gold-rich);
  font-weight: 700;
  vertical-align: super;
  margin-right: 2px;
}

/* Devotional card */
.mbe-devotional-card {
  border-left: 4px solid var(--gold-rich);
  background: linear-gradient(135deg, #fffef8 0%, #fff 100%);
}
.mbe-devotional-text {
  font-family: 'Georgia', serif;
  font-size: 15px;
  line-height: 1.85;
  color: #2a2a2a;
  white-space: pre-wrap;
}
.mbe-ai-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--cream-light);
  color: var(--earth);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Loading spinner */
.mbe-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--green-mid);
  border-radius: 50%;
  animation: mbeSpinAnim 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes mbeSpinAnim { to { transform: rotate(360deg); } }
.mbe-chapter-loading, .mbe-devotional-loading {
  text-align: center;
  padding: 32px;
  color: var(--earth);
}

/* Reading history */
.mbe-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.mbe-history-item {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.18s;
}
.mbe-history-item:hover {
  border-color: var(--green-mid);
  background: white;
}
.mbe-history-item__book {
  font-weight: 700;
  color: var(--green-deep);
  font-size: 14px;
}
.mbe-history-item__progress {
  font-size: 12px;
  color: var(--earth);
  margin-top: 4px;
}
.mbe-history-item__bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.mbe-history-item__bar-fill {
  height: 100%;
  background: var(--gold-rich);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* Bible nav item highlight */
.mbe-nav-item--bible {
  background: linear-gradient(135deg, rgba(196,153,31,0.08) 0%, transparent 100%);
  border-left: 3px solid var(--gold-rich);
}
.mbe-nav-item--bible.active {
  background: linear-gradient(135deg, rgba(196,153,31,0.15) 0%, transparent 100%);
}

/* Responsive */
@media (max-width: 768px) {
  .mbe-bible-stats { grid-template-columns: repeat(2,1fr); }
  .mbe-bstat--scripture { grid-column: span 2; }
  .mbe-book-grid { grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); }
  .mbe-reader-header { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PRIMARY NAVIGATION
   ══════════════════════════════════════════════════════════════════════════════ */

.mbe-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  background: transparent;
}
.mbe-nav--scrolled {
  background: var(--green-deep);
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.mbe-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.mbe-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}
.mbe-nav__logo-icon { font-size: 24px; line-height: 1; }
.mbe-nav__logo-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.mbe-nav__logo-sub {
  display: block;
  font-size: 9px;
  color: var(--gold-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Desktop links */
.mbe-nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 16px 0 0;
  padding: 0;
}
.mbe-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.mbe-nav__link:hover,
.mbe-nav__link--active { color: #fff; background: rgba(255,255,255,.12); }
.mbe-nav__arrow { font-size: 9px; opacity: 0.7; transition: transform 0.2s; }

/* Dropdowns */
.mbe-nav__has-drop { position: relative; }

.mbe-nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 270px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  border: 1px solid rgba(0,0,0,.06);
  z-index: 99999;
}
.mbe-nav__dropdown--right { left: auto; right: 0; }
/* Open via hover (desktop) OR .open class (click/touch) */
.mbe-nav__has-drop:hover .mbe-nav__dropdown,
.mbe-nav__has-drop.open .mbe-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mbe-nav__has-drop:hover .mbe-nav__arrow,
.mbe-nav__has-drop.open .mbe-nav__arrow { transform: rotate(180deg); }
.mbe-nav__drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: background 0.15s;
}
.mbe-nav__drop-item:hover { background: var(--cream); }
.mbe-nav__drop-item--highlight { background: rgba(196,153,31,.06); }
.mbe-nav__drop-item--highlight:hover { background: rgba(196,153,31,.14); }
.mbe-nav__drop-icon { font-size: 20px; flex-shrink: 0; }
.mbe-nav__drop-item strong { display: block; font-size: 13px; color: var(--green-deep); margin-bottom: 1px; }
.mbe-nav__drop-item span { font-size: 11px; color: var(--text-light); }
.mbe-nav__drop-divider { height: 1px; background: var(--cream-dark); margin: 5px 0; }

/* Sign In button */
.mbe-nav__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mbe-nav__signin-wrap { position: relative; }
.mbe-nav__signin-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--gold-rich);
  color: var(--green-deep);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.mbe-nav__signin-btn:hover { background: var(--gold-light); transform: translateY(-1px); }
.mbe-nav__signin-icon { font-size: 15px; }

/* Burger */
.mbe-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  cursor: pointer;
  padding: 7px;
}
.mbe-nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.mbe-nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mbe-nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mbe-nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mbe-nav__mobile {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s ease;
  background: var(--green-deep);
  border-top: 1px solid rgba(255,255,255,.07);
}
.mbe-nav__mobile.open { max-height: 600px; }
.mbe-nav__mobile-inner {
  display: flex;
  flex-direction: column;
  padding: 10px 16px 20px;
  gap: 2px;
}
.mbe-nav__mob-link {
  padding: 12px 14px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 15px;
  border-radius: 8px;
  transition: background 0.15s;
  display: block;
}
.mbe-nav__mob-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.mbe-nav__mob-divider { height: 1px; background: rgba(255,255,255,.1); margin: 8px 0; }
.mbe-nav__mob-cta {
  display: block;
  padding: 13px 14px;
  background: var(--gold-rich);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  margin-top: 4px;
  transition: background 0.2s;
}
.mbe-nav__mob-cta:hover { background: var(--gold-light); }
.mbe-nav__mob-cta--ghost {
  background: transparent;
  border: 1.5px solid rgba(196,153,31,.5);
  color: var(--gold-light);
}
.mbe-nav__mob-cta--ghost:hover { background: rgba(196,153,31,.1); }

/* Hero covers full viewport — fixed nav floats on top, content clears it */
.mbe-landing .mbe-hero {
  padding-top: 0;
  min-height: 100vh;
}
/* Push hero text content below the fixed nav bar (68 px) with extra breathing room */
.mbe-landing .mbe-hero__content {
  padding-top: 110px;
}

/* ── Nav responsive ── */
@media (max-width: 880px) {
  .mbe-nav__menu    { display: none; }
  .mbe-nav__signin-wrap { display: none; }
  .mbe-nav__burger  { display: flex; }
}
@media (max-width: 480px) {
  .mbe-nav__inner   { padding: 0 16px; height: 60px; }
  .mbe-nav__logo-name { font-size: 16px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   GRAND FOOTER
   ══════════════════════════════════════════════════════════════════════════════ */

.mbe-gfooter {
  position: relative;
  background: linear-gradient(165deg, #060e06 0%, #0c2414 40%, #081a0c 70%, #050c05 100%);
  overflow: hidden;
  color: rgba(255,255,255,.85);
}

/* ── Animated canvas particles layer ── */
#mbeFooterCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ── Animated orbs ── */
.mbe-gfooter__orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.mbe-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: mbeOrbFloat 16s ease-in-out infinite;
}
.mbe-orb--1 { width: 560px; height: 560px; background: radial-gradient(circle, #2d6a47 0%, transparent 70%); top: -140px; left: -100px; animation-delay: 0s; animation-duration: 20s; }
.mbe-orb--2 { width: 420px; height: 420px; background: radial-gradient(circle, #c4991f 0%, transparent 70%); top: 80px; right: -80px; animation-delay: -6s; animation-duration: 17s; }
.mbe-orb--3 { width: 360px; height: 360px; background: radial-gradient(circle, #1a5c35 0%, transparent 70%); bottom: 20px; left: 32%; animation-delay: -11s; animation-duration: 22s; }
.mbe-orb--4 { width: 260px; height: 260px; background: radial-gradient(circle, #e8c660 0%, transparent 70%); bottom: 80px; right: 15%; animation-delay: -3s; animation-duration: 15s; opacity: 0.11; }
@keyframes mbeOrbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  25%      { transform: translate(30px,-22px) scale(1.05); }
  50%      { transform: translate(15px,18px) scale(0.97); }
  75%      { transform: translate(-20px,-10px) scale(1.03); }
}

/* ── Top glow divider ── */
.mbe-gfooter::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #2d6a47 20%, #c4991f 50%, #2d6a47 80%, transparent 100%);
  animation: mbeGlowBar 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes mbeGlowBar {
  0%,100% { opacity: 0.6; }
  50%      { opacity: 1; box-shadow: 0 0 20px rgba(196,153,31,.5); }
}

/* Scripture verse strip */
.mbe-gfooter__verse-strip {
  position: relative; z-index: 1;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 40px 24px;
  background: rgba(0,0,0,.18);
  overflow: hidden;
}
.mbe-gfooter__verse-strip::before {
  content: '✝';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  font-size: 180px;
  color: rgba(255,255,255,.025);
  pointer-events: none;
  animation: mbeVerseRotate 40s linear infinite;
}
@keyframes mbeVerseRotate { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
.mbe-gfooter__verse-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  position: relative; z-index: 1;
}
.mbe-gfooter__verse-mark {
  color: var(--gold-light);
  font-size: 20px;
  flex-shrink: 0;
  animation: mbeSpinGold 8s linear infinite;
  display: inline-block;
}
@keyframes mbeSpinGold { 0%,100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.3) rotate(180deg); } }
.mbe-gfooter__verse-inner blockquote {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: rgba(255,255,255,.92);
  line-height: 1.65;
  text-shadow: 0 0 40px rgba(196,153,31,.15);
}
.mbe-gfooter__verse-inner cite {
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  white-space: nowrap;
  font-style: normal;
  display: block;
  margin-top: 6px;
}

/* ── Animated faith ticker strip ── */
.mbe-gfooter__ticker {
  position: relative; z-index: 1;
  background: rgba(196,153,31,.09);
  border-bottom: 1px solid rgba(196,153,31,.15);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.mbe-gfooter__ticker-track {
  display: inline-flex;
  gap: 0;
  animation: mbeTickerScroll 32s linear infinite;
}
.mbe-gfooter__ticker-track:hover { animation-play-state: paused; }
.mbe-gfooter__ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.mbe-gfooter__ticker-item span { color: var(--gold-light); font-size: 10px; }
@keyframes mbeTickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Main body */
.mbe-gfooter__body { position: relative; z-index: 1; padding: 60px 0 44px; }

.mbe-gfooter__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.4fr;
  gap: 48px;
  align-items: start;
}

/* Scroll reveal */
[data-animate="footer-col"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate="footer-col"].mbe-visible { opacity: 1; transform: translateY(0); }
[data-animate="footer-col"]:nth-child(1) { transition-delay: 0s; }
[data-animate="footer-col"]:nth-child(2) { transition-delay: 0.1s; }
[data-animate="footer-col"]:nth-child(3) { transition-delay: 0.2s; }
[data-animate="footer-col"]:nth-child(4) { transition-delay: 0.3s; }

/* Brand col */
.mbe-gfooter__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mbe-gfooter__logo-icon {
  font-size: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: rgba(196,153,31,.12);
  border: 1px solid rgba(196,153,31,.25);
  border-radius: 14px;
  animation: mbeLogoGlow 3.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes mbeLogoGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(196,153,31,0); }
  50%      { box-shadow: 0 0 20px 4px rgba(196,153,31,.2); }
}
.mbe-gfooter__logo-name { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 700; color: #fff; display: block; line-height: 1.1; }
.mbe-gfooter__logo-by { font-size: 10px; color: var(--gold-light); letter-spacing: 0.12em; text-transform: uppercase; }
.mbe-gfooter__brand-desc { font-size: 13.5px; color: rgba(255,255,255,.62); line-height: 1.75; margin-bottom: 18px; }

.mbe-gfooter__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mbe-gfooter__badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  font-size: 12px; color: rgba(255,255,255,.8);
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}
.mbe-gfooter__badge:hover { background: rgba(196,153,31,.15); border-color: var(--gold-rich); }

.mbe-gfooter__socials { display: flex; gap: 10px; }
.mbe-social {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.mbe-social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(196,153,31,.3), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.mbe-social:hover { background: var(--gold-rich); border-color: var(--gold-rich); color: var(--green-deep); transform: translateY(-4px) scale(1.1); box-shadow: 0 8px 20px rgba(196,153,31,.35); }
.mbe-social:hover::before { opacity: 1; }
.mbe-social svg { width: 17px; height: 17px; position: relative; z-index: 1; }

/* Column heading */
.mbe-gfooter__col-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 700; color: #fff;
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.mbe-gfooter__col-line { display: block; width: 26px; height: 2px; background: var(--gold-rich); border-radius: 2px; flex-shrink: 0; }

/* Links */
.mbe-gfooter__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.mbe-gfooter__links a {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 0;
  color: rgba(255,255,255,.62);
  text-decoration: none; font-size: 13.5px;
  transition: color 0.2s, padding-left 0.2s;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.mbe-gfooter__links a::before { content: '›'; color: var(--gold-rich); font-size: 16px; transition: transform 0.2s; }
.mbe-gfooter__links a:hover { color: var(--gold-light); padding-left: 4px; }
.mbe-gfooter__links a:hover::before { transform: translateX(3px); }

/* Portal cards */
.mbe-gfooter__portal-cards { display: flex; flex-direction: column; gap: 8px; }
.mbe-gfooter__portal-card {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  text-decoration: none; color: rgba(255,255,255,.85);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  font-size: 13px;
}
.mbe-gfooter__portal-card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); transform: translateX(4px); }
.mbe-gfooter__portal-card--gold { border-color: rgba(196,153,31,.25); }
.mbe-gfooter__portal-card--gold:hover { background: rgba(196,153,31,.1); border-color: var(--gold-rich); }
.mbe-gfooter__portal-card > span:first-child { font-size: 19px; flex-shrink: 0; }
.mbe-gfooter__portal-card strong { display: block; font-size: 13px; color: #fff; margin-bottom: 1px; }
.mbe-gfooter__portal-card > div > span { font-size: 11px; color: rgba(255,255,255,.5); }
.mbe-gfooter__portal-arrow { margin-left: auto; color: var(--gold-light); font-size: 15px; flex-shrink: 0; }

/* Contact */
.mbe-gfooter__contacts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.mbe-gfooter__contact-item { display: flex; gap: 12px; align-items: flex-start; }
.mbe-gfooter__contact-icon {
  font-size: 18px; flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.mbe-gfooter__contact-item strong { display: block; font-size: 11px; color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.mbe-gfooter__contact-item span,
.mbe-gfooter__contact-item a { font-size: 13px; color: rgba(255,255,255,.65); text-decoration: none; line-height: 1.5; display: block; }
.mbe-gfooter__contact-item a:hover { color: var(--gold-light); }

.mbe-gfooter__prayer {
  display: flex; gap: 11px; align-items: flex-start;
  background: rgba(196,153,31,.07);
  border: 1px solid rgba(196,153,31,.2);
  border-radius: 10px; padding: 13px;
}
.mbe-gfooter__prayer-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.mbe-gfooter__prayer strong { display: block; font-size: 12px; color: var(--gold-light); margin-bottom: 3px; }
.mbe-gfooter__prayer p { margin: 0; font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.6; }

/* Bottom bar */
.mbe-gfooter__bottom {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.18);
}
.mbe-gfooter__bottom-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.mbe-gfooter__copy,
.mbe-gfooter__credit { margin: 0; font-size: 12px; color: rgba(255,255,255,.4); }
.mbe-gfooter__credit { margin-left: auto; }
.mbe-gfooter__credit a { color: var(--gold-light); text-decoration: none; }
.mbe-gfooter__credit a:hover { text-decoration: underline; }
.mbe-heart { color: var(--gold-rich); animation: mbeHeartbeat 2.2s ease-in-out infinite; display: inline-block; }
@keyframes mbeHeartbeat { 0%,100%{transform:scale(1);} 50%{transform:scale(1.35);} }

.mbe-gfooter__totop {
  margin-left: 12px; flex-shrink: 0;
  width: 38px; height: 38px;
  background: rgba(196,153,31,.12);
  border: 1px solid rgba(196,153,31,.3);
  border-radius: 10px;
  color: var(--gold-light); font-size: 18px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, color 0.25s, box-shadow 0.25s;
  display: flex; align-items: center; justify-content: center;
  animation: mbeToTopPulse 2.8s ease-in-out infinite;
}
.mbe-gfooter__totop:hover {
  background: var(--gold-rich);
  border-color: var(--gold-rich);
  color: var(--green-deep);
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(196,153,31,.4);
  animation: none;
}
@keyframes mbeToTopPulse {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ── Footer responsive ── */
@media (max-width: 1060px) {
  .mbe-gfooter__grid { grid-template-columns: 1fr 1fr; gap: 36px 44px; }
}
@media (max-width: 640px) {
  .mbe-gfooter__grid { grid-template-columns: 1fr; gap: 32px; }
  .mbe-gfooter__body { padding: 40px 0 30px; }
  .mbe-gfooter__verse-inner blockquote { font-size: 15px; }
  .mbe-gfooter__verse-strip { padding: 24px 16px; }
  .mbe-gfooter__bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mbe-gfooter__credit { margin-left: 0; }
  .mbe-gfooter__totop { margin-left: 0; }
}
@media (max-width: 400px) {
  .mbe-gfooter__badges { gap: 6px; }
  .mbe-gfooter__badge { font-size: 11px; padding: 4px 9px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE OVERRIDES (mobile-first fixes)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── All screen sizes: prevent overflow ── */
html, body { overflow-x: hidden; }
* { min-width: 0; }

/* ── Hero: always full viewport, nav floats above it ── */
.mbe-hero {
  height: 100vh;
  min-height: 600px;
  padding-top: 0 !important;
}
.mbe-hero__content {
  padding: 68px 24px 40px; /* push text below nav height */
  text-align: center;
}

/* ── Containers always fit viewport ── */
.mbe-container { padding: 0 20px; }

/* ── Hero stats: scroll on tiny screens ── */
.mbe-hero__stats {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
}

/* ── About section ── */
@media (max-width: 900px) {
  .mbe-about__grid { grid-template-columns: 1fr !important; }
  .mbe-about__visual { display: none; } /* hide decorative frame on mobile */
}

/* ── Portals grid ── */
@media (max-width: 860px) {
  .mbe-portals__grid { grid-template-columns: 1fr !important; max-width: 480px; margin: 0 auto; }
}

/* ── Location cards ── */
@media (max-width: 600px) {
  .mbe-location__grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
}
@media (max-width: 380px) {
  .mbe-location__grid { grid-template-columns: 1fr !important; }
}

/* ── Hero title scale ── */
@media (max-width: 768px) {
  .mbe-hero__title { font-size: clamp(48px, 12vw, 80px) !important; }
  .mbe-hero__tagline { font-size: 14px; }
  .mbe-hero__scripture { font-size: 13px; }
  .mbe-hero__stats { gap: 8px; }
  .mbe-stat__num { font-size: 24px; }
  .mbe-stat__lbl { font-size: 10px; }
  .mbe-hero__ctas { flex-direction: column; align-items: center; gap: 10px; }
  .mbe-hero__ctas .mbe-btn { width: 100%; max-width: 280px; text-align: center; }
}
@media (max-width: 480px) {
  .mbe-hero__title { font-size: clamp(38px, 14vw, 60px) !important; }
  .mbe-hero__eyebrow { font-size: 10px; letter-spacing: 0.08em; }
  .mbe-hero__mhasibu { font-size: 10px; }
  .mbe-hero__content { padding: 60px 16px 30px; }
}

/* ── Section headings ── */
@media (max-width: 600px) {
  .mbe-section-title { font-size: clamp(28px, 8vw, 48px) !important; }
  .mbe-portals__subtitle { font-size: 14px; }
  .mbe-about, .mbe-location, .mbe-portals { padding: 60px 0; }
  .mbe-faith-banner { padding: 50px 20px; }
  .mbe-faith-banner blockquote { font-size: 18px; }
}

/* ── Modal: full screen on small phones ── */
@media (max-width: 480px) {
  .mbe-modal__box { width: 100%; max-width: 100%; max-height: 100vh; border-radius: 0; margin: 0; }
  .mbe-modal { align-items: flex-end; }
  .mbe-modal.open .mbe-modal__box { animation: slideUpMob .35s ease; }
  .mbe-form { padding: 20px 16px 24px; }
  .mbe-modal__header { padding: 24px 16px; }
  .mbe-form__row { grid-template-columns: 1fr !important; }
}
@keyframes slideUpMob { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ── Portal sidebar: full overlay on mobile ── */
@media (max-width: 768px) {
  .mbe-portal__sidebar {
    transform: translateX(-100%);
    width: 280px;
    transition: transform 0.3s ease;
  }
  .mbe-portal__sidebar.open { transform: translateX(0); box-shadow: 8px 0 40px rgba(0,0,0,.3); }
  .mbe-portal__main { margin-left: 0 !important; width: 100%; }
  .mbe-sidebar-toggle { display: flex !important; }
  .mbe-section { padding: 16px !important; }
}

/* ── KPI grid ── */
@media (max-width: 640px) {
  .mbe-kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
}
@media (max-width: 360px) {
  .mbe-kpi-grid { grid-template-columns: 1fr !important; }
}

/* ── Bible stats bar ── */
@media (max-width: 700px) {
  .mbe-bible-stats { grid-template-columns: repeat(2,1fr); }
  .mbe-bstat--scripture { grid-column: span 2; }
}
@media (max-width: 400px) {
  .mbe-bible-stats { grid-template-columns: 1fr 1fr; }
  .mbe-book-grid { grid-template-columns: repeat(auto-fill, minmax(90px,1fr)); }
}

/* ── Tables: horizontal scroll ── */
.mbe-table-wrap, .mbe-committee-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Portal topbar ── */
@media (max-width: 480px) {
  .mbe-portal__topbar { padding: 10px 14px; gap: 8px; }
  .mbe-portal__date { display: none; }
}

/* ── Ensure images don't overflow ── */
img, video, iframe, embed, object { max-width: 100%; height: auto; }

/* ── Utilities ── */
@media (max-width: 768px) {
  .mbe-hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .mbe-hide-desktop { display: none !important; }
}
