body {
  background: url('../../assets/img/Pattern1.png');
  background-size: auto;
  border-style: none;
  margin: 0;
  /*optional: ensures consistent layout;*/
}

/* English */

html[lang="en"] body {
  font-family: 'Glancyr Neue', sans-serif;
}

/* Khmer */

html[lang="km"] body {
  font-family: 'Noto Sans Khmer', 'Hanuman', sans-serif;
}

.navbar-center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 120px;
  width: 12vw;
  min-width: 60px;
}

.navbar-center-logo img {
  width: 100%;
  height: auto;
}

/* Optional: prevent overlap on small screens */

@media (max-width: 768px) {
  .navbar-center-logo {
    display: none;
  }
}

/* XS + SM: max-height 150px */

@media (max-width: 767.98px) {
  .responsive-img-limit {
    max-height: 150px;
    width: auto !important;
  }
}

/* LG and up: max-height 200px */

@media (min-width: 992px) {
  .responsive-img-limit {
    max-height: 200px;
    width: auto !important;
  }
}

.LinkOnGreen:link {
  color: #0a5338;
  text-decoration: none;
}

.LinkOnGreen:visited {
  color: #0a5338;
}

.LinkOnGreen:hover {
  color: black;
  text-decoration: underline;
}

.LinkOnGreen:active {
  color: black;
}

.LinkOnGreen:focus {
  outline: 2px solid black;
  /*optional: visible focus ring;*/
}

/* ################################ */

.brand-carousel-wrapper {
  overflow: hidden;
  position: relative;
  height: 100px;
  width: 100%;
}

.brand-carousel {
  display: flex;
  animation: scrollLeft 30s linear infinite;
  will-change: transform;
}

@media (max-width: 768px) {
  .brand-carousel {
    animation-duration: 15s;
  }
}

.paused {
  animation-play-state: paused !important;
}

.brand-item {
  flex: 0 0 auto;
  margin-right: 40px;
  cursor: pointer;
}

.brand-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.modal-dialog {
  max-width: 500px;
}

.modal-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#accordion-Partners .accordion-button {
  background-color: #0a5338;
  color: #9def80;
  height: 25px;
}

/* Custom arrow icon in #9def80 */

#accordion-Partners .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239def80' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  transform: rotate(0deg);
}

/* Rotate the arrow when open */

#accordion-Partners .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

/* ################################ */

/* === Custom horizontal thumbnail gallery layout === */

.lightbox-scroll-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 1rem;
}

.lightbox-gallery-horizontal {
  display: flex;
  gap: 10px;
}

.lightbox-gallery-horizontal a img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

/* Base style for all nav links */

.nav-tabs .nav-link {
  color: black;
  background-color: #dcdcdc;
  border: 1px solid #dee2e6;
  margin-right: 4px;
  border-top-left-radius: 0.6rem;
  border-top-right-radius: 0.6rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 8px 16px;
}

/* Active tab styling */

.nav-tabs .nav-link.active {
  background-color: #0a5338;
  color: #9def80;
  border-color: #0a5338 #0a5338 white;
  border-top-left-radius: 0.6rem;
  border-top-right-radius: 0.6rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Optional: Hover effect for better UX */

.nav-tabs .nav-link:hover:not(.active) {
  background-color: #f8f9fa;
}

/* Tab content styling */

.tab-content .tab-pane {
  padding: 20px;
  border: none;
  background-color: transparent;
  color: black;
}

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
}

