/* ============================================
   MY QURAN EDUCATOR - Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Montserrat:wght@300;400;500;600&family=Amiri:wght@400;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Primary Colors - Islamic Palette */
  --clr-navy-deep: #0a1628;
  --clr-navy: #0d1b2a;
  --clr-navy-light: #1b2838;
  --clr-blue-deep: #1a237e;
  --clr-blue: #283593;

  /* Greens */
  --clr-emerald-deep: #00695c;
  --clr-emerald: #00897b;
  --clr-green: #2e7d32;
  --clr-green-light: #43a047;

  /* Gold Accents */
  --clr-gold: #d4a843;
  --clr-gold-light: #e8c56d;
  --clr-gold-dark: #c5952a;
  --clr-bronze: #b08d57;

  /* Warm Neutrals */
  --clr-cream: #fdf6ec;
  --clr-cream-dark: #f5f0e8;
  --clr-beige: #ede4d3;
  --clr-white: #ffffff;
  --clr-text: #2c2c2c;
  --clr-text-light: #5a5a5a;
  --clr-text-muted: #8a8a8a;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(0, 105, 92, 0.85) 100%);
  --grad-gold: linear-gradient(135deg, #d4a843 0%, #e8c56d 50%, #c5952a 100%);
  --grad-emerald: linear-gradient(135deg, #00695c 0%, #00897b 50%, #2e7d32 100%);
  --grad-navy: linear-gradient(135deg, #0a1628 0%, #1a237e 100%);
  --grad-card: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(253,246,236,0.9) 100%);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-arabic: 'Amiri', serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
  --shadow-gold: 0 4px 20px rgba(212, 168, 67, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- Global Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background-color: var(--clr-cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-navy-deep);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  margin-bottom: var(--space-md);
  color: var(--clr-text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--grad-gold);
  color: var(--clr-navy-deep);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.5);
}

.btn-secondary {
  background: var(--grad-emerald);
  color: var(--clr-white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 105, 92, 0.4);
}

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

.btn-outline:hover {
  background: var(--clr-gold);
  color: var(--clr-navy-deep);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1.1rem;
}

/* WhatsApp button icon */
.btn .whatsapp-icon {
  width: 20px;
  height: 20px;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-base);
  padding: var(--space-md) 0;
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: var(--space-sm) 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo img {
  height: 45px;
  width: auto;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-gold);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--clr-cream);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: var(--space-xs) 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-gold);
  transition: width var(--transition-base);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.call-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--clr-cream);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition-base);
}

.call-btn:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.header-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--clr-cream);
  font-size: 1.1rem;
  transition: all var(--transition-base);
}

.header-socials a:hover {
  background: var(--clr-gold);
  color: var(--clr-navy-deep);
  transform: translateY(-2px);
}

/* Mobile hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--clr-cream);
  border-radius: 3px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-xl);
  padding-top: 100px;
  animation: fadeInUp 1s ease forwards;
}

.hero-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  color: var(--clr-gold);
  margin-bottom: var(--space-lg);
  direction: rtl;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 {
  color: var(--clr-white);
  margin-bottom: var(--space-lg);
  text-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: rgba(232, 197, 109, 0.8);
  direction: rtl;
  margin-top: var(--space-sm);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating decorative elements in hero */
.hero-decoration {
  position: absolute;
  z-index: 1;
  opacity: 0.1;
}

.hero-decoration.left {
  left: -50px;
  top: 20%;
  width: 300px;
  height: 300px;
  border: 2px solid var(--clr-gold);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-decoration.right {
  right: -80px;
  bottom: 15%;
  width: 400px;
  height: 400px;
  border: 2px solid var(--clr-gold);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

/* --- Section Styles --- */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--grad-gold);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-dark {
  background: var(--clr-navy-deep);
  color: var(--clr-cream);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--clr-cream);
}

.section-dark p {
  color: rgba(255,255,255,0.75);
}

.section-pattern {
  position: relative;
  overflow: hidden;
}

.section-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/islamic-pattern.png') center/cover;
  opacity: 0.05;
  pointer-events: none;
}

/* --- Class Cards --- */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.class-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 67, 0.1);
}

.class-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-gold);
}

.class-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(212, 168, 67, 0.3);
}

.class-card-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: var(--grad-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.8rem;
}

.class-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.class-card .subtitle {
  color: var(--clr-emerald-deep);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
}

.class-card p {
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.class-card .btn {
  width: 100%;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--grad-navy);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/islamic-pattern.png') center/cover;
  opacity: 0.08;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  margin-bottom: var(--space-2xl);
}

/* --- About Page --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-text h2 {
  margin-bottom: var(--space-lg);
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid var(--clr-gold);
  border-radius: var(--radius-lg);
  z-index: 1;
  opacity: 0.5;
}

/* Features list */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.feature-item {
  text-align: center;
  padding: var(--space-xl);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: rgba(0, 105, 92, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 2rem;
  transition: all var(--transition-base);
}

.feature-item:hover .feature-icon {
  background: var(--grad-emerald);
  transform: scale(1.1);
}

.feature-item h4 {
  margin-bottom: var(--space-sm);
}

/* --- Classes Detail Page --- */
.class-detail {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--clr-beige);
}

.class-detail:last-child {
  border-bottom: none;
}

.class-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.class-detail:nth-child(even) .class-detail-content {
  direction: rtl;
}

.class-detail:nth-child(even) .class-detail-content > * {
  direction: ltr;
}

.class-detail-info h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  color: var(--clr-emerald-deep);
}

.class-detail-info .curriculum-list {
  list-style: none;
  margin: var(--space-lg) 0;
}

.class-detail-info .curriculum-list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-xl);
  position: relative;
  color: var(--clr-text-light);
}

.class-detail-info .curriculum-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--clr-gold);
}

.class-detail-visual {
  background: var(--grad-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212, 168, 67, 0.15);
}

/* --- Fee Table --- */
.fee-table-wrapper {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(212, 168, 67, 0.15);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
}

.fee-table thead {
  background: var(--grad-navy);
}

.fee-table th {
  padding: var(--space-lg) var(--space-xl);
  color: var(--clr-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.fee-table td {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--clr-beige);
  font-size: 0.95rem;
}

.fee-table tbody tr {
  transition: background var(--transition-base);
}

.fee-table tbody tr:hover {
  background: rgba(212, 168, 67, 0.05);
}

.fee-table .price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--clr-emerald-deep);
}

.discount-banner {
  background: var(--grad-gold);
  padding: var(--space-xl) var(--space-2xl);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: var(--space-2xl);
  box-shadow: var(--shadow-gold);
}

.discount-banner h3 {
  color: var(--clr-navy-deep);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.discount-banner p {
  color: var(--clr-navy);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
}

.contact-form {
  background: var(--clr-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 168, 67, 0.1);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  color: var(--clr-navy-deep);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--clr-beige);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--clr-text);
  background: var(--clr-cream);
  transition: all var(--transition-base);
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--clr-emerald);
  box-shadow: 0 0 0 4px rgba(0, 137, 123, 0.1);
  background: var(--clr-white);
}

.form-group input::placeholder {
  color: var(--clr-text-muted);
}

.contact-info-card {
  background: var(--grad-navy);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  color: var(--clr-cream);
}

.contact-info-card h3 {
  color: var(--clr-gold);
  margin-bottom: var(--space-xl);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.contact-info-item:hover {
  background: rgba(255,255,255,0.05);
}

.contact-info-item .icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: rgba(212, 168, 67, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-item .details h4 {
  color: var(--clr-cream);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contact-info-item .details p {
  margin: 0;
  color: var(--clr-gold-light);
  font-size: 0.95rem;
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  border: 1px solid rgba(212, 168, 67, 0.1);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.blog-card-image {
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

.blog-card-content {
  padding: var(--space-xl);
}

.blog-card-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-base);
}

.blog-card:hover h3 {
  color: var(--clr-emerald-deep);
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--clr-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.blog-tag {
  padding: 4px 12px;
  background: rgba(0, 105, 92, 0.08);
  color: var(--clr-emerald-deep);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Blog Post Full Page */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.blog-post-header h1 {
  margin-bottom: var(--space-md);
}

.blog-post-content {
  font-size: 1.05rem;
  line-height: 1.9;
}

.blog-post-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.blog-post-content p {
  margin-bottom: var(--space-lg);
}

.blog-post-content ul, .blog-post-content ol {
  margin: var(--space-md) 0 var(--space-lg) var(--space-xl);
  list-style: disc;
}

.blog-post-content li {
  margin-bottom: var(--space-sm);
  color: var(--clr-text-light);
}

/* --- Footer --- */
.footer {
  background: var(--clr-navy-deep);
  color: var(--clr-cream);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-about .logo-text {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.footer-about p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--clr-gold);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--clr-gold);
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  padding: var(--space-xs) 0;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.footer-links a:hover {
  color: var(--clr-gold);
  padding-left: var(--space-sm);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--clr-cream);
  transition: all var(--transition-base);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link:hover {
  background: var(--clr-gold);
  color: var(--clr-navy-deep);
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* --- Page Banner (for inner pages) --- */
.page-banner {
  background: var(--grad-navy);
  padding: calc(var(--space-4xl) + 80px) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/islamic-pattern.png') center/cover;
  opacity: 0.06;
  pointer-events: none;
}

.page-banner h1 {
  color: var(--clr-white);
  position: relative;
  z-index: 1;
}

.page-banner p {
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: var(--space-md) auto 0;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--clr-gold);
  font-size: 0.9rem;
}

.breadcrumb span {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .about-content,
  .class-detail-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .class-detail:nth-child(even) .class-detail-content {
    direction: ltr;
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    transition: right var(--transition-base);
    z-index: 999;
    padding: var(--space-xl);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .fee-table-wrapper {
    overflow-x: auto;
  }

  .fee-table {
    min-width: 600px;
  }

  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero {
    min-height: 90vh;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-gold { color: var(--clr-gold); }
.text-emerald { color: var(--clr-emerald-deep); }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }
