/********** Template CSS **********/
:root {
  --primary: #165135;
  --secondary: #ff69b4;
  --light: #f8f8f9;
  --dark: black !important;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

.back-to-top:focus,
.back-to-top:active,
.back-to-top:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 500;
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
  color: #ffffff;
}

.btn.btn-primary:hover {
  color: var(--primary);
  background: transparent;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/* Primary Button Styles */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  background-color: transparent !important;
  transition: all 0.3s ease-in-out;
  box-shadow: none !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:focus-visible {
  color: #fff !important;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: none !important;
}

/* Secondary Button Styles */
.btn-secondary {
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

.btn-outline-secondary {
  color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  background-color: transparent !important;
  transition: all 0.3s ease-in-out;
  box-shadow: none !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary:focus-visible {
  color: #fff !important;
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  box-shadow: none !important;
}

/* Utility Classes */
.bg-primary {
  background-color: var(--primary) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.bg-dark {
  background-color: black !important;
}

/*** Navbar ***/
.fixed-top {
  transition: 0.5s;
}

.top-bar {
  height: 45px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background-color: var(--primary) !important;
}

.navbar-dark {
  background-color: black !important;
  padding: 0.5rem 1rem !important;
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
  margin-right: 30px;
  padding: 15px 0; /* Reduced from 25px for better mobile experience */
  color: #ffffff;
  font-weight: 500;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--secondary);
}

.navbar-dark .navbar-nav .nav-link {
  color: white !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--secondary) !important;
}

.navbar-dark .navbar-brand {
  color: var(--primary) !important;
  font-size: 1.5rem;
  padding: 0.75rem 0; /* Consistent padding */
  line-height: 1.2; /* Ensure proper line height */
}

.navbar-toggler {
  border-color: var(--primary) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1.5rem;
  height: 1.5rem;
}

/* Desktop navbar styles */
@media (min-width: 992px) {
  .navbar-dark {
    height: 80px !important;
    padding: 0 1rem !important; /* Keep horizontal padding */
  }

  .navbar .navbar-nav .nav-link {
    padding: 25px 0; /* Full padding on desktop */
    margin-right: 30px;
  }

  .navbar-dark .navbar-brand {
    padding: 1rem 0; /* More padding on desktop */
  }
}

/* Tablet styles */
@media (max-width: 991.98px) and (min-width: 768px) {
  .navbar-dark {
    min-height: 70px !important;
    padding: 0.5rem 1rem !important;
  }

  .navbar-dark .navbar-brand {
    font-size: 1.4rem !important;
    padding: 0.75rem 0;
  }

  .navbar .navbar-nav .nav-link {
    padding: 15px 0;
    margin-right: 20px;
  }
}

/* Mobile navbar styles */
@media (max-width: 767.98px) {
  .navbar-dark {
    min-height: 60px !important;
    padding: 0.5rem 1rem !important;
  }

  .navbar-dark .navbar-brand {
    font-size: 1.3rem !important;
    padding: 0.5rem 0;
  }

  .navbar .navbar-nav {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--primary);
    padding: 10px 0;
  }

  .navbar .navbar-nav .nav-link {
    padding: 12px 0;
    margin-right: 0;
    text-align: center;
  }
}

/* Extra small screens */
@media (max-width: 575.98px) {
  .navbar-dark {
    min-height: 55px !important;
    padding: 0.25rem 0.75rem !important;
  }

  .navbar-dark .navbar-brand {
    font-size: 1.2rem !important;
    padding: 0.5rem 0;
  }

  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* Dropdown menu styles for desktop */
@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    visibility: hidden;
    top: 100%;
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: 0.5s;
    opacity: 0;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/* Ensure navbar content is properly aligned */
.navbar-nav {
  align-items: center;
}

.navbar-brand {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px; /* Prevent brand from taking too much space on small screens */
}

@media (max-width: 575.98px) {
  .navbar-brand {
    max-width: 150px;
  }
}
/*** Header - Fixed Height Carousel ***/
#header-carousel {
  width: 100%;
  margin: 0;
  padding: 0;
  /* Add top margin to account for navbar + top-bar */
  margin-top: 200px; /* 35px top-bar + 80px navbar */
}

#header-carousel .carousel-item {
  height: 500px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

#header-carousel .carousel-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Remove orange focus from dropdown items */
.navbar .dropdown-item:focus,
.navbar .dropdown-item:active {
  background-color: var(--primary) !important;
  color: white !important;
  outline: none !important;
}

/* For hover states */
.navbar .dropdown-item:hover {
  background-color: var(--secondary) !important;
  color: white !important;
}

/* Remove the default Bootstrap focus outline */
.navbar .dropdown-item:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 29, 35, 0.8);
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--dark);
  border: 12px solid var(--dark);
  border-radius: 3rem;
}

.carousel-inner {
  width: 100%;
}

/* Page Header for About, Contact, Activities pages */
.page-header {
  /* Add padding-top to account for navbar + top-bar */
  padding-top: calc(12rem + 115px); /* Original padding + navbar space */
  padding-bottom: 6rem;
  background: linear-gradient(rgba(0, 29, 35, 0.8), rgba(0, 29, 35, 0.8)),
    url(../img/women_in_group.jpg) center center no-repeat;
  background-size: cover;
  width: 100%;

  background-attachment: fixed;
  margin: 0; /* ⬅️ Adds 2rem of top margin, you can adjust */
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: #999999;
}

.page-header .container-fluid {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* Desktop responsive adjustments */
@media (min-width: 992px) {
  #header-carousel {
    margin-top: 115px; /* 35px top-bar + 80px navbar */
  }

  .page-header {
    padding-top: calc(12rem + 115px);
  }
}

/* Tablet adjustments */
@media (max-width: 991.98px) and (min-width: 768px) {
  #header-carousel {
    margin-top: 105px; /* 35px top-bar + 70px navbar */
  }

  #header-carousel .carousel-item {
    height: 500px; /* Smaller height for tablets */
  }

  .page-header {
    padding-top: calc(10rem + 105px);
    padding-bottom: 5rem;
    background-attachment: scroll;
  }
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
  #header-carousel {
    margin-top: 95px; /* 35px top-bar + 60px navbar */
  }

  #header-carousel .carousel-item {
    height: 400px;
  }

  .page-header {
    padding-top: calc(8rem + 95px);
    padding-bottom: 4rem;
    background-attachment: scroll;
  }
}

/* Extra small screens */
@media (max-width: 575.98px) {
  #header-carousel {
    margin-top: 90px; /* 35px top-bar + 55px navbar */
  }

  #header-carousel .carousel-item {
    height: 350px; /* Even smaller for very small screens */
  }

  .page-header {
    padding-top: calc(6rem + 90px);
    padding-bottom: 3rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 10%; /* Smaller controls on mobile */
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    border: 8px solid var(--dark);
  }
}

/* Alternative approach using CSS custom properties for maintainability */
:root {
  --navbar-total-height-desktop: 115px; /* 35px + 80px */
  --navbar-total-height-tablet: 105px; /* 35px + 70px */
  --navbar-total-height-mobile: 95px; /* 35px + 60px */
  --navbar-total-height-xs: 90px; /* 35px + 55px */
}

/* If you prefer to use the custom properties approach, uncomment this: */

@media (min-width: 992px) {
  #header-carousel {
    margin-top: var(--navbar-total-height-desktop);
  }
  .page-header {
    padding-top: calc(12rem + var(--navbar-total-height-desktop));
  }
}

@media (max-width: 991.98px) and (min-width: 768px) {
  #header-carousel {
    margin-top: var(--navbar-total-height-tablet);
  }
  .page-header {
    padding-top: calc(10rem + var(--navbar-total-height-tablet));
  }
}

@media (max-width: 767.98px) {
  #header-carousel {
    margin-top: var(--navbar-total-height-mobile);
  }
  .page-header {
    padding-top: calc(8rem + var(--navbar-total-height-mobile));
  }
}

@media (max-width: 575.98px) {
  #header-carousel {
    margin-top: var(--navbar-total-height-xs);
  }
  .page-header {
    padding-top: calc(6rem + var(--navbar-total-height-xs));
  }
}

/*** Causes ***/
.causes-item .progress {
  height: 5px;
  border-radius: 0;
  overflow: visible;
}

.causes-item .progress .progress-bar {
  position: relative;
  overflow: visible;
  width: 0px;
  border-radius: 0;
  transition: 5s;
}

.causes-item .progress .progress-bar span {
  position: absolute;
  top: -7px;
  right: 0;
  width: 40px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: var(--primary);
  color: #ffffff;
}

.causes-item .causes-overlay {
  position: absolute;
  width: 100%;
  height: 0;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  transition: 0.5s;
}

.causes-item:hover .causes-overlay {
  height: 100%;
  opacity: 1;
}

/*** Service ***/
.service-item {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.06);
}

/*** Donate ***/
.donate {
  background: rgba(0, 29, 35, 0.8);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked + label {
  color: var(--primary);
  border-color: var(--primary);
}

/*** Team ***/
.team-item img {
  position: relative;
  top: 0;
  transition: 0.5s;
}

.team-item:hover img {
  top: -30px;
}

.team-item .team-text {
  position: relative;
  height: 100px;
  transition: 0.5s;
}

.team-item:hover .team-text {
  margin-top: -60px;
  height: 160px;
}

.team-item .team-text .team-social {
  opacity: 0;
  transition: 0.5s;
}

.team-item:hover .team-text .team-social {
  opacity: 1;
}

.team-item .team-social .btn {
  display: inline-flex;
  color: var(--primary);
  background: #ffffff;
  border-radius: 40px;
}

.team-item .team-social .btn:hover {
  color: #ffffff;
  background: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.testimonial-carousel::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

@media (min-width: 768px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 200px;
  }
}

@media (min-width: 992px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 300px;
  }
}

.testimonial-carousel .owl-item .testimonial-text {
  background: var(--light);
  transform: scale(0.8);
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
  background: var(--primary);
  transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
  color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
  background: var(--primary) !important;
}

.testimonial-carousel .owl-nav {
  position: absolute;
  width: 350px;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: 0.5s;
  z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
  width: 300px;
  opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  position: relative;
  color: var(--primary);
  font-size: 45px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
}

/*** Footer ***/
.footer {
  background-color: black !important;
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--light);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .btn.btn-square {
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.footer .btn.btn-square:hover {
  color: var(--secondary);
  border-color: var(--light);
}

.footer .copyright {
  padding: 25px 0;
  font-size: 15px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--secondary);
}

.footer .copyright a:hover {
  color: var(--primary);
}

@keyframes socialBounce {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.footer .btn-square {
  animation: socialBounce 0.8s ease forwards;
  animation-delay: calc(0.2s * var(--i));
  opacity: 0;
}
.btn-square {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-square:hover {
  transform: scale(1.2) rotate(5deg);
  background-color: var(--primary);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 15px var(--primary), 0 0 25px #6c757d;
}
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animated-title {
  animation: fadeInSlide 1.8s ease-in-out forwards;
  opacity: 0;
}
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 117, 125, 0.4);
  }
  50% {
    box-shadow: 0 0 10px 8px var(--primary),
      /* primary */ 0 0 15px 10px var(--dark),
      /* dark */ 0 0 20px 12px var(--light),
      /* light */ 0 0 25px 14px var(--secondary); /* secondary */
  }
  100% {
    box-shadow: 0 0 0 0 rgba(108, 117, 125, 0);
  }
}

.pulsing-logo {
  animation: pulseGlow 5s infinite ease-in-out;
  border-radius: 50%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 300px; /* Fixed height for equal sizing */
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.overlay-content {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .overlay-content {
  transform: translateY(0);
}

.overlay-text {
  color: white;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.gallery-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(45deg, var(--secondary));
  color: white;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0;
}

.more-gallery-btn {
  margin-top: 40px;
  text-align: center;
}

.btn-custom {
  padding: 12px 30px;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-custom:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  /* box-shadow: 0 5px 15px var(--secondary); */
}

.btn-icon {
  width: 25px;
  height: 25px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.3s ease;
}

.btn-custom:hover .btn-icon {
  background: white;
  background: var(--primary);
}

/* Animation on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-item {
    height: 250px;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .overlay-text {
    font-size: 13px;
  }
}

.gallery-item {
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-img-container {
  position: relative;
  overflow: hidden;
  height: 250px;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 81, 53, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img-container:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
  margin: 0 10px;
  transition: all 0.2s ease;
}

.gallery-overlay i:hover {
  transform: scale(1.2);
  color: var(--secondary);
}

.gallery-caption {
  background-color: var(--light);
  text-align: center;
  padding: 20px;
}

.gallery-caption h5 {
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.gallery-caption p {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.gallery-caption small {
  color: #6c757d;
}

/* Modal styles */
.modal-content {
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

.modal-body {
  padding: 0;
}

.modal-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.modal-header {
  border: none;
  background-color: var(--primary);
  color: white;
}

.modal-header .btn-close {
  filter: invert(1);
}

.load-more-btn {
  background-color: var(--primary);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.gallery-tag {
  display: inline-block;
  border-radius: 25px;
  background-color: var(--secondary);
  color: white;
  padding: 8px 20px;
  margin-bottom: 20px;
  font-weight: 500;
}
:root {
  --primary: #165135;
  --secondary: #ff69b4;
  --light: #f8f8f9;
  --dark: #001d23;
  --navbar-height: 80px; /* Bootstrap default navbar height */
}

/* ===== Custom Utilities (Extend Bootstrap) ===== */
.bg-primary {
  background-color: var(--primary) !important;
}
.text-primary {
  color: var(--primary) !important;
}
.bg-secondary {
  background-color: var(--secondary) !important;
}
.text-secondary {
  color: var(--secondary) !important;
}

/* ===== Navbar (Extends Bootstrap .navbar-dark) ===== */
.navbar {
  transition: all 0.3s ease;
}

.navbar-dark {
  background-color: var(--dark) !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--secondary) !important;
}

/* Dropdown arrow fix */
.navbar .dropdown-toggle::after {
  border: none;
  font-family: "Font Awesome 5 Free";
  content: "\f107";
  font-weight: 900;
  vertical-align: middle;
}

/* ===== Carousel (Extends Bootstrap .carousel) ===== */
.carousel {
  margin-top: var(--navbar-height);
}

.carousel-item {
  height: 600px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
}

.carousel-caption {
  background: rgba(0, 29, 35, 0.8);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Buttons (Extends Bootstrap .btn) ===== */
.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-color: white;
}

.btn-outline-secondary {
  --bs-btn-color: var(--secondary);
  --bs-btn-border-color: var(--secondary);
  --bs-btn-hover-bg: var(--secondary);
  --bs-btn-hover-color: white;
}

/* Square buttons (custom) */
.btn-square {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Gallery (Custom Grid - Works with Bootstrap .row/.col) ===== */
.gallery-item {
  height: 300px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* ===== Footer (Extends Bootstrap) ===== */
.footer {
  background-color: var(--dark) !important;
}

.footer .btn-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer .btn-link:hover {
  color: var(--light);
  letter-spacing: 1px;
}

/* ===== Animations (Works with Bootstrap Utilities) ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991.98px) {
  .carousel-item {
    height: 500px;
  }
}

@media (max-width: 767.98px) {
  .carousel-item {
    height: 400px;
  }

  .gallery-item {
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  .carousel-item {
    height: 350px;
  }

  .navbar-brand {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.navbar-brand img {
  height: 80px; /* Default size */
}

@media (max-width: 767.98px) {
  .navbar-brand img {
    height: 50px; /* Smaller on mobile */
  }
}

/* Add to your style.css */
@media (max-width: 767.98px) {
  .navbar {
    padding: 0.5rem 0 !important;
  }

  .navbar-brand {
    max-width: 180px;
  }

  .navbar-brand img {
    height: 60px !important;
    width: auto !important;
  }

  .navbar-collapse {
    background: var(--primary);
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 0.25rem;
  }

  #header-carousel {
    margin-top: 80px !important;
  }
}

/* Particles container - make sure it's positioned correctly */
#footer-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

/* Make particles brighter and more visible */
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.8;
  animation: float 12s infinite ease-in-out;
  filter: drop-shadow(0 0 5px currentColor);
  will-change: transform;
}

/* Vibrant colors that contrast with dark background */
/* Changed from 3n to 4n to cycle through all 4 colors properly */
.particle:nth-child(4n + 1) {
  background-color: #ffff99; /* Bright yellow */
  box-shadow: 0 0 15px #ffff99;
}
.particle:nth-child(4n + 2) {
  background-color: #4caf50; /* Brighter green */
  box-shadow: 0 0 15px #4caf50;
}
.particle:nth-child(4n + 3) {
  background-color: #ff69b4; /* Pink */
  box-shadow: 0 0 15px #ff69b4;
}
.particle:nth-child(4n + 4) {
  background-color: #087cee; /* Blue */
  box-shadow: 0 0 15px #087cee;
}

/* More dynamic floating animation */
@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(15px, 20px) rotate(10deg);
  }
  50% {
    transform: translate(25px, 10px) rotate(0deg);
  }
  75% {
    transform: translate(15px, 20px) rotate(-10deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}
