/* ============================ Preloader ============================ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  display: flex;
  gap: 10px;
}

.loader .dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgb(226, 174, 42);
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ============================ Navbar ============================ */
.navbar {
  padding: 0.5rem 1rem;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgb(34, 34, 34);
  font-size: 24px;
}

.nav-link {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgb(34, 34, 34);
  font-size: 18px;
  transition: color 0.4s ease;
}

.nav-link:hover {
  color: rgb(226, 174, 42);
}

.donate-btn {
  background-color: rgb(226, 174, 42);
  color: white;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 30px;
  transition: 0.3s ease;
  text-decoration: none;
}

.donate-btn:hover {
  background-color: rgb(180, 140, 30);
  color: #fff;
  transform: scale(1.05);
}

/* ============================ Sections ============================ */

/* Home & Programs & Blogs & Contact */
section {
  padding: 60px 0;
}

/* Section Headings */
.section-heading {
  font-size: 38px;
  font-weight: bold;
  color: rgb(226, 174, 42);
  font-family: 'Playfair Display', serif;
  margin-bottom: 40px;
}

/* Programs */
.programsec {
  background-color: white;
  border-radius: 40px;
  padding: 20px;
}

.program-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: rgb(226, 174, 42);
  font-family: 'Playfair Display', serif;
}

.program-text {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 20px;
}

.program-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

/* Blogs */
.blog-card {
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  padding: 20px;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.blog-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.blog-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: rgb(226, 174, 42);
  font-family: 'Playfair Display', serif;
}

.blog-desc {
  font-size: 15px;
  color: #555;
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
}

/* Contact */
.gold-text {
  color: rgb(226, 174, 42);
  font-weight: bold;
  font-size: 22px;
  margin-bottom: 15px;
}

p {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
}

.form-label {
  font-weight: 600;
  color: #333;
}

.form-control {
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #ccc;
}

.submit-btn {
  background-color: rgb(226, 174, 42);
  color: white;
  font-weight: bold;
  padding: 10px 22px;
  border-radius: 25px;
  border: none;
  transition: 0.3s ease;
}

.submit-btn:hover {
  background-color: rgb(180, 140, 30);
}

/* Footer */
.footer {
  background-color: #000;
  border-top: 3px solid rgb(226, 174, 42);
}

.footer-title {
  font-size: 20px;
  font-weight: 700;
  color: rgb(226, 174, 42);
  margin-bottom: 15px;
}

.footer-title span {
  color: #fff;
}

.footer-text {
  font-size: 15px;
  color: #fff;
  line-height: 1.8;
}

.footer-links a {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: rgb(226, 174, 42);
}

.footer-contact li {
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  padding-top: 15px;
  font-size: 14px;
  color: #fff;
}

/* ============================ Responsive Breakpoints ============================ */
@media (max-width: 430px) { /* X-Small to Extra Large Phones */
  html, body {
    overflow-x: hidden;
  }

  .navbar-brand {
    font-size: 16px;
  }

  .nav-link {
    font-size: 16px;
    padding: 0.4rem 0;
  }

  .donate-btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .section-heading {
    font-size: 28px;
  }

  .program-title {
    font-size: 22px;
  }

  .blog-title {
    font-size: 20px;
  }

  .program-img, .blog-img img {
    width: 100%;
    height: auto;
  }

  .form-control {
    font-size: 14px;
  }

  .submit-btn {
    font-size: 14px;
    padding: 8px 18px;
  }

  /* Navbar collapse fix */
  .navbar-nav {
    width: 100%;
    text-align: center;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }
}

@media (max-width: 768px) { /* Tablets */
  .section-heading {
    font-size: 32px;
  }

  .program-title {
    font-size: 24px;
  }
}

@media (max-width: 1024px) { /* Small laptops/Tablets landscape */
  .section-heading {
    font-size: 34px;
  }
}

/* ============================ Universal Fix for Overflow ============================ */
* {
  box-sizing: border-box;
}

img, video, iframe {
  max-width: 100%;
}

.container, .container-fluid {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}










