/* --------------------------------------------------
   Core Sections
   -------------------------------------------------- */

/* Hero / Intro */
.section-zero {
  background-color: #D2B48C;
  padding: 60px 20px;
}

.section-zero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0;
  text-align: center;
}

/* Event sections (injected via JS) */
.section-event {
  padding: 60px 0;
  min-height: 50vh;
  border-bottom: 1px solid #dcdcdc;
  position: relative;
  transition: background-color 0.3s ease;
  overflow: visible;
  /* subtle lift effect via pseudo-shadow */
}
.section-event::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}

/* Alternating backgrounds for clarity: relies on JS adding .even/.odd */
.section-event.even {
  background-color: #f0f9f3;
}

.section-event.odd {
  background-color: #ffffff;
}

/* Fallback alternating if JS classes missing */
#events-wrapper .section-event:nth-of-type(odd) {
  background-color: #f0f9f3;
}
#events-wrapper .section-event:nth-of-type(even) {
  background-color: #ffffff;
}

/* Shared layout for each event's left/right content */
.section-left {
  padding: 50px;
  text-align: left;
}

.section-left h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #A52A2A;
  margin-bottom: 1rem;
  text-align: left;
}

.section-left p {
  font-size: 1.5rem;
  line-height: 1.7;
  color: #444;
  text-align: left;
}

/* Carousel / image side */
.section-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Gallery container with navigation */
.gallery-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px;
}

.gallery-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.5s ease-in-out;
}

/* Prev / next buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.nav-btn.left {
  left: 10px;
}
.nav-btn.right {
  right: 10px;
}

/* --------------------------------------------------
   Contact section
   -------------------------------------------------- */
.section-four {
  background-color: #D2B48C;
  padding: 60px 20px;
}

.section-four-left h1 {
  font-size: 3.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0;
  text-align: center;
}

.section-four-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-four-right p {
  font-size: 1.5rem;
  color: #333;
  text-align: center;
  margin: 0;
}

.section-four-right a {
  color: #007bff;
  text-decoration: none;
}

.section-four-right a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.social-icons img {
  width: 50px;
  height: 50px;
  transition: transform 0.2s ease;
}
.social-icons img:hover {
  transform: scale(1.15);
}

/* --------------------------------------------------
   Responsive (mobile / tablet)
   -------------------------------------------------- */
@media (max-width: 992px) {
  .section-left h1 {
    font-size: 2rem;
  }

  .section-left p {
    font-size: 1.2rem;
  }

  .gallery-container {
    height: 300px;
  }

  .nav-btn {
    font-size: 1.5rem;
    padding: 6px 12px;
  }
}

@media (max-width: 768px) {
  .section-left {
    padding: 30px 20px;
  }

  .section-left h1 {
    font-size: 1.8rem;
  }

  .section-left p {
    font-size: 1.1rem;
    line-height: 1.5;
  }

  .gallery-container {
    height: 250px;
  }

  .nav-btn {
    font-size: 1.2rem;
    padding: 5px 10px;
  }

  .section-four {
    padding: 30px 15px;
  }

  .section-four-left h1 {
    font-size: 2.2rem;
  }

  .section-four-right p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .social-icons img {
    width: 40px;
    height: 40px;
  }
}

/* Small devices: stack columns */
@media (max-width: 576px) {
  .section-left,
  .section-right {
    width: 100%;
    display: block;
  }

  .gallery-container {
    max-width: 100%;
  }

  .section-event .row {
    flex-direction: column;
  }

  .section-left {
    padding: 20px;
  }

  .section-left h1 {
    font-size: 1.6rem;
  }

  .section-left p {
    font-size: 1.25rem;
  }
}
