/* google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400..700;1,400..700&family=Manufacturing+Consent&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/* Reset + General */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f9f9f9;
}

ul {
  list-style: none;
}

.new-section {
  min-height: 100vh;
  width: 100%;
}

/* GLOBAL STYLES */
.light-theme {
  background-color: #f8f9fa;
  color: #222;
}

.dark-theme {
  background-color: #121212;
  color: #fff;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 0;
}

.section-heading {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.section-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.section-flex.reverse {
  flex-direction: row-reverse;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Main navbar wrapper */
.navbar-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 1); /* faded white */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Container with max width */
.navbar-container {
  max-width: 1366px;
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  gap: 20px;
  flex-wrap: wrap;
}

/* Logo */
.logo img {
  display: block;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  list-style: none;
}

.social-links a {
  color: navy;
  font-size: 1.1rem;
  transition: 0.3s;
}

.social-links a:hover {
  color: orange;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  flex: 1;
  justify-content: center;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: red;
  left: 0;
  bottom: -4px;
  transition: 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdowns */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: white;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  border-radius: 6px;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

.dropdown-menu li {
  padding: 10px 20px;
}

.dropdown-menu li a {
  color: #333;
  display: block;
}

.dropdown:hover .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Use ::before for pointer/triangle */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 25px;
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

/* Search Box */
.searchBox {
  display: flex;
  align-items: center;
  gap: 5px;
}

.searchBox input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 20px 0 0 20px;
  outline: none;
  font-size: 0.9rem;
}

.searchBox button {
  padding: 6px 10px;
  background: navy;
  color: white;
  border: none;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.searchBox button:hover {
  background: orange;
}

/* ========================= */
/*       MEDIA HERO          */
/* ========================= */

.media-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;

  background: url("/images/People60.jpg") center/cover no-repeat;
}

/* Dark cinematic overlay */
.media-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.75)
  );
}

/* Hero content */
.media-hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 900px;
  padding: 3rem 0;
}

/* Small label above heading */
.media-eyebrow {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: #f5a623;
}

/* Main heading */
.media-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* Highlighted part of heading */
.media-title span {
  color: #f5a623;
  font-style: italic;
}

/* Subtitle */
.media-subtitle {
  max-width: 650px;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: #eeeeee;
}

/* CTA Button */
.media-hero-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 1.8rem;
  background: #f5a623;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.media-hero-button:hover {
  background: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.media-hero-button i {
  transition: transform 0.3s ease;
}

.media-hero-button:hover i {
  transform: translateY(4px);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #ddd;

  animation: floatingScroll 2s ease-in-out infinite;
}

.hero-scroll-indicator i {
  color: #f5a623;
}

@keyframes floatingScroll {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 8px);
  }
}

/* section 2 */
/* =========================================
   GALLERY SECTION
========================================= */

.media-gallery {
  background: #f8f9fa;
  padding: 7rem 0;
}

/* Gallery Introduction */

.gallery-intro {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}

.gallery-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: #d63333;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
}

.gallery-intro .section-heading {
  margin-bottom: 1.2rem;
  font-size: 3rem;
  color: #222;
}

.gallery-intro .section-heading span {
  color: #d63333;
}

.gallery-intro p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* =========================================
   MODERN GALLERY GRID
========================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
  max-width: 1300px;
  margin: 0 auto;
  grid-auto-flow: dense;
}

/* Individual Gallery Card */

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #ddd;
  cursor: pointer;
}

/* Image */

.gallery-item img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform 0.6s ease;
}

/* =========================================
   REPEATABLE GALLERY RHYTHM
========================================= */

.gallery-item:nth-child(4n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(4n + 2) {
  grid-row: span 1;
}

.gallery-item:nth-child(4n + 3) {
  grid-row: span 1;
}

.gallery-item:nth-child(4n + 4) {
  grid-column: span 2;
}

/* =========================================
   HOVER OVERLAY
========================================= */

.gallery-item .overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.45);

  opacity: 0;

  transition:
    opacity 0.4s ease,
    background 0.4s ease;

  pointer-events: none;
}

.gallery-item .overlay i {
  color: white;
  font-size: 2rem;

  transform: scale(0.6);

  transition: transform 0.4s ease;
}

/* Hover */

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item:hover .overlay i {
  transform: scale(1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .overlay i {
  color: white;
  font-size: 2rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

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

.gallery-item:hover .overlay i {
  transform: scale(1.2);
}

/* =================================
   UPCOMING EVENTS
================================= */

.upcoming-events {
  background: #ffffff;
  padding: 7rem 0;
}

/* ================================
   EVENTS INTRO
================================ */

.events-intro {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}

.events-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: #d63333;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
}

.events-intro .section-heading {
  margin-bottom: 1.2rem;
  font-size: 3rem;
  color: #222;
}

.events-intro .section-heading span {
  color: #d63333;
}

.events-intro p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ================================
   EVENTS GRID
================================ */

.events-grid {
  max-width: 1300px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ================================
   EVENT CARD
================================ */

.event-card {
  background: #f8f9fa;
  border-radius: 18px;
  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.event-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

/* ================================
   FEATURED EVENT
================================ */

.event-card-featured {
  grid-column: span 2;

  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

/* ================================
   EVENT IMAGE
================================ */

.event-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.event-card-featured .event-image {
  height: 100%;
  min-height: 360px;
}

.event-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform 0.6s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.06);
}

/* ================================
   DATE BADGE
================================ */

.event-date {
  position: absolute;
  top: 20px;
  left: 20px;

  width: 65px;
  height: 70px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: #ffffff;

  border-radius: 10px;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.event-month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d63333;
}

.event-date strong {
  font-size: 1.8rem;
  line-height: 1;
  color: #222;
}

/* ================================
   EVENT CONTENT
================================ */

.event-content {
  padding: 2rem;
}

.event-category {
  display: inline-block;

  margin-bottom: 0.8rem;

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;

  color: #d63333;
}

.event-content h3 {
  margin-bottom: 1rem;

  font-family: "Playfair Display", serif;
  font-size: 1.8rem;

  color: #222;
}

.event-content p {
  margin-bottom: 1.5rem;

  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ================================
   EVENT META
================================ */

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;

  margin-bottom: 1.5rem;

  color: #555;
  font-size: 0.85rem;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-meta i {
  color: #d63333;
}

/* ================================
   EVENT BUTTON
================================ */

.event-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: #222;

  font-size: 0.85rem;
  font-weight: 700;

  text-decoration: none;

  transition:
    color 0.3s ease,
    gap 0.3s ease;
}

.event-button:hover {
  color: #d63333;
  gap: 15px;
}

.event-button i {
  font-size: 0.75rem;
}

/* section 3 */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

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

.close-lightbox:hover {
  color: orange;
}

.overlay {
  pointer-events: none;
}

/* -------------- */
/* ------------- */
/* ----FOOTER---- */
/* ---------------- */
/* ------------------ */
.site-footer {
  background: #0a0a33;
  color: #f0f0f0;
  padding: 60px 20px 30px;
  font-family: "Lora", serif;
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: orange;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: orange;
}

.footer-logo img {
  width: 100px;
  margin-bottom: 20px;
}

.footer-logo p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-socials {
  margin-top: 15px;
}

.footer-socials a {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.2rem;
  color: #f0f0f0;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: orange;
}

.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

.dropdown-toggle .fa-sort-down {
  margin-left: 6px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  /* padding-bottom: 12px; */
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  /* background-color: gray; */
}

mark.search-highlight {
  background: rgba(255, 243, 128, 0.95); /* soft yellow */
  color: #111;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
  transition: background 1s ease;
}

/* wrapper used to replace original text nodes */
.search-wrapper {
  /* no extra styles needed, but kept for clarity */
}

/* ========== MOBILE NAVBAR ========== */
@media (max-width: 1200px) {
  .navbar-container {
    min-height: 75px;
    padding: 10px 18px;
    gap: 0;
    flex-wrap: nowrap;
  }

  .logo {
    flex: 1;
  }

  .logo img {
    width: 110px;
  }

  .social-links,
  .searchBox {
    display: none;
  }

  /* Hamburger Button */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
  }

  .hamburger span {
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
  }

  /* Hamburger transforms into X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }

  /* Mobile navigation menu */
  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 998;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown-menu li {
    padding: 12px 20px;
    border-top: 1px solid #eee;
  }

  .dropdown.open .dropdown-menu {
    display: block;
    max-height: 500px;
  }
}

@media (max-width: 600px) {
  .media-hero {
    min-height: 70vh;
  }

  .media-hero-content {
    padding: 2rem 0;
  }

  .media-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }

  .media-title {
    font-size: 2.8rem;
  }

  .media-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .media-hero-button {
    font-size: 0.9rem;
    padding: 0.8rem 1.4rem;
  }

  .hero-scroll-indicator {
    font-size: 0.65rem;
  }
}

/* =================================
   FROM OUR ARCHIVES
================================= */

.latest-moments {
  background: #eeeeee;
  padding: 4rem 0;
  overflow: hidden;
}

.latest-moments h2 {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: #555;
}

/* Visible window */
.moments-slider {
  width: 100%;
  overflow: hidden;
  display: block;
}

/* Moving row */
.moments-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  flex-shrink: 0;
  transition: transform 0.8s ease-in-out;
}

/* Smaller archive cards */
.moment-card {
  flex: 0 0 210px;
  height: 150px;

  overflow: hidden;
  border-radius: 10px;

  position: relative;
  background: #ddd;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

  cursor: pointer;
}

/* Archive images */
.moment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transition: transform 0.5s ease;
}

/* Small hover effect */
.moment-card:hover img {
  transform: scale(1.05);
}

/* =================================
   ARCHIVE RESPONSIVENESS
================================= */

@media (max-width: 900px) {
  .latest-moments {
    padding: 3.5rem 0;
  }

  .latest-moments h2 {
    font-size: 1.6rem;
  }

  .moment-card {
    flex: 0 0 190px;
    height: 135px;
  }
}

/* =================================
   ARCHIVE MOBILE
================================= */

/* =================================
   MOBILE GALLERY RHYTHM
================================= */

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 10px;
  }

  /* Every 4-image group follows this rhythm */

  /* Image 1: large feature image */
  .gallery-item:nth-child(4n + 1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  /* Image 2: regular */
  .gallery-item:nth-child(4n + 2) {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Image 3: regular */
  .gallery-item:nth-child(4n + 3) {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Image 4: wide closing image */
  .gallery-item:nth-child(4n + 4) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .moments-slider {
    justify-content: flex-start;
  }
}

/* =================================
   UPCOMING EVENTS RESPONSIVENESS
================================= */

@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-card-featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .event-card-featured .event-image {
    min-height: 300px;
  }
}

@media (max-width: 600px) {
  .upcoming-events {
    padding: 4rem 0;
  }

  .events-intro {
    margin-bottom: 2.5rem;
  }

  .events-intro .section-heading {
    font-size: 2.2rem;
  }

  .events-intro p {
    font-size: 0.95rem;
  }

  .events-grid {
    gap: 1.5rem;
  }

  .event-card-featured {
    display: block;
  }

  .event-card-featured .event-image {
    height: 260px;
    min-height: 0;
  }

  .event-image {
    height: 220px;
  }

  .event-content {
    padding: 1.5rem;
  }

  .event-content h3 {
    font-size: 1.5rem;
  }

  .event-meta {
    flex-direction: column;
    gap: 0.6rem;
  }
}
