:root {
  --primary: #0b7a2d;
  --primary-light: #e6f2ea;
  --text-dark: #1f2933;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #0f1f17;
  --dots-color: #0b7a2d;
  --container-button-color: rgba(0, 0, 0, 0);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  transition: all 0.3s ease;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

/* Container for slides */
.container {
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  position: relative;
}

/* Top section - contains logo and right */
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary);
}

.logo img {
  height: 150px;
  max-width: 100%;
}

.right {
  text-align: right;
}

/* Bottom section - contains main content */
.bottom {
  width: 100%;
}

/* Pages container */
.pages {
  display: flex;
  width: 400vw;
  height: 100%;
  transition: transform 0.5s ease;
}

/* Slider */
.slider {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.slide {
  width: 100vw;
  height: 100vh;
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: opacity 0.5s ease;
}

.content {
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 50px;
}

h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin: 1rem 0 0;
}

h1 span {
  color: var(--primary);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0.3rem 0 2rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.3rem 0;
}

p {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0.2rem 0;
}

/* GLOBAL watermark */
.watermark {
  position: fixed;
  left: -30vw;
  top: -25vh;
  opacity: 0.4;
  width: 100vw;
  height: auto;
  z-index: 0;
  pointer-events: none;
  object-fit: contain;
}

/* Contact */
.contact {
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.contact a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* Navigation Controls */
/* .button_container {
  position: absolute;
  bottom: 3%;
  width: 100%;
  display: flex;
  justify-content: center;
  transition: 1s;
  z-index: 10;
} */
.button_container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom); /* iPhone safe area */
  padding: 8px;

  display: flex;
  justify-content: center;
  z-index: 9999;

  background: white;
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1vh;
}

.buttons button {
  background-color: var(--container-button-color);
  color: var(--primary);
  border: none;
  font-size: 3vh;
  padding: 0;
  margin: 0;
  height: fit-content;
  align-self: center;
  font-weight: bold;
  transition: transform 0.3s;
  cursor: pointer;
}

.buttons button i {
  padding: 5px;
  font-size: 4.5vh;
}

.buttons button:hover {
  transform: scale(1.3);
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5vh;
  list-style: none;
}

.dots li {
  width: 2vh;
  height: 2vh;
  margin: 1vh;
  border-radius: 2vh;
  background-color: var(--dots-color);
  transition: 0.5s;
}

.dots li.active {
  width: 5vh;
}

/* Activities List */
.activities-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.activities-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.activities-list li::before {
  content: "â€¢";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .slide {
    padding: 1.5rem 1rem;
  }

  .top {
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .logo {
    margin-bottom: 1rem;
  }

  .right {
    text-align: center;
  }

  .bottom {
    text-align: center;
  }

  .buttons button {
    font-size: 2.5vh;
  }

  .buttons button i {
    font-size: 3.5vh;
  }

  .watermark {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
  }

  .dots li {
    width: 1.5vh;
    height: 1.5vh;
  }

  .dots li.active {
    width: 3vh;
  }

  .activities-list li {
    font-size: 0.95rem;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
  }

  .activities-list li::before {
    font-size: 1.5rem;
  }
}

.slide iframe {
  max-width: 100%;
}

.slide .content {
  max-width: 100%;
}

.fb-video-wrapper {
  width: 100%;
  /* max-width: 100%; */
  display: flex;
  justify-content: center;   /* horizontal center */
  margin-top: 2rem;
}

.fb-video-wrapper iframe {
  /* width: 100% !important; */
  max-width: 100%;
}

/* Accordion container */
.accordion {
  margin-top: 1rem;
  max-width: 100%;
  max-height: calc(100vh - 220px); /* keep accordion within viewport */
  overflow: hidden; /* headers stay in place */
  display: block; /* not flex */
  touch-action: manipulation;
}

/* Individual item */
.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

/* Dark mode */
body.dark .accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Accordion header */
.accordion-header {
  width: 100%;
  /* background: var(--bg-light); */
  background: transparent;
  border: none;
  padding: 1rem 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2; /* keep headers above scrolling body */
}

body.dark .accordion-header {
  background: var(--bg-dark);
}

/* Icon */
.accordion-header::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.accordion-header.active::after {
  content: "-";
}

/* Accordion body (collapsed) */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  height: 150px;
  overflow-y: auto !important;
}

/* Accordion body (expanded & scrollable) */
.accordion-item.active .accordion-body {
  height: 120px;
  max-height: 30vh; /* adjust for viewport, only body scrolls */
  overflow-y: auto;  /* scrollbar appears if content is tall */
  padding-right: 0.5rem;
}

/* Body text */
.accordion-body p {
  padding: 0.25rem 0 0.25rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Body text */
.accordion-body p.topic{
  font-weight: 700;
}

/* Gallery */
.gallery {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  max-height: calc(100vh - 200px); /* prevent overflow */
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Albums */
.album-title {
  color: var(--primary);
  font-size: clamp(1rem, 2.5vw, 1rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

/* Image Grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

/* Images */
.album-grid img {
  width: 100%;
  height: clamp(110px, 18vw, 160px);
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.album-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body.dark .album-grid img:hover {
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}


@media (max-width: 480px) {
  .slide {
    padding: 1rem;
  }

  h1 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
  }

  h2 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  h3 {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  p {
    font-size: 1rem;
  }

  .logo img {
    height: 120px;
  }

  .contact {
    font-size: 0.8rem;
  }

  .activities-list li {
    font-size: 0.95rem;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
  }

  .activities-list li::before {
    font-size: 1.5rem;
  }

  .album-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .album-grid img {
    height: 110px;
  }

  .album-title {
    font-size: 1rem;
  }
}

@media (max-height: 600px) {
  .button_container {
    bottom: 5px;
  }

  .slide {
    padding: 1rem;
  }

  .top {
    margin-bottom: 1rem;
  }

  .logo img {
    height: 100px;
  }

  h1 {
    font-size: clamp(1.2rem, 3vw, 2rem);
  }

  h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: 0.2rem 0 1rem;
  }

  h3 {
    font-size: clamp(1rem, 3vw, 1.5rem);
  }

  .gallery {
    max-height: calc(100vh - 175px);
  }

  .album-grid img {
    height: 100px;
  }
}

@media (orientation: landscape) and (max-width: 768px) {
  .slide {
    padding: 1rem;
  }

  .top {
    margin-bottom: 0.5rem;
  }

  .logo img {
    height: 130px;
  }

  .gallery {
    gap: 1.5rem;
    max-height: calc(100vh - 200px);
  }

  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .album-grid img {
    height: 130px;
  }
  
  @supports (-webkit-touch-callout: none) {
    .button_container {
      bottom: 12px;
    }
  
    .gallery {
      max-height: calc(100vh - 320px); /* prevent overflow */
    }
  }
}