/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #2a5934;
  --dark-green: #1e4027;
  --gold: #c8a96e;
  --light-gold: #d4c5a8;
  --cream: #f8f6f3;
  --off-white: #faf8f5;
  --text-dark: #333;
  --text-light: #666;
  --border-light: #e0d8c8;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-green);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-green);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.apply-btn {
  background: var(--primary-green) !important;
  color: white !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.apply-btn:hover {
  background: var(--dark-green) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 89, 52, 0.3);
}

.apply-btn::after {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-green);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  height: 40%;
  background: url('itqan-calligraphy.png') center/contain no-repeat;
  opacity: 0.08;
  filter: drop-shadow(0px 0px 20px rgba(200, 168, 110, 0.4));
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(200, 168, 110, 0.1), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bismillah {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 2rem;
  font-family: 'Times New Roman', serif;
  letter-spacing: 2px;
}

.hero-title {
  font-size: 4rem;
  color: white;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--light-gold);
  margin-bottom: 3rem;
  font-style: italic;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  color: var(--gold);
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: var(--light-gold);
  margin-top: 0.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: Georgia, serif;
}

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

.btn-primary:hover {
  background: #b89a5f;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(200, 168, 110, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-green);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
}

.btn-outline:hover {
  background: var(--primary-green);
  color: white;
}

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
}

.scroll-indicator {
  position: relative;
  margin-top: 3rem;
  text-align: center;
  color: #fff;
  font-size: 0.85rem;
  animation: bounce 2s infinite;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 600;
  z-index: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.scroll-arrow {
  font-size: 2rem;
  margin-top: 0.5rem;
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 0;
}

.section-heading {
  font-size: 2.8rem;
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subheading {
  font-size: 1.2rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 4rem;
  font-style: italic;
}

.section-title {
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.8;
}

/* ===== SERIOUS STUDENTS SECTION ===== */
.serious-students {
  background: var(--off-white);
}

.content-box {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 15px;
  border-left: 5px solid var(--gold);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.requirements {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 500;
}

.req-icon {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ===== PROGRAMS GRID ===== */
.programs-preview {
  background: white;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.program-card {
  background: var(--off-white);
  border: 2px solid var(--border-light);
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.program-card.featured {
  background: linear-gradient(135deg, #f0ede6 0%, #faf8f5 100%);
  border: 2px solid var(--gold);
}

.popular-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--gold);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.program-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.program-name {
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-weight: 700;
}

.program-price {
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
}

.program-price span {
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 400;
}

.program-desc {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.program-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.program-features li {
  padding: 0.6rem 0;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.program-features li:before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  margin-right: 0.8rem;
}

.programs-cta {
  text-align: center;
  margin-top: 4rem;
}

.programs-cta p {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* ===== CREDENTIALS ===== */
.credentials {
  background: var(--primary-green);
  color: white;
}

.credentials .section-heading {
  color: var(--gold);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.credential-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.credential-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.cred-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.credential-item h3 {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.credential-item p {
  font-size: 1rem;
  color: var(--light-gold);
  line-height: 1.6;
}

.credentials .btn-primary {
  background: var(--gold);
  color: var(--dark-green);
  margin: 0 auto;
  display: block;
  width: fit-content;
}

/* ===== WHY ITQAN ===== */
.why-itqan {
  background: var(--off-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.why-item {
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.why-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.why-item h3 {
  font-size: 1.4rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.why-item p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: white;
  text-align: center;
  padding: 6rem 2rem;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--light-gold);
}

.cta-note {
  font-size: 1rem !important;
  margin-top: 1.5rem !important;
  font-style: italic;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-green);
  color: var(--light-gold);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--light-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-tagline {
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(200, 168, 110, 0.3);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1.5rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section-heading {
    font-size: 2rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .content-box {
    padding: 2rem 1.5rem;
  }

  .requirements {
    flex-direction: column;
    gap: 1rem;
  }
}
