/* Styles for public homepage: banner, quicklinks, sections, cards, modals */
:root{
  --primary:#2b6cb0;
  --accent:#ed8936;
  --muted:#6b7280;
  --card-bg:#ffffff;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: #111827;
  background: #f7fafc;
}
.home-banner{
  background: linear-gradient(90deg, rgba(43,108,176,0.95), rgba(77,138,186,0.95));
  color: #fff;
  padding: 48px 20px;
  border-radius: 8px;
}
.banner-inner{ max-width:1100px; margin:0 auto; }
.banner-inner h1{ font-size:32px; margin:0 0 6px; }
.banner-inner p{ margin:0 0 16px; opacity:0.95 }
.banner-quicklinks{ display:flex; gap:12px; }
/* default button style (for cards/sections) */
.btn{ background:#111827; color:#fff; padding:8px 12px; border-radius:6px; cursor:pointer; border:none }
.btn-secondary{ background:transparent; border:1px solid rgba(0,0,0,0.08); color:var(--muted) }
.banner-quicklinks .btn{ background:transparent; border:1px solid rgba(255,255,255,0.18); color:#fff; padding:8px 12px; border-radius:6px }
.btn-primary{ background:var(--primary); color:#fff; border:none }
.event-card .btn{ background:#f1f5f9; color:#0f172a; border:1px solid rgba(15,23,42,0.06) }

.fag-site-container{ max-width:1100px; margin:24px auto; }
.event-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease;
  border: 1px solid #ececec;
}

.event-card:hover{
  transform:translateY(-3px);
  box-shadow:0 6px 16px rgba(0,0,0,0.12);
}
.event-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #ddd;
}
.event-info {
  padding: 16px 18px;
}


.event-info h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}
.event-info p{
  margin:4px 0;
  color:#6b7280;
}

.event-description {
  color: #555;
  margin: 6px 0 12px;
  line-height: 1.45;
}
.event-meta {
  font-size: 0.92rem;
  color: #333;
  margin-bottom: 12px;
}
.event-location {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 14px;
}
.event-learn-btn {
  padding: 10px 14px;
  border: none;
  background: #1d7dfa;
  color: white;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
}
.event-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 9999;
  opacity: 1;
  transition: opacity .25s ease;
}
.event-modal {
  width: 100%;
  max-width: 800px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  animation: popupFade .3s ease;
  position: relative;
}
@keyframes popupFade {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.event-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0,0,0,.5);
  color: white;
  font-size: 26px;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease;
}
.event-modal-close:hover {
  background: rgba(0,0,0,.75);
}
.event-learn-btn:hover {
  background: #0e63d1;
}
.event-modal-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  background: #ccc;
}
.event-modal-body {
  padding: 20px 22px 26px;
}
.event-modal-title {
  margin: 0;
  font-size: 1.7rem;
} 
.event-modal-desc {
  margin: 12px 0 18px;
  color: #444;
  line-height: 1.45;
}
.event-modal-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.event-modal-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  color: #333;
}
.event-modal-item i {
  margin-top: 2px;
  color: #1d7dfa;
}
.event-card h3{ margin:0 0 6px }
.event-card p{ margin:4px 0; color:var(--muted) }
.sermons-grid{ display:grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap:12px }
.sermon-card{ background:#fff; padding:10px; border-radius:8px; box-shadow:0 1px 3px rgba(15,23,42,0.05) }
.sermon-card img{ width:100%; height:140px; object-fit:cover; border-radius:6px }

/* modal basics (keep consistent with admin styles) */
.modal-unique {
      position: fixed;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.55);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
    }
    
.modal-hidden-unique {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
      background: #fff;
      border-radius: 10px;
      padding: 16px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.35);
      animation: fadeIn .25s ease;
      width: 640px;
      max-width: 94%;
    }

      @keyframes fadeIn {
      from {transform: scale(.92); opacity: 0;}
      to {transform: scale(1); opacity: 1;}
    }

    .modal-content.small{ width:420px 
    }
    
    .modal-header {
      display:flex;
      justify-content: space-between;
      align-items:center;
      padding-bottom:10px;
      border-bottom:1px solid #ddd;
    }
    
    .modal-body{ padding:12px }

@media (max-width:600px){
  .banner-inner h1{ font-size:22px }
  .sermons-grid{ grid-template-columns: repeat(2,1fr) }
}

#publicEvents {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

/* Sermons Grid */
.improved-sermons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.sermon-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  transition: transform .18s ease, box-shadow .2s ease;
  cursor: pointer;
}

.sermon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Thumbnail with overlay */
.sermon-thumb-container {
  position: relative;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
}

.sermon-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Play Button Overlay */
.sermon-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity .25s ease;
}

.sermon-thumb-container:hover .sermon-play-overlay {
  opacity: 1;
}

.sermon-play-overlay i {
  font-size: 48px;
  color: #fff;
  text-shadow: 0 3px 6px rgba(0,0,0,.4);
}

/* Card Body */
.sermon-body {
  padding: 14px;
}

.sermon-title {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.sermon-meta {
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.sermon-views {
  color: #6b7280;
  font-size: 0.85rem;
  margin-left: auto;
}

/* Modal */
.sermon-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.sermon-modal-content {
  background: #fff;
  max-width: 850px;
  width: 100%;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.sermon-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: #fff;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.sermon-video {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 8px;
  margin-top: 10px;
}

.modal-hidden-unique {
  display: none;
}

/* fp- Landing overrides for announcements, events, sermons, and modals */
:root{
  --fp-primary: #9E6224;
  --fp-secondary: #F3D599;
  --fp-text: #1e1e1e;
  --fp-muted: #6b6b6b;
}

.fp-ann-card{ background:#fff; border-radius:12px; padding:14px; border:1px solid rgba(158,98,36,0.06); transition: transform .16s ease, box-shadow .2s ease; cursor:pointer }
.fp-ann-card:hover{ transform: translateY(-6px); box-shadow: 0 12px 30px rgba(158,98,36,0.06); }
.fp-ann-card__title{ font-weight:700; color:var(--fp-text); margin-bottom:6px }
.fp-ann-card__meta{ font-size:0.85rem; color:var(--fp-muted); margin-bottom:8px }
.fp-ann-card__summary{ color:#444; font-size:0.95rem; line-height:1.4 }

/* colourful accent for priority */
.fp-ann-card[data-priority="High"] { border-left: 6px solid rgba(233, 57, 57, 0.15); }
.fp-ann-card[data-priority="Medium"] { border-left: 6px solid rgba(243, 213, 153, 0.25); }
.fp-ann-card[data-priority="Low"] { border-left: 6px solid rgba(158, 98, 36, 0.12); }
.fp-ann-card__badge { display:inline-block; padding:6px 8px; border-radius:999px; font-weight:700; font-size:12px; margin-right:8px }
.fp-ann-card__badge.high { background: #ffe6e6; color:#b00000 }
.fp-ann-card__badge.med { background: #fff7e6; color:#b36b00 }
.fp-ann-card__badge.low { background: #e9f7ec; color:#0b7a3d }

.fp-event-card { background:#fff; border-radius:12px; overflow:hidden; border:1px solid rgba(0,0,0,0.04); box-shadow:0 6px 18px rgba(0,0,0,0.04); transition: transform .16s ease }
.fp-event-card:hover { transform:translateY(-6px); box-shadow:0 12px 28px rgba(0,0,0,0.06); }
.fp-event-thumb { width:100%; height:180px; object-fit:cover; display:block }
.fp-event-body { padding:12px }
.fp-event-title { font-size:1.05rem; margin:0 0 6px; color:var(--fp-primary) }
.event-description { color:#555; margin:6px 0 12px; line-height:1.45 }
.event-meta { font-size:0.92rem; color:#333; margin-bottom:12px }
.event-location { font-size:0.92rem; color:#555; margin-bottom:14px }

/* event card accent */
.fp-event-card::before { content: ''; display:block; height:6px; background: linear-gradient(90deg, rgba(158,98,36,0.95), rgba(243,213,153,0.95)); }
.fp-event-meta-row{ display:flex; gap:10px; align-items:center; font-size:0.9rem; color:var(--fp-muted) }

/* Call-to-action */
.fp-event-body .fp-btn { padding:8px 12px; font-weight:700 }

.fp-sermon-card { background:#fff; border-radius:12px; overflow:hidden; border:1px solid rgba(0,0,0,0.04); transition: transform .16s ease }
.fp-sermon-card:hover { transform: translateY(-6px); box-shadow: 0 10px 22px rgba(0,0,0,0.06); }
.fp-sermon-thumb { width:100%; height:160px; object-fit:cover; display:block }
.fp-sermon-body { padding:12px }
.fp-sermon-title { font-size:1.05rem; margin:0 0 6px; color:var(--fp-text) }
.fp-sermon-meta { color:var(--fp-muted); font-size:0.9rem }
.fp-play-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.35)); opacity:0; transition: opacity .18s ease }
.fp-sermon-card:hover .fp-play-overlay { opacity:1 }

/* prominent play button */
.fp-play-circle { width:72px; height:72px; background: linear-gradient(180deg, var(--fp-primary), #c07a3a); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; box-shadow: 0 8px 20px rgba(158,98,36,0.18); font-size:30px }
.fp-play-overlay .fp-play-circle { transform: scale(.98); transition: transform .12s ease }
.fp-sermon-card:hover .fp-play-overlay .fp-play-circle { transform: scale(1.03) }

.fp-modal__content { border-radius:12px; padding:18px; max-width:900px; width:100%; box-shadow: 0 8px 28px rgba(0,0,0,0.26) }
.modal-content { background:#fff; border-radius:12px; padding:16px; box-shadow:0 8px 30px rgba(0,0,0,0.12); }
.sermon-modal .sermon-modal-content, .event-modal { border-radius:14px; }
.event-modal-overlay { background: rgba(0,0,0,0.7); }

/* Modal polish: header, close, body scroll */
.fp-modal__header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-bottom:8px; border-bottom:1px solid rgba(0,0,0,0.06) }
.fp-modal__title { font-size:1.15rem; color:var(--fp-primary); margin:0 }
.modal-content .modal-body { max-height:60vh; overflow:auto; padding-top:12px }
.modal-content .modal-footer { display:flex; justify-content:flex-end; gap:8px; margin-top:12px }
.modal-close-btn { background:transparent; border:1px solid rgba(0,0,0,0.06); padding:8px 10px; border-radius:8px; cursor:pointer }

/* Section scrollable wrappers when content is large */
.fp-announcements__grid, .fp-events__grid, .fp-sermons__grid {
  max-height: 520px;
  overflow: auto;
  padding-right: 6px; /* room for scrollbar */
}

/* Custom scrollbar for webkit */
.fp-announcements__grid::-webkit-scrollbar, .fp-events__grid::-webkit-scrollbar, .fp-sermons__grid::-webkit-scrollbar { width: 10px }
.fp-announcements__grid::-webkit-scrollbar-thumb, .fp-events__grid::-webkit-scrollbar-thumb, .fp-sermons__grid::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(158,98,36,0.15), rgba(158,98,36,0.35)); border-radius: 8px }
.fp-announcements__grid::-webkit-scrollbar-track, .fp-events__grid::-webkit-scrollbar-track, .fp-sermons__grid::-webkit-scrollbar-track { background: transparent }

/* Firefox scrollbar */
.fp-announcements__grid, .fp-events__grid, .fp-sermons__grid { scrollbar-width: thin; scrollbar-color: rgba(158,98,36,0.25) transparent }

