:root {
  --primary-color: #6BC833;
  --primary-color-hover: #44BA3A;
  --secondary-color: #f2f2f2;
  --white-color: #ffffff;
  --secondary-444: #444;
  --secondary-f3: #f3f3f3;
}

body {
  font-family: "Raleway", sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* custom navbar styles */
.custom_navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background-color: var(--white-color);
  transition: all 0.3s ease;

}

.custom_nav_item {
  position: relative;
  padding: 0;
}

.custom_nav_item::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.custom_nav_item:hover::before {
  transform: scaleX(1);
}
.custom_nav_item .active {
  color: var(--primary-color) !important;
  position: relative;
  display: inline-block;
}
.custom_nav_item .active::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(1);
  transform-origin: left;
}
.custom_nav_link {
  color: var(--secondary-444) ;
  text-decoration: none;
}
.custom_nav_item .custom_nav_link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
}

.custom_nav_item:hover .custom_nav_link {
  color: var(--primary-color) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-block;
}
.custom_nav_item {
  .custom_dropdown_menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    top: 100%;
    margin-top: 10px;
    --bs-dropdown-link-active-bg: unset;
  }

  &:hover {
    .custom_dropdown_menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
  }
}

.custom_dropdown_link:hover {
  color: var(--primary-color);
}
.custom_navbar_toggle {
  border: none;
  font-size: 14px;
  &:focus {
    outline: none;
    box-shadow: unset;
  }
}


.custom_navbar .custom_logo {
  width: clamp(100px, 10vw, 140px);
  height: auto;
  object-fit: contain;
}

.banner_slider .slider_item {
  position: relative;
  height: 80dvh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner_slider .slider_item img {
  width: 100%;
  height: 80dvh;
  object-fit: cover;
  display: block;
}

.banner_slider .slider_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
}

.banner_slider .slider_content {
  color: #fff;
  max-width: 500px;
  text-align: left;
}

.banner_slider .slider_content h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.banner_slider .slider_content p {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  margin-bottom: 1.5rem;
}

.read-more-btn {
  border: 2px solid #fff;
  color: #fff;
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  background: transparent;
  transition:
    background 0.2s,
    color 0.2s;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.read-more-btn:hover {
  background: #fff;
  color: #222;
}

/* Custom circular slider controls */
.custom-next {
  right: 15px;
}
.custom-prev {
  left: 15px;
}
.custom-prev,
.custom-next {
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(200, 200, 200, 0.35) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white-color);
}
.custom-prev:hover,
.custom-next:hover {
  background: rgba(200, 200, 200, 0.55) !important;
}
.custom-prev:before,
.custom-next:before {
  font-size: 24px;
  color: #fff;
  opacity: 1;
}

/* donate section  */
.donate-section {
  background: var(--secondary-f3) url("../images/home-intro-motif.webp") repeat center;
  background-size: auto; /* or remove this line */
}

.donate-content h2 {
  color: var(--primary-color);
  font-weight: 700;
}

.donate-content p {
  color: var(--secondary-444);
  line-height: 1.6;
}

.donate-amounts .btn {
  margin-right: 10px;
  border-radius: 8px;
}

.donate-image img {
  max-height: 400px;
  object-fit: cover;
}

/* counselling card */
.counselling_card .card_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.counselling_card .image_box {
  height: 190px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  &:hover .card_img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
  }
}


.overlay_banner_image{
  background-size: cover !important;
  background-position: center !important;
  height: 70dvh;
  position: relative;
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }
}

/* global styles */
.py-100 {
  padding: 100px 0;
}
.pt-100{
  padding-top: 100px;
}
.pt-85{
  padding-top: 85px;
}
.text_primary {
  color: var(--primary-color);
}
.text_secondary {
  color: var(--secondary-444);
}
.custom_link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  &:hover {
    color: var(--primary-color-hover);
    text-decoration: underline;
  }
}
.bg_secondary_f3 {
  background-color: var(--secondary-f3);
}
.custom_input {
  border: 2px solid #c9c7c7;
  padding: 0.5rem;
  border-radius: 8px;
  &:focus {
    outline: none;
    border-color: var(--primary-color-hover);
    box-shadow: unset;
  }
}
.custom_btn_primary {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  text-decoration: none !important;
  transition: background-color 0.3s ease;
}
.custom_btn_primary:hover {
  background-color: var(--primary-color-hover);
  color: #fff;
}
.custom_btn_primary:focus{
  background-color: var(--primary-color-hover) !important;
  color: var(--white-color) !important;
  outline: none;
}

.custom_outline_primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}
.custom_outline_primary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.custom_outline_primary:focus{
  background-color: var(--primary-color-hover) !important;
  color: var(--white-color) !important;
  outline: none;
}
@media (max-width: 768px) {
  .banner_slider .slider_item,
  .banner_slider .slider_item img {
    width: 100%;
    height: 35dvh;
  }
  .py-100 {
    padding: 50px 0;
  }


  .custom_nav_item .custom_dropdown_menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    display: none; 
  }

  .custom_nav_item .dropdown-menu.show {
    display: block !important;
  }

  .custom_nav_item:hover .custom_dropdown_menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}
