/********** Template CSS **********/
:root {
  --primary: #1f4d2b; /* Dark Green */
  --secondary: #c9a14a; /* Gold */
  --light: #f8f8f9;
  --dark: #0e2a18;
}

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

/*** 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-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;
}

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

.top-bar {
  height: 45px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.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: 25px 0;
  color: #1f4d2b;
  font-weight: 500;
  outline: none;
}
/* ===== TOP BAR BRIGHT FIX ===== */

.top-bar {
  background: rgba(14, 42, 24, 0.95); /* dark green */
}

.top-bar small {
  color: #ffffff !important;
  font-weight: 500;
}

.top-bar a {
  color: #ffffff !important;
  transition: 0.3s;
}

.top-bar a:hover {
  color: var(--secondary) !important; /* gold hover */
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav {
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    background: var(--dark);
  }

  .navbar .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

@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;
  }
}

/*** Header ***/
.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  /* background: linear-gradient(rgba(14, 42, 24, 0.75), rgba(14, 42, 24, 0.85)); */
  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;
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
        height: 85vh;
    }
    
    /* #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    } */
}

/* HERO HEIGHT FIX (DESKTOP + MOBILE) */
#header-carousel .carousel-item {
  height: 75vh;
  min-height: auto !important;
}

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

.page-header {
  padding-top: 12rem;
  padding-bottom: 6rem;
  /*background:*/
  /*  linear-gradient(rgba(0, 29, 35, 0.8), rgba(0, 29, 35, 0.8)),*/
  /*  url(../img/carousel-1.jpg) center center no-repeat;*/
  background-size: cover;
}

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

/* ===== CAUSES CLEAN VERSION ===== */

.causes-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
}

/* Hover effect */
.causes-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Image fix */
.causes-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Content */
.causes-item .text-center {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Title consistency */
.causes-item h4,
.causes-item h5 {
  min-height: 50px;
  font-weight: 600;
}

/* Text consistency */
.causes-item p {
  min-height: 60px;
  color: #555;
}

/*** 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 {
  overflow: hidden;
}

.team-item .overflow-hidden {
  height: 370px;
  overflow: hidden;
}

.team-item img {
  position: relative;
  top: 0;
  transition: 0.5s;

  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.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 .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);
}

/* ============================= */
/* FINAL NGO BRAND OVERRIDES */
/* ============================= */

/* NAVBAR */
/* BUTTONS */
.btn.btn-primary {
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: #fff !important;
}

.btn.btn-primary:hover {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* OUTLINE BUTTON */
.btn-outline-primary {
  border-color: var(--secondary) !important;
  color: var(--secondary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--secondary) !important;
  color: #fff !important;
}

/* TEXT COLORS */
.text-primary {
  color: var(--primary) !important;
}

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

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

/* BORDERS */
.border-primary {
  border-color: var(--secondary) !important;
}

/* LINKS */
a {
  color: var(--primary);
}

a:hover {
  color: var(--secondary);
}

/* FOOTER */
.footer {
  background-color: var(--dark) !important;
}

/* SECTION HEADINGS */
h1,
h2,
h3,
h4 {
  color: var(--primary);
}

/* DONATE SECTION FIX */
.donate {
  background: rgba(14, 42, 24, 0.85);
}

/* REMOVE ORANGE EFFECTS COMPLETELY */
.btn-group input[type="radio"]:checked + label {
  color: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

/* SMOOTH TRANSITIONS */
* {
}

/* ============================= */
/* WHITE HEADER FINAL */
/* ============================= */

.navbar {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* NAV LINKS */
.navbar .navbar-nav .nav-link {
  color: #1f4d2b !important;
  font-weight: 500;
}

.navbar .navbar-nav .nav-link {
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  border-bottom: 2px solid var(--secondary);
  color: var(--secondary) !important;
}

/* BUTTON */
.navbar .btn-primary {
  background-color: #1f4d2b !important;
  border-color: #1f4d2b !important;
  color: #fff !important;
}

.navbar .btn-primary:hover {
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

/* NAVBAR SPACING (PREMIUM LOOK) */
.navbar {
  padding: 10px 0;
}

.navbar .navbar-brand {
  display: flex;
  align-items: center;
}

/* LOGO + FLAG FIX */

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  height: 60px;
  width: auto;
  display: block;
}

.india-badge {
  font-size: 28px;
  display: block;
  line-height: 1;
}

.main-logo {
  height: 60px;
  width: auto;
  display: block;
}

/* MENU SPACING */
.navbar .navbar-nav .nav-link {
  margin-right: 25px;
}

/* BUTTON SIZE */
.navbar .btn-primary {
  padding: 8px 20px;
  border-radius: 6px;
}

.carousel-caption h1 {
  font-size: 2.4rem;
  line-height: 1.2;
}

/* ===== CHAIRMAN SECTION ===== */

.chairman-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ALIGN BOTH SIDES FROM TOP */
.chairman-section .row {
  align-items: flex-start;
}

/* IMAGE */
.chairman-img {
  width: 100%;
  max-width: 250px;
  height: 340px;
  border-radius: 20px;
  object-fit: cover;
}

/* LEFT IMAGE SPACING */
.chairman-name {
  font-size: 36px;
  font-weight: 700;
  color: #1f4d2b;
  margin-top: 20px;
  line-height: 1.2;
}

.chairman-title {
  color: #6c757d;
  font-weight: 500;
}

.chairman-text {
  color: #555;
  line-height: 1.9;
  text-align: justify;
}

/* BUTTON */
.chairman-section .btn-primary {
  background: #c89b3c;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 28px;
}

.chairman-section .btn-primary:hover {
  background: #a57d2f;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .chairman-section {
    padding: 25px;
  }

  .chairman-name {
    font-size: 28px;
  }

  .chairman-img {
    max-width: 220px;
  }
}

/* ICON STYLE (CONSISTENT NGO LOOK) */
.icon svg {
  width: 60px;
  height: 60px;
  stroke: #1f4d2b; /* green */
  fill: none;
  stroke-width: 2.5;
  transition: 0.3s;
}

/* HOVER EFFECT */
.service-item:hover .icon svg {
  stroke: var(--primary); /* green */
  transform: scale(1.1);
}

/* ===== PROGRAM SECTION FIX ===== */

.program-section {
  background: #f5f7f6;
  position: relative;
  margin-top: 80px;
}

/* Header badge */
.program-section .rounded-pill {
  background: #d4af37 !important; /* gold */
  color: #fff !important;
  font-weight: 500;
}

/* Main heading */
.program-section h1 {
  font-weight: 700;
  color: #1b4332;
}

/* Cards */
.service-item {
  border-radius: 16px;
  transition: all 0.3s ease;
  border: none;
}

/* Hover effect */
.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* Icon styling */
.icon svg {
  width: 55px;
  height: 55px;
  stroke: #d4af37;
  stroke-width: 2.5;
  transition: 0.3s;
}

/* Hover icon */
.service-item:hover .icon svg {
  stroke: var(--primary);
  transform: scale(1.1);
}

/* Button */
.service-item .btn {
  border-radius: 25px;
  font-size: 14px;
}

/* Force all About section text to black */
.about-section,
.about-section p,
.about-section li,
.about-section span {
  color: #000 !important;
}

/* GALLERY PAGE */

.gallery-card {
  text-align: center;
  overflow: hidden;
  border-radius: 15px;
}

.gallery-card img {
  width: 90%;
  max-width: 420px;
  height: auto;
  display: inline-block;
  transition: 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

/* ============================= */
/* MOBILE TOGGLE FIX (FINAL) */
/* ============================= */

/* Remove default icon */
.navbar-toggler-icon {
  background-image: none;
  width: 26px;
  height: 2px;
  background-color: var(--primary); /* GREEN */
  position: relative;
}

/* Top & bottom lines */
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 2px;
  background-color: var(--primary);
  left: 0;
  transition: 0.3s;
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  top: 8px;
}

/* Remove ugly border */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}


/* ============================= */
/* MOBILE MENU PREMIUM FIX */
/* ============================= */

@media (max-width: 991px) {

  .navbar-collapse {
    background: #ffffff;
    padding: 20px;
    border-radius: 18px;
    margin-top: 15px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
  }

  .navbar .navbar-nav {
    background: transparent;
    border-top: none;
  }

  .navbar .navbar-nav .nav-link {
    color: #1f4d2b !important;
    font-size: 20px;
    font-weight: 600;
    padding: 14px 0;
    margin-right: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .navbar .navbar-nav .nav-link:hover,
  .navbar .navbar-nav .nav-link.active {
    color: #c9a14a !important;
    border-bottom: 1px solid #c9a14a;
    background: transparent;
  }

}