@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  list-style-type: none;
  text-decoration: none;
}

/* Preloader Style */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #212529;
  /* dark background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  color: #ffc107;
  /* charity theme color */
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* ============== header ============== */
.header {
  font-size: .75rem;
  text-decoration: none;
}

.social-links a:hover {
  color: #f1f1f1 !important;
}

/*=================== Navbar=============== */
/* Overlay effect for navbar */
.navbar {
  position: absolute;
  width: 100%;
  z-index: 10;
}

/* for small screen */
@media screen and (min-width: 300px) and (max-width: 768px) {
  .navbar {
    background: rgba(255, 255, 255, 0.5);
    /* Transparent dark background */
  }
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: #ffffff !important;
}

.navbar .nav-item a:hover {
  color: yellow !important;
}

/* Carousel caption custom */
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  text-align: left;
  max-width: 500px;
}

.carousel-caption h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
}

.carousel-caption p {
  font-size: 1.2rem;
  color: #f1f1f1;
}

.carousel-caption .btn {
  margin-right: 10px;
  padding: 10px 20px;
  font-size: 1rem;
}

.carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Adjust 0.5 to control darkness */
  z-index: 1;
}

.carousel-caption {
  z-index: 2;
  /* Ensures text appears above overlay */
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  text-align: left;
}

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

/* =================== Cards ===============
.card{
    background: url(/assets/images/slider3.jpg);
    background-size: cover;
    background-repeat: no-repeat;

} */
.card {
  background: linear-gradient(rgb(255, 157, 0) 0%, rgb(250, 237, 0) 100%);
}

.card:hover {
  background: linear-gradient(rgb(72, 172, 14) 0%, rgb(121, 234, 99) 100%);
}

.card-custom {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 1rem;
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
}

.icon-box {
  font-size: 6rem;
  color: #fff;
  /* background: #ff660033; */
  padding: 20px;
  border-radius: 1rem;
  display: inline-block;
  margin-bottom: 15px;
}

.card-custom p {
  color: #fff;
  font-size: 1rem;
}

.card-custom .btn {
  border-radius: 50px;
  font-weight: 500;
}

/* =================== Welcome to charity section =============== */
.welcome-section {
  position: relative;
  background: url("/assets/images/wel-charity.bac.jpg") no-repeat center center/cover;
  color: #fff;
  padding: 100px 0;
}

.welcome-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* Dark overlay */
  z-index: 1;
}

.welcome-content {
  position: relative;
  z-index: 2;
}

.welcome-content h2 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.welcome-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.welcome-content .btn {
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 20px;
}

.welcome-content .btn:hover {}

.welcome-img img {
  height: 50%;
  width: 50%;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

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

/* ============ Gallery Section ============= */
.gallery-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.gallery-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.gallery-card img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.event-meta {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 8px;
}

.gallery-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

.gallery-card p {
  font-size: 0.95rem;
  color: #555;
}

.gallery-card .btn {
  border-radius: 30px;
  font-weight: 500;
  padding: 8px 20px;
}

/* ============ Show in number section ============= */
.stats-section {
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url('../images/Our\ Impact\ in\ no-img.jpeg') center/cover no-repeat;
  color: #fff;
  padding: 80px 0;
}

.stats-heading h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

.stats-heading p {
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 15px;
  color: #e6e6e6;
}

.stat-box {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
}

.stat-box i {
  font-size: 3rem;
  color: #ffc107;
  margin-bottom: 15px;
}

.stat-box h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-box p {
  font-size: 1rem;
  margin: 0;
  color: #ddd;
}

/* ============ Footer ============= */
.footer {
  background: #212529;
  color: #ddd;
  padding: 60px 0 20px;
  font-size: 0.95rem;
}

.footer h5 {
  color: #ffc107;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.2rem;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffc107;
}

.footer .social-icons a {
  display: inline-block;
  margin: 0 8px;
  font-size: 1.3rem;
  color: #ddd;
  transition: color 0.3s ease;
}

.footer .social-icons a:hover {
  color: #ffc107;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 30px;
  padding-top: 15px;
  font-size: 0.85rem;
  text-align: center;
  color: #aaa;
}