/* Preloader overlay */
#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 dots */
.loader {
  display: flex;
  gap: 10px;
}

.loader .dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgb(226, 174, 42); /* golden */
}

/* Hide preloader after animation */
#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

body {
  font-family: 'Nunito', sans-serif;
}


/* ============================ Navbar ============================ */

.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);
}

/* ==================== Madarsa Heading ==================== */
.madarsa-heading {

  
  background: linear-gradient(rgba(227, 227, 227, 0.4), rgba(244, 244, 244, 0.4)),
              url('../images/madrsaback.jpg') ;
  background-size: cover;
  background-position: top;
  
  text-align: center;
  padding: 100px 20px 60px 20px;
}

.madarsa-heading h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 600;
  color: #000;
}

.madarsa-heading .ayat {
  font-size: 36px;
  font-weight: bold;
  color: #222;
  margin-top: 15px;
}

.madarsa-heading .translation {
  font-size: 18px;
  color: #555;
  margin-top: 5px;
}

/* ==================== Madarsa About ==================== */
.madarsa-about h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: rgb(226, 174, 42); /* Golden */
  font-size: 32px;
  margin-bottom: 20px;
}

.madarsa-about p {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
}

/* ==================== Madarsa Services ==================== */
.madarsa-services {
  background-color: rgb(240, 239, 239);
  padding: 60px 0;
}

.madarsa-services h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #000;
  font-size: 32px;
  margin-bottom: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  padding: 25px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 40px;
  color: rgb(226, 174, 42);
  margin-bottom: 12px;
}

/* ==================== Madarsa Gallery ==================== */
.madarsa-gallery {
  padding: 60px 0;
}

.madarsa-gallery h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: rgb(226, 174, 42);
  font-size: 32px;
  margin-bottom: 30px;
}

.madarsa-gallery img {
  border-radius: 10px;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.madarsa-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ==================== Madarsa Importance ==================== */
.madarsa-importance {
  background-color: rgb(240, 239, 239);
  padding: 60px 0;
}

.madarsa-importance h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: rgb(226, 174, 42);
  font-size: 32px;
  margin-bottom: 20px;
}

.madarsa-importance p {
  font-size: 18px;
  color: #444;
  line-height: 1.8;
}

/* ==================== Scholar Section ==================== */
.scholar-section {
  background-color: #fff;
  padding: 60px 0;
}

.section-heading {
  font-size: 36px;
  font-weight: bold;
  color: rgb(226, 174, 42);
  font-family: 'Playfair Display', serif;
  margin-bottom: 50px;
}

.scholar-img {
  max-width: 100%;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.scholar-name {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  font-family: 'Playfair Display', serif;
  margin-bottom: 15px;
}

.scholar-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  font-family: 'Nunito', sans-serif;
}



/* ============================ 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; }








