

/* ================================
   GLOBAL STYLES
================================ */
:root {
  --primary: #2c2a4a;
  --secondary: #4b3f72;
  --light-bg: #fffaf4;
  --text: #333;
  --text-light: #555;
  --radius: 12px;
  --shadow-sm: 0 3px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.1);
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  padding: 0 12px; /* small horizontal padding for mobile */
}

/* Headings */
h1, h2, h3, h4, h5 {
  margin: 0.5em 0;
  font-weight: 600;
  color: var(--primary);
}

p {
  margin: 0.5em 0 1em;
  color: var(--text-light);
}

/* ================================
   HEADER / NAVBAR (Updated Mobile-Friendly)
================================ */
.navbar {
  background: var(--primary);
  padding: 8px 12px; /* reduced from 12px 16px */
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px; /* reduced gap */
  flex-wrap: wrap;
  margin: 0; /* remove default ul margin */
  padding: 0; /* remove default ul padding */
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem; /* slightly smaller */
  padding: 4px 8px; /* smaller padding */
  border-radius: 6px;
  transition: background 0.2s ease;
}

.navbar a:hover {
  background: var(--secondary);
}

/* ================================
   HERO SECTION
================================ */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  text-align: center;
  padding: 40px 12px; /* slightly smaller */
  border-radius: var(--radius);
  width: 100%;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 1.8rem; /* smaller font for mobile */
  color: #fff;
  animation: glowZoom 2s infinite;
}

.hero p {
  font-size: 0.95rem;
  font-style: italic;
  color: #e0e8ff;
}

@keyframes glowZoom {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    text-shadow: 0 0 10px #fff, 0 0 20px #a66cff, 0 0 30px #4db8ff;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.5;
    text-shadow: 0 0 5px #fff, 0 0 10px #a66cff, 0 0 15px #4db8ff;
  }
}

/* ================================
   MOBILE-RESPONSIVE APP-LIKE CONTAINER
================================ */
main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 768px) {
  body {
    padding: 0 8px;
  }

  .hero {
    padding: 35px 10px;
  }

  .navbar {
    padding: 6px 10px;
  }

  .navbar a {
    font-size: 0.8rem;
    padding: 3px 6px;
  }

  h1 {
    font-size: 1.6rem;
  }

  p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 25px 8px;
  }

  .navbar {
    padding: 5px 8px;
  }

  .navbar a {
    font-size: 0.75rem;
    padding: 2px 5px;
  }

  h1 {
    font-size: 1.4rem;
  }

  p {
    font-size: 0.85rem;
  }
}








/* ================================
   GLOBAL SECTIONS (common styles) – APP-LIKE UPDATE
================================ */
.section {
  width: 100%;
  max-width: 480px;               /* limits content width like a mobile app */
  margin: 16px auto;              /* space around each section */
  padding: 20px;                  /* comfortable padding inside */
  background: #fff;
  border-radius: 14px;            /* soft, app-like corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* slightly deeper, modern shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;               /* prevent overflow from children */
}

.section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); /* subtle hover depth */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .section {
    padding: 18px;
    margin: 14px auto;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 16px;
    margin: 12px auto;
  }
}




/* ================================
   SECTION CONTENT – APP-LIKE STYLING
================================ */

/* Headings inside sections */
.section h1, 
.section h2, 
.section h3, 
.section h4, 
.section h5 {
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--primary);
}

/* Paragraphs inside sections */
.section p {
  font-size: 0.9rem;             /* slightly smaller for comfortable reading */
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Buttons inside sections */
.section button, 
.section .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.section button:hover, 
.section .btn:hover {
  background: var(--secondary);
  transform: scale(1.05);
}

/* Media (images/videos) inside sections */
.section img, 
.section video {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Lists inside sections */
.section ul, .section ol {
  margin-left: 18px;
  margin-bottom: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

/* Cards or inner containers in section */
.section .card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .section {
    padding: 16px;
  }

  .section h1, .section h2, .section h3 {
    font-size: 1.1rem;
  }

  .section p {
    font-size: 0.88rem;
  }

  .section button, .section .btn {
    font-size: 0.8rem;
    padding: 7px 14px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 14px;
  }

  .section h1, .section h2, .section h3 {
    font-size: 1rem;
  }

  .section p {
    font-size: 0.85rem;
  }

  .section button, .section .btn {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}







/* =========================
   General Reset & Layout
========================= */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
}
h2, h3, h4, p { margin: 0 0 8px 0; }




















/* =========================================
   PICTURE POSTS STYLESHEET (Updated for gallery & modals)
========================================= */

/* --- Feed Container --- */
.picture-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 14px;
  max-width: 550px;
  margin: 0 auto;
  box-sizing: border-box;
  background: #f9f9fb;
}

.featured-wrapper {
  width: 100%;
}

/* --- Picture Card --- */
.picture-card {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  padding: 12px 14px 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  position: relative;
}

.picture-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.picture-img {
  width: 100%;
  display: block;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  background-color: #eee;
}

.picture-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  margin: 6px 0 8px;
  text-align: left;
}

.picture-description {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.55;
  margin-bottom: 10px;
}

.read-more-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.88rem;
  margin-left: 4px;
}

.read-more-btn:hover {
  color: #0056b3;
}

/* --- Actions Row --- */
.picture-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.like-btn,
.comment-btn,
.share-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #007bff;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
}

.like-btn:hover,
.comment-btn:hover,
.share-btn:hover {
  color: #0056b3;
  transform: scale(1.05);
}

.like-count {
  font-size: 0.85rem;
  color: #555;
  min-width: 40px;
}

/* --- View All Button --- */
.view-all-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 16px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.view-all-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}



/* =========================================
   GALLERY MODAL (Updated & Scrollable)
========================================= */
.gallery-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 10px;
}

.gallery-modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* Inner container sits above backdrop */
.gallery-inner {
  background: #fff;
  border-radius: 12px;
  max-width: 90%;
  max-height: 80vh; /* reduced height for scrolling */
  overflow-y: auto;
  padding: 20px 20px 30px; /* extra bottom padding for scroll */
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* Backdrop behind content */
.gallery-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

/* Close button - always visible */
.gallery-close {
  position: sticky; /* stays visible at top while scrolling */
  top: 10px;
  align-self: flex-end;
  background: #d33;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease, transform 0.15s ease;
}

.gallery-close:hover {
  background: #a00;
  transform: scale(1.05);
}

/* Grid layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* smaller thumbnails */
  gap: 10px;
  margin-top: 20px;
}

/* Individual gallery item */
.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
}

/* Thumbnail image */
.gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.25s ease;
}

.gallery-thumb:hover {
  transform: scale(1.05);
}

/* Thumbnail label */
.gallery-label {
  margin-top: 2px;
  font-size: 0.75rem; /* smaller font */
  color: #333;
  word-break: break-word;
}

/* =========================================
   Responsive tweaks
========================================= */
@media (max-width: 768px) {
  .gallery-inner {
    max-height: 85vh;
    padding: 15px 15px 25px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 8px;
  }

  .gallery-close {
    font-size: 1.4rem;
    padding: 5px 10px;
  }

  .gallery-label {
    font-size: 0.7rem;
  }
}






/* =========================================
   POST MODAL (Mobile & Desktop Friendly)
========================================= */
.post-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 10px;
}

.post-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.post-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 16px 20px;
  overflow: hidden;
}

/* Close button */
.post-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: #d33;
  color: #fff;
  border: none;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.15s ease;
}

.post-modal-close:hover {
  background: #a00;
  transform: scale(1.05);
}

/* Scrollable modal body */
.post-modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

/* Post content */
.modal-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111;
  margin: 8px 0;
}

.modal-desc {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  max-height: 35vh;  /* Ensures description doesn't take entire modal */
  overflow-y: auto;
  padding-right: 4px;
}

/* Actions row */
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-like,
.modal-comment,
.modal-share {
  background: none;
  border: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: #007bff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease, transform 0.15s ease;
}

.modal-like:hover,
.modal-comment:hover,
.modal-share:hover {
  color: #0056b3;
  transform: scale(1.05);
}

.modal-like-count {
  font-size: 0.85rem;
  color: #555;
}

/* Comments wrapper */
.modal-comments-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 35vh;
  overflow-y: auto;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

/* Comment list */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment {
  font-size: 0.85rem;
  line-height: 1.4;
  border-bottom: 1px solid #eee;
  padding: 4px 0;
}

.comment b {
  color: #111;
}

/* Comment form */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.comment-form input,
.comment-form textarea {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.comment-form textarea {
  resize: vertical;
  min-height: 50px;
}

.comment-form button {
  align-self: flex-start;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #007bff;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.comment-form button:hover {
  background: #0056b3;
  transform: scale(1.03);
}

/* =========================================
   Responsive tweaks for mobile
========================================= */
@media (max-width: 768px) {
  .post-modal-content {
    max-width: 95%;
    max-height: 80vh;
    padding: 12px 16px;
  }

  .modal-image {
    max-height: 180px;
  }

  .modal-title {
    font-size: 1.05rem;
  }

  .modal-desc {
    font-size: 0.88rem;
  }

  .comment-form input,
  .comment-form textarea {
    font-size: 0.82rem;
  }

  .comment-form button {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .modal-actions {
    gap: 8px;
  }
}















/* ================================
   SERMONS SECTION (Responsive Height)
================================ */
#sermons {
  margin: 20px 0;
  padding: 10px;
}

/* Scrollable Sermon Feed */
.sermon-feed {
  height: 60vh; /* slightly reduced height to make space below,was 78 */
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 7px;
  border-radius: 10px;
  z-index: 20;
  pointer-events: none;
  animation: fadeIndicator 2s ease-in-out infinite alternate;
}

@keyframes fadeIndicator {
  0% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* =============================
   Sermon Card (Reduced Size)
============================= */
.sermon-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  position: relative;
  width: 88%;              /* reduced from 95% */
  max-width: 320px;        /* was 360px */
  height: 50vh;            /* was 52vh */
  max-height: 420px;       /* was 500px */
  min-height: 250px;       /* was 300px */
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sermon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

.sermon-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Overlay Info */
.sermon-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 8px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.sermon-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.sermon-desc {
  font-size: 0.75rem;
  line-height: 1.1;
  max-height: 2.1em;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Actions: Like / Comment / Share */
.sermon-actions {
  position: absolute;
  right: 8px;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.sermon-actions button {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 36px;    /* reduced from 40px */
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-size: 1rem;
  color: #fff;
}

.sermon-actions button:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.1);
}

.like-count,
.comment-count {
  color: #fff;
  font-size: 0.65rem;
  margin-top: 1px;
  text-align: center;
}

/* Comments Box (Responsive & Scrollable) */
.comments-box {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 300px;
  max-height: 50vh;
  min-height: 160px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(3px);
  overflow-y: auto;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 6px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  z-index: 10;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

/* YouTube Button */
.youtube-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
}

.youtube-btn:hover {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

/* =============================
   Responsive Adjustments
============================= */
@media (max-width: 480px) {
  .sermon-card {
    width: 92%;
    max-width: 280px;
    height: 48vh;
  }

  .sermon-title { font-size: 0.85rem; }
  .sermon-desc { font-size: 0.7rem; }
  .youtube-btn { font-size: 0.7rem; padding: 4px 8px; }
}








.daily-verse-card {
  background: #fdf6e3; /* subtle page background */
  border-radius: 16px;
  padding: 25px 30px;
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.verse-text {
  font-size: 1.6rem;
  font-weight: 900; /* extra bold */
  line-height: 1.4;
  /* Create a gradient background for the text */
  background: linear-gradient(135deg, #ff7e5f, #feb47b, #ff6a88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* makes gradient show in text */
  background-clip: text; /* for some browsers */
  margin-bottom: 12px;
}

.verse-ref {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  opacity: 0.9;
}







/* events.css - premium glass + gradient style (readable text) */

/* Container */
.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  background-attachment: fixed;
}

/* Event card */
.event-card {
  background: rgba(255, 255, 255, 0.2); /* semi-transparent glass effect */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 3D hover effect */
.event-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

/* Event title */
.event-card h3 {
  font-size: 1.4rem;
  color: #ffffff; /* fully readable */
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); /* stronger shadow for clarity */
}

/* Event description */
.event-card p.desc {
  font-size: 1rem;
  color: #fdfdfd; /* bright for readability */
  margin-bottom: 0.75rem;
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); /* subtle shadow for legibility */
}

/* Event meta info */
.event-card p.meta {
  font-size: 0.875rem;
  color: #f1f1f1; /* bright white */
  margin-top: auto;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .events-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .event-card {
    padding: 1.2rem;
  }

  .event-card h3 {
    font-size: 1.2rem;
  }

  .event-card p.desc {
    font-size: 0.95rem;
  }
}












/* ================================
   FOOTER
================================ */
footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 20px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  font-size: 0.9rem;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 25px 15px; width: 95%; }
  .card, .services li, .social-box { flex: 1 1 100%; max-width: 100%; }
  .picture-feed { grid-template-columns: 1fr; gap: 12px; padding: 6px; height: auto; }
  .picture-card { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.9rem; }
  .navbar a { font-size: 0.8rem; padding: 4px 8px; }
  .section { padding: 20px 10px; }
  .sermon-card { height: 500px; }
  .sermon-actions { right: 5px; bottom: 60px; gap: 15px; }
  .comments-box { max-height: 60%; padding: 10px; }
}















/* =========================================================
   🌅 1. MEMORIAL STORY SECTION (Landscape Slideshow)
========================================================= */
.memorial-story-section {
  position: relative;
  height: 50vh;
  max-height: 500px;
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(135deg, #111, #222);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.memorial-story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1) translate(0,0);
  transition: transform 12s ease-in-out, opacity 1.5s ease-in-out;
}

/* Overlay with title, date, description */
.memorial-story-info {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: #fff;
  background: rgba(0,0,0,0.35); /* less blocking */
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  font-family: "SF Pro Display", "Helvetica Neue", sans-serif;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
  animation: fadeUp 1s ease-in-out;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.memorial-story-info h4 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem; /* smaller to fit */
  font-weight: 700;
}

.memorial-story-info p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.memorial-story-info .memorial-date {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

/* Fade-up animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   🕊️ 2. OLDER MEMORIALS GRID (Cards)
========================================================= */
.older-memorials {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.older-memorials h3 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #222;
  font-weight: 700;
}

/* Individual memorial cards */
.memorial-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto; /* auto height for description */
}

.memorial-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.memorial-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  transition: transform 0.8s ease;
}

.memorial-card:hover .memorial-card-img {
  transform: scale(1.05);
}

/* Card text info */
.memorial-info {
  padding: 0.6rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #111;
  line-height: 1.3;
}

.memorial-info h4 {
  margin: 0.2rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.memorial-info .memorial-date {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.memorial-info p {
  font-size: 0.9rem;
  color: #333;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  max-height: 3.6em; /* limit description height */
  overflow: hidden;
}

/* =========================================================
   🖼️ 3. FULLSCREEN PREVIEW OVERLAY
========================================================= */
.memorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.3s ease-in-out;
}

.memorial-preview {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  text-align: center;
  color: #fff;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  padding: 1rem;
}

.memorial-preview img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.memorial-preview h4 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.memorial-preview .memorial-date {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.memorial-preview p {
  font-size: 1rem;
  opacity: 0.85;
  word-wrap: break-word;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.1);
}

/* Fade in animation */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   🎵 4. SOUND TOGGLE BUTTON
========================================================= */
.sound-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  padding: 0.6rem;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s ease, transform 0.2s ease;
}

.sound-toggle:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

/* =========================================================
   📱 5. RESPONSIVENESS
========================================================= */
@media (max-width: 768px) {
  .memorial-story-section { height: 40vh; }
  .memorial-story-info {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    font-size: 0.9rem;
  }
  .memorial-card-img { height: 140px; }
  .memorial-info h4 { font-size: 1rem; }
  .memorial-info p { font-size: 0.85rem; max-height: 2.5em; }
  .memorial-preview { max-width: 95%; max-height: 80vh; padding: 0.5rem; }
}














  
  








/* ==========================================
   🕒 SERVICE TIMES SECTION
========================================== */
.services {
  background: linear-gradient(135deg, #f7f8ff, #eef2ff);
  border-left: 6px solid #4a3aff;
  padding: 1.5rem; /* reduced from 2.5rem */
  margin: 2rem auto; /* reduced from 3rem */
}

.services h2 {
  text-align: center;
  color: #4a3aff;
  font-weight: 700;
  font-size: 1.6rem; /* slightly smaller */
  margin-bottom: 1.2rem; /* reduced */
  letter-spacing: 0.3px;
}

.services li {
  background: #ffffff;
  border: 1px solid #e0e2f5;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem; /* reduced padding */
  margin-bottom: 0.7rem; /* reduced margin */
  font-size: 1rem;
  color: #333;
  box-shadow: 0 2px 6px rgba(74, 58, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* ==========================================
   ℹ️ ABOUT SECTION
========================================== */
.about {
  background: linear-gradient(135deg, #fffaf3, #fff3d7);
  border-left: 6px solid #f7b500;
  padding: 1.5rem; /* reduced */
  margin: 2rem auto; /* reduced */
}

.about h2 {
  text-align: center;
  color: #d49a00;
  font-weight: 700;
  font-size: 1.6rem; /* slightly smaller */
  margin-bottom: 1rem; /* reduced */
}

.about p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6; /* tighter text spacing */
  text-align: justify;
  background: rgba(255, 255, 255, 0.65);
  padding: 1rem; /* reduced */
  border-radius: 0.6rem;
  border: 1px solid rgba(212, 154, 0, 0.15);
  box-shadow: inset 0 1px 8px rgba(212, 154, 0, 0.05);
}

/* ==========================================
   📱 RESPONSIVE DESIGN
========================================== */
@media (max-width: 600px) {
  section {
    margin: 1rem;
    padding: 1rem;
  }

  .services li {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0.8rem; /* smaller spacing */
  }

  .services li strong {
    margin-bottom: 0.3rem;
  }

  .about p {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.9rem;
  }
}






 
  
/* =============================== EBOOK SECTION ================================ */
.ebook-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1rem 0.5rem; /* smaller padding */
  text-align: center;
  box-sizing: border-box;
}

/* ===== Grid: 2 books per row, auto rows ===== */
.ebook-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr)); /* smaller columns */
  gap: 0.8rem; /* tighter spacing */
  width: 100%;
  max-width: 300px; /* reduced from 360px */
  margin: 1rem auto;
  justify-content: center;
  justify-items: center;
  box-sizing: border-box;
}

/* ===== Each Book Card ===== */
.ebook-card {
  width: 100%;
  max-width: 140px; /* smaller card */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08); /* lighter shadow */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ebook-card:hover {
  transform: translateY(-2px); /* smaller hover lift */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ===== Book Cover ===== */
.ebook-cover {
  width: 100%;          /* full width of card */
  max-width: 140px;     /* reduced size */
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  margin: 0 auto;
  display: block;
}


/* ===== Book Info ===== */
.ebook-info {
  padding: 0.5rem 0.3rem;
}

.ebook-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
  text-align: center;
}

.ebook-part {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.25rem;
  text-align: center;
}

/* ===== View All Books Button ===== */
.view-all-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 1;
}

.view-all-btn:hover {
  background: #005bcc;
  transform: translateY(-2px);
}

/* =========================================================
   📖 BOOK DETAIL MODAL
   ========================================================= */
.ebook-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 1rem;
  overflow-y: auto;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

.ebook-detail-content {
  background: #fff;
  border-radius: 12px;
  width: 95%;
  max-width: 420px;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  padding: 1rem 1rem 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  scroll-behavior: smooth;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Close button */
.close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.5rem;
  color: #dc2626;
  cursor: pointer;
  z-index: 10001;
  background: #fff;
  border-radius: 50%;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
  transition: all 0.25s;
}

.close-btn:hover {
  background: #0077ff;
  color: #fff;
  transform: scale(1.05);
}

/* Book cover */
.ebook-detail-cover {
  width: 40%;
  max-width: 160px;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  aspect-ratio: 3/4;
}

/* Title and author */
.ebook-detail-content h2 {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #222;
}

.ebook-author {
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.8rem;
}

/* Description */
.ebook-description {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.5;
  max-height: 150px;
  overflow: hidden;
  padding-right: 0.5rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
  transition: max-height 0.3s ease;
}

.ebook-description.expanded {
  max-height: 400px;
  overflow-y: auto;
}

/* Buttons */
.ebook-detail-btns {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.read-btn,
.download-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s;
}

.read-btn { background: #0077ff; }
.read-btn:hover { ba  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1.5rem 1rem;
  text-align: center;
ckground: #005bcc; }

.download-btn { background: #28a745; }
.download-btn:hover { background: #1e7e34; }

/* ================= Gallery Modal for "View All" ================= */
.ebook-gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* use full height */
  background: rgba(15,15,15,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 1rem;
  box-sizing: border-box;
  overflow: hidden; /* prevent page scroll behind modal */
  backdrop-filter: blur(3px);
}

.ebook-gallery-content {
  background: #fff;
  border-radius: 12px;
  width: 95%;
  max-width: 900px;
  height: 90vh; /* viewport height to keep it balanced */
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

/* Scrollable area inside modal */
.gallery-scroll-area {
  overflow-y: auto;
  padding: 1rem 1.2rem 1.5rem;
  box-sizing: border-box;
  flex: 1;
}

.gallery-series-section { margin-bottom: 1rem; }

.gallery-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.series-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Books grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.8rem;
  justify-items: center;
}

.ebook-thumb {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s;
}

.ebook-thumb:hover {
  transform: scale(1.03);
}

.thumb-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 4px;
  text-align: center;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Sticky Close Button (always visible!) */
.gallery-close {
  position: sticky;
  top: 0.5rem;
  align-self: flex-end;
  font-size: 1.6rem;
  color: #dc2626;
  cursor: pointer;
  z-index: 10001;
  background: #fff;
  border-radius: 50%;
  padding: 0.25rem 0.6rem;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
  margin: 0.3rem 0.5rem 0 auto;
  transition: all 0.25s;
}

.gallery-close:hover {
  background: #0077ff;
  color: #fff;
  transform: scale(1.1);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .ebook-gallery-content {
    width: 96%;
    height: 88vh;
    border-radius: 10px;
  }

  .gallery-scroll-area {
    padding: 0.8rem 0.8rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.5rem;
  }

  .ebook-thumb {
    max-width: 100px;
  }

  .thumb-title {
    font-size: 0.65rem;
    padding: 1px 3px;
  }

  .gallery-title {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 480px) {
  .ebook-gallery-content {
    height: 85vh;
    padding: 0.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .ebook-thumb {
    max-width: 90px;
  }
}








/* ===========================
   ANNOUNCEMENT POPUP OVERLAY
   =========================== */
#announcementPopup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* dimmed background */
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* fade-in animation */
#announcementPopup.show {
  opacity: 1;
}

/* ===========================
   POPUP INNER CARD (GLASS + 3D)
   =========================== */
#announcementPopup .popup-content {
  background: rgba(255, 255, 255, 0.15); /* glass effect */
  border-radius: 20px;
  padding: 28px 30px;
  max-width: 420px;
  width: 90%;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(255, 255, 255, 0.4);
  text-align: center;
  animation: popupLift 0.35s ease-out;
}

/* 3D lift animation */
@keyframes popupLift {
  from {
    transform: translateY(30px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ===========================
   CLOSE BUTTON
   =========================== */
#announcementPopup .close-btn {
  float: right;
  font-size: 28px;
  cursor: pointer;
  color: red;
  opacity: 0.85;
  transition: opacity 0.2s;
}
#announcementPopup .close-btn:hover {
  opacity: 1;
}

/* ===========================
   POPUP TITLE
   =========================== */
#announcementTitle {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;

  background: linear-gradient(135deg, #ff7a00, #ffae42, #ffb84d); /* vivid orange */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);

  letter-spacing: 0.5px;
}

/* ===========================
   POPUP MESSAGE
   =========================== */
#announcementText {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.55;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
  margin-top: 8px;
}

/* ===========================
   MOBILE RESPONSIVENESS
   =========================== */
@media (max-width: 480px) {
  #announcementPopup .popup-content {
    padding: 20px 18px;
    max-width: 90%;
  }

  #announcementTitle {
    font-size: 1.4rem;
  }

  #announcementText {
    font-size: 1rem;
  }

  #announcementPopup .close-btn {
    font-size: 24px;
  }
}
