/* =====================================================
   QuranClassPro - Frontend Theme
   Islamic Green + Gold Classic
   ===================================================== */

:root {
  --primary: #0d5c3f;
  --primary-dark: #094530;
  --primary-light: #1a8055;
  --gold: #d4af37;
  --gold-light: #e8c963;
  --gold-dark: #b8941f;
  --cream: #fdf8ed;
  --dark: #1a1a1a;
  --text: #333;
  --muted: #6c757d;
  --light: #f8f9fa;
  --white: #ffffff;
  --border: #e9ecef;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #0dcaf0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all .3s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  margin: 0;
  overflow-x: hidden;
}

/* RTL Support */
html[dir="rtl"] body { font-family: 'Noto Naskh Arabic', 'Jameel Noori Nastaleeq', 'Tahoma', serif; }
html[dir="rtl"] .text-start { text-align: right !important; }
html[dir="rtl"] .text-end { text-align: left !important; }
html[dir="rtl"] .me-1, html[dir="rtl"] .me-2, html[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: .5rem !important; }

/* Typography */
h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', 'Georgia', serif; color: var(--dark); font-weight: 700; }
h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

/* Buttons */
.btn { border-radius: var(--radius-sm); padding: 10px 24px; font-weight: 600; transition: var(--transition); border: 2px solid transparent; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); color:#fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-light { border: 2px solid #fff; color:#fff; }
.btn-outline-light:hover { background: #fff; color: var(--primary); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* Navbar */
.navbar { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); padding: 16px 0; box-shadow: 0 2px 12px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 1030; }
.navbar-brand { font-family: 'Playfair Display', serif; font-size: 1.65rem; font-weight: 800; color: var(--primary) !important; display: flex; align-items: center; gap: 10px; }
.navbar-brand i { color: var(--gold); font-size: 1.85rem; }
.nav-link { color: var(--dark) !important; font-weight: 500; margin: 0 4px; position: relative; padding: 8px 14px !important; }
.nav-link:hover { color: var(--primary) !important; }
.nav-link.active { color: var(--primary) !important; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 14px; right: 14px; height: 3px; background: var(--gold); border-radius: 2px; }
.navbar .btn { margin-left: 8px; }

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 0 L60 40 L100 50 L60 60 L50 100 L40 60 L0 50 L40 40 Z' fill='%23ffffff' opacity='0.04'/></svg>") repeat;
  background-size: 120px;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: 3.4rem; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.2rem; opacity: .95; margin-bottom: 30px; max-width: 600px; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2.5rem; font-weight: 800; color: var(--gold); font-family: 'Playfair Display', serif; }
.hero-stat .lbl { font-size: .95rem; opacity: .9; }

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .sub { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: .9rem; margin-bottom: 12px; display: block; }
.section-title h2 { font-size: 2.4rem; }
.section-title p { color: var(--muted); max-width: 700px; margin: 12px auto 0; }

/* Cards */
.card-feature { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--border); height: 100%; }
.card-feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.card-feature .icon-wrap { width: 70px; height: 70px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 20px; }
.card-feature h4 { margin-bottom: 12px; }

/* Course Cards */
.course-card { background:#fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; display: flex; flex-direction: column; border: 1px solid var(--border); }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-card .img-wrap { height: 200px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 4rem; position: relative; }
.course-card .img-wrap img { width:100%; height:100%; object-fit: cover; }
.course-card .level-badge { position: absolute; top: 12px; right: 12px; background: var(--gold); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; text-transform: uppercase; }
.course-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-card h4 { font-size: 1.25rem; margin-bottom: 10px; }
.course-card .desc { color: var(--muted); font-size: .95rem; margin-bottom: 16px; flex: 1; }
.course-card .meta { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); }
.course-card .price { color: var(--primary); font-weight: 800; font-size: 1.4rem; }
.course-card .price small { font-size: .75rem; color: var(--muted); font-weight: 400; }

/* Testimonials */
.testimonial { background: var(--cream); padding: 30px; border-radius: var(--radius); border-left: 4px solid var(--gold); height: 100%; position: relative; }
.testimonial .quote-icon { color: var(--gold); font-size: 2.5rem; opacity: .3; position: absolute; top: 20px; right: 24px; }
.testimonial .msg { font-style: italic; color: #555; margin-bottom: 20px; line-height: 1.7; }
.testimonial .author { display: flex; align-items: center; gap: 14px; }
.testimonial .avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testimonial .name { font-weight: 700; color: var(--dark); }
.testimonial .country { color: var(--muted); font-size: .85rem; }
.stars { color: var(--gold); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 70px 0; text-align: center; border-radius: var(--radius-lg); margin: 40px 0; }
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { font-size: 1.15rem; opacity: .95; margin-bottom: 26px; }

/* Footer */
.site-footer { background: #0a3826; color: #cfd8d3; padding: 60px 0 24px; }
.site-footer h5 { color: #fff; margin-bottom: 18px; font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.site-footer a { color: #cfd8d3; display: block; padding: 5px 0; transition: var(--transition); }
.site-footer a:hover { color: var(--gold); padding-left: 6px; }
.site-footer .brand { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.5rem; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin-top: 40px; text-align: center; font-size: .9rem; }
.social-icons a { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); align-items: center; justify-content: center; margin-right: 8px; }
.social-icons a:hover { background: var(--gold); color: #fff; padding-left: 0; }

/* Forms */
.form-control, .form-select { border-radius: var(--radius-sm); padding: 12px 16px; border: 1.5px solid var(--border); transition: var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(13,92,63,.1); }
.form-label { font-weight: 600; color: var(--dark); margin-bottom: 8px; }

/* WhatsApp floating */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 6px 20px rgba(37,211,102,.5); z-index: 999; transition: var(--transition); animation: pulse 2s infinite; }
.wa-float:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); } 70% { box-shadow: 0 0 0 20px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* Breadcrumb / Page Header */
.page-header { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 60px 0; text-align: center; position: relative; }
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header .breadcrumb-nav { color: rgba(255,255,255,.85); }
.page-header .breadcrumb-nav a { color: var(--gold); }

/* Blog */
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card .img { height: 200px; background: var(--cream); }
.blog-card .img img { width:100%; height:100%; object-fit: cover; }
.blog-card .body { padding: 20px; }
.blog-card .cat { color: var(--gold); font-weight: 600; font-size: .85rem; text-transform: uppercase; }
.blog-card h5 { margin: 10px 0; }
.blog-card .meta { color: var(--muted); font-size: .85rem; margin-top: 10px; }

/* FAQ */
.faq-accordion .accordion-button { font-weight: 600; padding: 18px 20px; }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--primary); color: #fff; }
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-item { border-radius: var(--radius-sm) !important; margin-bottom: 10px; overflow: hidden; border: 1px solid var(--border); }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 50px 0 70px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  section { padding: 50px 0; }
  .section-title h2 { font-size: 1.8rem; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 1.8rem; }
}

/* Alerts */
.alert { border-radius: var(--radius-sm); border: none; padding: 14px 18px; }
.alert-success { background: #d1f0e2; color: #094530; }
.alert-danger { background: #f8d7da; color: #721c24; }

/* Misc */
.bg-cream { background: var(--cream); }
.text-gold { color: var(--gold); }
.text-primary-dark { color: var(--primary-dark); }
.divider-gold { width: 60px; height: 3px; background: var(--gold); margin: 0 auto 20px; border-radius: 2px; }
