body {
  background-color: #ffffff;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: #2c2c2c;
  line-height: 1.7;
}

/* Back link */
.back-link {
  position: sticky;
  top: 80px;
  text-align: left;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
  z-index: 1;
}
.back-link:hover {
  color: #0056b3;
}

/* News container */
.newsfeed-post {
  max-width: 950px;
  margin: 37px auto;
  background: #ffffff;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 30px 40px;
  animation: fadeInUp 0.6s ease;
}

/* 🧩 Facebook-like Meta Info Section */
.post-meta-banner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-meta-banner .avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.3;
}

.post-author {
  font-size: 0.95rem;
  color: #050505;
  /* text-transform: lowercase; */
}

.post-subtext {
  font-size: 0.88rem;
  color: #65676b;
}

.post-subtext .dot {
  margin: 0 4px;
  color: #999;
  font-weight: bold;
}


/* Title */
/* .news-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.3;
} */

/* Optional: Slightly soften title spacing for balance */
.news-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  margin: 0 0 25px 0;
  line-height: 1.3;
}


/* Featured image */
.featured-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
.featured-img:hover {
  transform: scale(1.02);
}

/* Content */
/* .news-body {
  font-size: 1.15rem;
  color: #333;
  text-align: justify;
  margin-top: 10px;
  padding: 0 5px;
  white-space: pre-line;
} */

/* 📰 Better spacing for news readability */
.news-body {
  font-size: 1.15rem;
  color: #333;
  text-align: justify;
  margin-top: 15px;
  padding: 0 10px;
  white-space: pre-line;
  line-height: 1.3;              /* ✅ smoother reading */
  letter-spacing: 0.2px;         /* ✅ improves clarity */
  word-spacing: 1.0px;           /* ✅ adds breathing space */
}

.news-body p {
  margin-bottom: 10px;           /* ✅ consistent paragraph spacing */
  text-indent: 40px;             /* ✅ optional: newspaper-style indent */
}


/* ===== Image Gallery ===== */
.news-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
  align-items: center;
}

.gallery-main {
  /* width: 100%; */
  position: relative;
  overflow: hidden;
}
.gallery-main img,
.gallery-main video {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in {
    animation: fadeEffect 0.3s ease;
}

@keyframes fadeEffect {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================= */
/* DOT NAVIGATION */
/* ============================= */

/* ================= STORY DOTS ================= */

.gallery-story-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.story-dot {
  width: 45px;
  height: 4px;
  background: #ddd;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.story-dot .story-progress {
  height: 100%;
  width: 0%;
  background: #007bff;
  transition: width 0.3s linear;
}

.story-dot.active .story-progress {
  width: 100%;
}

/* ================= NEXT / PREV BUTTONS ================= */

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

.gallery-nav-btn:hover {
  background: rgba(0,0,0,0.7);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

/* Auto-link styling */
.auto-link {
  color: #0d6efd;
  text-decoration: underline;
  cursor: pointer;
  word-break: break-all;
}

/* Share buttons */
.share-buttons {
  margin: 35px auto 10px;
  padding: 15px 0;
  border-top: 2px solid #eee;
  border-bottom: 2px solid #eee;
  text-align: center;
}
.share-buttons span {
  display: block;
  margin-bottom: 14px;
  font-weight: 700;
  color: #444;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 5px;
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  text-decoration: none;
  transition: 0.3s;
}
.share-btn i { font-size: 1.1rem; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.messenger { background: #0084ff; }
.share-btn.whatsapp { background: #25D366; }
.share-btn:hover { opacity: 0.85; transform: translateY(-2px); }

/* Lightbox */
.lightbox-modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,1);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.close-lightbox {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-size: 40px;
  user-select: none;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
}
.prev:hover, .next:hover { background: rgba(0,0,0,0.7); }
.prev { left: 20px; }
.next { right: 20px; }


/* ============================= */
/* FIX VIDEO RESPONSIVE FULLSCREEN */
/* ============================= */

.main-video,
.lightbox-video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain; /* IMPORTANT */
  border-radius: 12px;
}

/* When fullscreen */
video:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
}


/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   RESPONSIVE STYLES
   ========================= */
@media (max-width: 1200px) {
  .newsfeed-post {
    max-width: 850px;
    padding: 25px 30px;
  }
  .news-title { font-size: 2.1rem; }
  .gallery-main img { height: 400px; }
}

@media (max-width: 992px) {
  .newsfeed-post {
    max-width: 720px;
    margin: 40px auto;
    padding: 20px 25px;
  }
  .news-title { font-size: 1.9rem; }
  .post-meta-banner { font-size: 0.9rem; gap: 12px; }
  .featured-img, .gallery-main img { max-height: 350px; }
  .news-body { font-size: 1.05rem; }
  .share-buttons span { font-size: 1rem; }
}

@media (max-width: 576px) {
  .back-link {
    position: fixed;
    top: 85px;
    left: 0;
    font-size: 1rem;
    padding-left: 5px;
    background-color: #fff;
    width: 100%;
  }
  .newsfeed-post {
    margin: 90px auto;
    padding: 30px 18px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  .news-title { 
    font-size: 1.5rem; 
    margin-bottom: 12px; 
  }
  .post-meta-banner { 
    flex-direction: left; 
    gap: 8px; font-size: 
    0.85rem; 
  }
  .featured-img, .gallery-main img { 
    max-height: 250px; 
    border-radius: 8px; 
  }
  .gallery-thumbs img { 
    width: 80px; 
    height: 60px; 
  }
  .news-body { 
    font-size: 0.95rem; 
    line-height: 1.5; 
    text-align: justify; 
  }
  .share-buttons { 
    margin: 25px auto 5px; 
    padding: 12px 0; 
  }
  .share-buttons span { 
    font-size: 0.9rem; 
  }
  .share-btn { 
    font-size: 0.85rem; 
    padding: 8px 12px; 
  }
  .lightbox-content { 
    max-width: 95%; 
    max-height: 70vh; 
  }
  .close-lightbox { 
    font-size: 32px; 
    top: 15px; 
    right: 20px; 
  }
  .prev, .next { 
    font-size: 28px; 
    padding: 12px; 
  }
}

@media (max-width: 360px) {
  .news-title { font-size: 1.3rem; }
  .gallery-thumbs img { width: 70px; height: 50px; }
  .news-body { font-size: 0.9rem; }
  .share-btn { font-size: 0.8rem; padding: 6px 10px; }
}
