/*
Theme Name: Al Tajweed Quran Institute
Theme URI: https://quran-institute.online/
Author: Al Tajweed Institute
Author URI: https://quran-institute.online/
Description: Professional SEO-optimized WordPress theme for Al Tajweed Quran Institute. Includes full homepage, location pages (USA, NY, TX, CA), courses, testimonials, pricing, FAQ, blog, and contact sections. Optimized for US search rankings with Schema.org markup, Core Web Vitals performance, and mobile-first design.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
License URI: https://quran-institute.online/
Text Domain: altajweed
Tags: online-education, islamic, quran, seo-optimized, responsive, accessibility-ready

*/

/* =====================================================
   DESIGN SYSTEM - CSS VARIABLES
===================================================== */
:root {
  --sky: #3aafa9;
  --sky-light: #6ec6c0;
  --sky-deep: #2b8a85;
  --sky-pale: #e8f7f6;
  --gold: #c9a84c;
  --gold-light: #e6c97a;
  --white: #ffffff;
  --off-white: #f9fdfd;
  --text-dark: #1a2e2d;
  --text-mid: #3d5a59;
  --text-light: #6b9291;
  --shadow: rgba(58,175,169,0.15);
  --font-heading: 'Amiri', serif;
  --font-body: 'Nunito', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 50px;
  --transition: all 0.3s ease;
}

/* =====================================================
   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);
  background: var(--off-white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--sky-deep);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* =====================================================
   LAYOUT
===================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  scroll-margin-top: 72px;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title span { color: var(--sky); }

.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--sky), var(--gold));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* =====================================================
   ANIMATIONS
===================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 40px rgba(37,211,102,0.7); }
}

@keyframes popIn {
  from { transform: scale(0.7) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* =====================================================
   BUTTONS
===================================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--text-dark);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(201,168,76,0.4);
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201,168,76,0.5);
  color: var(--text-dark);
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: white;
  color: white;
}

.btn-sky {
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  display: inline-block;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-sky:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: white;
}

/* =====================================================
   HEADER & NAVIGATION
===================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(58,175,169,0.15);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
#site-header.scrolled {
  box-shadow: 0 4px 24px var(--shadow);
}

#site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px var(--shadow);
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--sky-deep);
  font-weight: 700;
  line-height: 1.1;
}
.logo-sub {
  font-size: 0.65rem;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

#primary-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
#primary-nav a {
  color: var(--text-mid);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
#primary-nav a:hover {
  color: var(--sky);
  background: var(--sky-pale);
}
#primary-nav .btn-trial {
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: white !important;
  border-radius: var(--radius-full) !important;
  padding: 10px 22px !important;
  box-shadow: 0 4px 16px var(--shadow);
}
#primary-nav .btn-trial:hover {
  background: linear-gradient(135deg, var(--sky-deep), var(--sky-deep)) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--sky-deep);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 900px) {
  #primary-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 24px;
    flex-direction: column;
    border-bottom: 1px solid var(--sky-pale);
    box-shadow: 0 8px 24px var(--shadow);
    z-index: 999;
  }
  #primary-nav.open { display: flex; }
  .hamburger { display: flex; }
}

/* =====================================================
   POPUP / MODAL
===================================================== */
#popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,40,38,0.82);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: opacity 0.5s;
}
#popup-box {
  background: linear-gradient(135deg, #1a4a47 0%, #0d2e2c 60%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  max-width: 340px;
  width: 88%;
  text-align: center;
  position: relative;
  animation: popIn 0.6s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 0 60px rgba(201,168,76,0.25), 0 20px 48px rgba(0,0,0,0.4);
}
.popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
}
.popup-close:hover { color: white; }
.popup-moon {
  font-size: 44px;
  margin-bottom: 10px;
  display: block;
  animation: float 3s ease-in-out infinite;
}
.popup-arabic {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
#popup-box h2 {
  font-family: var(--font-heading);
  color: var(--gold-light);
  font-size: 1.5rem;
  margin-bottom: 10px;
}
#popup-box p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =====================================================
   BREADCRUMB
===================================================== */
.breadcrumb-nav {
  background: var(--sky-pale);
  padding: 12px 0;
  font-size: 0.85rem;
}
.breadcrumb-nav ol {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: wrap;
}
.breadcrumb-nav li { color: var(--text-light); }
.breadcrumb-nav li:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
}
.breadcrumb-nav a {
  color: var(--sky-deep);
  text-decoration: none;
}
.breadcrumb-nav a:hover { text-decoration: underline; }

/* =====================================================
   HERO SECTION
===================================================== */
#home {
  min-height: 100vh;
  background: linear-gradient(160deg, #0d3330 0%, #1a524e 40%, #2b8a85 80%, #3aafa9 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-geo {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(60deg, rgba(255,255,255,0.3) 0px, transparent 1px, transparent 60px, rgba(255,255,255,0.3) 61px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.3) 0px, transparent 1px, transparent 60px, rgba(255,255,255,0.3) 61px);
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.25), transparent 70%);
  pointer-events: none;
}
.hero-orb.o1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-orb.o2 { width: 300px; height: 300px; bottom: -50px; left: 10%; }

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-arabic {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  direction: rtl;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title .gold { color: var(--gold-light); }

.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-stack {
  position: relative;
  width: 340px;
  height: 380px;
}
.hero-quran-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  padding: 32px;
  position: absolute;
  width: 100%;
  animation: cardFloat 4s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}
.hero-quran-card.back {
  top: 20px;
  left: 20px;
  animation-delay: -2s;
  opacity: 0.6;
  transform: rotate(4deg);
}
.hero-quran-card.front {
  top: 0;
  left: 0;
  z-index: 2;
}
.quran-symbol {
  font-size: 5rem;
  text-align: center;
  display: block;
  margin-bottom: 12px;
}
.quran-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: white;
  text-align: center;
  margin-bottom: 8px;
}
.quran-card-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}
.floating-tag {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: tagFloat 3s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.tag1 { bottom: 20px; right: -20px; animation-delay: -1s; }
.tag2 { top: 10px; right: -30px; animation-delay: -0.5s; }
.tag3 { bottom: 80px; left: -30px; animation-delay: -1.5s; }
.tag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky);
  flex-shrink: 0;
}
.tag-dot.gold { background: var(--gold); }
.tag-dot.green { background: #4caf50; }

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-desc { margin: 0 auto 36px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
}

/* =====================================================
   REVIEWS STATS BAR
===================================================== */
#reviews {
  padding: 80px 0;
  background: linear-gradient(135deg, #fff9e6, white);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.review-stat { padding: 24px; }
.review-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 700;
}
.review-label {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-top: 8px;
  font-weight: 600;
}
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   ABOUT SECTION
===================================================== */
#about {
  padding: 100px 0;
  background: white;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
  height: 420px;
}
.about-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--sky-pale), #d4efed);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
}
.about-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(58,175,169,0.05) 20px, rgba(58,175,169,0.05) 40px);
}
.about-badge-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 12px 40px var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}
.badge-icon { font-size: 1.5rem; }
.badge-label { font-size: 0.7rem; color: var(--text-light); }
.about-badge-card.b1 { bottom: 24px; left: -20px; }
.about-badge-card.b2 { top: 32px; right: -20px; }
.about-badge-card.b3 { top: 50%; right: -30px; transform: translateY(-50%); }

.about-mission {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 24px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--sky-pale);
  border-radius: 12px;
  border-left: 3px solid var(--sky);
  transition: transform 0.2s;
}
.feature-item:hover { transform: translateX(4px); }
.fi-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.fi-text { font-size: 0.88rem; font-weight: 600; color: var(--text-dark); line-height: 1.3; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 280px; }
  .about-badge-card.b2, .about-badge-card.b3 { display: none; }
}

/* =====================================================
   LOCATIONS SECTION
===================================================== */
#locations {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--sky-pale), white);
}
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.location-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
  border: 2px solid transparent;
}
.location-card:hover {
  transform: translateY(-4px);
  border-color: var(--sky);
  box-shadow: 0 12px 32px var(--shadow);
}
.location-flag { font-size: 2.5rem; margin-bottom: 12px; }
.location-name { font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.location-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; margin-bottom: 16px; }
.location-link {
  color: var(--sky-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.location-link:hover { color: var(--sky); }

@media (max-width: 900px) { .locations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .locations-grid { grid-template-columns: 1fr; } }

/* =====================================================
   WHY CHOOSE US
===================================================== */
#why-us {
  padding: 100px 0;
  background: white;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 20px;
  background: var(--sky-pale);
  transition: transform 0.3s;
}
.why-card:hover { transform: translateY(-6px); }
.why-icon { font-size: 3rem; margin-bottom: 20px; }
.why-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.why-desc { color: var(--text-mid); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* =====================================================
   COURSES SECTION
===================================================== */
#courses {
  padding: 100px 0;
  background: var(--off-white);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px var(--shadow);
}
.course-top {
  padding: 28px 24px 20px;
  background: linear-gradient(135deg, var(--sky-pale), white);
  border-bottom: 1px solid rgba(58,175,169,0.1);
}
.course-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.course-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.course-level {
  display: inline-block;
  background: var(--sky-pale);
  color: var(--sky-deep);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.course-body {
  padding: 20px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.course-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}
.course-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-mid);
  font-weight: 600;
}
.course-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
  text-align: center;
  display: block;
  text-decoration: none;
}
.course-btn:hover { opacity: 0.9; color: white; }

@media (max-width: 1000px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .courses-grid { grid-template-columns: 1fr; } }

/* Course Detail Modal */
.course-detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,40,38,0.8);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.course-detail-overlay.open { display: flex; }
.course-detail-box {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  animation: popIn 0.4s cubic-bezier(.34,1.56,.64,1);
}
.cd-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-light);
  background: none;
  border: none;
}
.cd-close:hover { color: var(--text-dark); }
.cd-icon { font-size: 3rem; margin-bottom: 12px; }
.cd-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.cd-tag {
  display: inline-block;
  background: var(--sky-pale);
  color: var(--sky-deep);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.cd-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-mid);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 24px;
}
.cd-list { list-style: none; }
.cd-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--sky-pale);
}
.cd-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--sky);
  font-size: 0.7rem;
  top: 9px;
}
.cd-meta-row { display: flex; gap: 20px; flex-wrap: wrap; margin: 16px 0; }
.cd-meta {
  background: var(--sky-pale);
  border-radius: 10px;
  padding: 12px 16px;
  flex: 1;
  min-width: 120px;
}
.cd-meta-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--sky-deep);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cd-meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
}
.btn-cta-full {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--text-dark);
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 24px;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
}
.btn-cta-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
  color: var(--text-dark);
}

/* =====================================================
   TEACHERS SECTION
===================================================== */
#teachers {
  padding: 100px 0;
  background: var(--off-white);
}
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.teacher-card {
  background: white;
  border: 1px solid rgba(58,175,169,0.12);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--shadow);
}
.teacher-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 28px auto 14px;
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.teacher-avatar.female { background: linear-gradient(135deg, #ffd6e7, #ffb3c6); }
.teacher-avatar.male { background: linear-gradient(135deg, #c8f4f1, #8de0da); }
.teacher-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 4px;
  padding: 0 12px;
}
.teacher-role { font-size: 0.8rem; color: var(--text-light); margin-bottom: 12px; }
.teacher-badges {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 12px 16px;
}
.t-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sky-pale);
  color: var(--sky-deep);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
}
.t-badge.gold-b { background: #fef8e8; color: #9a7320; }
.teacher-exp { font-size: 0.78rem; color: var(--text-light); padding-bottom: 20px; }

@media (max-width: 1000px) { .teachers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .teachers-grid { grid-template-columns: 1fr; } }

/* =====================================================
   TESTIMONIALS
===================================================== */
#testimonials {
  padding: 100px 0;
  background: linear-gradient(160deg, #0d3330, #1a524e);
}
#testimonials .section-title { color: white; }
#testimonials .section-sub { color: rgba(255,255,255,0.7); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 28px 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, background 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.14);
}
.stars {
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 1rem;
  letter-spacing: 2px;
}
.testi-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testi-name { font-weight: 700; color: white; font-size: 0.9rem; }
.testi-loc { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* =====================================================
   PRICING
===================================================== */
#pricing {
  padding: 100px 0;
  background: var(--off-white);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--sky-light);
  box-shadow: 0 16px 48px var(--shadow);
}
.pricing-card.featured {
  border-color: var(--sky);
  background: linear-gradient(135deg, var(--sky-pale), white);
}
.featured-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: white;
  padding: 4px 20px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-name {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 12px;
}
.plan-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.plan-price span {
  font-size: 1.2rem;
  color: var(--text-light);
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}
.plan-period { font-size: 0.8rem; color: var(--text-light); margin-bottom: 24px; }
.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  flex-grow: 1;
}
.plan-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--sky-pale);
  font-size: 0.88rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-features li::before {
  content: '✓';
  color: var(--sky);
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.btn-plan {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--sky);
  color: var(--sky-deep);
  background: transparent;
  text-decoration: none;
  display: block;
  margin-top: auto;
  text-align: center;
}
.btn-plan.filled {
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: white;
  border-color: transparent;
}
.btn-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; } }

/* =====================================================
   CONTACT SECTION
===================================================== */
#contact {
  padding: 100px 0;
  background: white;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.contact-info p { color: var(--text-light); line-height: 1.7; margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--sky-pale);
  border-radius: 14px;
  text-decoration: none;
  transition: var(--transition);
  color: var(--text-dark);
}
.contact-item:hover {
  background: #d4efed;
  transform: translateX(4px);
  color: var(--text-dark);
}
.ci-icon { font-size: 1.4rem; flex-shrink: 0; }
.ci-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
}
.ci-value { font-weight: 700; color: var(--text-dark); font-size: 0.95rem; }

.contact-form-wrap {
  background: var(--off-white);
  border-radius: 20px;
  padding: 36px 32px;
}
.form-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-mid);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(58,175,169,0.2);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(58,175,169,0.1);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: white;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 8px;
  transition: var(--transition);
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* =====================================================
   BLOG SECTION
===================================================== */
#blog { padding: 100px 0; background: var(--off-white); }
.blog-categories {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.blog-cat {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(58,175,169,0.3);
  color: var(--text-mid);
  transition: var(--transition);
  background: white;
}
.blog-cat:hover,
.blog-cat.active {
  background: var(--sky);
  color: white;
  border-color: var(--sky);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow);
}
.blog-img {
  height: 160px;
  background: linear-gradient(135deg, var(--sky-pale), #c8f0ee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.blog-body { padding: 24px; }
.blog-tag {
  display: inline-block;
  background: var(--sky-pale);
  color: var(--sky-deep);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.blog-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-excerpt { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.blog-meta { font-size: 0.75rem; color: var(--text-light); display: flex; align-items: center; gap: 10px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* =====================================================
   FAQ SECTION
===================================================== */
#faq { padding: 100px 0; background: white; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(58,175,169,0.15); overflow: hidden; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  transition: color 0.2s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-question:hover { color: var(--sky); }
.faq-icon {
  width: 32px;
  height: 32px;
  background: var(--sky-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-deep);
  font-size: 1.2rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  background: var(--sky);
  color: white;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }

/* =====================================================
   ADMISSION / FREE TRIAL FORM
===================================================== */
#admission {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--sky-pale), white);
}
.admission-box {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 8px 48px var(--shadow);
}
@media (max-width: 600px) { .admission-box { padding: 32px 24px; } }

/* =====================================================
   FOOTER
===================================================== */
#site-footer {
  background: #0a2220;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: white;
  margin-bottom: 8px;
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.footer-arabic-quote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  direction: rtl;
  margin-bottom: 8px;
}
.footer-arabic-trans {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}
.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--sky-light); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-item a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-contact-item a:hover { color: var(--sky-light); }
.footer-bottom {
  margin-top: 48px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: var(--sky-light); text-decoration: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================================================
   FLOATING BUTTONS
===================================================== */
.float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  z-index: 200;
  text-decoration: none;
  color: white;
  animation: waPulse 2s ease-in-out infinite;
  transition: transform 0.2s;
}
.float-wa:hover {
  transform: scale(1.1);
  animation: none;
  color: white;
}
.float-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: white;
  border: 2px solid var(--sky-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--sky-deep);
  box-shadow: 0 4px 16px var(--shadow);
  z-index: 200;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
}
.float-top.visible { opacity: 1; pointer-events: auto; }
.float-top:hover { background: var(--sky); color: white; border-color: var(--sky); }

/* =====================================================
   TOAST NOTIFICATION
===================================================== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text-dark);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9000;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =====================================================
   WORDPRESS NATIVE STYLES
===================================================== */
.wp-block-image { margin: 2rem 0; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-light); text-align: center; margin-top: 8px; }

/* Single post / page styles */
.entry-content {
  max-width: 800px;
  margin: 120px auto 60px;
  padding: 0 24px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-mid);
}
.entry-content h1, .entry-content h2, .entry-content h3 {
  color: var(--text-dark);
  margin: 2rem 0 1rem;
}
.entry-content p { margin-bottom: 1.4rem; }
.entry-content ul, .entry-content ol {
  margin: 1rem 0 1.4rem 2rem;
  list-style: disc;
}
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content a { color: var(--sky-deep); text-decoration: underline; }
.entry-content a:hover { color: var(--sky); }

/* Comments */
.comments-area { max-width: 800px; margin: 0 auto; padding: 40px 24px; }
