/* ========== GLOBAL ========== */
body {
  font-family: system-ui, sans-serif;
  background-color: #f9faf7;
}

.nav-space {
  height: 70px;
}

/* ========== LOGO ========== */
.logo {
  height: 40px;
}

/* ========== CAROUSEL ========== */
.carousel-img {
  height: 60vh;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(0,0,0,0.4);
  padding: 10px;
  border-radius: 10px;
}

/* ========== VIDEO SECTION ========== */
.video-box video {
  width: 100%;
  border-radius: 12px;
}

/* Scrollable text box */
.text-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  max-height: 350px;
  overflow-y: auto;
}
/* ========== GALLERY SECTION ========== */
.gallery-section {
  background: #f4f7f1;
  padding: 40px 0;
  overflow: hidden;
}

/* Outer window */
.gallery-wrapper {
  width: 100%;
  overflow: hidden;
}

/* Moving track */
.gallery-track {
  display: flex;
  gap: 20px;
  animation: scrollGallery 30s linear infinite;
}

/* Single item (2 per row desktop) */
.gallery-item {
  flex: 0 0 45%;
  display: flex;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Image */
.gallery-item img {
  width: 45%;
  object-fit: cover;
}

/* Description */
.gallery-text {
  padding: 16px;
  width: 55%;
}

.gallery-text h5 {
  margin-bottom: 8px;
  font-weight: 600;
}

.gallery-text p {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Auto scroll animation */
@keyframes scrollGallery {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ========== MOBILE VIEW ========== */
@media (max-width: 768px) {
  .gallery-item {
    flex: 0 0 85%;
    flex-direction: column;
  }

  .gallery-item img {
    width: 100%;
    height: 200px;
  }

  .gallery-text {
    width: 100%;
  }
}

/* ========== MOBILE OPTIMIZATION ========== */
@media (max-width: 768px) {
  .carousel-img {
    height: 40vh;
  }

  .text-box {
    max-height: none;
  }
}
