/* =============================================
   CMF TAG Jimbo la Ubungo
   Design System – Mobile First, Production
   ============================================= */

/* ── DESIGN TOKENS ── */
:root {
  --red-900: #7F0000;
  --red-800: #B71C1C;
  --red-700: #C62828;
  --red-600: #D32F2F;
  --red-500: #E53935;
  --gold-600: #F9A825;
  --gold-500: #FDD835;
  --gold-400: #FFEE58;
  --purple:   #6A1B9A;
  --white:    #FFFFFF;
  --off-white:#FAFAFA;
  --grey-100: #F5F5F5;
  --grey-200: #EEEEEE;
  --grey-400: #BDBDBD;
  --grey-600: #757575;
  --grey-800: #424242;
  --grey-900: #212121;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.10);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.20);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --ease: cubic-bezier(.4,0,.2,1);
  --duration: 240ms;
  --nav-h: 64px;
  --ticker-h: 38px;
  --top-offset: calc(var(--nav-h) + var(--ticker-h));
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-900);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

/* ── UTILITY ── */
.gold-text  { color: var(--gold-500) !important; }
.red-text   { color: var(--red-800)  !important; }
.white-text { color: var(--white)    !important; }
.center { text-align: center; }

/* ──────────────────────────────────────────
   NAVBAR
────────────────────────────────────────── */
.cmf-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  line-height: var(--nav-h);
  background: var(--red-900);
  transition: background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.cmf-nav.scrolled {
  background: rgba(127,0,0,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.cmf-nav .nav-wrapper {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: var(--nav-h);
}
/* TAG logo – left */
.nav-logo-tag {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-500);
  flex-shrink: 0;
}
/* CMF logo – right */
.nav-logo-cmf {
  height: 42px;
  object-fit: contain;
  filter: brightness(1.1);
}
.nav-links-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: var(--nav-h);
}
.nav-links-center li { list-style: none; }
.nav-links-center li a {
  color: rgba(255,255,255,.88);
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
  letter-spacing: .2px;
  display: block;
}
.nav-links-center li a:hover,
.nav-links-center li a.active-link {
  background: rgba(255,255,255,.12);
  color: var(--gold-500);
}
.btn-nav-login {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: var(--gold-500) !important;
  color: var(--red-900) !important;
  font-weight: 700 !important;
  font-size: .825rem !important;
  padding: 0 14px !important;
  height: 36px !important;
  line-height: 36px !important;
  border-radius: 20px !important;
  margin-left: 8px;
  transition: background var(--duration) !important;
  white-space: nowrap;
}
.btn-nav-login:hover { background: var(--gold-600) !important; }
/* Sidenav */
.sidenav { width: 280px !important; }
.cmf-sidenav-bg { background: var(--red-900); }
.sidenav .user-view { background: var(--red-900); padding: 28px 16px 16px; }
.sidenav .user-view .name { font-weight: 700; font-size: 1rem; }

/* Mobile hamburger button */
.nav-hamburger {
  display: none;
  align-items: center;
  color: rgba(255,255,255,.85);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
@media (max-width: 768px) {
  .nav-hamburger { display: flex !important; }
}

/* ──────────────────────────────────────────
   FIXED ANNOUNCEMENT TICKER
────────────────────────────────────────── */
.cmf-ticker {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--ticker-h);
  background: var(--gold-500);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 0 12px 0 16px;
  font-size: .8rem;
  font-weight: 800;
  color: var(--red-900);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-right: 2px solid rgba(0,0,0,.15);
  height: 100%;
  flex-shrink: 0;
}
.ticker-wrap { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.ticker-move {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: ticker-scroll 24s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 28px 0 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--red-900);
  cursor: pointer;
  transition: color var(--duration);
}
.ticker-item:hover { color: var(--red-800); text-decoration: underline; }
.ticker-item::before { content: '▶'; margin-right: 8px; font-size: .6rem; color: var(--red-700); }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cmf-ticker:hover .ticker-move { animation-play-state: paused; }

/* ──────────────────────────────────────────
   HERO SECTION
────────────────────────────────────────── */
.cmf-hero {
  min-height: 100vh;
  padding-top: var(--top-offset);
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(150deg, var(--red-900) 0%, var(--red-800) 55%, #3B0000 100%);
  overflow: hidden;
}
/* Subtle grid pattern overlay */
.cmf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
/* Glowing orb */
.cmf-hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253,216,53,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cmf-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}
.cmf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--gold-500);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.cmf-hero-title {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
  line-height: 1.1;
}
.cmf-hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 12px;
}
.cmf-hero-verse {
  font-style: italic;
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  margin-bottom: 36px;
  font-weight: 300;
}
.cmf-hero-verse::before { content: '"'; }
.cmf-hero-verse::after  { content: '"'; }
.cmf-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
/* Hero stats */
.cmf-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
}
.cmf-hero-stat {
  padding: 20px 12px;
  text-align: center;
  background: rgba(0,0,0,.1);
}
.cmf-hero-stat-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-500);
  line-height: 1;
}
.cmf-hero-stat-label {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.72);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-top: 4px;
  font-weight: 500;
}
.cmf-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  animation: float 2.2s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ──────────────────────────────────────────
   BUTTONS
────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-500);
  color: var(--red-900);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--gold-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,168,37,.4);
  color: var(--red-900);
}
.btn-primary.large { padding: 14px 36px; font-size: 1rem; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  padding: 11px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.5);
  cursor: pointer;
  transition: border-color var(--duration), background var(--duration),
              transform var(--duration);
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
  color: var(--white);
}
.btn-secondary.large { padding: 13px 36px; font-size: 1rem; }
.btn-red {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-800); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .875rem; padding: 10px 24px; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: background var(--duration), transform var(--duration), box-shadow var(--duration);
}
.btn-red:hover {
  background: var(--red-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

/* ──────────────────────────────────────────
   SECTION CHROME
────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--grey-100); }
.section-dark {
  background: linear-gradient(135deg, var(--red-900) 0%, #3B0000 100%);
  color: var(--white);
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-pill {
  display: inline-block;
  background: var(--red-800);
  color: var(--gold-500);
  padding: 4px 18px;
  border-radius: 30px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--red-800);
  margin-bottom: 10px;
}
.section-dark .section-title { color: var(--white); }
.section-subtitle { font-size: 1.05rem; color: var(--grey-600); max-width: 560px; margin: 0 auto; }
.section-dark .section-subtitle { color: rgba(255,255,255,.72); }

/* ──────────────────────────────────────────
   CARDS
────────────────────────────────────────── */
.card-base {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.card-base:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
/* Materialize card overrides */
.card { border-radius: var(--radius-md) !important; box-shadow: var(--shadow-sm) !important; }
.card:hover { box-shadow: var(--shadow-md) !important; }
.card .card-content { padding: 24px !important; }
.card .card-title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  color: var(--red-800) !important;
  font-size: 1.05rem !important;
  line-height: 1.3 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px !important;
}
.card .card-action { border-top: 1px solid var(--grey-200) !important; padding: 12px 24px !important; }
.card .card-action a { color: var(--red-800) !important; font-weight: 600 !important; display: inline-flex; align-items: center; gap: 4px; }
.card .card-action a:hover { color: var(--red-600) !important; }

/* ──────────────────────────────────────────
   ABOUT SECTION
────────────────────────────────────────── */
.about-text { font-size: 1.05rem; color: var(--grey-800); line-height: 1.85; }
.cmf-mv-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold-500);
  margin-bottom: 16px;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.cmf-mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cmf-mv-card i { color: var(--red-800); font-size: 2rem !important; margin-bottom: 10px; display: block; }
.cmf-mv-card h5 { font-size: 1rem; font-weight: 700; color: var(--red-800); margin-bottom: 8px; }
.cmf-mv-card p { font-size: .9rem; color: var(--grey-600); }
.values-box { background: var(--white); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); }
.values-title { font-size: 1rem; font-weight: 700; color: var(--red-800); display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.value-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--grey-100); font-size: .95rem; }
.value-row:last-child { border-bottom: none; }
.value-row i { color: var(--gold-500); font-size: 1.2rem !important; flex-shrink: 0; }
.tag-showcase { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 20px; background: linear-gradient(135deg, var(--red-900), var(--red-800)); padding: 24px; text-align: center; }

/* ──────────────────────────────────────────
   ORG CHART
────────────────────────────────────────── */
.org-tree { max-width: 440px; margin: 0 auto 48px; }
.org-node {
  padding: 18px 28px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-md);
  margin: 0 auto;
  width: fit-content;
  min-width: 260px;
  transition: transform var(--duration) var(--ease);
}
.org-node:hover { transform: scale(1.03); }
.org-node i { font-size: 2rem !important; margin-bottom: 4px; }
.org-node strong { font-family: 'Montserrat', sans-serif; font-size: .95rem; font-weight: 700; }
.org-node span { font-size: .78rem; opacity: .85; }
.org-top   { background: linear-gradient(135deg, var(--red-900), var(--red-800)); color: var(--white); border-bottom: 4px solid var(--gold-500); }
.org-mid   { background: var(--red-800); color: var(--white); }
.org-low   { background: var(--red-700); color: var(--white); }
.org-leaf  { background: var(--white); color: var(--red-800); border: 2px solid var(--red-800); }
.org-line  { width: 3px; height: 36px; background: linear-gradient(to bottom, var(--red-700), var(--red-500)); margin: 0 auto; opacity: .5; }

/* Section blocks with churches */
.section-block { background: var(--white); border-radius: var(--radius-md); margin-bottom: 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.section-block-head {
  background: linear-gradient(135deg, var(--red-800), var(--red-700));
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--white);
}
.section-block-head h5 { margin: 0; font-size: 1rem; font-weight: 700; flex: 1; }
.section-block-head i { font-size: 1.4rem !important; flex-shrink: 0; }
.kiongozi-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 600;
}
.churches-grid { padding: 16px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

/* Church card */
.church-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-left: 4px solid var(--red-800);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--duration), background var(--duration),
              transform var(--duration), box-shadow var(--duration);
}
.church-card:hover {
  background: #FFF8F8;
  border-left-color: var(--gold-500);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.church-card-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-900), var(--red-800));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.church-card-icon i { color: var(--white); font-size: 1.3rem !important; }
.church-card-body { flex: 1; min-width: 0; }
.church-card-body strong { display: block; font-size: .9rem; color: var(--grey-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.church-card-body span { display: block; font-size: .78rem; color: var(--grey-600); }
.church-card-count { display: block; font-size: .78rem; color: var(--red-800); font-weight: 600; }
.church-card-arrow { color: var(--grey-400); font-size: .9rem !important; flex-shrink: 0; }

/* ──────────────────────────────────────────
   LEADERS SECTION
────────────────────────────────────────── */
.leader-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  height: 100%;
}
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.leader-photo { position: relative; height: 240px; overflow: hidden; background: var(--grey-100); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.leader-card:hover .leader-photo img { transform: scale(1.06); }
.leader-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
}
.leader-photo-placeholder i { font-size: 72px !important; color: var(--red-800); opacity: .35; }
.leader-role-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(127,0,0,.92));
  padding: 32px 16px 12px;
  color: var(--gold-500);
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
}
.leader-body { padding: 18px; }
.leader-name { font-size: 1.05rem; font-weight: 700; color: var(--red-800); margin-bottom: 6px; }
.leader-bio { font-size: .875rem; color: var(--grey-600); line-height: 1.6; margin-bottom: 12px; }
.leader-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.leader-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #FFF3E0; color: var(--red-800);
  padding: 4px 10px; border-radius: 14px;
  font-size: .75rem; font-weight: 500;
  transition: background var(--duration), color var(--duration);
}
.leader-chip:hover { background: var(--red-800); color: var(--white); }

/* ──────────────────────────────────────────
   GALLERY
────────────────────────────────────────── */
.gallery-filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--grey-800);
  border: 1.5px solid var(--grey-200);
  padding: 7px 18px; border-radius: 20px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--red-800);
  border-color: var(--red-800);
  color: var(--white);
}
.gallery-grid { columns: 3; column-gap: 16px; }
@media (max-width: 768px) { .gallery-grid { columns: 2; } }
@media (max-width: 480px) { .gallery-grid { columns: 1; } }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .4s var(--ease); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(127,0,0,.78);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: opacity var(--duration) var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay i { color: var(--gold-500); font-size: 2.4rem !important; }
.gallery-overlay p { color: var(--white); font-size: .875rem; font-weight: 600; text-align: center; padding: 0 16px; margin: 0; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.95); z-index: 9999;
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: min(90vw, 900px); }
.lightbox-inner img { max-height: 85vh; border-radius: var(--radius-md); object-fit: contain; }
.lightbox-close {
  position: absolute; top: -44px; right: 0;
  background: rgba(255,255,255,.12); border: none;
  color: var(--white); cursor: pointer; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  transition: background var(--duration);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-cap { color: rgba(255,255,255,.8); text-align: center; margin-top: 12px; font-size: .9rem; }

/* ──────────────────────────────────────────
   CTA STRIP
────────────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, var(--red-900), #3B0000);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(253,216,53,.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ──────────────────────────────────────────
   CONTACT SECTION
────────────────────────────────────────── */
.contact-info-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white); border-radius: var(--radius-md);
  padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  transition: border-color var(--duration), transform var(--duration), box-shadow var(--duration);
}
.contact-info-card:hover { border-left-color: var(--gold-500); transform: translateX(4px); box-shadow: var(--shadow-md); }
.contact-icon-wrap {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-900), var(--red-800));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon-wrap i { color: var(--white); font-size: 1.3rem !important; }
.contact-info-card h6 { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--red-800); margin-bottom: 3px; }
.contact-info-card p { margin: 0; font-size: .9rem; color: var(--grey-700); }
.contact-info-card a { color: var(--grey-800); transition: color var(--duration); }
.contact-info-card a:hover { color: var(--red-800); }
.contact-form-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-md);
  border-top: 4px solid var(--red-800);
}
.contact-form-box h5 { font-size: 1.1rem; color: var(--red-800); margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.social-links { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red-800); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--duration), transform var(--duration);
}
.social-btn:hover { background: var(--gold-500); color: var(--red-900); transform: scale(1.1); }
.social-btn i { font-size: 1.2rem !important; }

/* Materialize input overrides */
.input-field .prefix.active { color: var(--red-800) !important; }
.input-field input:focus, .input-field textarea:focus {
  border-bottom-color: var(--red-800) !important;
  box-shadow: 0 1px 0 0 var(--red-800) !important;
}
.input-field input:focus + label,
.input-field textarea:focus + label { color: var(--red-800) !important; }
.input-field label { color: var(--grey-600); }

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
.cmf-footer {
  background: var(--red-900);
  color: rgba(255,255,255,.82);
  padding: 64px 0 0;
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand-name { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--white); font-size: 1rem; }
.footer-brand-sub { font-size: .78rem; opacity: .7; }
.footer-heading { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-500); margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .875rem; transition: color var(--duration), padding var(--duration); }
.footer-links a:hover { color: var(--gold-500); padding-left: 4px; }
.footer-contact li { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .875rem; }
.footer-contact li i { color: var(--gold-500); font-size: 1rem !important; flex-shrink: 0; }
.footer-verse { font-style: italic; color: rgba(255,255,255,.5); font-size: .82rem; margin-top: 10px; }
.newsletter-form { display: flex; margin-top: 12px; }
.newsletter-input {
  flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-right: none; padding: 10px 14px; color: var(--white); font-size: .85rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.newsletter-input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-btn {
  background: var(--gold-500); color: var(--red-900);
  border: none; padding: 10px 16px; cursor: pointer; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background var(--duration); display: flex; align-items: center;
}
.newsletter-btn:hover { background: var(--gold-600); }
.footer-bottom {
  margin-top: 48px; border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0; display: flex; align-items: center; justify-content: center;
  gap: 12px; font-size: .8rem; color: rgba(255,255,255,.45);
}
.footer-bottom img { height: 24px; border-radius: 50%; border: 1px solid var(--gold-500); opacity: .7; }

/* ──────────────────────────────────────────
   AUTH PAGES (Login / Change Password)
────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(150deg, var(--red-900) 0%, #2C0000 100%);
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.auth-card {
  position: relative; z-index: 1;
  background: var(--white); border-radius: var(--radius-xl);
  padding: 40px 36px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-xl);
}
.auth-logo-group { text-align: center; margin-bottom: 28px; }
.auth-logo-ring {
  width: 76px; height: 76px; border-radius: 50%;
  border: 3px solid var(--gold-500);
  overflow: hidden; margin: 0 auto 12px;
  box-shadow: 0 0 0 6px rgba(253,216,53,.12);
}
.auth-logo-ring img { width: 100%; height: 100%; object-fit: cover; }
.auth-title { font-size: 1.4rem; font-weight: 800; color: var(--red-800); margin-bottom: 4px; }
.auth-subtitle { font-size: .85rem; color: var(--grey-600); }
.auth-hint { background: #FFF8F0; border-left: 3px solid var(--gold-500); padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .83rem; color: var(--grey-700); margin-bottom: 20px; }
.auth-error { background: #FFEBEE; border-left: 3px solid var(--red-700); padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .85rem; color: var(--red-800); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.auth-footer { text-align: center; margin-top: 20px; }
.auth-footer a { color: var(--red-800); font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.btn-submit {
  width: 100%; background: var(--red-800); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .95rem;
  padding: 13px; border: none; border-radius: var(--radius-md); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px;
  transition: background var(--duration), transform var(--duration), box-shadow var(--duration);
}
.btn-submit:hover { background: var(--red-700); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(183,28,28,.35); }

/* ──────────────────────────────────────────
   MEMBER PORTAL – LAYOUT
────────────────────────────────────────── */
.portal-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.portal-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--grey-200);
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200;
  display: flex; flex-direction: column;
  overflow-y: auto;
  transition: transform var(--duration) var(--ease);
  box-shadow: var(--shadow-md);
}
.sidebar-header {
  background: linear-gradient(135deg, var(--red-900), var(--red-800));
  padding: 24px 20px 20px;
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.sidebar-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--gold-500);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-avatar i { color: var(--gold-500); font-size: 1.8rem !important; }
.sidebar-meta { overflow: hidden; }
.sidebar-name { display: block; font-weight: 700; font-size: .9rem; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-num  { display: block; font-size: .75rem; color: var(--gold-500); font-weight: 600; }
.sidebar-church { display: block; font-size: .72rem; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav { flex: 1; padding: 16px 0; }
.sidebar-section-title { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--grey-400); padding: 8px 20px 4px; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  color: var(--grey-700); font-size: .9rem; font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}
.sidebar-link i { font-size: 1.2rem !important; color: var(--grey-400); transition: color var(--duration); }
.sidebar-link:hover, .sidebar-link.active {
  background: #FFF3F3;
  color: var(--red-800);
  border-left-color: var(--red-800);
}
.sidebar-link:hover i, .sidebar-link.active i { color: var(--red-800); }
.sidebar-link.danger { color: var(--red-800); }
.sidebar-link.danger i { color: var(--red-600); }
.sidebar-link.danger:hover { background: #FFEBEE; }
.sidebar-divider { height: 1px; background: var(--grey-200); margin: 8px 0; }

/* Portal topbar */
.portal-topbar {
  position: fixed; top: 0;
  left: 260px; right: 0;
  height: 60px;
  background: var(--red-800);
  display: flex; align-items: center;
  padding: 0 20px;
  z-index: 190;
  box-shadow: var(--shadow-sm);
  gap: 16px;
}
.portal-menu-toggle { display: none; background: none; border: none; color: var(--white); cursor: pointer; padding: 4px; }
.portal-page-title { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--white); font-size: 1rem; flex: 1; }
.portal-user-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border-radius: 20px; padding: 4px 14px 4px 8px;
  font-size: .82rem; color: var(--white); font-weight: 500;
}
.portal-user-chip-avatar {
  width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
  background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
}
.portal-user-chip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-user-chip-avatar i { font-size: .9rem !important; color: var(--gold-500); }
.portal-logout-btn {
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: var(--white); border-radius: 6px; padding: 6px 12px;
  font-size: .8rem; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background var(--duration), border-color var(--duration);
}
.portal-logout-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }

/* Portal main */
.portal-main {
  margin-left: 260px;
  padding-top: 60px;
  min-height: 100vh;
  background: var(--grey-100);
}
.portal-content { padding: 28px 24px; max-width: 1200px; }
.page-heading { margin-bottom: 24px; }
.page-heading h4 {
  font-size: 1.5rem; font-weight: 800; color: var(--red-800);
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
}
.page-heading h4 i { color: var(--red-700); }
.page-heading p { color: var(--grey-600); font-size: .9rem; }

/* Portal stat cards */
.stat-card {
  border-radius: var(--radius-md); padding: 22px 20px;
  display: flex; align-items: center; gap: 16px;
  color: var(--white); box-shadow: var(--shadow-md);
  transition: transform var(--duration), box-shadow var(--duration);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.stat-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.18); flex-shrink: 0; }
.stat-icon i { font-size: 1.7rem !important; }
.stat-val { font-family: 'Montserrat', sans-serif; font-size: 1.9rem; font-weight: 800; line-height: 1; display: block; }
.stat-lbl { font-size: .78rem; opacity: .9; margin-top: 4px; display: block; }
.stat-blue   { background: linear-gradient(135deg, #1565C0, #0D47A1); }
.stat-red    { background: linear-gradient(135deg, var(--red-700), var(--red-900)); }
.stat-green  { background: linear-gradient(135deg, #2E7D32, #1B5E20); }
.stat-amber  { background: linear-gradient(135deg, #E65100, #BF360C); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px; font-size: .76rem; font-weight: 700; }
.badge-success { background: #E8F5E9; color: #2E7D32; }
.badge-warn    { background: #FFF8E1; color: #F57F17; }
.badge-danger  { background: #FFEBEE; color: #C62828; }
.badge-info    { background: #FFF3E0; color: var(--red-800); }
.badge-purple  { background: #F3E5F5; color: var(--purple); }

/* Progress */
.progress-wrap { margin-top: 8px; }
.progress-label { font-size: .82rem; color: var(--grey-600); margin-bottom: 6px; display: flex; justify-content: space-between; }
.progress-track { height: 6px; background: var(--grey-200); border-radius: 3px; overflow: hidden; }
.progress-fill  { height: 100%; background: linear-gradient(90deg, var(--red-800), var(--red-600)); border-radius: 3px; transition: width .6s var(--ease); }

/* Profile completeness items */
.profile-check { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--grey-100); font-size: .875rem; color: var(--grey-600); }
.profile-check:last-child { border-bottom: none; }
.profile-check.done { color: #2E7D32; }
.profile-check i { font-size: 1.1rem !important; }
.profile-check.done i { color: #2E7D32 !important; }
.profile-check i { color: var(--grey-300) !important; }

/* Tabs */
.portal-tabs { display: flex; gap: 4px; background: var(--white); border-radius: var(--radius-md) var(--radius-md) 0 0; padding: 8px 8px 0; box-shadow: var(--shadow-sm); overflow-x: auto; }
.tab-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: none; border: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .875rem;
  color: var(--grey-600); white-space: nowrap;
  transition: background var(--duration), color var(--duration);
  border-bottom: 3px solid transparent;
}
.tab-btn.active { background: #FFF3F3; color: var(--red-800); border-bottom-color: var(--red-800); }
.tab-btn:hover:not(.active) { background: var(--grey-100); color: var(--grey-800); }
.tab-panel { display: none; background: var(--white); border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.tab-panel.active { display: block; }

/* Forms in portal */
.form-label { font-size: .78rem; font-weight: 700; color: var(--grey-600); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; display: block; }
.form-section-title { font-size: .85rem; font-weight: 700; color: var(--red-800); margin: 20px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--grey-100); display: flex; align-items: center; gap: 6px; }
.cmf-select {
  display: block; width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--grey-200); border-radius: var(--radius-sm);
  background: var(--white); font-size: .9rem; color: var(--grey-900);
  transition: border-color var(--duration);
}
.cmf-select:focus { border-color: var(--red-800); outline: none; }

/* Alerts in portal */
.portal-alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .875rem; margin-bottom: 16px;
}
.portal-alert-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid #2E7D32; }
.portal-alert-error   { background: #FFEBEE; color: #C62828; border-left: 4px solid #C62828; }
.portal-alert-info    { background: #FFF3E0; color: var(--red-800); border-left: 4px solid var(--gold-500); }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr { background: var(--red-800); }
.data-table thead th { color: var(--white); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 12px 16px; text-align: left; }
.data-table tbody tr { border-bottom: 1px solid var(--grey-100); transition: background var(--duration); }
.data-table tbody tr:hover { background: #FFF8F8; }
.data-table tbody td { padding: 13px 16px; font-size: .875rem; color: var(--grey-800); vertical-align: middle; }
.data-table tfoot td { font-weight: 700; padding: 12px 16px; border-top: 2px solid var(--grey-200); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--grey-600); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--red-800); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: .9rem !important; color: var(--grey-400); }

/* Church detail */
.church-hero { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: linear-gradient(135deg, var(--red-900), var(--red-800)); padding: 32px 28px; color: var(--white); display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.church-hero-icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,.2); flex-shrink: 0; }
.church-hero-icon i { font-size: 2.2rem !important; }
.church-hero-body h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.church-hero-body p { margin: 3px 0; font-size: .9rem; opacity: .85; display: flex; align-items: center; gap: 6px; }
.church-stat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.church-stat-pill { background: rgba(255,255,255,.15); border-radius: 16px; padding: 4px 12px; font-size: .78rem; font-weight: 600; display: flex; align-items: center; gap: 5px; }

/* Leader card in church detail */
.leader-detail-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.leader-detail-row + .leader-detail-row { border-top: 1px solid var(--grey-100); }
.leader-avatar { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.leader-avatar-red  { background: linear-gradient(135deg, var(--red-900), var(--red-800)); }
.leader-avatar-gold { background: linear-gradient(135deg, var(--gold-600), var(--gold-500)); }
.leader-avatar i { color: var(--white); font-size: 1.3rem !important; }
.leader-detail-meta { flex: 1; }
.leader-detail-role { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--red-800); display: block; }
.leader-detail-name { font-size: .95rem; font-weight: 700; color: var(--grey-900); display: block; margin: 2px 0; }
.leader-detail-phone { font-size: .82rem; color: var(--grey-600); display: flex; align-items: center; gap: 4px; }
.leader-detail-phone:hover { color: var(--red-800); }

/* Membership badge */
.mem-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--red-800); color: var(--gold-500); padding: 3px 12px; border-radius: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .3px; }

/* Lock notice */
.lock-notice { background: linear-gradient(135deg, #FFF8E1, #FFF3CD); border: 1.5px solid var(--gold-500); border-radius: var(--radius-md); padding: 20px 24px; display: flex; align-items: flex-start; gap: 16px; }
.lock-notice i { color: var(--gold-600); font-size: 1.8rem !important; flex-shrink: 0; margin-top: 2px; }
.lock-notice h6 { font-weight: 700; color: var(--grey-900); margin-bottom: 4px; }
.lock-notice p { font-size: .875rem; color: var(--grey-600); margin: 0; }

/* Announcement detail */
.ann-detail-hero { background: linear-gradient(135deg, var(--red-900), var(--red-800)); border-radius: var(--radius-lg); padding: 40px 36px; color: var(--white); margin-bottom: 32px; }
.ann-detail-hero h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 12px; }
.ann-meta { display: flex; align-items: center; gap: 16px; opacity: .8; font-size: .85rem; flex-wrap: wrap; }
.ann-body { font-size: 1.05rem; line-height: 1.85; color: var(--grey-800); }
.ann-body p { margin-bottom: 1.2em; }
.ann-card { background: var(--white); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--red-800); margin-bottom: 12px; transition: transform var(--duration), box-shadow var(--duration); }
.ann-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.ann-card h6 { font-weight: 700; color: var(--red-800); margin-bottom: 4px; font-size: .9rem; }
.ann-card small { color: var(--grey-600); font-size: .78rem; }

/* ──────────────────────────────────────────
   FORM SUCCESS / ERROR
────────────────────────────────────────── */
.form-success { background: #E8F5E9; border-left: 4px solid #43A047; padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .875rem; color: #2E7D32; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.form-error   { background: #FFEBEE; border-left: 4px solid var(--red-700); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .875rem; color: var(--red-800); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }

/* Filter chips */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.fchip { display: inline-flex; align-items: center; gap: 5px; background: var(--white); color: var(--grey-700); border: 1.5px solid var(--grey-200); padding: 6px 14px; border-radius: 20px; font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all var(--duration); }
.fchip:hover, .fchip.active { background: var(--red-800); border-color: var(--red-800); color: var(--white); }

/* Toast messages */
.cmf-toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.cmf-toast { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--radius-md); color: var(--white); font-size: .875rem; font-weight: 500; box-shadow: var(--shadow-lg); animation: slideUp .3s var(--ease); min-width: 260px; }
.cmf-toast-success { background: #2E7D32; }
.cmf-toast-error   { background: var(--red-800); }
.cmf-toast-info    { background: #1565C0; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ──────────────────────────────────────────
   RESPONSIVE – MOBILE FIRST
────────────────────────────────────────── */
@media (max-width: 992px) {
  .portal-sidebar { transform: translateX(-100%); }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-topbar { left: 0; }
  .portal-main { margin-left: 0; }
  .portal-menu-toggle { display: flex; }
  .portal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; }
  .portal-overlay.visible { display: block; }
}
@media (max-width: 768px) {
  :root { --nav-h: 56px; --ticker-h: 34px; }
  .section { padding: 56px 0; }
  .cmf-hero-stats { grid-template-columns: repeat(2,1fr); }
  .nav-links-center { display: none; }
  .gallery-grid { columns: 2; }
  .portal-content { padding: 20px 16px; }
  .church-hero { flex-direction: column; }
}
@media (max-width: 480px) {
  .cmf-hero-stats { grid-template-columns: repeat(2,1fr); }
  .cmf-hero-actions { flex-direction: column; align-items: stretch; }
  .gallery-grid { columns: 1; }
  .auth-card { padding: 28px 20px; }
  .portal-tabs { gap: 2px; }
  .tab-btn { padding: 10px 14px; font-size: .8rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ──────────────────────────────────────────
   PRODUCTION – FOCUS VISIBLE, PRINT
────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .cmf-nav, .cmf-ticker, .portal-sidebar, .portal-topbar { display: none; }
  .portal-main { margin-left: 0; padding-top: 0; }
}
