/* =========================================================
   Darul Ilm Madarsa — Custom Styles
   ========================================================= */

:root {
  --deep-green: #1a4d2e;
  --deep-green-dark: #0f3320;
  --gold: #c98a2c;
  --gold-light: #e0a94a;
  --cream: #f7f3ea;
  --cream-dark: #efe8d8;
  --text-dark: #22301f;
  --text-muted: #6b7568;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body), "Segoe UI", Arial, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
}

a { text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading), Georgia, serif;
}

.navbar, .btn, .nav-link, p, span, li, input, a {
  font-family: var(--font-body), "Segoe UI", Arial, sans-serif;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
  background-color: var(--deep-green-dark);
  color: #e9e2d0;
  font-size: 0.85rem;
}

.top-bar-info span {
  margin-right: 8px;
}

.top-bar-info i {
  color: var(--gold-light);
  margin-right: 4px;
}

.top-bar-social a {
  color: #e9e2d0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.top-bar-social a:hover {
  color: var(--gold-light);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.main-navbar {
  background-color: #ffffff;
  padding: 0.85rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.main-navbar .container-fluid {
  flex-wrap: nowrap;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.navbar-brand {
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--deep-green);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.68rem;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

.navbar-nav {
  flex-wrap: nowrap;
}

.main-navbar .nav-item {
  flex-shrink: 0;
}

.main-navbar .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.7rem !important;
  position: relative;
  white-space: nowrap;
}

.main-navbar .nav-link.active,
.main-navbar .nav-link:hover {
  color: var(--deep-green);
}

.main-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  background: var(--gold);
}

.btn-enquiry {
  background-color: var(--deep-green);
  color: #ffffff;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.65rem 1.3rem;
  border-radius: 6px;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.btn-enquiry:hover {
  background-color: var(--deep-green-dark);
  color: #ffffff;
}

/* Collapsed mobile/tablet menu: allow natural wrapping again */
@media (max-width: 1199.98px) {
  .main-navbar .container-fluid {
    flex-wrap: wrap;
  }

  .navbar-nav {
    flex-wrap: wrap;
  }

  .main-navbar .nav-link {
    white-space: normal;
    padding: 0.6rem 0.5rem !important;
  }

  .btn-enquiry {
    white-space: normal;
  }
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  background-color: var(--cream);
  padding: 4rem 0;
  overflow: hidden;
}

.arabic-line {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.arabic-line .deco {
  color: var(--gold);
  margin: 0 8px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.2;
  color: var(--deep-green);
  margin-bottom: 1.2rem;
}

.hero-title .text-accent {
  color: var(--gold);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 480px;
  line-height: 1.7;
}

.btn-primary-custom {
  background-color: var(--deep-green);
  color: #ffffff;
  font-weight: 500;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  border: 1px solid var(--deep-green);
  transition: all 0.2s;
}

.btn-primary-custom:hover {
  background-color: var(--deep-green-dark);
  color: #ffffff;
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--deep-green);
  font-weight: 500;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  border: 1px solid var(--deep-green);
  transition: all 0.2s;
}

.btn-outline-custom:hover {
  background-color: var(--deep-green);
  color: #ffffff;
}

.hero-img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(26, 77, 46, 0.18);
}

/* =========================================================
   FEATURE STRIP
   ========================================================= */
.feature-strip {
  margin-top: -2.5rem;
  position: relative;
  z-index: 5;
  padding-bottom: 3rem;
}

.feature-strip-inner {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  padding: 1.8rem;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  min-width: 0;
}

.feature-item > div {
  min-width: 0;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
}

.icon-green { background-color: var(--deep-green); }
.icon-gold { background-color: var(--gold); }

.feature-item h6 {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.feature-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

/* =========================================================
   INFO SECTION (About / Courses / Announcements)
   ========================================================= */
.info-section {
  padding: 1rem 0 4rem;
  background-color: #ffffff;
}

.info-card {
  background-color: var(--cream);
  border-radius: 14px;
  padding: 1.8rem;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.eyebrow-text {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.eyebrow-line {
  flex: 1 1 auto;
  height: 2px;
  background-color: var(--gold);
  opacity: 0.55;
}

.info-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--deep-green);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-text {
  flex: 1 1 58%;
  min-width: 0;
}

.about-img-wrap {
  flex: 0 0 36%;
  max-width: 36%;
}

.about-img-wrap img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 90px 90px 10px 10px;
  display: block;
}

.info-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Course List */
.course-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.course-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(26, 77, 46, 0.1);
}

.course-list li:last-child { border-bottom: none; }

.course-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--deep-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.course-list h6 {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.course-list p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.link-view-all {
  color: var(--deep-green);
  font-weight: 600;
  font-size: 0.9rem;
}

.link-view-all:hover {
  color: var(--gold);
}

/* Announcements */
.announcement-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.announcement-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(26, 77, 46, 0.1);
}

.announcement-list li > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 0.6rem;
}

.ann-icon {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: 2px;
}

.announcement-list h6 {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0;
  color: var(--text-dark);
  line-height: 1.4;
}

.ann-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.announcement-list li {
  align-items: flex-start;
}

.quote-box {
  background-color: var(--deep-green);
  color: #f0ead9;
  border-radius: 10px;
  padding: 1.3rem;
  text-align: center;
}

.quote-arabic {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.quote-text {
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 0.3rem;
}

.quote-ref {
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 0;
}

/* =========================================================
   STATS BAND
   ========================================================= */
.stats-band {
  background-color: var(--deep-green);
  padding: 2.6rem 0;
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06'%3E%3Cpath d='M30 0l8 8-8 8-8-8zM30 44l8 8-8 8-8-8zM0 30l8-8 8 8-8 8zM44 30l8-8 8 8-8 8z'/%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.stats-band .container {
  position: relative;
  z-index: 1;
}

.stats-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
}

.stat-item {
  flex: 1 1 20%;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  right: 0;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.18);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.stat-top i {
  color: var(--gold-light);
  font-size: 1.5rem;
  line-height: 1;
}

.stat-top h3 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.85rem;
  margin-bottom: 0;
  line-height: 1;
}

.stat-item p {
  color: var(--gold-light);
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
  opacity: 0.9;
}

@media (max-width: 767.98px) {
  .stat-item {
    flex: 1 1 50%;
    margin-bottom: 1.5rem;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-item:nth-child(odd)::before {
    content: "";
    position: absolute;
    top: 8%;
    bottom: 8%;
    right: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.18);
  }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-section {
  background-color: var(--cream);
  padding: 4rem 0;
}

.section-heading {
  font-family: var(--font-heading);
  color: var(--deep-green);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.deco-line {
  width: 50px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.8rem;
  height: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.quote-mark {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.testimonial-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-author img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.testimonial-author h6 {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d9cfb5;
  display: inline-block;
}

.dot.active {
  background-color: var(--gold);
  width: 22px;
  border-radius: 4px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background-color: var(--deep-green-dark);
  color: #cfe0d4;
  padding: 3.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-desc {
  color: #a9c0ae;
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #3c6b4c;
  color: #cfe0d4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.footer-social a:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

.footer-heading {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #cfe0d4;
  font-size: 0.87rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-links a i {
  color: var(--gold-light);
  font-size: 0.75rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: #cfe0d4;
}

.footer-contact i {
  color: var(--gold-light);
  margin-top: 3px;
}

.newsletter-form .form-control {
  background-color: #ffffff;
  border: none;
  border-radius: 6px 0 0 6px;
  font-size: 0.85rem;
}

.newsletter-form .btn {
  background-color: var(--gold);
  color: #ffffff;
  border-radius: 0 6px 6px 0;
}

.footer-divider {
  border-color: #3c6b4c;
  opacity: 0.5;
  margin: 2rem 0 1.2rem;
}

.copyright {
  font-size: 0.82rem;
  color: #a9c0ae;
}

.footer-arabic {
  font-size: 1rem;
  color: var(--gold-light);
}

.footer-bottom-link {
  color: #a9c0ae;
  font-size: 0.82rem;
}

.footer-bottom-link:hover {
  color: var(--gold-light);
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================= */
@media (max-width: 991.98px) {
  .main-navbar .nav-link.active::after { display: none; }
  .hero-title { font-size: 2.2rem; }
  .feature-strip { margin-top: 1.5rem; }
  .btn-enquiry { margin-top: 1rem; display: inline-block; }
}

@media (max-width: 767.98px) {
  .top-bar-info { font-size: 0.75rem; }
  .hero-section { padding: 2.5rem 0; }

  .about-flex {
    flex-direction: column;
  }

  .about-text,
  .about-img-wrap {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .about-img-wrap img {
    height: 200px;
    border-radius: 90px 90px 10px 10px;
  }
}
