/* 1. Variables & Reset */
:root {
  --primary-green: #1a4731;
  --accent-gold: #c5a059;
  --paper-bg: #fdfbf7;
  --paper-dark: #f2efe6;
  --text-main: #2d2d2d;
  --text-light: #5a5a5a;
  --white: #ffffff;
  --container-width: 1200px;
  --section-padding: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Amiri", serif;
  background-color: var(--paper-bg);
  color: var(--text-main);
  line-height: 1.8;
  font-size: 18px;
  overflow-x: hidden;
  /* Islamic Pattern Background */
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c5a059' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 2. Global Typography & Links */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1.4;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-gold);
}

/* 3. Utility Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  background-color: var(--primary-green);
  color: var(--white);
  border-radius: 4px;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn:hover {
  background-color: var(--accent-gold);
  color: var(--primary-green);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-gold);
}

/* 4. Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-top: 5px solid var(--primary-green);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.header-main-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-weight: 500;
  font-size: 1rem;
}

nav a:hover {
  color: var(--primary-green);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-green);
}

/* 5. Sections Styles */
.hero {
  position: relative;
  padding: 120px 0;
  background:
    linear-gradient(rgba(26, 71, 49, 0.92), rgba(26, 71, 49, 0.85)),
    url("https://images.unsplash.com/photo-1521587760476-6c12a4b040da?q=80&w=1920");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
}

.hero h2 {
  font-size: 3.5rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.4rem;
  color: #e0e0e0;
  margin-bottom: 40px;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.intro {
  padding: var(--section-padding) 0;
  background-color: var(--white);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.highlight-box {
  background-color: var(--paper-dark);
  padding: 40px;
  border: 1px solid var(--accent-gold);
  border-radius: 4px;
  text-align: center;
}

.hadith {
  font-size: 1.6rem;
  color: var(--primary-green);
  display: block;
}

.heritage {
  padding: var(--section-padding) 0;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  border-top: 4px solid var(--accent-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.card-icon {
  width: 70px;
  height: 70px;
  background-color: var(--paper-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  color: var(--primary-green);
}

.quote-divider {
  background-color: var(--primary-green);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.projects {
  padding: var(--section-padding) 0;
  background-color: var(--white);
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-item {
  display: flex;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: var(--paper-bg);
  overflow: hidden;
}

.project-date {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 20px;
  min-width: 120px;
  text-align: center;
}

.project-content {
  padding: 25px;
  flex-grow: 1;
}

/* 6. Footer Styles */
footer {
  background-color: #151515;
  color: #ccc;
  padding: 60px 0 20px 0;
  border-top: 5px solid var(--accent-gold);
  font-family: "Noto Kufi Arabic", sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 25px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #aaa;
  transition: transform 0.3s;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--accent-gold);
  transform: translateX(-8px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ccc;
}
.contact-item i {
  color: var(--accent-gold);
  width: 18px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #777;
  font-size: 0.85rem;
}

/* 7. Responsive Design */
@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .hero h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    height: auto;
    padding: 15px 0;
  }
  nav {
    display: none;
    width: 100%;
    margin-top: 15px;
  }
  nav ul {
    flex-direction: column;
    gap: 15px;
  }
  .mobile-menu-btn {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact-item {
    justify-content: center;
  }
  .project-item {
    flex-direction: column;
  }
}
