/* ==========================================================================
   School Al Quran - Premium Homepage V2 Stylesheet (home2.css)
   Palette: Deep Green (#0b3b33 / #0a2824), Gold (#d4af37 / #f5d27a), Cream (#faf6ec)
   Aesthetic: Calm, Minimal Luxury, Generous Whitespace, No Crowding
   ========================================================================== */

:root {
  --h2-green-deep: #0a2824;
  --h2-green-rich: #0b3b33;
  --h2-green-emerald: #0f4a40;
  --h2-green-subtle: rgba(11, 59, 51, 0.06);
  --h2-green-border: rgba(11, 59, 51, 0.12);
  
  --h2-gold: #d4af37;
  --h2-gold-light: #f5d27a;
  --h2-gold-glow: rgba(212, 175, 55, 0.28);
  --h2-gold-border: rgba(212, 175, 55, 0.32);
  --h2-gold-border-hover: rgba(212, 175, 55, 0.7);

  --h2-cream: #faf6ec;
  --h2-cream-warm: #f6f0df;
  --h2-cream-light: #fffdfa;
  --h2-cream-card: rgba(255, 255, 255, 0.72);
  --h2-cream-text: #faf6ec;

  --h2-text-dark: #1a2723;
  --h2-text-body: #3c4c47;
  --h2-text-muted: #647570;

  --h2-font-serif: 'Playfair Display', Georgia, serif;
  --h2-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --h2-font-arabic: 'Amiri Quran', serif;
}

/* Page baseline resets */
body.home2-page {
  background-color: var(--h2-cream);
  color: var(--h2-text-body);
  font-family: var(--h2-font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header Integration */
body.home2-page .header-area {
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

body.home2-page .top-header-area {
  background: rgba(10, 40, 36, 0.75);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

body.home2-page .nav-area .navbar-area {
  background: transparent;
  transition: all 0.3s ease;
}

body.home2-page .nav-area .navbar-area.is-sticky {
  background: rgba(10, 40, 36, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

body.home2-page .nav-area .main-nav nav .navbar-nav .nav-item a {
  color: rgba(250, 246, 236, 0.92);
  font-family: var(--h2-font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2px;
}

body.home2-page .nav-area .main-nav nav .navbar-nav .nav-item a:hover,
body.home2-page .nav-area .main-nav nav .navbar-nav .nav-item a.active {
  color: var(--h2-gold-light);
}

body.home2-page .nav-area .main-nav nav .navbar-nav .nav-item .dropdown-menu {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 12px 32px rgba(10, 40, 36, 0.15);
}

body.home2-page .nav-area .main-nav nav .navbar-nav .nav-item .dropdown-menu li a {
  color: #1a2723;
  font-family: var(--h2-font-sans);
}

body.home2-page .nav-area .main-nav nav .navbar-nav .nav-item .dropdown-menu li a:hover {
  background-color: var(--h2-cream);
  color: var(--h2-green-rich);
}

body.home2-page .get-quote .default-btn {
  background: linear-gradient(135deg, #d4af37 0%, #b89327 100%) !important;
  color: #0a2824 !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  border: 1px solid #f5d27a !important;
  padding: 10px 22px !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
  transition: all 0.3s ease;
}

body.home2-page .get-quote .default-btn:hover {
  background: linear-gradient(135deg, #f5d27a 0%, #d4af37 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.h2-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 50% 30%, #0f4a40 0%, #0a2824 100%);
  padding-top: 175px;
  padding-bottom: 75px;
  overflow: hidden;
  z-index: 1;
}

/* Girih 8-point-star geometric pattern overlay (inline SVG data-URI at 6% opacity) */
.h2-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 L48 16 L64 8 L56 24 L72 32 L56 40 L72 48 L56 56 L64 72 L48 64 L40 80 L32 64 L16 72 L24 56 L8 48 L24 40 L8 32 L24 24 L16 8 L32 16 Z' fill='none' stroke='%23d4af37' stroke-width='1.1' stroke-linejoin='round'/%3E%3Cpath d='M0 40 L8 32 L24 40 L8 48 Z' fill='none' stroke='%23d4af37' stroke-width='0.7'/%3E%3Cpath d='M80 40 L72 32 L56 40 L72 48 Z' fill='none' stroke='%23d4af37' stroke-width='0.7'/%3E%3Cpath d='M40 0 L32 8 L40 24 L48 8 Z' fill='none' stroke='%23d4af37' stroke-width='0.7'/%3E%3Cpath d='M40 80 L32 72 L40 56 L48 72 Z' fill='none' stroke='%23d4af37' stroke-width='0.7'/%3E%3Ccircle cx='40' cy='40' r='5' fill='none' stroke='%23d4af37' stroke-width='0.7'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  background-repeat: repeat;
  opacity: 0.06;
  animation: h2GirihDrift 120s linear infinite;
  z-index: 1;
}

@keyframes h2GirihDrift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 960px 960px;
  }
}

.h2-hero .container {
  position: relative;
  z-index: 2;
}

.h2-hero-left {
  padding-right: 20px;
}

/* Small gold Bismillah */
.h2-bismillah {
  display: inline-block;
  font-family: var(--h2-font-arabic);
  font-size: 21px;
  color: var(--h2-gold-light);
  line-height: 1.8;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}

/* Exactly one H1 */
.h2-hero-title {
  font-family: var(--h2-font-serif);
  font-size: 46px;
  line-height: 1.22;
  font-weight: 600;
  color: var(--h2-cream-text);
  margin-bottom: 22px;
  letter-spacing: -0.3px;
}

.h2-hero-subline {
  font-family: var(--h2-font-sans);
  font-size: 17.5px;
  line-height: 1.68;
  color: rgba(250, 246, 236, 0.88);
  margin-bottom: 32px;
  max-width: 540px;
}

/* Buttons */
.h2-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}

.h2-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #d4af37 0%, #c19b26 100%);
  color: #0a2824 !important;
  font-family: var(--h2-font-sans);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 8px;
  border: 1px solid #f5d27a;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.28);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.h2-btn-primary:hover {
  background: linear-gradient(135deg, #f5d27a 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.38);
  color: #0a2824 !important;
}

.h2-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--h2-cream-text) !important;
  font-family: var(--h2-font-sans);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.h2-btn-outline:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--h2-gold-light);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.h2-btn-outline i {
  font-size: 20px;
  color: #25d366;
}

/* Trust ticks under buttons */
.h2-trust-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.h2-tick-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 246, 236, 0.85);
  letter-spacing: 0.1px;
}

.h2-tick-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--h2-gold-light);
  color: var(--h2-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* Right Column: 3D Quran & Hadith */
.h2-hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#quran3d {
  width: 100%;
  height: 520px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.ayat-under {
  text-align: center;
  margin-top: 14px;
  padding: 16px 22px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  max-width: 500px;
  width: 100%;
}

.ayat-under .hadith-ar {
  font-family: var(--h2-font-arabic);
  font-size: 22px;
  line-height: 1.8;
  color: var(--h2-gold-light);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.ayat-under .hadith-en {
  font-family: var(--h2-font-sans);
  font-size: 14px;
  font-style: italic;
  color: rgba(250, 246, 236, 0.9);
  line-height: 1.55;
  margin-bottom: 4px;
}

.ayat-under .hadith-src {
  font-family: var(--h2-font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.78);
}

/* ==========================================================================
   2. COURSES SECTION
   ========================================================================== */
.h2-section {
  padding: 100px 0;
  position: relative;
}

.h2-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.h2-kicker {
  display: inline-block;
  font-family: var(--h2-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--h2-gold);
  margin-bottom: 10px;
}

.h2-section-title {
  font-family: var(--h2-font-serif);
  font-size: 38px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--h2-green-deep);
  margin-bottom: 16px;
}

.h2-section-desc {
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--h2-text-muted);
  margin: 0 auto;
}

/* 5 Glassmorphism Cards: 3 on top row, 2 centered on second row */
.h2-courses-grid {
  display: flex;
  flex-wrap: wrap;
  row-gap: 28px;
}

.h2-courses-grid-center {
  justify-content: center;
}

.h2-course-card {
  background: var(--h2-cream-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--h2-gold-border);
  border-radius: 16px;
  padding: 36px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(11, 59, 51, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}

/* Lift and tilt slightly in 3D on hover */
.h2-course-card:hover {
  transform: perspective(800px) rotateX(4deg) translateY(-8px);
  border-color: var(--h2-gold-border-hover);
  box-shadow: 0 22px 45px rgba(11, 59, 51, 0.12), 0 4px 12px rgba(212, 175, 55, 0.12);
}

.h2-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(11, 59, 51, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--h2-green-rich);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 22px;
  transition: all 0.35s ease;
}

.h2-course-card:hover .h2-card-icon {
  background: var(--h2-green-rich);
  color: var(--h2-gold-light);
  border-color: var(--h2-gold);
}

.h2-card-title {
  font-family: var(--h2-font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--h2-green-deep);
  margin-bottom: 12px;
}

.h2-card-text {
  font-size: 14.8px;
  line-height: 1.62;
  color: var(--h2-text-body);
  margin-bottom: 24px;
  flex-grow: 1;
}

.h2-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--h2-font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--h2-green-rich);
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.h2-card-link i {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.h2-card-link:hover {
  color: var(--h2-gold);
}

.h2-card-link:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   3. WHY FAMILIES CHOOSE US
   ========================================================================== */
.h2-section-light {
  background: #ffffff;
  border-top: 1px solid rgba(11, 59, 51, 0.06);
  border-bottom: 1px solid rgba(11, 59, 51, 0.06);
}

.h2-why-card {
  background: var(--h2-cream);
  border: 1px solid rgba(11, 59, 51, 0.08);
  border-radius: 14px;
  padding: 30px 24px;
  height: 100%;
  transition: all 0.3s ease;
}

.h2-why-card:hover {
  transform: translateY(-4px);
  border-color: var(--h2-gold-border);
  box-shadow: 0 12px 30px rgba(11, 59, 51, 0.07);
}

.h2-why-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(11, 59, 51, 0.08);
  color: var(--h2-green-rich);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.h2-why-card:hover .h2-why-icon-wrap {
  background: var(--h2-green-rich);
  color: var(--h2-gold-light);
}

.h2-why-title {
  font-family: var(--h2-font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--h2-green-deep);
  margin-bottom: 10px;
}

.h2-why-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--h2-text-body);
  margin: 0;
}

/* Teacher Spotlight Paragraph Card (No invented numbers, genuine facts) */
.h2-teacher-box {
  margin-top: 50px;
  background: linear-gradient(135deg, rgba(11, 59, 51, 0.04) 0%, rgba(212, 175, 55, 0.06) 100%);
  border: 1px solid var(--h2-gold-border);
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.h2-teacher-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--h2-green-deep);
  border: 2px solid var(--h2-gold);
  color: var(--h2-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  flex-shrink: 0;
}

.h2-teacher-content {
  flex-grow: 1;
}

.h2-teacher-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--h2-gold);
  margin-bottom: 6px;
}

.h2-teacher-heading {
  font-family: var(--h2-font-serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--h2-green-deep);
  margin-bottom: 10px;
}

.h2-teacher-paragraph {
  font-size: 15px;
  line-height: 1.7;
  color: var(--h2-text-body);
  margin: 0;
}

/* ==========================================================================
   4. HOW IT WORKS
   ========================================================================== */
.h2-step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--h2-green-border);
  border-radius: 16px;
  padding: 40px 32px;
  height: 100%;
  box-shadow: 0 8px 24px rgba(11, 59, 51, 0.04);
  transition: all 0.3s ease;
}

.h2-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--h2-gold-border);
  box-shadow: 0 16px 36px rgba(11, 59, 51, 0.08);
}

.h2-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--h2-green-rich);
  color: var(--h2-gold-light);
  font-family: var(--h2-font-serif);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(11, 59, 51, 0.2);
}

.h2-step-title {
  font-family: var(--h2-font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--h2-green-deep);
  margin-bottom: 12px;
}

.h2-step-desc {
  font-size: 14.8px;
  line-height: 1.62;
  color: var(--h2-text-muted);
  margin: 0;
}

/* ==========================================================================
   5. FEEDBACK FROM PARENTS (Calm, honest single card to Facebook)
   ========================================================================== */
.h2-feedback-section {
  background: var(--h2-cream);
  padding: 85px 0;
}

.h2-feedback-calm-card {
  background: #ffffff;
  border: 1px solid var(--h2-gold-border);
  border-radius: 20px;
  padding: 50px 40px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 14px 40px rgba(11, 59, 51, 0.06);
}

.h2-feedback-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(24, 119, 242, 0.08);
  color: #1877f2;
  font-size: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.h2-feedback-heading {
  font-family: var(--h2-font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--h2-green-deep);
  margin-bottom: 14px;
}

.h2-feedback-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--h2-text-muted);
  max-width: 620px;
  margin: 0 auto 28px auto;
}

.h2-btn-fb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1877f2;
  color: #ffffff !important;
  font-family: var(--h2-font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.25);
  transition: all 0.3s ease;
}

.h2-btn-fb:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.35);
  color: #ffffff !important;
}

.h2-btn-fb i {
  font-size: 20px;
}

/* ==========================================================================
   6. FINAL CTA BAND (Deep Green)
   ========================================================================== */
.h2-cta-band {
  background: radial-gradient(ellipse at 50% 50%, #0f4a40 0%, #0a2824 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--h2-cream-text);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.h2-cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 L48 16 L64 8 L56 24 L72 32 L56 40 L72 48 L56 56 L64 72 L48 64 L40 80 L32 64 L16 72 L24 56 L8 48 L24 40 L8 32 L24 24 L16 8 L32 16 Z' fill='none' stroke='%23d4af37' stroke-width='1.1' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  opacity: 0.04;
}

.h2-cta-band .container {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.h2-cta-title {
  font-family: var(--h2-font-serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--h2-cream-text);
  margin-bottom: 18px;
  line-height: 1.25;
}

.h2-cta-sub {
  font-size: 17px;
  line-height: 1.68;
  color: rgba(250, 246, 236, 0.88);
  margin: 0 auto 34px auto;
  max-width: 620px;
}

.h2-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   7. MOTION & SCROLL REVEAL (IntersectionObserver + Reduced Motion)
   ========================================================================== */
.h2-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.h2-reveal.h2-visible {
  opacity: 1;
  transform: translateY(0);
}

.h2-delay-1 { transition-delay: 0.08s; }
.h2-delay-2 { transition-delay: 0.16s; }
.h2-delay-3 { transition-delay: 0.24s; }
.h2-delay-4 { transition-delay: 0.32s; }
.h2-delay-5 { transition-delay: 0.40s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .h2-hero::before {
    animation: none !important;
  }
  .h2-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .h2-course-card:hover {
    transform: none !important;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (1920, 1440, 1280, 1024, 768, 414, 390, 360 px)
   ========================================================================== */
@media (max-width: 1199px) {
  .h2-hero-title {
    font-size: 40px;
  }
  #quran3d {
    height: 460px;
  }
}

@media (max-width: 991px) {
  .h2-hero {
    padding-top: 150px;
    padding-bottom: 60px;
    min-height: auto;
  }
  .h2-hero-left {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }
  .h2-hero-title {
    font-size: 34px;
  }
  .h2-hero-subline {
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
  }
  .h2-btn-group {
    justify-content: center;
  }
  .h2-trust-ticks {
    justify-content: center;
  }
  #quran3d {
    height: 320px;
  }
  .h2-teacher-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
    gap: 20px;
  }
  .h2-teacher-avatar {
    margin: 0 auto;
  }
  .h2-section {
    padding: 75px 0;
  }
  .h2-section-title,
  .h2-cta-title {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .h2-hero {
    padding-top: 135px;
    padding-bottom: 50px;
  }
  .h2-bismillah {
    font-size: 18px;
  }
  .h2-hero-title {
    font-size: 28px;
    line-height: 1.25;
  }
  .h2-hero-subline {
    font-size: 15px;
    line-height: 1.6;
  }
  .h2-btn-primary,
  .h2-btn-outline {
    width: 100%;
    padding: 13px 20px;
  }
  .h2-trust-ticks {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  #quran3d {
    height: 300px;
  }
  .ayat-under .hadith-ar {
    font-size: 19px;
  }
  .ayat-under .hadith-en {
    font-size: 13px;
  }
  .h2-section {
    padding: 60px 0;
  }
  .h2-section-title,
  .h2-cta-title {
    font-size: 26px;
  }
  .h2-section-desc {
    font-size: 15px;
  }
  .h2-feedback-calm-card {
    padding: 34px 20px;
  }
  .h2-feedback-heading {
    font-size: 23px;
  }
  .h2-btn-fb {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 414px) {
  .h2-hero-title {
    font-size: 25px;
  }
  .h2-card-title {
    font-size: 20px;
  }
  .h2-course-card {
    padding: 28px 20px;
  }
}

@media (max-width: 360px) {
  .h2-hero {
    padding-top: 125px;
  }
  .h2-hero-title {
    font-size: 23px;
  }
  .h2-hero-subline {
    font-size: 14px;
  }
}

/* ---- Typography & mobile polish ---- */
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main h1, main h2, main h3, main h4, main p, main a, main span, main li,
.h2-hero h1, section h1, section h2, section h3, section h4 { text-transform: none !important; }
section h1, section h2, section h3 { font-family: 'Playfair Display', Georgia, serif; letter-spacing: -0.01em; line-height: 1.2; }
section p, section li { line-height: 1.7; }
[lang="ar"], .bismillah, .ayat-under [dir="rtl"] { font-family: 'Amiri Quran', 'Amiri', serif !important; line-height: 1.9; }
@media (max-width: 575px) {
  .header-area .top-header-area .header-content-right li:first-child { display: none; }
  .header-area .top-header-area { padding: 6px 0; }
  .header-area .top-header-area li, .header-area .top-header-area a { font-size: 12.5px; }
  section h1 { font-size: 30px !important; }
  section h2 { font-size: 26px !important; }
  section h3 { font-size: 20px !important; }
  section p { font-size: 15px; }
  .container { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 360px) { section h1 { font-size: 27px !important; } }
