/* styles.css
   Abundant Life Ministries — Global Theme (Logo-matched)
   Palette: warm gold + espresso/ink + clean warm white
*/

/* =========================
   Theme Tokens
========================= */
:root {
  /* Keep original token names so existing UI keeps working */
  --purple: #2b170a; /* espresso / primary */
  --purple-2: #1f1108; /* deeper espresso (hover) */
  --gold: #cea02c; /* rich gold */
  --gold-2: #b7872d; /* darker gold (hover) */
  --black: #0b0b0f;
  --white: #ffffff;

  /* Surfaces + text */
  --bg: #fffdf8; /* warm white */
  --card: #ffffff;
  --text: #1b1613; /* warm charcoal */
  --muted: #6b625a;

  /* Effects */
  --border: rgba(43, 23, 10, 0.14);
  --shadow: 0 12px 34px rgba(11, 11, 15, 0.1);

  /* Layout */
  --radius: 16px;
  --maxw: 1100px;

  /* Extra helpers */
  --ink-wash: rgba(43, 23, 10, 0.08);
  --gold-wash: rgba(206, 160, 44, 0.12);
  --ring: rgba(206, 160, 44, 0.22);

  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* =========================
   Base / Reset
========================= */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

h1,
h2,
h3,
.page-title,
.page-header h1,
.hero h1,
.announcements-header h2,
.gallery-album-title,
.admin-card-title {
  font-family: var(--font-display);
  letter-spacing: -0.2px;
}

.btn,
.nav-main a,
.nav-actions a,
.nav-actions button,
.field label {
  font-family: var(--font-body);
  letter-spacing: 0.1px;
}

/* =========================
   Layout Helpers
========================= */
.container {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
}
.section {
  padding: 56px 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =========================
   Utilities
========================= */
.hidden {
  display: none !important;
}

.divider,
.divider-line,
.album-divider {
  height: 1px;
  background: var(--border);
  border-radius: 999px;
}
.divider {
  margin: 12px;
}
.divider-line {
  margin: 14px 0;
}
.album-divider {
  margin: 12px 0;
}

.inline-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.help,
.file-help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* =========================
   Buttons / Pills / Links
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 14px;
}

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

.btn-outline {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--purple);
}
.btn-outline:hover {
  background: rgba(206, 160, 44, 0.08);
}

.pill,
.page-pill,
.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 900;
  color: var(--purple);
  background: var(--gold-wash);
}

.link {
  color: var(--purple);
  font-weight: 900;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

/* =========================
   Navbar
========================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* Allow mobile dropdown to anchor to navbar container */
.nav .container {
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand .brand-text strong {
  font-size: 15px;
  letter-spacing: 0.2px;
}
.brand .brand-text span {
  font-size: 12px;
  color: var(--muted);
}

/* Desktop navbar organization */
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

/* Main site links group */
.nav-main {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
}

/* Action group (right side) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Desktop nav item styles */
.nav-main a,
.nav-actions a,
.nav-actions button {
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--purple);
  font-weight: 800;
  padding: 9px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-main a:hover,
.nav-actions a:hover,
.nav-actions button:hover {
  background: var(--ink-wash);
}

/* Divider between link groups */
.nav-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  border-radius: 999px;
  display: inline-block;
  margin: 0 4px;
}

/* Make the install/notification buttons match navbar sizing */
.nav-actions .nav-btn {
  padding: 9px 12px;
  border-radius: 999px;
}

/* Legacy support: if any page still uses .nav-cta */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile menu button */
.menu-btn {
  display: none; /* shown in mobile breakpoint */
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--purple);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

/* Mobile panel (dropdown) */
.mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 2000;

  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);

  display: flex;
  flex-direction: column;
  gap: 6px;

  /* ✅ NEW: make the MENU scroll */
  max-height: calc(100vh - 110px); /* viewport minus navbar + padding */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}


.mobile-panel a,
.mobile-panel button {
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  font-weight: 800;
  color: var(--purple);
  cursor: pointer;
  text-decoration: none;
}
.mobile-panel a:hover,
.mobile-panel button:hover {
  background: var(--ink-wash);
}

/* =========================
   Hero (Watermark + Collage)
========================= */
.hero.hero--watermark {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background:
    radial-gradient(1000px 520px at 15% 10%, rgba(206, 160, 44, 0.22), transparent 60%),
    radial-gradient(980px 520px at 85% 0%, rgba(43, 23, 10, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(43, 23, 10, 0.04), transparent 55%);
}

/* Logo watermark */
.hero.hero--watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/ALWALHM Logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(680px, 86vw);
  opacity: 0.08; /* watermark strength */
  filter: saturate(0.9) contrast(1.05);
  pointer-events: none;
}

/* Soft vignette for readability */
.hero.hero--watermark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 30% 30%, rgba(255, 253, 248, 0.86), transparent 65%),
    linear-gradient(90deg, rgba(255, 253, 248, 0.75), rgba(255, 253, 248, 0.35));
  pointer-events: none;
}

.hero-v2 {
  position: relative;
  z-index: 1; /* above watermark layers */
}

.hero-inner.hero-v2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.hero-card {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-kicker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(206, 160, 44, 0.32);
  background: rgba(206, 160, 44, 0.14);
  color: var(--purple);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.hero-title {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: -0.6px;
  line-height: 1.02;
}

.hero-title-accent {
  color: var(--gold-2);
}

.hero-lead {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 16px;
  max-width: 70ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Services strip inside hero card */
.hero-services {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.hero-services-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero-services-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(206, 160, 44, 0.32);
  background: rgba(206, 160, 44, 0.12);
  color: var(--purple);
  font-weight: 950;
  font-size: 12px;
}

.hero-services-note {
  color: var(--muted);
  font-weight: 750;
  font-size: 12px;
}

.hero-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-service {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  padding: 10px 12px;
}

.hero-service-title {
  font-weight: 900;
  color: var(--black);
  font-size: 13px;
}

.hero-service-time {
  margin-top: 4px;
  font-weight: 950;
  color: var(--purple);
  font-size: 14px;
}

/* RIGHT side media */
.hero-media {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hero-collage {
  position: relative;
  padding: 12px;
  overflow: hidden;
}

/* 3-photo grid */
.hero-shot {
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(43, 23, 10, 0.06);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-collage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 160px 160px;
  gap: 10px;
}

.hero-shot--a {
  grid-column: 1 / 2;
  grid-row: 1 / 3; /* tall image */
  min-height: 330px;
}

.hero-shot--b {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  min-height: 160px;
}

.hero-shot--c {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  min-height: 160px;
}

/* Bottom overlay card */
.hero-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 12, 16, 0.7);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.hero-overlay-inner {
  padding: 12px 12px;
}

.hero-overlay-title {
  color: #fff;
  font-weight: 950;
  letter-spacing: 0.2px;
}

.hero-overlay-text {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.25;
}

/* Highlights row */
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-highlight {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
}

.hero-highlight-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 850;
}

.hero-highlight-value {
  margin-top: 4px;
  font-weight: 950;
  color: var(--purple);
  font-size: 13px;
}

/* Responsive hero */
@media (max-width: 980px) {
  .hero-inner.hero-v2 {
    grid-template-columns: 1fr;
  }
  .hero-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 170px 170px;
  }
  .hero-shot--a {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    min-height: 170px;
  }
  .hero-shot--b {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .hero-shot--c {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
  .hero-services-grid {
    grid-template-columns: 1fr;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero.hero--watermark {
    padding: 54px 0;
  }
  .hero-title {
    font-size: clamp(30px, 7vw, 40px);
  }
}

/* =========================
   Announcements (Public)
========================= */
.announcements {
  padding-top: 0;
}
.announcements-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.announcements-header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--purple);
}
.announcements-header p {
  margin: 0;
  color: var(--muted);
}
.announcement-list {
  display: grid;
  gap: 12px;
}
.announcement {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
}
.announcement .meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.announcement h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--black);
}
.announcement p {
  margin: 0;
  color: var(--text);
}

/* Admin-style announcement cards */
.announce-card {
  padding: 14px;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
.announce-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.announce-title {
  font-weight: 950;
  color: var(--black);
  font-size: 16px;
}
.announce-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 750;
  font-size: 12px;
  margin-bottom: 10px;
}
.announce-snippet {
  color: var(--text);
  opacity: 0.92;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.announce-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.announce-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  border: 1px solid var(--border);
}
.announce-visible {
  background: var(--gold-wash);
  color: var(--purple);
  border-color: rgba(206, 160, 44, 0.3);
}
.announce-hidden {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.12);
}
.announce-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #000;
}

/* =========================
   Footer
========================= */
.footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(43, 23, 10, 0.05),
    rgba(206, 160, 44, 0.08)
  );
  padding: 18px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a {
  color: var(--purple);
  font-weight: 900;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
.footer .address {
  color: var(--black);
  font-weight: 800;
}

/* =========================
   Forms
========================= */
.form-wrap {
  padding: 44px 0 64px;
}
.form-card {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 18px;
}
.form-header {
  padding: 14px 12px 6px;
}
.form-header h1 {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 28px;
  letter-spacing: -0.3px;
}
.form-header p {
  margin: 0;
  color: var(--muted);
}
.form {
  padding: 12px;
  display: grid;
  gap: 12px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field label {
  display: block;
  font-weight: 900;
  color: var(--black);
  margin: 0 0 6px;
  font-size: 13px;
}
.field input,
.field select,
.textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  outline: none;
  font-weight: 650;
  background: var(--white);
  color: var(--text);
}
.textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.textarea:focus,
.editor:focus {
  border-color: rgba(206, 160, 44, 0.55);
  box-shadow: 0 0 0 4px var(--ring);
}

.alert {
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(206, 160, 44, 0.3);
  background: var(--gold-wash);
  color: var(--black);
  font-weight: 800;
}
.alert.error {
  background: rgba(180, 35, 35, 0.1);
  border-color: rgba(180, 35, 35, 0.2);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

/* =========================
   Page Headers / Grids
========================= */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.page-title {
  margin: 0;
  color: var(--purple);
  font-size: 34px;
  letter-spacing: -0.4px;
}
.page-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.page-header {
  padding: 28px 0 10px;
}
.page-header h1 {
  margin: 0 0 6px;
  color: var(--purple);
  font-size: 34px;
  letter-spacing: -0.4px;
}
.page-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* =========================
   Testimonies
========================= */
.testimony-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.testimony-card {
  padding: 14px;
  cursor: pointer;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.testimony-card:hover {
  transform: translateY(-2px);
}
.testimony-title {
  font-weight: 900;
  color: var(--black);
  font-size: 16px;
  margin: 0 0 10px;
  line-height: 1.2;
}
.testimony-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 750;
  font-size: 12px;
  flex-wrap: wrap;
}
.testimony-snippet {
  color: var(--text);
  opacity: 0.92;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 6px;
  flex-wrap: wrap;
}
.pagination .btn {
  padding: 10px 12px;
}
.page-info {
  font-weight: 900;
  color: var(--text);
}

/* =========================
   Modal (Unified)
========================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
  overflow: auto;
}

.modal {
  width: min(860px, 100%);
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

.modal.hidden,
.modal-backdrop.hidden {
  display: none !important;
}

.modal-header {
  flex: 0 0 auto;
}
.modal-title {
  margin: 0;
  color: var(--purple);
}
.modal-meta {
  color: var(--muted);
  font-weight: 750;
  margin-top: 4px;
}

.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px;
  color: var(--text);
  line-height: 1.55;
}

.modal-footer {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal-close {
  border: 0;
  background: transparent;
  font-weight: 950;
  color: var(--purple);
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 12px;
}
.modal-close:hover {
  background: var(--ink-wash);
}

.modal-card {
  background: var(--white);
}

/* =========================
   Rich Text Editor
========================= */
.toolbar,
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.toolbtn,
.tool {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
}
.editor {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  min-height: 160px;
  outline: none;
  background: var(--white);
}
.editor:empty:before {
  content: attr(data-placeholder);
  color: var(--muted);
  font-weight: 700;
}

/* =========================
   Recorder / Submit UI
========================= */
.recorder {
  padding: 0;
}
.recorder-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.recorder-status {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview,
.video-wrap video,
.video-preview {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #000;
}

.video-preview {
  margin-top: 10px;
  max-height: 320px;
  height: auto;
  object-fit: contain;
}

.record-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.timer {
  font-weight: 950;
  color: var(--purple);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--white);
}

.warning {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(206, 160, 44, 0.3);
  background: var(--gold-wash);
  font-weight: 800;
}

.submit-choices {
  display: flex;
  gap: 12px;
  padding: 0 12px 12px;
  flex-wrap: wrap;
}
.disclaimer,
.video-wrap {
  padding: 0 12px 12px;
}
.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 750;
  color: var(--text);
}

/* Progress */
.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(43, 23, 10, 0.06);
}
.progress-bar {
  height: 100%;
  background: rgba(206, 160, 44, 0.75);
}

/* =========================
   Admin Dashboard
========================= */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.admin-card {
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.admin-card:hover {
  transform: translateY(-2px);
}
.admin-card-title {
  font-weight: 950;
  color: var(--purple);
  font-size: 18px;
}

/* =========================
   Members
========================= */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.member-card {
  position: relative;
  text-align: left;
  padding: 14px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.member-card:hover {
  transform: translateY(-2px);
}

.member-select {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  transform: translateZ(0);
}

.member-card-top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}
.member-name {
  font-weight: 1000;
  font-size: 16px;
  color: var(--text);
  margin-left: 28px;
  min-width: 0;
  line-height: 1.2;
}
.member-sub {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

/* Role badge colors */
.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.role-user {
  background: var(--purple);
  color: var(--white);
  border-color: rgba(43, 23, 10, 0.35);
}
.role-admin {
  background: var(--gold);
  color: var(--black);
  border-color: rgba(206, 160, 44, 0.5);
}

/* Member modal detail grid */
.member-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.detail-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--white);
}
.detail-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 4px;
}
.detail-value {
  font-weight: 800;
  color: var(--text);
  word-break: break-word;
}

.role-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.role-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Bulk bar */
.bulk-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
}
.bulk-left {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.bulk-count {
  font-weight: 900;
}

/* Role picker chips */
.role-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.role-chip {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 10px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.6);
}
.role-chip input {
  width: 16px;
  height: 16px;
}
.role-chip .role-badge {
  padding: 5px 10px;
  font-size: 12px;
}
.role-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

/* Role badges (colored chips) */
.role-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.role-badges .role-badge {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.12);
  user-select: none;
}

/* Keep existing group colors */
.rb-admin {
  background: #d4af37;
  color: #000;
  border-color: rgba(0, 0, 0, 0.18);
}
.rb-elder {
  background: #b80000;
  color: #fff;
  border-color: rgba(0, 0, 0, 0.18);
}
.rb-media {
  background: #111;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}
.rb-music {
  background: #1e5bff;
  color: #fff;
  border-color: rgba(0, 0, 0, 0.18);
}
.rb-event {
  background: #1bb35f;
  color: #000;
  border-color: rgba(0, 0, 0, 0.18);
}
.rb-none {
  background: #e9e9ee;
  color: #111;
  border-color: rgba(0, 0, 0, 0.12);
}
.rb-youth {
  background: orange;
  color: #111;
  border-color: rgba(0, 0, 0, 0.12);
}
.rb-men {
  background: navy;
  color: white;
  border-color: rgba(0, 0, 0, 0.12);
}
.rb-women {
  background: pink;
  color: #111;
  border-color: rgba(0, 0, 0, 0.12);
}
.rb-regular {
  background: gray;
  color: #111;
  border-color: rgba(0, 0, 0, 0.12);
}
.rb-hospitality {
  background: yellow;
  color: #111;
  border-color: rgba(0, 0, 0, 0.12);
}

/* =========================
   Reason Pills: Radio style (Messaging)
   Removes checkbox box and keeps radio indicator
========================= */

/* If a reason-pill contains a RADIO, don't show the checkbox-style square */
.reason-pill:has(input[type="radio"]) span::before {
  width: 16px;
  height: 16px;
  border-radius: 999px; /* circle */
  border: 2px solid var(--border);
  background: var(--white);
  box-shadow: none;
  margin-right: 10px;
}

/* Remove any checkbox checkmark rendering inside radio pills */
.reason-pill:has(input[type="radio"]) input[type="checkbox"]:checked + span::after {
  content: none;
}

/* When selected: fill dot ring */
.reason-pill:has(input[type="radio"]) input[type="radio"]:checked + span::before {
  border-color: var(--purple);
  background: radial-gradient(circle at center, var(--purple) 0 45%, transparent 48% 100%);
  box-shadow: 0 0 0 3px rgba(43, 23, 10, 0.14);
}

/* Make selected pill look "active" */
.reason-pill:has(input[type="radio"]:checked) {
  border-color: rgba(43, 23, 10, 0.35);
  background: rgba(43, 23, 10, 0.08);
}

/* =========================
   Videos (Public)
========================= */
.video-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(43, 23, 10, 0.1),
    rgba(206, 160, 44, 0.14)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* =========================
   Albums / Photos (Admin helpers)
========================= */
.album-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.album-title {
  margin: 0;
  font-weight: 950;
  color: var(--purple);
  font-size: 18px;
  line-height: 1.2;
}
.album-sub {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.album-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.drag-handle {
  cursor: grab;
  user-select: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 900;
  color: var(--purple);
}
.dragging {
  opacity: 0.6;
}
.drop-target {
  outline: 3px solid rgba(206, 160, 44, 0.22);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.photo-card {
  text-align: left;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.photo-card:hover {
  transform: translateY(-2px);
}
.photo-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(43, 23, 10, 0.04);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-cap {
  font-weight: 900;
  color: var(--black);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 750;
  font-size: 12px;
}
.album-body {
  margin-top: 12px;
}

/* =========================
   Gallery (Public)
========================= */
.gallery-toolbar {
  padding: 14px;
  margin: 14px 0 18px;
}
.gallery-toolbar-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.gallery-crumbs {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.gallery-albums-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.album-card {
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.album-card:hover {
  transform: translateY(-2px);
}

.album-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(43, 23, 10, 0.1),
    rgba(206, 160, 44, 0.14)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.album-cover-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 12px;
}

.album-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.album-card-title {
  font-weight: 950;
  color: var(--black);
  font-size: 16px;
  line-height: 1.2;
}
.album-card-sub {
  margin: 0;
}

.gallery-album-head {
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.gallery-album-title {
  margin: 0;
  color: var(--purple);
  font-size: 22px;
  letter-spacing: -0.2px;
}
.gallery-album-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.gallery-photo {
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery-photo:hover {
  transform: translateY(-2px);
}

.gallery-photo-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(43, 23, 10, 0.05);
}
.gallery-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-photo-cap {
  font-weight: 900;
  color: var(--black);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 16px;
}

/* =========================
   Lightbox
========================= */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.lightbox-backdrop.hidden {
  display: none !important;
}

.lightbox {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 28px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 12, 16, 0.82);
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 950;
  cursor: pointer;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lightbox-body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 16px 12px;
  overflow: hidden;
}
.lightbox-body img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

.lightbox-caption {
  flex: 0 0 auto;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.lightbox-caption-text {
  font-weight: 900;
  line-height: 1.25;
}
.lightbox-caption-sub {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.82;
  font-weight: 750;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 26px;
  font-weight: 950;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
}
.lightbox-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.lightbox-prev {
  left: 10px;
}
.lightbox-next {
  right: 10px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1120px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-main {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 980px) {
  .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .testimony-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery-albums-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery-photos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .role-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  /* Hide desktop nav + show menu button */
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* Layout grids */
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-albums-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-photos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .testimony-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .video-preview {
    max-height: 220px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .members-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .reason-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .lightbox-body {
    padding-top: 52px;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 460px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .gallery-albums-grid {
    grid-template-columns: 1fr;
  }
  .gallery-photos-grid {
    grid-template-columns: 1fr;
  }
}
