/* ═══════════════════════════════════════════════════════════════
   Qurban Africa — Main Stylesheet
   korbanafrica.com
   Custom HTML/PHP/MySQL Platform
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
/* Colors extracted from logo: deep forest #0B3A16, forest #1A5C2A,
   gold #C49600, cattle brown #6B3A1F.
   Reference images: img1 bg #203020, img2 bg #2D5030.
   No black / navy anywhere — pure logo forest greens. */
:root {
  --qa-dark:        #0D2E14;   /* deep forest replacing navy/black */
  --qa-dark-2:      #1A4D28;   /* rich forest for gradients */
  --qa-green:       #2D6A4F;
  --qa-green-light: #40916C;
  --qa-green-mid:   #1E5C38;
  --qa-gold:        #B8860B;
  --qa-gold-light:  #D4A017;
  --qa-brown:       #6B3A1F;
  --qa-cream:       #F5F3EB;
  --qa-white:       #FFFFFF;
  --qa-text:        #1C2B1E;
  --qa-text-muted:  #5A6B5D;
  --qa-border:      #D8D5C8;
  --qa-shadow:      0 2px 12px rgba(0,0,0,.08);
  --qa-shadow-lg:   0 8px 32px rgba(0,0,0,.14);
  --qa-radius:      8px;
  --qa-radius-lg:   14px;
  --font-main:      'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-arabic:    'Traditional Arabic', 'Arabic Typesetting', serif;
}

/* ─── RESET & BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.65;
  color: var(--qa-text);
  background: var(--qa-white);
  margin: 0;
}

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

a { color: var(--qa-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--qa-gold); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--qa-dark);
  margin-top: 0;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

/* ─── TOP BAR (Bismillah) ─────────────────────────────────────── */
.qa-topbar {
  background: var(--qa-dark);    /* deep forest green, was navy */
  color: var(--qa-gold);
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
  border-bottom: 1px solid rgba(184,134,11,.25);
}
.qa-topbar .topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.qa-topbar .arabic {
  font-family: var(--font-arabic);
  font-size: 14px;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .qa-topbar .topbar-inner { justify-content: center; flex-direction: column; gap: 2px; }
  .qa-topbar { font-size: 11px; }
}

/* ─── NAVBAR ──────────────────────────────────────────────────── */
.qa-navbar {
  background: var(--qa-white);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 2px solid rgba(184,134,11,.25);
}
.qa-navbar .navbar-brand img {
  height: 52px;   /* slightly smaller to give nav more room */
  width: auto;
}
.qa-navbar .nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--qa-dark) !important;
  padding: .5rem .65rem !important;   /* tighter horizontal padding */
  white-space: nowrap;                /* prevent any single item wrapping */
  transition: color .2s;
}
.qa-navbar .nav-link:hover,
.qa-navbar .nav-link.active { color: var(--qa-green) !important; }
.qa-navbar .dropdown-menu {
  border: none;
  box-shadow: var(--qa-shadow-lg);
  border-radius: var(--qa-radius);
  min-width: 220px;
}
.qa-navbar .dropdown-item {
  font-size: 14px;
  padding: .55rem 1.2rem;
  color: var(--qa-text);
}
.qa-navbar .dropdown-item:hover {
  background: var(--qa-cream);
  color: var(--qa-green);
}
.qa-navbar .nav-icons { display: flex; align-items: center; gap: 3px; }
.qa-navbar .nav-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--qa-dark);
  transition: background .2s, color .2s;
  font-size: 16px;
}
.qa-navbar .nav-icon-btn:hover { background: var(--qa-cream); color: var(--qa-green); }
.cart-badge {
  position: relative;
  display: inline-flex;
}
.cart-count {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--qa-gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 2px;
}

/* ─── BOOK NOW BUTTON ─────────────────────────────────────────── */
.btn-book-now {
  background: var(--qa-gold) !important;
  color: var(--qa-white) !important;
  border: none;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  transition: background .2s, transform .15s !important;
  white-space: nowrap;
}
.btn-book-now:hover {
  background: var(--qa-gold-light) !important;
  transform: translateY(-1px);
}

/* Footer logo chip — constrains the large logo PNG */
.footer-logo-chip img {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn-qa-primary {
  background: var(--qa-green);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--qa-radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-block;
  text-align: center;
}
.btn-qa-primary:hover { background: var(--qa-green-light); color: #fff; transform: translateY(-1px); }

.btn-qa-gold {
  background: var(--qa-gold);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--qa-radius);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-block;
  text-align: center;
}
.btn-qa-gold:hover { background: var(--qa-gold-light); color: #fff; transform: translateY(-1px); }

.btn-qa-outline {
  background: transparent;
  color: var(--qa-green);
  border: 2px solid var(--qa-green);
  padding: 9px 22px;
  border-radius: var(--qa-radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  display: inline-block;
  text-align: center;
}
.btn-qa-outline:hover { background: var(--qa-green); color: #fff; }

/* ─── HERO ────────────────────────────────────────────────────── */
.qa-hero {
  background: linear-gradient(135deg, var(--qa-dark) 0%, var(--qa-dark-2) 50%, var(--qa-green-mid) 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
/* Subtle leaf-pattern overlay (same feel as reference image 2) */
.qa-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(45,106,79,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(184,134,11,.08) 0%, transparent 50%);
  pointer-events: none;
}
/* Logo watermark — centered in hero, 4× bigger than before, tasteful */
.qa-hero::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background-image: url('/assets/images/Qurban_africa_logo-o1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: .10;
  pointer-events: none;
  z-index: 0;
}
.qa-hero .hero-content { position: relative; z-index: 2; }
.qa-hero h1 { color: #fff; margin-bottom: 16px; }
.qa-hero .hero-sub { color: rgba(255,255,255,.88); font-size: 1.05rem; max-width: 560px; margin-bottom: 28px; }
.qa-hero .hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.qa-hero .ayah {
  color: var(--qa-gold-light);
  font-size: 13px;
  font-style: italic;
  margin-top: 24px;
  max-width: 520px;
  opacity: .95;
}

/* Hero video column */
.hero-video-col {
  position: relative; z-index: 2;
}
.hero-video-wrap {
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(184,134,11,.25);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.hero-video-wrap iframe {
  width: 100%;
  height: 320px;
  display: block;
  border: none;
}
@media (min-width: 992px) {
  .hero-video-wrap iframe { height: 360px; }
}
@media (max-width: 991px) {
  .hero-video-col { margin-top: 28px; }
  .hero-video-wrap iframe { height: 240px; }
  .qa-hero::after { display: none; }
}

/* Ticker */
.qa-ticker {
  background: var(--qa-gold);
  color: var(--qa-dark);
  padding: 8px 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
}
.ticker-track {
  display: flex;
  animation: ticker-scroll 25s linear infinite;
  white-space: nowrap;
}
.ticker-track span { padding: 0 24px; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SECTION COMMONS ─────────────────────────────────────────── */
.qa-section { padding: 72px 0; }
.qa-section-sm { padding: 48px 0; }
.qa-section-dark { background: var(--qa-dark); color: #fff; }
.qa-section-cream { background: var(--qa-cream); }
.qa-section-title { text-align: center; margin-bottom: 48px; }
.qa-section-title h2 { margin-bottom: 10px; }
.qa-section-title p { color: var(--qa-text-muted); max-width: 560px; margin: 0 auto; font-size: 15px; }
.qa-section-title .eyebrow {
  display: inline-block;
  color: var(--qa-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-divider {
  width: 60px; height: 3px;
  background: var(--qa-gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ─── CARDS ───────────────────────────────────────────────────── */
.qa-card {
  background: var(--qa-white);
  border-radius: var(--qa-radius-lg);
  box-shadow: var(--qa-shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.qa-card:hover { transform: translateY(-4px); box-shadow: var(--qa-shadow-lg); }
.qa-card .card-img { width: 100%; height: 220px; object-fit: cover; }
.qa-card .card-body { padding: 20px; }
.qa-card .card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.qa-card .card-text { font-size: 13px; color: var(--qa-text-muted); margin-bottom: 14px; }

/* Service Cards */
.service-card {
  background: #fff;
  border-radius: var(--qa-radius-lg);
  padding: 30px 24px;
  box-shadow: var(--qa-shadow);
  border-top: 4px solid var(--qa-green);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--qa-shadow-lg); }
.service-card .svc-icon {
  width: 56px; height: 56px;
  background: var(--qa-cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; }

/* Product Cards */
.product-card {
  background: #fff;
  border-radius: var(--qa-radius-lg);
  box-shadow: var(--qa-shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--qa-shadow-lg); }
.product-card .prod-img { width: 100%; height: 240px; object-fit: cover; }
.product-card .prod-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card .prod-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--qa-gold);
  margin-bottom: 6px;
}
.product-card .prod-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.product-card .prod-desc { font-size: 13px; color: var(--qa-text-muted); margin-bottom: 12px; flex: 1; }
.product-card .prod-price { font-size: 1.3rem; font-weight: 800; color: var(--qa-green); margin-bottom: 14px; }
.product-card .prod-price .sale-price { color: var(--qa-gold); }
.product-card .prod-price .old-price { font-size: .9rem; color: var(--qa-text-muted); text-decoration: line-through; font-weight: 400; }

/* Video Cards */
.video-card {
  background: var(--qa-dark);
  border-radius: var(--qa-radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--qa-shadow-lg);
  cursor: pointer;
  transition: transform .2s;
}
.video-card:hover { transform: scale(1.02); }
.video-card .vid-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .8; }
.video-card .vid-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: var(--qa-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  transition: transform .2s, background .2s;
}
.video-card:hover .vid-play { transform: translate(-50%, -50%) scale(1.1); background: var(--qa-gold-light); }
.video-card .vid-info { padding: 14px; }
.video-card .vid-title { color: #fff; font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.video-card .vid-sub { color: rgba(255,255,255,.6); font-size: 12px; }

/* ─── HOW IT WORKS ────────────────────────────────────────────── */
.step-list { display: flex; gap: 0; flex-wrap: nowrap; position: relative; }
.step-item {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  position: relative;
}
.step-item::after {
  content: '→';
  position: absolute; right: -10px; top: 22px;
  color: var(--qa-gold); font-size: 18px; font-weight: 700;
}
.step-item:last-child::after { display: none; }
.step-num {
  width: 48px; height: 48px;
  background: var(--qa-gold);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  margin: 0 auto 12px;
}
.step-title { font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--qa-dark); }
.step-desc { font-size: 12px; color: var(--qa-text-muted); }
@media (max-width: 768px) {
  .step-list { flex-direction: column; gap: 24px; }
  .step-item::after { display: none; }
}

/* ─── STATS BANNER ────────────────────────────────────────────── */
.stats-banner { background: linear-gradient(135deg, var(--qa-green) 0%, #1B4332 100%); }
.stat-item { text-align: center; padding: 28px 16px; }
.stat-number { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--qa-gold); display: block; }
.stat-label { color: rgba(255,255,255,.85); font-size: 13px; margin-top: 4px; }

/* ─── REVIEWS ─────────────────────────────────────────────────── */
.review-card {
  background: #fff;
  border-radius: var(--qa-radius-lg);
  padding: 24px;
  box-shadow: var(--qa-shadow);
  border-left: 4px solid var(--qa-gold);
  height: 100%;
}
.review-stars { color: var(--qa-gold); font-size: 14px; margin-bottom: 10px; }
.review-text { font-size: 14px; color: var(--qa-text-muted); line-height: 1.6; margin-bottom: 14px; }
.review-author { font-size: 13px; font-weight: 700; color: var(--qa-dark); }
.review-country { font-size: 12px; color: var(--qa-text-muted); }

/* ─── WHATSAPP CTA ────────────────────────────────────────────── */
.qa-wa-banner {
  background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
  padding: 56px 0;
  text-align: center;
  color: #fff;
}
.qa-wa-banner h2 { color: #fff; margin-bottom: 10px; }
.qa-wa-banner p { opacity: .9; max-width: 480px; margin: 0 auto 24px; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff;
  color: #128C7E;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); color: #128C7E; }
.btn-whatsapp i { font-size: 20px; }

/* Floating WhatsApp */
.qa-wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(37,211,102,.5);
  transition: transform .2s, box-shadow .2s;
  animation: wa-pulse 2.5s infinite;
}
.qa-wa-float:hover { transform: scale(1.1); color: #fff; }
@keyframes wa-pulse {
  0%,100%{ box-shadow: 0 4px 16px rgba(37,211,102,.5); }
  50%{ box-shadow: 0 4px 28px rgba(37,211,102,.8); }
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.qa-footer { background: var(--qa-dark); color: rgba(255,255,255,.8); padding: 64px 0 0; }
.qa-footer h5 { color: var(--qa-gold); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.qa-footer ul { list-style: none; padding: 0; margin: 0; }
.qa-footer ul li { margin-bottom: 9px; }
.qa-footer ul li a { color: rgba(255,255,255,.7); font-size: 13px; transition: color .2s; }
.qa-footer ul li a:hover { color: var(--qa-gold); }
.qa-footer .footer-contact p { font-size: 13px; margin-bottom: 8px; }
.qa-footer .footer-contact a { color: rgba(255,255,255,.8); }
.qa-footer .social-links { display: flex; gap: 10px; margin-top: 16px; }
.qa-footer .social-links a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); font-size: 14px;
  transition: background .2s, color .2s;
}
.qa-footer .social-links a:hover { background: var(--qa-gold); color: #fff; }
.qa-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 48px; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.5);
}
.qa-footer-bottom a { color: rgba(255,255,255,.6); }
.qa-footer-bottom a:hover { color: var(--qa-gold); }

/* ─── FORMS ───────────────────────────────────────────────────── */
.qa-form-group { margin-bottom: 20px; }
.qa-form-group label { font-size: 13px; font-weight: 600; color: var(--qa-dark); margin-bottom: 6px; display: block; }
.qa-form-group .required::after { content: ' *'; color: #dc3545; }
.qa-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--qa-border);
  border-radius: var(--qa-radius);
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--qa-text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.qa-input:focus { border-color: var(--qa-green); box-shadow: 0 0 0 3px rgba(45,106,79,.1); }
.qa-input.is-invalid { border-color: #dc3545; }
.qa-textarea { min-height: 100px; resize: vertical; }
.qa-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-error { font-size: 12px; color: #dc3545; margin-top: 4px; }

/* ─── CHECKOUT ────────────────────────────────────────────────── */
.checkout-wrap { max-width: 900px; margin: 0 auto; }
.checkout-section { background: #fff; border-radius: var(--qa-radius-lg); box-shadow: var(--qa-shadow); padding: 28px; margin-bottom: 24px; }
.checkout-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--qa-border); color: var(--qa-green); }
.proof-prefs { background: var(--qa-cream); border-radius: var(--qa-radius); padding: 18px; }
.proof-prefs .form-check { margin-bottom: 8px; }
.proof-prefs .form-check-label { font-size: 14px; }
.proof-hint { font-size: 12px; color: var(--qa-text-muted); margin-top: 10px; font-style: italic; }
.payment-method-option {
  border: 2px solid var(--qa-border);
  border-radius: var(--qa-radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  display: flex; align-items: center; gap: 12px;
}
.payment-method-option:has(input:checked) { border-color: var(--qa-green); background: #f0f9f4; }
.payment-method-option input[type="radio"] { accent-color: var(--qa-green); }
.payment-method-option .pm-name { font-weight: 600; font-size: 14px; }
.payment-method-option .pm-desc { font-size: 12px; color: var(--qa-text-muted); }
.order-summary-box { background: var(--qa-cream); border-radius: var(--qa-radius-lg); padding: 24px; position: sticky; top: 80px; }
.order-summary-box h4 { font-size: .95rem; margin-bottom: 16px; }
.order-summary-item { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.order-summary-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--qa-border); padding-top: 10px; margin-top: 10px; }

/* ─── DASHBOARD ───────────────────────────────────────────────── */
.dashboard-wrap { display: flex; min-height: calc(100vh - 130px); }
.dashboard-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--qa-dark);
  padding: 24px 0;
}
.dashboard-sidebar .user-info { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.dashboard-sidebar .user-info .user-name { color: #fff; font-weight: 600; font-size: 14px; }
.dashboard-sidebar .user-info .user-email { color: rgba(255,255,255,.5); font-size: 12px; }
.dashboard-nav { padding: 12px 0; }
.dashboard-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,.7); font-size: 13px;
  transition: background .2s, color .2s;
  border-left: 3px solid transparent;
}
.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: rgba(255,255,255,.05);
  color: var(--qa-gold);
  border-left-color: var(--qa-gold);
}
.dashboard-nav a i { width: 18px; text-align: center; opacity: .8; }
.dashboard-content { flex: 1; padding: 32px; background: #f8f8f6; }
.dashboard-card {
  background: #fff;
  border-radius: var(--qa-radius-lg);
  padding: 24px;
  box-shadow: var(--qa-shadow);
  margin-bottom: 24px;
}
.dashboard-card h4 { font-size: .95rem; color: var(--qa-dark); margin-bottom: 0; }
.kpi-card { text-align: center; padding: 24px 16px; }
.kpi-value { font-size: 2rem; font-weight: 800; color: var(--qa-green); display: block; }
.kpi-label { font-size: 12px; color: var(--qa-text-muted); margin-top: 4px; }

/* Order Status Timeline */
.status-timeline { display: flex; gap: 0; overflow-x: auto; padding-bottom: 8px; }
.timeline-step {
  flex: 1; min-width: 90px;
  text-align: center; position: relative;
}
.timeline-step::before {
  content: '';
  position: absolute; top: 18px; left: 50%; right: -50%;
  height: 2px; background: var(--qa-border); z-index: 0;
}
.timeline-step:last-child::before { display: none; }
.timeline-step .step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--qa-border);
  color: #aaa;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  position: relative; z-index: 1;
  font-size: 14px; font-weight: 700;
  border: 2px solid var(--qa-border);
}
.timeline-step.done .step-dot { background: var(--qa-green); color: #fff; border-color: var(--qa-green); }
.timeline-step.done::before { background: var(--qa-green); }
.timeline-step.current .step-dot { background: var(--qa-gold); color: #fff; border-color: var(--qa-gold); }
.timeline-step .step-label { font-size: 11px; color: var(--qa-text-muted); line-height: 1.3; }
.timeline-step.done .step-label,
.timeline-step.current .step-label { color: var(--qa-dark); font-weight: 600; }

/* ─── ADMIN ───────────────────────────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px; flex-shrink: 0;
  background: var(--qa-dark-2);
  display: flex; flex-direction: column;
}
.admin-sidebar .brand { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar .brand span { color: var(--qa-gold); font-weight: 800; font-size: 16px; }
.admin-sidebar .brand small { color: rgba(255,255,255,.4); font-size: 11px; display: block; }
.admin-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.admin-nav .nav-section { padding: 8px 16px 4px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.3); font-weight: 700; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  color: rgba(255,255,255,.65); font-size: 13px;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.06); color: #fff; border-left-color: var(--qa-gold); }
.admin-nav a i { width: 16px; text-align: center; font-size: 13px; }
.admin-content { flex: 1; display: flex; flex-direction: column; background: #F0F0EA; }
.admin-topbar { background: #fff; padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.admin-topbar h1 { font-size: 1.1rem; margin: 0; }
.admin-main { flex: 1; padding: 28px; }
.admin-card { background: #fff; border-radius: var(--qa-radius-lg); box-shadow: var(--qa-shadow); padding: 24px; margin-bottom: 24px; }
.admin-card h5 { font-size: .9rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--qa-border); }

/* ─── TABLES ──────────────────────────────────────────────────── */
.qa-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qa-table th { background: var(--qa-dark); color: var(--qa-gold); padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.qa-table td { padding: 11px 14px; border-bottom: 1px solid var(--qa-border); vertical-align: middle; }
.qa-table tr:hover td { background: var(--qa-cream); }
.qa-table .actions { white-space: nowrap; }
.qa-table .actions a, .qa-table .actions button { font-size: 12px; padding: 4px 10px; margin-right: 4px; }

/* ─── PAGE HEADER ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--qa-dark) 0%, var(--qa-dark-2) 100%);
  padding: 56px 0 40px;
  text-align: center;
  color: #fff;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.page-hero .breadcrumb { justify-content: center; background: none; padding: 0; font-size: 13px; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.page-hero .breadcrumb-item a { color: var(--qa-gold); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.7); }

/* ─── AUTH PAGES ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--qa-dark) 0%, #0D3320 100%);
  display: flex; align-items: center;
  padding: 40px 0;
}
.auth-card {
  background: #fff;
  border-radius: var(--qa-radius-lg);
  padding: 40px;
  box-shadow: var(--qa-shadow-lg);
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}
.auth-card .auth-logo { text-align: center; margin-bottom: 28px; }
.auth-card .auth-logo img { height: 48px; }
.auth-card .auth-logo h2 { font-size: 1.1rem; color: var(--qa-green); margin-top: 8px; }

/* ─── ALERTS ──────────────────────────────────────────────────── */
.alert { border-radius: var(--qa-radius); font-size: 14px; padding: 12px 16px; }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 991px) {
  .dashboard-sidebar, .admin-sidebar { display: none; }
  .dashboard-content, .admin-main { padding: 20px; }
  .qa-section { padding: 48px 0; }
}
@media (max-width: 768px) {
  .auth-card { padding: 28px 20px; }
  .checkout-section { padding: 20px; }
  .qa-hero { min-height: 60vh; padding: 56px 0; }
  .qa-table { display: block; overflow-x: auto; }
}

/* ─── VIDEO GRID SECTION ──────────────────────────────────────── */
.video-grid-section { background: var(--qa-dark); }
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.video-grid-item {
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(184,134,11,.2);
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
  transition: transform .2s, border-color .2s;
}
.video-grid-item:hover { transform: translateY(-3px); border-color: rgba(184,134,11,.5); }
.video-grid-item.featured {
  grid-column: span 2;
}
.video-grid-item iframe {
  width: 100%; display: block; border: none;
  height: 240px;
}
.video-grid-item.featured iframe { height: 340px; }
.video-grid-info {
  padding: 14px 16px;
}
.video-grid-info .vid-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--qa-gold); margin-bottom: 4px;
}
.video-grid-info .vid-title {
  font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 3px;
}
.video-grid-info .vid-desc {
  font-size: 12px; color: rgba(255,255,255,.55);
}
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.short-item {
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(184,134,11,.15);
}
.short-item iframe {
  width: 100%; display: block; border: none;
  height: 400px;
}
.short-item .vid-label {
  display: block; padding: 10px 14px;
  font-size: 12px; color: rgba(255,255,255,.65); font-weight: 500;
}
@media (max-width: 900px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-grid-item.featured { grid-column: span 1; }
  .video-grid-item.featured iframe { height: 250px; }
  .video-grid-item iframe { height: 200px; }
  .shorts-grid { grid-template-columns: 1fr; }
  .short-item iframe { height: 560px; }
}

/* ─── GALLERY PAGE ────────────────────────────────────────────── */
.gallery-year-section { padding: 56px 0; }
.gallery-year-section:nth-child(even) { background: var(--qa-cream); }
.gallery-year-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px; padding-bottom: 16px;
  border-bottom: 3px solid var(--qa-gold);
}
.gallery-year-badge {
  background: var(--qa-dark);
  color: var(--qa-gold);
  font-size: 1.6rem; font-weight: 800;
  padding: 8px 20px; border-radius: 8px;
  letter-spacing: -1px;
}
.gallery-year-title { color: var(--qa-dark); }
.gallery-year-title h2 { margin: 0 0 4px; font-size: 1.4rem; }
.gallery-year-title p { margin: 0; font-size: 13px; color: var(--qa-text-muted); }
.gallery-masonry {
  columns: 4; column-gap: 10px;
}
.gallery-masonry-item {
  break-inside: avoid; margin-bottom: 10px;
  border-radius: 8px; overflow: hidden;
  cursor: pointer; display: block;
  transition: opacity .2s, transform .2s;
}
.gallery-masonry-item:hover { opacity: .88; transform: scale(1.01); }
.gallery-masonry-item img {
  width: 100%; display: block; height: auto;
}
@media (max-width: 900px) { .gallery-masonry { columns: 3; } }
@media (max-width: 600px) { .gallery-masonry { columns: 2; } }
@media (max-width: 400px) { .gallery-masonry { columns: 1; } }

/* Lightbox */
.qa-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
  cursor: zoom-out;
}
.qa-lightbox.active { display: flex; }
.qa-lightbox img {
  max-width: 92vw; max-height: 92vh;
  border-radius: 8px; object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  cursor: default;
}
.qa-lightbox-close {
  position: fixed; top: 18px; right: 22px;
  color: rgba(255,255,255,.8); font-size: 2rem; cursor: pointer;
  line-height: 1; transition: color .2s;
  background: none; border: none; padding: 4px 8px;
}
.qa-lightbox-close:hover { color: var(--qa-gold); }
.qa-lightbox-caption {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.6); color: rgba(255,255,255,.8);
  font-size: 13px; padding: 6px 20px; border-radius: 20px;
  backdrop-filter: blur(6px);
}

/* ─── ABOUT PAGE ──────────────────────────────────────────────── */
.about-hero-strip {
  background: linear-gradient(135deg, var(--qa-dark) 0%, var(--qa-dark-2) 100%);
  padding: 60px 0 48px;
}
.about-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--qa-shadow-lg);
  overflow: hidden;
  height: 100%;
}
.about-card-header {
  background: var(--qa-dark);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 14px;
}
.about-card-portrait {
  width: 68px; height: 68px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 3px solid var(--qa-gold); flex-shrink: 0;
}
.about-card-name { color: #fff; font-weight: 700; font-size: 1rem; }
.about-card-role { color: var(--qa-gold); font-size: 12px; margin-top: 2px; }
.about-card-co   { color: rgba(255,255,255,.55); font-size: 12px; margin-top: 1px; }
.about-card-body { padding: 22px 24px; }
.about-card-body p { font-size: 14px; color: var(--qa-text-muted); line-height: 1.75; margin-bottom: 12px; }
.about-card-body p:last-child { margin-bottom: 0; }
.about-quranic {
  background: var(--qa-dark);
  border-radius: 12px; padding: 28px 32px;
  border-left: 4px solid var(--qa-gold);
}
.about-quranic .arabic-q {
  font-family: var(--font-arabic);
  font-size: 1.5rem; color: var(--qa-gold);
  text-align: right; direction: rtl;
  line-height: 1.9; margin-bottom: 10px;
}
.about-quranic .translation { font-style: italic; color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.7; }
.about-quranic .ref { font-size: 12px; color: var(--qa-gold); margin-top: 8px; font-weight: 600; }
.about-mission-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 20px;
}
.about-mission-item {
  background: var(--qa-cream); border-radius: 10px;
  padding: 18px; border-top: 3px solid var(--qa-green);
}
.about-mission-item .icon { font-size: 1.4rem; margin-bottom: 8px; }
.about-mission-item h4 { font-size: .9rem; color: var(--qa-forest, var(--qa-dark)); margin-bottom: 6px; }
.about-mission-item p { font-size: 12.5px; color: var(--qa-text-muted); margin: 0; line-height: 1.65; }
.timeline-about {
  position: relative; padding-left: 28px;
}
.timeline-about::before {
  content: ''; position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--qa-gold);
}
.timeline-about-item {
  position: relative; margin-bottom: 20px;
}
.timeline-about-item::before {
  content: ''; position: absolute;
  left: -24px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--qa-gold); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--qa-gold);
}
.timeline-about-item h4 { font-size: .9rem; color: var(--qa-dark); margin-bottom: 4px; }
.timeline-about-item p  { font-size: 13px; color: var(--qa-text-muted); margin: 0; }
@media (max-width: 700px) {
  .about-mission-grid { grid-template-columns: 1fr; }
}

/* ─── PASSWORD EYE TOGGLE ──────────────────────────────────────── */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-wrap .qa-input {
  padding-right: 42px !important;
  flex: 1;
}
.pw-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  color: var(--qa-text-muted);
  font-size: 15px;
  line-height: 1;
  transition: color .2s;
  z-index: 5;
}
.pw-eye:hover { color: var(--qa-green); }

/* Google Business Profile Reviews (custom PHP API cache) */
.google-reviews-section .google-reviews-wrap{display:grid;grid-template-columns:280px 1fr;gap:22px;align-items:stretch}
.google-rating-card,.google-review-empty,.google-review-card{background:#fff;border:1px solid var(--qa-border);border-radius:16px;box-shadow:var(--qa-shadow)}
.google-rating-card{padding:28px 22px;text-align:center;display:flex;flex-direction:column;justify-content:center}
.google-wordmark{font-size:1.55rem;font-weight:800;letter-spacing:-1px;color:#4285F4;margin-bottom:12px}
.google-rating-card h3{font-size:1.25rem;margin:0 0 8px;color:var(--qa-dark)}
.google-stars{font-size:1.8rem;color:#fbbc05;letter-spacing:1px;line-height:1;margin-bottom:10px}
.google-score{font-size:12px;color:var(--qa-text-muted);margin-bottom:16px}
.google-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.google-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.google-review-card{padding:18px;min-height:185px}
.google-review-head{display:flex;align-items:center;gap:10px;margin-bottom:10px;position:relative;padding-right:26px}
.google-review-head img,.google-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:0 0 44px}
.google-avatar{display:flex;align-items:center;justify-content:center;background:#c2185b;color:#fff;font-weight:800;font-size:20px}
.google-review-head strong{display:block;color:var(--qa-dark);font-size:14px;line-height:1.2}
.google-review-head small{display:block;color:var(--qa-text-muted);font-size:12px;margin-top:3px}
.google-mini{position:absolute;right:0;top:0;color:#4285F4;font-weight:900;font-size:18px}
.google-card-stars{color:#fbbc05;font-size:15px;letter-spacing:1px;margin-bottom:10px}
.google-review-card p{font-size:13.5px;line-height:1.65;color:var(--qa-text);margin:0}
.google-review-card p.muted{color:var(--qa-text-muted)}
.google-review-empty{padding:32px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center}
.google-review-empty p{font-size:14px;color:var(--qa-text-muted);line-height:1.7;max-width:520px}
@media(max-width:992px){.google-reviews-section .google-reviews-wrap{grid-template-columns:1fr}.google-review-grid{grid-template-columns:1fr}}
