/* ============================================================
   CFC — MINISTRY MINI-SITE STYLESHEET
   Truth Embassy Digital Hub
   Shared across all 4 ministry mini-sites × 5 pages each
   ============================================================ */

/* ── Ministry Sub-Nav ── */
.ministry-subnav {
  position: fixed;
  top: 74px;
  left: 0; right: 0;
  z-index: 999;
  background: rgba(5,10,26,.97);
  border-bottom: 1px solid rgba(201,168,76,.2);
  height: 48px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.ministry-subnav::-webkit-scrollbar { display: none; }

.subnav-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 1rem;
  min-width: max-content;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}
.subnav-label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(201,168,76,.3);
  margin-right: 0.5rem;
  white-space: nowrap;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.9rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(240,232,208,.55);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.subnav-link:hover { color: var(--gold); background: rgba(201,168,76,.08); }
.subnav-link.active {
  color: var(--gold);
  background: rgba(201,168,76,.1);
}
.subnav-link.subnav-join {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(201,168,76,.18), rgba(201,168,76,.08));
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold);
  font-weight: 700;
}
.subnav-link.subnav-join:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ── Ministry Hero (main home page) ── */
.ministry-hero {
  padding-top: 190px;
  padding-bottom: 80px;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
}
.ministry-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--hero-bg-url, none);
  background-size: cover;
  background-position: center;
  opacity: var(--hero-ph-opacity, 0.18);
  filter: brightness(var(--hero-brightness, 100%)) grayscale(20%);
}
.ministry-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--hero-overlay, linear-gradient(135deg,
    rgba(8,15,36,.92) 0%,
    rgba(75,0,130,.78) 50%,
    rgba(8,15,36,.92) 100%
  ));
}
.ministry-hero > * { position: relative; z-index: 2; }

/* Ministry Hero (inner pages — shorter) */
.ministry-hero-sm {
  padding-top: 165px;
  padding-bottom: 48px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
}
.ministry-hero-sm::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(8,15,36,.95) 0%,
    rgba(75,0,130,.7) 50%,
    rgba(8,15,36,.95) 100%
  );
}
.ministry-hero-sm > * { position: relative; z-index: 2; }

/* Hero icon ring */
.ministry-hero-icon {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  background: rgba(201,168,76,.1);
  box-shadow: 0 0 30px rgba(201,168,76,.2), 0 0 60px rgba(201,168,76,.08);
}
.ministry-hero-icon i { font-size: 2.4rem; color: var(--gold); }

/* ── Vision Pillar Cards ── */
.pillar-card {
  background: linear-gradient(145deg, rgba(75,0,130,.15), rgba(13,27,62,.8));
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.pillar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,168,76,.5);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.pillar-card .p-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.pillar-card .p-icon i { font-size: 1.25rem; color: var(--gold); }
.pillar-card h4 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #fff;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}
.pillar-card p { color: #9ca3af; font-size: 0.76rem; line-height: 1.65; }

/* ── Meeting Time Cards ── */
.meeting-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: border-color .2s, background .2s;
}
.meeting-card:hover { background: rgba(201,168,76,.1); border-color: rgba(201,168,76,.4); }
.meeting-card .mc-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.meeting-card .mc-icon i { font-size: 1.1rem; color: var(--gold); }
.mc-day  { font-family: 'Cinzel', serif; font-weight: 700; color: var(--gold); font-size: 0.88rem; }
.mc-time { color: #fff; font-size: 0.84rem; margin-top: 1px; }
.mc-prog { color: #9ca3af; font-size: 0.76rem; margin-top: 2px; }

/* ── Ministry Events (compact — index preview) ── */
.ministry-event-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(145deg, rgba(75,0,130,.12), rgba(13,27,62,.8));
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color .25s, transform .25s;
}
.ministry-event-card:hover {
  border-color: rgba(201,168,76,.45);
  transform: translateX(4px);
}
.mec-date {
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  color: var(--navy);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  text-align: center;
  min-width: 52px;
  flex-shrink: 0;
}
.mec-day { display: block; font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.4rem; line-height: 1; }
.mec-mon { display: block; font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.6rem; letter-spacing: .06em; margin-top: 2px; }
.mec-info h4 { font-family: 'Cinzel', serif; font-weight: 700; color: #fff; font-size: 0.88rem; margin-bottom: 0.35rem; }
.mec-info p { color: #9ca3af; font-size: 0.76rem; margin: 0.15rem 0; }
.mec-info p i { color: var(--gold); margin-right: 5px; }

/* ── Full Event Cards (events.html) ── */
/* ── Events Grid ── */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px)  { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .events-grid { grid-template-columns: repeat(3, 1fr); } }

.full-event-card {
  border-radius: 12px;
  overflow: hidden;
  min-height: 240px;
  background-color: rgba(13,27,62,.9);
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform .3s, box-shadow .3s;
  border: 1px solid rgba(201,168,76,.15);
}
.full-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  border-color: rgba(201,168,76,.35);
}
.fec-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,15,36,.96) 35%, rgba(8,15,36,.4) 100%);
  padding: 1.5rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}
.fec-date {
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  color: var(--navy);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  text-align: center;
  min-width: 52px;
  flex-shrink: 0;
}
.fec-day { display: block; font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.4rem; line-height: 1; }
.fec-mon { display: block; font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.6rem; letter-spacing: .06em; }
.fec-info h3 { font-family: 'Cinzel', serif; font-weight: 700; color: #fff; font-size: 1rem; margin-bottom: 0.4rem; }
.fec-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.fec-meta span { color: var(--gold-l); font-size: 0.76rem; }
.fec-meta span i { margin-right: 4px; }
.fec-desc { color: #9ca3af; font-size: 0.76rem; margin-top: 0.4rem; line-height: 1.5; }
.fec-tag {
  display: inline-block;
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(201,168,76,.35);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .15rem .55rem;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── Photo Gallery — Mosaic (CSS columns) ── */
.gallery-grid {
  columns: 2;
  column-gap: 0.5rem;
}
@media (min-width: 640px)  { .gallery-grid { columns: 3; column-gap: 0.625rem; } }
@media (min-width: 1024px) { .gallery-grid { columns: 4; column-gap: 0.75rem; } }

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: 0.5rem;
  background: rgba(13,27,62,.6);
  border: 1px solid rgba(201,168,76,.1);
  display: inline-block;
  width: 100%;
}
@media (min-width: 640px)  { .gallery-item { margin-bottom: 0.625rem; } }
@media (min-width: 1024px) { .gallery-item { margin-bottom: 0.75rem; } }

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(0deg, rgba(8,15,36,.92), transparent);
  color: #f0e8d0;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Gallery thumb preview (on index page) */
.gallery-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
@media (min-width: 768px) { .gallery-thumb-grid { grid-template-columns: repeat(6, 1fr); } }

.gallery-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: rgba(13,27,62,.6);
  border: 1px solid rgba(201,168,76,.12);
  transition: transform .3s, opacity .3s;
  cursor: pointer;
}
.gallery-thumb:hover { transform: scale(1.04); opacity: 0.85; }

/* ── Leadership Grid ── */
.leaders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px)  { .leaders-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .leaders-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Leadership Team — matches About page style ── */
.leader-card {
  background: linear-gradient(145deg, rgba(75,0,130,.18), rgba(13,27,62,.92));
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 20px rgba(201,168,76,.1);
  border-color: rgba(201,168,76,.5);
}

.lc-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.lc-photo-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(145deg, #1a003a, #0d1b3e);
}

.lc-body { padding: 1.25rem; }
.lc-role-badge {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: rgba(201,168,76,.1);
  color: var(--gold);
  font-size: .6rem;
  border: 1px solid rgba(201,168,76,.3);
  margin-bottom: .75rem;
  font-family: 'Cinzel', serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.lc-body h3 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.lc-bio { color: #9ca3af; font-size: 0.8rem; line-height: 1.65; }

/* Leadership card small (index preview) */
.leader-card-sm {
  text-align: center;
  background: linear-gradient(145deg, rgba(75,0,130,.12), rgba(13,27,62,.8));
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  transition: transform .3s, border-color .3s;
}
.leader-card-sm:hover { transform: translateY(-4px); border-color: rgba(201,168,76,.4); }
.lc-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  margin: 0 auto 0.9rem;
  border: 2px solid rgba(201,168,76,.5);
  overflow: hidden;
  background: rgba(13,27,62,.8);
  display: flex; align-items: center; justify-content: center;
}
.lc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lc-avatar .leader-ph { font-size: 1.8rem; color: var(--gold); opacity: 0.4; }
.lc-name { font-family: 'Cinzel', serif; font-weight: 700; color: #fff; font-size: 0.84rem; margin-bottom: 0.25rem; }
.lc-title-sm { color: var(--gold); font-size: 0.72rem; }

/* ── Join Form ── */
.join-form-wrap {
  background: linear-gradient(145deg, rgba(75,0,130,.15), rgba(13,27,62,.85));
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 16px;
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(8,15,36,.65);
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 6px;
  color: #f0e8d0;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(156,163,175,.45); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23C9A84C' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-select option { background: #0d1b3e; color: #f0e8d0; }
.form-textarea { resize: vertical; min-height: 100px; }

.join-result {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.86rem;
  line-height: 1.6;
  display: none;
}
.join-result:not(:empty) { display: block; }
.join-result-success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: #86efac;
}
.join-result-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
  grid-column: 1 / -1;
}
.empty-state i { font-size: 3.5rem; margin-bottom: 1.5rem; display: block; opacity: 0.35; color: var(--gold); }
.empty-state h4 { font-family: 'Cinzel', serif; font-size: 1rem; color: #9ca3af; margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.8rem; }

/* ── Ministry Section Divider ── */
.section-label-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-label-row .line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.35), transparent);
}

/* ── Mobile Overrides ── */
@media (max-width: 640px) {
  .ministry-hero    { padding-top: 170px !important; padding-bottom: 50px !important; min-height: 440px; }
  .ministry-hero-sm { padding-top: 148px !important; padding-bottom: 32px !important; min-height: 220px; }
  .ministry-subnav  { top: 68px; }
  .subnav-link span { display: none; }
  .subnav-link { padding: 0.4rem 0.7rem; }
  .join-form-wrap   { padding: 1.5rem 1.25rem; }
  .gallery-grid    { columns: 2; }
  .full-event-card { min-height: 200px; }
}

@media (max-width: 380px) {
  .subnav-label { display: none; }
}
