
.newsevents-container {
  max-width: 840px;
  margin: auto;
  padding: 2rem;
}

.header-section h1 {
  font-size: 56px;
  margin-bottom: 0.5rem;
}

.date-share {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.share-buttons span {
  margin-left: 20px;
  cursor: pointer;
  color: #0077cc;
  text-decoration: underline;
}

.hero-banner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
}

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

.gallery img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.02);
}

.description {
  margin-top: 2rem;
  line-height: 1.6;
}

.description p {
  font-size: 16px;
  color: #1A1A1A;
}

.credits {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.credits hr {
  margin-bottom: 0.5rem;
  border: none;
  border-top: 1px solid #ccc;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 80%;
  max-height: 80vh;  
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.arrow {
  font-size: 5rem;
  color: white;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  padding: 10px;
  border-radius: 50%;
}

.left {
  left: 30px;
}

.right {
  right: 30px;
}

/* Link modal */
.link-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #700005;
  color: #FBF8F2;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.header-section {
  margin-bottom: 2rem;
  margin-top: 5rem;
}

.title-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0.5rem 0 1rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

.event-date {
  color: #333;
}

.share-buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.share-buttons span {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #000;
  font-weight: 500;
}

.icon {
  width: 16px;
  height: 16px;
  margin-left: 6px;
}
.meta-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 1rem 0 1.5rem;
}
/* Tablet (<= 991px): hide .hide-on-tablet */
@media (max-width: 991px) {
  .hide-on-tablet {
    display: none !important;
  }
}

/* Mobile (<= 575px): hide .hide-on-mobile */
@media (max-width: 575px) {
  .hide-on-mobile {
    display: none !important;
  }
}













.related-news-section {
  background-color: #F2C523;
  padding: 3rem 2rem;
  margin-top: 3rem;
  border-radius: 8px;
}

.related-news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.related-news-header h2 {
  font-size: 56px;
  font-weight: bold;
  margin: 0;
  color: #000;
}

.see-all-btn {
  background-color: #004d26;
  color: #fff;
  text-decoration: none;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 1.125rem;

  border-radius: 6px;
  transition: background 0.2s ease;
}

.see-all-btn:hover {
  background-color: #006837;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* CARD STYLING */

.news-card {
  position: relative;
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: transparent;
  transition: transform 0.2s ease;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  margin-bottom: -20px; /* lift image above the text box */
  border-radius: 20px 20px 20px 0;

}

/* TEXT BOX STYLING */
.news-content {
  position: relative;
  z-index: 1;
  width: 90%;
  background: #FBF8F2;
  padding: 1rem;
  border-radius: 0 20px 20px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-top: 2rem; /* extra margin to create spacing after the floated image */
  text-align: left;
}


/* TEXT STYLES */
.news-date {
  font-size: 14px;
  color: #700005;
  margin-bottom: 0.4rem;
}

.news-title {
  font-size: 24px;
  margin: 0 0 0.4rem;
  font-weight: bold;
  color: #222;
}

.news-source {
  font-size: 14px;
  margin-bottom: 0.6rem;
  color: #444;
}

.news-summary {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

/* Make sure text stays inherit and not link-colored */
.news-card .news-title,
.news-card .news-summary,
.news-card .news-source,
.news-card {
  color: inherit;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.news-card a,
.news-card a:visited {
  color: inherit;
  text-decoration: none;
}


/* SLIDER STYLES */

.related-news-slider-wrapper {
  overflow: hidden;
  width: 100%;
}

.related-news-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.related-news-slider::-webkit-scrollbar {
  display: none;
}

/* DESKTOP FALLBACK GRID */
@media (min-width: 992px) {
  .related-news-slider-wrapper {
    overflow: visible;
  }

  .related-news-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    overflow: visible;
    padding: 0;
  }

  .news-card {
    width: 95%;
  }
}
