/********** Template CSS **********/
:root {
  --primary: #475f8f;
  --secondary: #fff0e6;
  --light: #f8f8f9;
  --dark: #001d23;
  --bs-primary: #475f8f; /* Override Bootstrap primary variable */
}

body {
  font-family: "Arial", sans-serif;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Georgia", serif;
}

.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.btn-primary:hover {
  color: var(--primary);
  background: #ffffff;
  border-color: var(--primary); /* Ensure border is primary color */
}

.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;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-scrolled {
  background: rgba(0, 0, 0, 0.5) !important;
  transition: 0.5s;
}

/* Global inputs focus fix */
.form-control:focus {
  color: var(--dark);
  background-color: #fff;
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(71, 95, 143, 0.25);
}

.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: #ffffff;
  font-weight: 500;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: #e0e7fb;
}

@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;
    background: rgba(0, 0, 0, 0.7) !important;
    border: none;
  }

  .dropdown-item {
    color: #fff;
    font-size: 14px;
  }

  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 40px; /* top | sides | bottom */

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Custom UI Adjustments */
/* Header Button Customization */
#header-carousel .btn {
  text-transform: uppercase;
  font-weight: bold !important;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 13px 1.75rem !important;
}

#header-carousel .btn i {
  display: none;
}

#header-carousel .btn .d-inline-flex {
  display: none !important;
}

.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 {
    position: relative;
    min-height: 650px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Desktop Carousel Height */
@media (min-width: 992px) {
  #header-carousel .carousel-item {
    height: 750px;
  }

  #header-carousel .carousel-item img {
    height: 750px;
    width: 100%;
    object-fit: cover;
  }
}

.page-header {
  padding-top: 12rem;
  padding-bottom: 6rem;
  background: #384a70;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: #999999;
}

/*** 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: none !important;
}

/* Section Title Bubble Reset */
.d-inline-block.rounded-pill.bg-secondary.text-primary {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  text-transform: uppercase;
  font-weight: bold !important;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 1rem !important; /* Ensure spacing */
}

/* Remove all shadows */
.team-item {
  box-shadow: none !important;
}

.accordion-item {
  box-shadow: none !important;
}

.about-custom-img {
  box-shadow: none !important;
}

/*** 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 p,
.footer .text-white-50,
.footer .btn.btn-link {
  font-size: 14px !important;
}

.footer .copyright {
  font-size: 10px !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: "";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 0;
}

.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: 10px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--secondary);
}

.footer .copyright a:hover {
  color: var(--primary);
}

/* Fix Hero Height */
#header-carousel .carousel-item img {
  height: 980px;
  object-fit: cover;
}

/* Custom UI Adjustments */
/* Header Button White */
.navbar .btn-primary {
  background-color: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.navbar .btn-primary:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.navbar .btn-primary .btn-sm-square {
  background-color: var(--primary) !important;
  color: #ffffff !important;
}

.navbar .btn-primary:hover .btn-sm-square {
  background-color: #ffffff !important;
  color: var(--primary) !important;
}

/* Ensure navbar button border also changes on hover */
.navbar .btn-primary:hover {
  border-color: var(--primary);
}

/* About Image Custom Style */
.about-custom-img {
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
  border-radius: 10px !important;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

/* Mobile spacing below banner */
@media (max-width: 768px) {
  .container-fluid.p-0.mb-2 {
    margin-bottom: 3rem !important;
  }
}

.accordion-item {
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Accordion Custom Style */
.accordion-button:not(.collapsed) {
  color: #000;
  font-weight: bold;
  background-color: transparent !important; /* Remove default bg color */
  box-shadow: none !important; /* Remove focus/active shadow */
}

.accordion-button {
  font-weight: 600;
  color: #555;
  background-color: var(
    --light
  ); /* Ensure default is light grey if needed, but HTML has bg-light class */
  box-shadow: none !important;
}

/* Ensure background of body matches if needed */
.accordion-body {
  background-color: var(--light);
}

/* Remove thick border via box-shadow or border properties if present in bootstrap default */
.accordion-item {
  border: none;
}

.btn-primary {
  text-transform: uppercase;
  font-weight: bold !important;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 13px 1.75rem !important;
}

.btn-outline-primary {
  text-transform: uppercase;
  font-weight: bold !important;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 13px 1.75rem !important;
}

.btn-light {
  text-transform: uppercase;
  font-weight: bold !important;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 13px 1.75rem !important;
}

.btn.btn-light:hover {
  color: #ffffff;
  background: transparent;
  border-color: #ffffff;
}

/* Service Page List Indent Fix */
.list-unstyled li {
  position: relative;
  padding-left: 2rem;
}

.list-unstyled li i {
  position: absolute;
  left: 0;
  top: 5px;
}
