/* ===========================================================================
   Quraany Online — design system
   Palette: Islamic sage/olive green + warm cream + gold accents
   =========================================================================== */
:root {
  --green-900: #263f22;
  --green-800: #33512c;
  --green-700: #436539;   /* primary */
  --green-600: #557a46;
  --green-500: #6c9459;
  --green-300: #a9c298;
  --green-100: #e4eede;
  --gold-600: #b48a1e;
  --gold-500: #cda233;
  --gold-300: #e6cd82;
  --cream: #f8f4ea;
  --cream-2: #f2ebd9;
  --sand: #eadfc6;
  --ink: #23291d;
  --ink-soft: #55604c;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(38, 63, 34, .06);
  --shadow-md: 0 10px 30px rgba(38, 63, 34, .10);
  --shadow-lg: 0 24px 60px rgba(38, 63, 34, .16);
  --radius: 16px;
  --radius-lg: 26px;
  --maxw: 1200px;
  --font-head: 'Playfair Display', 'Amiri', serif;
  --font-body: 'Inter', 'Tajawal', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
html[dir="rtl"] {
  --font-head: 'Amiri', 'Cairo', serif;
  --font-body: 'Tajawal', 'Cairo', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--green-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
a { color: var(--green-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-600); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 84px 0; }
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt-2 { margin-top: 2rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }

/* ---- Icons ---- */
.qi { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.18em; flex: none; }
.qi-lg { width: 1.5em; height: 1.5em; }
.qi-xl { width: 2em; height: 2em; }
html[dir="rtl"] .qi-dir { transform: scaleX(-1); }

/* ---- Image treatments for real assets ---- */
.brand .logo-mark { height: 44px; width: auto; }
.footer-brand .logo-mark { height: 40px; }
.cat-card .cat-img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 1rem; display: block; }
.course-card .course-img { width: 100%; height: auto; display: block; background: linear-gradient(160deg, var(--green-100), #fff); }
.course-card .course-top { padding: 0; }
.course-card .course-inner { padding: 20px 24px 0; }
.float-badge .ic .qi { color: var(--green-700); }
.course-detail-hero-img { width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 1.5rem; }
.tutor-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; display: block; border: 3px solid var(--green-100); background: var(--green-100); }
.blog-card .blog-img { height: 190px; width: 100%; object-fit: cover; display: block; }
.testi-card .stars .qi { color: var(--gold-500); }
.feature .ic .qi, .cat-card .ic .qi { color: var(--green-700); }
.topbar .contact-links a { display: inline-flex; align-items: center; gap: .35rem; }
.topbar .contact-links .qi { width: 15px; height: 15px; }
.topbar .socials a .qi { width: 17px; height: 17px; }
.footer-socials a .qi { width: 18px; height: 18px; }
.footer-grid ul li a { display: inline-flex; align-items: center; gap: .45rem; }
.offer-bar .offer-text { display: inline-flex; align-items: center; gap: .4rem; }
.offer-bar .offer-text .qi { width: 17px; height: 17px; }
.course-card .lvl { display: inline-flex; align-items: center; gap: .3rem; }
.course-card .lvl .qi { width: 15px; height: 15px; color: var(--green-600); }
.cat-card .btn { display: inline-flex; align-items: center; gap: .4rem; }
.cat-card .btn .qi { width: 15px; height: 15px; }
.check-list li { display: flex; align-items: center; gap: .55rem; padding: .5rem 0; }
.check-list .qi { color: var(--green-600); width: 18px; height: 18px; flex: none; }
.contact-list li { padding: .55rem 0; }
.contact-list li a { display: inline-flex; align-items: center; gap: .5rem; }
.contact-list .qi { width: 17px; height: 17px; }
.soc-btn { width: 40px; height: 40px; border-radius: 11px; background: var(--green-100); display: grid; place-items: center; color: var(--green-700); }
.soc-btn:hover { background: var(--green-300); }
.soc-btn .qi { width: 19px; height: 19px; }
.testi-card .stars { display: inline-flex; gap: 2px; }
.testi-card .stars .qi { width: 17px; height: 17px; }
.brand { color: var(--green-900); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .22s ease; white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: #3a2c07; }
.btn-gold:hover { color: #3a2c07; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--green-800); border-color: var(--green-300); }
.btn-outline:hover { background: var(--green-100); color: var(--green-900); }
.btn-white { background: #fff; color: var(--green-800); }
.btn-white:hover { color: var(--green-900); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---- Section heading ---- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.sec-head .eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: .78rem; color: var(--gold-600); margin-bottom: .6rem;
}
.sec-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ===== Countdown offer bar ===== */
.offer-bar {
  background: linear-gradient(100deg, var(--green-800), var(--green-600));
  color: #fff; font-size: .95rem; position: relative; z-index: 60;
}
.offer-bar .container { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; padding: 10px 20px; }
.offer-bar .offer-text { font-weight: 600; }
.offer-bar .offer-text b { color: var(--gold-300); }
.countdown { display: inline-flex; gap: .4rem; }
.countdown .unit {
  background: rgba(255,255,255,.14); border-radius: 8px; padding: 4px 8px; min-width: 46px; text-align: center;
  display: flex; flex-direction: column; line-height: 1.1;
}
.countdown .unit .num { font-weight: 800; font-size: 1.05rem; }
.countdown .unit .lbl { font-size: .58rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.offer-bar .btn { padding: .45rem 1.1rem; font-size: .85rem; }
.live-visitors { display: none; align-items: center; gap: .4rem; background: rgba(255,255,255,.14); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; font-weight: 600; }
.live-visitors b { color: var(--gold-300); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: livepulse 1.8s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); } 70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

/* Hero social-proof activity ticker */
.activity-ticker { display: inline-flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--green-100); border-radius: 999px; padding: .5rem .9rem .5rem .5rem; box-shadow: var(--shadow-sm); margin-top: 2rem; max-width: 100%; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.hero-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 2rem; }
.hero-extra .activity-ticker { margin-top: 0; }
.affiliate-btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; color: var(--green-800); background: #fff; border: 1.5px solid var(--gold-300); padding: .55rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.affiliate-btn:hover { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: #3a2c07; border-color: transparent; transform: translateY(-2px); }
.affiliate-btn .qi { width: 16px; height: 16px; color: var(--gold-600); flex: none; }
.affiliate-btn:hover .qi { color: #3a2c07; }
.activity-ticker.show { opacity: 1; transform: translateY(0); }
.at-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--green-500), var(--green-800)); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); }
.at-body { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.at-body b { font-size: .92rem; color: var(--green-900); }
.at-body span { font-size: .84rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-live { flex: none; display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; color: #1f8f4a; text-transform: uppercase; letter-spacing: .04em; }
.at-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: livepulse 1.8s infinite; }

/* ===== Top contact strip ===== */
.topbar { background: var(--green-900); color: #d8e4d0; font-size: .85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; flex-wrap: wrap; gap: .5rem; }
.topbar a { color: #d8e4d0; }
.topbar a:hover { color: #fff; }
.topbar .contact-links { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.topbar .socials { display: flex; gap: .8rem; align-items: center; }
.topbar .socials a { display: inline-flex; }

/* ===== Header / nav ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,244,234,.92); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--green-900); }
.brand img { height: 46px; width: auto; }
.brand .brand-sub { display: block; font-size: .62rem; font-family: var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a { display: block; padding: .6rem .7rem; font-weight: 600; color: var(--ink); border-radius: 10px; font-size: .97rem; white-space: nowrap; }
.nav-links > li > a:hover, .nav-links > li.active > a { color: var(--green-800); background: var(--green-100); }
.has-drop > a::after { content: "▾"; font-size: .7rem; margin-inline-start: .3rem; opacity: .6; }
.dropdown {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; background: #fff;
  border-radius: 14px; box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .2s; list-style: none; margin: .4rem 0 0; z-index: 20;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--ink); font-size: .93rem; }
.dropdown a:hover { background: var(--green-100); color: var(--green-800); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-switch { font-weight: 700; font-size: .85rem; color: var(--green-800); border: 1.5px solid var(--green-300); padding: .4rem .7rem; border-radius: 999px; }
.nav-login { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--green-800); border: 1.5px solid var(--green-300); padding: .45rem .85rem; border-radius: 999px; transition: background .2s, color .2s; }
.nav-login:hover { background: var(--green-100); color: var(--green-900); }
.nav-login .qi { width: 16px; height: 16px; flex: none; }
.lang-switch:hover { background: var(--green-100); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--green-900); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; background: radial-gradient(120% 120% at 80% 0%, var(--green-100), var(--cream) 55%); overflow: hidden; padding-bottom: 0; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0l8 22 22 8-22 8-8 22-8-22-22-8 22-8z' fill='%23436539' fill-opacity='0.03'/%3E%3C/svg%3E"); opacity: .8; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 60px; padding-bottom: 30px; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--green-100); color: var(--green-800); font-weight: 600; font-size: .85rem; padding: .45rem .9rem; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { color: var(--green-700); }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.6rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-trust .t { display: flex; flex-direction: column; }
.hero-trust .t b { font-family: var(--font-head); font-size: 1.6rem; color: var(--green-800); }
.hero-trust .t span { font-size: .85rem; color: var(--ink-soft); }
.hero-art { position: relative; }
.hero-art .art-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px 30px; text-align: center; border: 1px solid var(--green-100); }
.hero-art .art-emoji { font-size: 5.5rem; line-height: 1; margin-bottom: .5rem; }
.hero-art .art-card h3 { font-size: 1.4rem; }
.float-badge { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-md); padding: .7rem 1rem; display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; }
.float-badge .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--green-100); display: grid; place-items: center; font-size: 1.1rem; }
.float-badge.b1 { top: 12px; inset-inline-start: -18px; animation: floaty 4.5s ease-in-out infinite; }
.float-badge.b2 { bottom: 20px; inset-inline-end: -10px; animation: floaty 5.5s ease-in-out .8s infinite; }

/* ===== Islamic kids hero decorations (gentle, tasteful) ===== */
.hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }
.hd { position: absolute; }
.hd-star { fill: var(--gold-500); opacity: .32; }
.hd-spark { fill: var(--green-500); opacity: .38; }
.hd-moon { fill: var(--gold-500); opacity: .3; }
.hd-lantern { fill: var(--green-600); color: var(--gold-600); opacity: .4; transform-origin: top center; }
.s1 { width: 28px; height: 28px; top: 15%; left: 45%; animation: twinkle 3.2s ease-in-out infinite; }
.s2 { width: 18px; height: 18px; top: 33%; left: 63%; animation: twinkle 2.6s ease-in-out .6s infinite; }
.s3 { width: 22px; height: 22px; top: 68%; left: 38%; animation: twinkle 3.6s ease-in-out 1.1s infinite; }
.k1 { width: 16px; height: 16px; top: 22%; left: 72%; animation: twinkle 2.2s ease-in-out .3s infinite; }
.k2 { width: 13px; height: 13px; top: 54%; left: 55%; animation: twinkle 2.8s ease-in-out .9s infinite; }
.hd-moon { width: 34px; height: 34px; top: 13%; inset-inline-end: 7%; animation: floaty 6s ease-in-out infinite; }
.hd-lantern { width: 26px; height: 34px; top: 6%; inset-inline-start: 3%; animation: sway 4.5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .18; transform: scale(.8) rotate(0deg); } 50% { opacity: .55; transform: scale(1.12) rotate(8deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.hero-art .art-card { animation: floaty 5.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero-decor .hd, .hero-art .art-card, .float-badge.b1, .float-badge.b2 { animation: none !important; }
  .hero-decor { display: none; }
}

/* ===== Stats band ===== */
.stats { background: var(--green-800); color: #fff; padding: 54px 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats .stat b { font-family: var(--font-head); font-size: 2.6rem; display: block; color: var(--gold-300); }
.stats .stat span { opacity: .9; font-weight: 500; }

/* ===== Cards / grids ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(67,101,57,.08); transition: all .25s; overflow: hidden; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.cat-card { padding: 32px 26px; text-align: center; }
.cat-card .ic { width: 74px; height: 74px; margin: 0 auto 1.1rem; border-radius: 20px; background: linear-gradient(135deg, var(--green-100), var(--green-300)); display: grid; place-items: center; font-size: 2rem; }
.cat-card h3 { margin-bottom: .5rem; }
.cat-card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1rem; }

.course-card { display: flex; flex-direction: column; }
.course-card .course-top { padding: 26px 24px 0; }
.course-card .course-emoji { font-size: 2.4rem; }
.course-card .badge-cat { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-600); background: var(--cream-2); padding: .25rem .6rem; border-radius: 999px; margin-bottom: .7rem; }
.course-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.course-card .course-body { padding: 0 24px 22px; display: flex; flex-direction: column; flex: 1; }
.course-card p { color: var(--ink-soft); font-size: .93rem; flex: 1; }
.course-card .course-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(67,101,57,.08); }
.course-card .lvl { font-size: .8rem; color: var(--ink-soft); }

.tutor-card { text-align: center; padding: 28px 20px; }
.tutor-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1rem; background: linear-gradient(135deg, var(--green-500), var(--green-800)); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 2rem; font-weight: 700; overflow: hidden; }
.tutor-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.tutor-card .spec { color: var(--ink-soft); font-size: .88rem; min-height: 2.4em; }
.tutor-card .gender-tag { display: inline-block; margin-top: .6rem; font-size: .74rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--green-100); color: var(--green-800); }

/* ===== Tutor profile ===== */
.prof-head { display: flex; gap: 32px; align-items: center; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--green-100); padding: 32px; flex-wrap: wrap; }
.prof-photo { width: 160px; height: 160px; border-radius: 24px; object-fit: cover; flex: none; border: 3px solid var(--green-100); }
.prof-initial { display: grid; place-items: center; background: linear-gradient(135deg, var(--green-500), var(--green-800)); color: #fff; font-family: var(--font-head); font-size: 3.5rem; font-weight: 700; }
.prof-info { flex: 1; min-width: 240px; }
.prof-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .3rem; }
.prof-spec { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 1rem; }
.prof-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.prof-tags .gender-tag { display: inline-flex; align-items: center; gap: .35rem; }
.prof-tags .qi { width: 14px; height: 14px; }
.prof-bio { max-width: 820px; margin: 40px 0; }
.prof-bio h2, .prof-certs h2 { margin-bottom: 1rem; }
.prof-bio p { font-size: 1.05rem; color: var(--ink); }
.prof-certs { margin-top: 40px; }
.prof-cert { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(67,101,57,.08); }
.prof-cert-img { display: block; background: var(--cream); }
.prof-cert-img img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .3s; }
.prof-cert-img:hover img { transform: scale(1.04); }
.prof-cert-body { padding: 14px 18px; }
.prof-cert-body b { display: block; color: var(--green-900); }
.prof-cert-body p { font-size: .9rem; color: var(--ink-soft); margin: .3rem 0 0; }

/* ===== Feature list ===== */
.feature { display: flex; gap: 1rem; align-items: flex-start; background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(67,101,57,.07); transition: .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ic { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); display: grid; place-items: center; font-size: 1.4rem; }
.feature h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.feature p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: center; padding: 20px; position: relative; }
.step .num { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; background: var(--green-700); color: #fff; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; display: grid; place-items: center; box-shadow: var(--shadow-md); }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--ink-soft); font-size: .95rem; }
.steps.steps-5 { grid-template-columns: repeat(5, 1fr); gap: 18px; }

/* ===== Hero badges row + trust badges (Riwaq-inspired) ===== */
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.hero-badges .hero-badge { margin-bottom: 0; }
.hero-badge.hb-azhar { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.hero-badge.hb-azhar svg { width: 15px; height: 15px; }
.trust-badges { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.trust-badges li { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.trust-badges li svg { width: 16px; height: 16px; color: var(--green-600); flex: none; }

/* ===== Tutor qualification line ===== */
.tutor-card .qualif, .prof-qualif { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--green-700); }
.tutor-card .qualif { margin-bottom: .3rem; justify-content: center; }
.tutor-card .qualif svg, .prof-qualif svg { width: 15px; height: 15px; flex: none; }
.prof-qualif { margin-bottom: .5rem; font-size: .95rem; }

/* ===== Our Story band ===== */
.story-band { background: var(--cream); border-top: 1px solid var(--green-100); border-bottom: 1px solid var(--green-100); }
.story-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.story-inner .eyebrow { display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--gold-600); margin-bottom: 1rem; }
.story-body { font-size: 1.12rem; line-height: 1.9; color: var(--ink); margin-bottom: 1.6rem; }
.story-body p { font-size: 1.12rem; }

/* ===== Testimonials (redesigned) ===== */
.testi-card { position: relative; display: flex; flex-direction: column; padding: 26px 26px 22px; overflow: hidden; border: 1px solid var(--green-100); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.testi-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--green-500), var(--gold-500)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-300); }
.testi-card:hover::before { transform: scaleX(1); }
.tq-mark { position: absolute; top: 2px; inset-inline-end: 20px; font-size: 5rem; line-height: 1; color: var(--gold-300); opacity: .45; pointer-events: none; user-select: none; }
.testi-card .stars { display: inline-flex; gap: 2px; margin-bottom: .8rem; position: relative; }
.testi-card .stars .qi { color: var(--gold-500); fill: var(--gold-500); }
.testi-card .quote { font-size: 1rem; line-height: 1.65; color: var(--ink); margin: 0 0 .9rem; position: relative; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.testi-card .quote.expanded { -webkit-line-clamp: unset; }
.tq-more { align-self: flex-start; background: none; border: none; padding: 0; margin: -.2rem 0 1rem; color: var(--green-700); font-family: inherit; font-weight: 700; font-size: .84rem; cursor: pointer; }
.tq-more:hover { color: var(--green-900); text-decoration: underline; }
.testi-card .who { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--green-100); }
.testi-card .who .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--green-600), var(--green-800)); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); font-size: 1.15rem; flex: none; }
.testi-card .who-meta { min-width: 0; }
.testi-card .who b { display: block; font-size: .96rem; color: var(--green-900); line-height: 1.2; }
.testi-card .who-role { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--ink-soft); margin-top: 1px; }
.testi-card .who-role .qi { width: 13px; height: 13px; color: var(--green-600); flex: none; }

/* ===== Pricing ===== */
.plan { padding: 32px 28px; text-align: center; position: relative; display: flex; flex-direction: column; }
.plan.popular { border: 2px solid var(--gold-500); box-shadow: var(--shadow-md); }
.plan .pop-tag { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--gold-500); color: #3a2c07; font-weight: 700; font-size: .78rem; padding: .3rem 1rem; border-radius: 999px; }
html[dir="rtl"] .plan .pop-tag { transform: translateX(50%); }
.plan h3 { font-size: 1.2rem; }
.plan .price { font-family: var(--font-head); font-size: 3rem; color: var(--green-800); line-height: 1; margin: .5rem 0; }
.plan .price small { font-size: .95rem; color: var(--ink-soft); font-family: var(--font-body); }
.plan .plan-meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.2rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; text-align: start; }
.plan ul li { padding: .5rem 0; border-bottom: 1px dashed rgba(67,101,57,.12); font-size: .93rem; display: flex; gap: .5rem; }
.plan ul li::before { content: "✓"; color: var(--green-600); font-weight: 800; }
.plan .btn { margin-top: auto; }

/* ===== Pricing tiers + calculator ===== */
.tier-card { padding: 30px 26px; text-align: center; }
.tier-badge { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-800); background: var(--green-100); padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.tier-rate { font-family: var(--font-head); font-size: 2.8rem; color: var(--green-800); line-height: 1; margin-bottom: .3rem; }
.tier-rate small { font-size: 1rem; color: var(--ink-soft); font-family: var(--font-body); }
.tier-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.tier-card p { color: var(--ink-soft); font-size: .92rem; }

.calc-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: start; }
.calc-features { padding: 32px; }
.calc-features h3 { font-size: 1.3rem; margin: .3rem 0 1.2rem; }
.calc-features .check-list li { font-size: .95rem; }
.calc-card { padding: 32px; position: sticky; top: 90px; }
.calc-card > h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.calc-group { margin-bottom: 1.3rem; }
.calc-group > label { display: block; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .55rem; }
.calc-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.calc-opt { flex: 1 1 auto; min-width: fit-content; padding: .65rem 1rem; border-radius: 12px; border: 1.5px solid var(--sand); background: var(--cream); color: var(--ink); font-family: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .18s; white-space: nowrap; }
.calc-opt:hover { border-color: var(--green-300); }
.calc-opt.active { background: var(--green-700); color: #fff; border-color: var(--green-700); box-shadow: var(--shadow-sm); }
.calc-stepper { display: inline-flex; align-items: center; gap: .3rem; border: 1.5px solid var(--sand); border-radius: 12px; overflow: hidden; background: #fff; }
.calc-stepper button { width: 44px; height: 44px; border: none; background: var(--cream); color: var(--green-800); cursor: pointer; display: grid; place-items: center; transition: background .18s; }
.calc-stepper button:hover { background: var(--green-100); }
.calc-stepper button .qi { width: 18px; height: 18px; }
.calc-stepper span { min-width: 54px; text-align: center; font-weight: 800; font-size: 1.15rem; color: var(--green-900); }
.calc-group small { display: block; margin-top: .45rem; font-size: .82rem; }
.calc-output { background: var(--cream); border-radius: 14px; padding: 6px 18px; margin: 1.4rem 0 1.2rem; }
.calc-row { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px dashed rgba(67,101,57,.15); }
.calc-row:last-child { border-bottom: none; }
.calc-row span { color: var(--ink-soft); font-size: .92rem; }
.calc-row b { font-family: var(--font-head); font-size: 1.25rem; color: var(--green-800); }
.calc-row.total b { font-size: 1.9rem; color: var(--green-900); }
.calc-row.total span { font-weight: 700; color: var(--green-900); }
@media (max-width: 900px) {
  .calc-wrap { grid-template-columns: 1fr; }
  .calc-card { position: static; }
}
.calc-save { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; padding: .55rem .9rem; background: linear-gradient(135deg, var(--gold-100, #f6ecd2), #fff); border: 1px solid var(--gold-300, #e6cf95); border-radius: 12px; }
.calc-save span { color: var(--green-900); font-weight: 600; font-size: .9rem; }
.calc-save b { font-family: var(--font-head); color: var(--gold-700, #916b12); font-size: 1.1rem; }

/* ===== Packages ===== */
.packages-sec { background: #fff; }
.pkg-intro { list-style: none; padding: 0; margin: 1rem auto 0; max-width: 640px; display: flex; flex-direction: column; gap: .35rem; }
.pkg-intro li { display: flex; align-items: center; gap: .5rem; justify-content: center; color: var(--ink-soft); font-size: .95rem; }
.pkg-intro li .qi { width: 15px; height: 15px; color: var(--green-600); flex: none; }
.pkg-badges { display: flex; flex-wrap: wrap; gap: .5rem .8rem; justify-content: center; margin-top: 1.1rem; }
.pkg-badges span { display: inline-flex; align-items: center; gap: .4rem; background: var(--green-100); color: var(--green-800); font-weight: 700; font-size: .82rem; padding: .4rem .9rem; border-radius: 999px; }
.pkg-badges .qi { width: 15px; height: 15px; }
.pkg-toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 2.4rem; margin: 0 0 2.2rem; }
.pkg-toggle-group { text-align: center; }
.ptg-label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: .5rem; }
.pkg-opts { display: inline-flex; flex-wrap: wrap; gap: .4rem; background: var(--cream-2); padding: .35rem; border-radius: 14px; }
.pkg-opt { padding: .5rem .9rem; border-radius: 10px; border: none; background: transparent; color: var(--ink); font-family: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .18s; }
.pkg-opt:hover { color: var(--green-800); }
.pkg-opt.active { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pkg-card { position: relative; background: #fff; border: 1px solid var(--green-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 30px 26px; text-align: center; transition: transform .2s, box-shadow .2s; }
.pkg-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pkg-card.pkg-pop { border-color: var(--gold-500, #d9a825); box-shadow: 0 10px 34px rgba(180,138,30,.16); }
.pkg-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold-500, #d9a825), var(--gold-600)); color: #3a2c07; font-size: .74rem; font-weight: 800; padding: .3rem .9rem; border-radius: 999px; white-space: nowrap; }
.pkg-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.pkg-days { display: inline-flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 600; color: var(--green-700); background: var(--green-100); padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.pkg-days .qi { width: 15px; height: 15px; }
.pkg-price { display: flex; align-items: baseline; justify-content: center; gap: .15rem; margin-bottom: 1.2rem; }
.pkg-price .pkg-sym { font-family: var(--font-head); font-size: 1.4rem; color: var(--green-800); }
.pkg-price .pkg-amt { font-family: var(--font-head); font-size: 3rem; line-height: 1; color: var(--green-900); }
.pkg-price .pkg-per { color: var(--ink-soft); font-size: .95rem; }
.pkg-meta { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: .55rem; text-align: start; }
.pkg-meta li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--ink); }
.pkg-meta li .qi { width: 16px; height: 16px; color: var(--green-600); flex: none; }
.pkg-meta li b { color: var(--green-900); }
.pkg-notes { max-width: 820px; margin: 2.6rem auto 0; background: var(--cream); border: 1px solid var(--green-100); border-radius: var(--radius-lg); padding: 26px 30px; }
.pkg-notes h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; margin-bottom: 1rem; }
.pkg-notes h3 .qi { width: 20px; height: 20px; color: var(--green-600); }
.pkg-notes ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.pkg-notes li { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }
.pkg-notes li .qi { width: 16px; height: 16px; color: var(--green-600); flex: none; margin-top: 3px; }
@media (max-width: 900px) { .pkg-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pkg-grid { grid-template-columns: 1fr; } .pkg-notes ul { grid-template-columns: 1fr; } }

/* ===== Pricing hero ===== */
.pricing-hero { position: relative; background: radial-gradient(120% 130% at 50% 0%, var(--green-100), var(--cream) 60%); overflow: hidden; text-align: center; padding: 74px 0 66px; }
.pricing-hero::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0l8 22 22 8-22 8-8 22-8-22-22-8 22-8z' fill='%23436539' fill-opacity='0.03'/%3E%3C/svg%3E"); opacity: .8; }
.ph-inner { position: relative; max-width: 760px; margin: 0 auto; }
.ph-inner .eyebrow, .promise-head .eyebrow { display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--gold-600); margin-bottom: .8rem; }
.ph-inner h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.ph-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto 1.8rem; line-height: 1.75; }
.ph-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.6rem; }
.ph-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 2.6rem; }
.ph-stat b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--green-800); line-height: 1; }
.ph-stat span { font-size: .86rem; color: var(--ink-soft); }

/* ===== Start risk-free — trust path ===== */
.pay-path-sec { background: #fff; }
.pay-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; max-width: 1000px; margin: 0 auto; }
.pay-path::before { content: ""; position: absolute; top: 34px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--green-300) 0 8px, transparent 8px 16px); z-index: 0; }
.pp-node { position: relative; z-index: 1; text-align: center; background: var(--cream); border: 1px solid var(--green-100); border-radius: var(--radius-lg); padding: 30px 22px 26px; transition: transform .2s, box-shadow .2s; }
.pp-node:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pp-num { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: #fff; border: 2px solid var(--green-300); color: var(--green-800); font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.pp-num .qi { width: 26px; height: 26px; }
.pp-pay .pp-num { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pp-node h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.pp-node p { color: var(--ink-soft); font-size: .92rem; line-height: 1.6; margin: 0; }
.pp-foot { text-align: center; margin-top: 2.4rem; }
.pp-reassure { display: inline-flex; align-items: center; gap: .5rem; background: var(--green-100); color: var(--green-800); font-weight: 600; font-size: .9rem; padding: .5rem 1rem; border-radius: 999px; margin-bottom: 1.2rem; }
.pp-reassure .qi { width: 17px; height: 17px; }
.pp-foot .btn { display: block; width: fit-content; margin: 0 auto; }
.pp-micro { display: block; margin-top: 1rem; color: var(--ink-soft); font-size: .86rem; }

/* ===== Our Promise card ===== */
.promise-card { max-width: 960px; margin: 0 auto; background: linear-gradient(160deg, var(--green-900), #1c3018); color: #eaf1e4; border-radius: var(--radius-lg); padding: 48px clamp(24px, 5vw, 56px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.promise-card::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0l8 22 22 8-22 8-8 22-8-22-22-8 22-8z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E"); }
.promise-head { position: relative; text-align: center; margin-bottom: 2rem; }
.promise-head .eyebrow { color: var(--gold-400, #dcc079); }
.promise-head h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.promise-head p { color: #c8d6bf; font-size: 1.05rem; margin: 0; }
.promise-list { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; }
.promise-list li { display: flex; align-items: flex-start; gap: .8rem; font-size: 1rem; line-height: 1.6; }
.promise-list li .qi { width: 24px; height: 24px; flex: none; color: var(--gold-400, #dcc079); margin-top: 2px; }
@media (max-width: 780px) {
  .pay-path { grid-template-columns: 1fr; }
  .pay-path::before { display: none; }
  .ph-stats { gap: 1.6rem; }
  .promise-list { grid-template-columns: 1fr; }
}

/* ===== Video testimonials ===== */
.video-card { overflow: hidden; }
.video-thumb { position: relative; aspect-ratio: 16/9; background-size: cover; background-position: center; cursor: pointer; display: grid; place-items: center; }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(38,63,34,.28); transition: background .2s; }
.video-thumb:hover::after { background: rgba(38,63,34,.12); }
.video-play { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: var(--green-700); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md); transition: transform .2s; }
.video-play .qi { width: 26px; height: 26px; margin-inline-start: 3px; }
.video-card:hover .video-play { transform: scale(1.08); }
.video-frame { aspect-ratio: 16/9; }
.video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-cap { padding: 14px 18px; }
.video-cap b { display: block; color: var(--green-900); }
.video-cap span { font-size: .85rem; color: var(--ink-soft); }

/* ===== Certifications gallery ===== */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-item { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(67,101,57,.08); transition: all .25s; }
.cert-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cert-item img { width: 100%; height: 220px; object-fit: cover; display: block; background: var(--cream); }
.cert-cap { display: block; padding: 12px 16px; font-weight: 600; font-size: .9rem; color: var(--green-900); text-align: center; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cert-grid { grid-template-columns: 1fr; } }

/* ===== Instructors listing (redesigned cards) ===== */
.mt-1 { margin-top: .6rem; }
.instructor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 26px; }
.ins-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--green-100); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s, border-color .22s; text-align: center; }
.ins-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--green-300); }
.ins-top { height: 84px; background: radial-gradient(120% 160% at 50% 0%, var(--green-300), var(--green-700)); position: relative; }
.ins-top::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 0l5 15 15 5-15 5-5 15-5-15-15-5 15-5z' fill='%23ffffff' fill-opacity='0.10'/%3E%3C/svg%3E"); }
.ins-verify { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; background: rgba(255,255,255,.92); color: var(--green-800); font-size: .72rem; font-weight: 700; padding: .28rem .6rem; border-radius: 999px; }
.ins-verify .qi { width: 14px; height: 14px; }
.ins-avatar-wrap { margin-top: -46px; position: relative; z-index: 1; }
.ins-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow-sm); background: var(--cream); display: inline-block; }
.ins-initial { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--green-500), var(--green-800)); color: #fff; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; }
.ins-body { padding: 12px 22px 4px; flex: 1; }
.ins-body h3 { font-size: 1.16rem; margin-bottom: .3rem; }
.ins-qual { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--green-700); margin-bottom: .5rem; }
.ins-qual .qi { width: 15px; height: 15px; flex: none; }
.ins-spec { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; margin-bottom: 1rem; min-height: 2.6em; }
.ins-stats { display: flex; justify-content: center; gap: 0; border-top: 1px solid var(--green-100); border-bottom: 1px solid var(--green-100); }
.ins-stat { flex: 1; padding: .7rem .3rem; }
.ins-stat + .ins-stat { border-inline-start: 1px solid var(--green-100); }
.ins-stat b { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--green-800); line-height: 1; }
.ins-stat span { font-size: .74rem; color: var(--ink-soft); }
.ins-langs { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .82rem; color: var(--ink-soft); padding: .8rem .3rem .2rem; }
.ins-langs .qi { width: 15px; height: 15px; color: var(--green-600); flex: none; }
.ins-cta { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: .6rem 22px 20px; padding: .7rem; border-radius: 12px; background: var(--green-100); color: var(--green-800); font-weight: 700; font-size: .9rem; transition: background .2s, color .2s; }
.ins-card:hover .ins-cta { background: var(--green-700); color: #fff; }
.ins-cta .qi { width: 16px; height: 16px; }

/* ===== Tutor profile (two-column) ===== */
.qi-h { width: 22px; height: 22px; color: var(--green-600); vertical-align: -4px; margin-inline-end: .3rem; }
.prof-layout { display: grid; grid-template-columns: 340px 1fr; gap: 34px; align-items: start; }
.prof-side { position: sticky; top: 90px; }
.prof-card { background: #fff; border: 1px solid var(--green-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 30px 26px; text-align: center; }
.prof-side-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--green-100); margin: 0 auto .6rem; display: block; background: var(--cream); }
.prof-side-photo.prof-initial { display: grid; place-items: center; font-size: 3rem; }
.prof-verify { display: inline-flex; align-items: center; gap: .35rem; background: var(--green-100); color: var(--green-800); font-size: .74rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; margin-bottom: .7rem; }
.prof-verify .qi { width: 14px; height: 14px; }
.prof-card h1 { font-size: 1.5rem; margin-bottom: .35rem; }
.prof-card .prof-qualif { justify-content: center; }
.prof-card .prof-spec { font-size: .95rem; margin: .4rem 0 1.2rem; }
.prof-glance { text-align: start; background: var(--cream); border-radius: 14px; padding: 8px 16px; margin-bottom: 1.3rem; }
.prof-glance-h { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); padding: .6rem 0 .2rem; }
.prof-grow { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: .6rem; padding: .6rem 0; border-top: 1px dashed rgba(67,101,57,.16); }
.prof-grow .pg-ico { display: inline-flex; }
.prof-grow .pg-ico .qi { width: 18px; height: 18px; color: var(--green-600); }
.prof-grow .pg-lbl { color: var(--ink-soft); font-size: .86rem; }
.prof-grow .pg-val { font-weight: 700; color: var(--green-900); font-size: .88rem; text-align: end; }
.prof-main { min-width: 0; }
.prof-block { background: #fff; border: 1px solid var(--green-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px 28px; margin-bottom: 22px; }
.prof-block > h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.prof-prose { color: var(--ink); line-height: 1.85; }
.prof-prose p { margin-bottom: 1rem; }
.subject-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.subject-tag { display: inline-flex; align-items: center; gap: .4rem; background: var(--green-100); color: var(--green-800); font-weight: 600; font-size: .88rem; padding: .5rem .9rem; border-radius: 999px; }
.subject-tag .qi { width: 15px; height: 15px; color: var(--green-600); flex: none; }
.edu-list { list-style: none; padding: 0; margin: 0; }
.edu-list li { display: flex; align-items: flex-start; gap: .7rem; padding: .6rem 0; border-bottom: 1px dashed rgba(67,101,57,.14); font-size: .98rem; line-height: 1.6; }
.edu-list li:last-child { border-bottom: none; }
.edu-list li .qi { width: 20px; height: 20px; color: var(--green-600); flex: none; margin-top: 2px; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.review-card { margin: 0; background: var(--cream); border: 1px solid var(--green-100); border-radius: 14px; padding: 22px; }
.review-stars { display: flex; gap: 2px; margin-bottom: .7rem; }
.review-stars .qi { width: 17px; height: 17px; color: var(--gold-500, #d9a825); fill: var(--gold-500, #d9a825); }
.review-card blockquote { margin: 0 0 .9rem; font-size: .98rem; line-height: 1.7; color: var(--ink); }
.review-card figcaption b { color: var(--green-900); }
.review-card figcaption span { display: block; font-size: .84rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .prof-layout { grid-template-columns: 1fr; }
  .prof-side { position: static; }
  .review-grid { grid-template-columns: 1fr; }
}

/* ===== Tutor profile v2 (split cover + tabs) ===== */
.tutor-hero-sec { position: relative; padding: 0 0 20px; }
.th-cover { height: 190px; background: radial-gradient(120% 160% at 20% 0%, var(--green-700), var(--green-900)); position: relative; overflow: hidden; }
.th-cover::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0l8 22 22 8-22 8-8 22-8-22-22-8 22-8z' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E"); }
.tutor-hero { position: relative; margin-top: -96px; background: #fff; border: 1px solid var(--green-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; display: grid; grid-template-columns: 230px 1fr; gap: 30px; align-items: center; }
.th-photo { position: relative; }
.th-photo img, .th-initial { width: 230px; height: 230px; border-radius: 18px; object-fit: cover; display: block; background: var(--cream); }
.th-initial { display: grid; place-items: center; background: linear-gradient(135deg, var(--green-500), var(--green-800)); color: #fff; font-family: var(--font-head); font-size: 5rem; }
.th-verify { position: absolute; bottom: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: .35rem; background: rgba(255,255,255,.95); color: var(--green-800); font-size: .74rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.th-verify .qi { width: 14px; height: 14px; }
.th-info .crumbs { margin-bottom: .5rem; }
.th-info .crumbs a { display: inline-flex; align-items: center; gap: .3rem; color: var(--green-700); font-size: .85rem; font-weight: 600; }
.th-info .crumbs .qi { width: 15px; height: 15px; }
.th-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .35rem; }
.th-qual { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; font-weight: 600; color: var(--green-700); margin-bottom: .4rem; }
.th-qual .qi { width: 17px; height: 17px; }
.th-spec { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1rem; }
.th-meta { display: flex; flex-wrap: wrap; gap: .6rem .7rem; margin-bottom: 1.3rem; }
.th-meta span { display: inline-flex; align-items: center; gap: .4rem; background: var(--cream-2); color: var(--ink); font-size: .86rem; font-weight: 600; padding: .45rem .8rem; border-radius: 999px; }
.th-meta span b { color: var(--green-800); }
.th-meta .qi { width: 15px; height: 15px; color: var(--green-600); flex: none; }
.th-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.tutor-tabs-sec { padding-top: 8px; }
.tutor-tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--green-100); margin: 26px 0 26px; overflow-x: auto; scrollbar-width: none; }
.tutor-tabs::-webkit-scrollbar { display: none; }
.ttab { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .85rem 1.2rem; border: none; background: none; font-family: inherit; font-weight: 700; font-size: .95rem; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; transition: color .18s, border-color .18s; white-space: nowrap; }
.ttab:hover { color: var(--green-800); }
.ttab.active { color: var(--green-800); border-bottom-color: var(--green-700); }
.ttab .qi-h { width: 18px; height: 18px; vertical-align: middle; margin: 0; color: currentColor; }
.tpanels { max-width: 860px; }
.tpanel { display: none; }
.tpanel.active { display: block; animation: quizin .3s ease; }
.tp-sub { font-size: 1.15rem; margin: 1.6rem 0 .9rem; }
.edu-prose h4 { font-size: 1.08rem; color: var(--green-900); margin: 1.3rem 0 .3rem; }
.edu-prose h4:first-child { margin-top: 0; }
.edu-prose p { color: var(--ink-soft); margin-bottom: .6rem; }
@media (max-width: 720px) {
  .tutor-hero { grid-template-columns: 1fr; text-align: center; margin-top: -80px; padding: 22px; }
  .th-photo img, .th-initial { width: 150px; height: 150px; margin: 0 auto; }
  .th-qual, .th-meta { justify-content: center; }
  .th-cta { justify-content: center; }
}

/* ===== About page ===== */
.about-intro-sec { padding-top: 40px; }
.about-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.about-intro-text .eyebrow { display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--gold-600); margin-bottom: .6rem; }
.about-intro-text h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.about-intro-text .prof-prose p { margin-bottom: 1rem; }
.about-mini-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.4rem; }
.about-mini-trust span { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--green-800); }
.about-mini-trust .qi { width: 17px; height: 17px; color: var(--green-600); }
.about-intro-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--green-100); }

.azhar-band { background: linear-gradient(140deg, var(--green-900), #1c3018); color: #eaf1e4; position: relative; overflow: hidden; }
.azhar-band::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0l8 22 22 8-22 8-8 22-8-22-22-8 22-8z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E"); }
.azhar-inner { position: relative; display: flex; align-items: center; gap: 28px; }
.azhar-ico { flex: none; width: 84px; height: 84px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.azhar-ico .qi { width: 42px; height: 42px; color: var(--gold-400, #dcc079); }
.azhar-text h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .5rem; }
.azhar-text p { color: #c8d6bf; font-size: 1.02rem; line-height: 1.75; margin: 0; max-width: 780px; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { background: #fff; border: 1px solid var(--green-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 34px 30px; }
.mv-ico { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--green-100), var(--green-300)); display: grid; place-items: center; margin-bottom: 1.1rem; }
.mv-ico .qi { width: 32px; height: 32px; color: var(--green-800); }
.mv-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.mv-card p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; margin: 0; }

.values-sec { background: var(--cream-2); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { background: #fff; border: 1px solid var(--green-100); border-radius: var(--radius-lg); padding: 30px 24px; text-align: center; transition: transform .2s, box-shadow .2s; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-ico { width: 66px; height: 66px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--green-100); display: grid; place-items: center; }
.value-ico .qi { width: 32px; height: 32px; color: var(--green-700); }
.value-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.value-card p { color: var(--ink-soft); font-size: .92rem; line-height: 1.65; margin: 0; }

.pillar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.pillar-card { position: relative; background: #fff; border: 1px solid var(--green-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 30px 20px 24px; text-align: center; overflow: hidden; }
.pillar-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--green-500), var(--gold-500)); }
.pillar-num { position: absolute; top: 12px; inset-inline-end: 14px; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--green-100); }
.pillar-ico { width: 68px; height: 68px; margin: .4rem auto 1rem; border-radius: 20px; background: linear-gradient(135deg, var(--green-700), var(--green-900)); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.pillar-ico .qi { width: 34px; height: 34px; color: #fff; }
.pillar-card h3 { font-size: 1.15rem; margin-bottom: .4rem; color: var(--green-900); }
.pillar-card p { color: var(--ink-soft); font-size: .86rem; line-height: 1.6; margin: 0; }

.about-join { background: radial-gradient(120% 130% at 50% 0%, var(--green-100), var(--cream) 62%); text-align: center; }
.join-inner { max-width: 820px; margin: 0 auto; }
.join-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 2.4rem; margin-bottom: 2rem; }
.join-stats .js b { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--green-800); line-height: 1; }
.join-stats .js span { font-size: .86rem; color: var(--ink-soft); }
.about-join h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .8rem; }
.about-join > .container > .join-inner > p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.75; margin-bottom: 1.6rem; }
.join-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-intro-media { order: -1; }
  .azhar-inner { flex-direction: column; text-align: center; }
  .mv-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .values-grid, .pillar-grid { grid-template-columns: 1fr; }
  .join-stats { gap: 1.4rem; }
}

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; background: rgba(20,30,18,.88); z-index: 120; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 18px; inset-inline-end: 24px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; border: none; font-size: 1.6rem; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ===== Quiz teaser (under hero) ===== */
.quiz-teaser-wrap { margin-top: -28px; position: relative; z-index: 5; padding-bottom: 10px; }
.quiz-teaser { width: 100%; display: flex; align-items: center; gap: 1.1rem; text-align: start; cursor: pointer; background: linear-gradient(100deg, #fff, var(--green-100)); border: 1px solid var(--green-300); border-radius: var(--radius-lg); padding: 20px 26px; box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s; font-family: inherit; }
.quiz-teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.qt-badge { flex: none; width: 52px; height: 52px; border-radius: 15px; background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: #3a2c07; display: grid; place-items: center; }
.qt-badge .qi { width: 26px; height: 26px; }
.qt-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.qt-body b { font-family: var(--font-head); font-size: 1.2rem; color: var(--green-900); }
.qt-body span { color: var(--ink-soft); font-size: .95rem; }
.qt-cta { flex: none; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--green-800); background: #fff; border: 1.5px solid var(--green-300); border-radius: 999px; padding: .6rem 1.2rem; white-space: nowrap; }
.quiz-teaser:hover .qt-cta { background: var(--green-700); color: #fff; border-color: var(--green-700); }
@media (max-width: 720px) { .quiz-teaser { flex-direction: column; text-align: center; align-items: stretch; } .qt-body { align-items: center; } .qt-cta { justify-content: center; } }

.about-page-sec.alt { background: var(--cream-2); }

/* ===== Course detail landing ===== */
.course-hero { position: relative; background: radial-gradient(120% 130% at 15% 0%, var(--green-100), var(--cream) 60%); overflow: hidden; padding: 30px 0 46px; }
.course-hero::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0l8 22 22 8-22 8-8 22-8-22-22-8 22-8z' fill='%23436539' fill-opacity='0.03'/%3E%3C/svg%3E"); }
.course-hero .crumbs { position: relative; font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.course-hero .crumbs a { color: var(--green-700); }
.ch-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.ch-text .eyebrow { display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; color: var(--gold-600); margin-bottom: .6rem; }
.ch-text h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .8rem; line-height: 1.12; }
.ch-lead { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.3rem; max-width: 54ch; }
.ch-meta { display: flex; flex-wrap: wrap; gap: .6rem .8rem; margin-bottom: 1.6rem; }
.ch-meta span { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--green-100); color: var(--ink); font-size: .85rem; font-weight: 600; padding: .45rem .8rem; border-radius: 999px; }
.ch-meta span b { color: var(--green-800); font-weight: 700; }
.ch-meta .qi { width: 15px; height: 15px; color: var(--green-600); flex: none; }
.ch-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.ch-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--green-100); background: #fff; }
.ch-media-fallback { aspect-ratio: 4/3; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--green-100), var(--green-300)); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.ch-media-fallback .qi { width: 90px; height: 90px; color: var(--green-700); }

.course-stats-band { background: var(--green-900); color: #eef3e8; padding: 26px 0; }
.csb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.csb b { display: block; font-family: var(--font-head); font-size: 2rem; color: #fff; line-height: 1; }
.csb span { font-size: .84rem; color: #b6c8ab; }

.course-body-sec { padding-top: 54px; }
.course-body-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.course-article { min-width: 0; max-width: 780px; color: var(--ink); }
.course-article > h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--green-900); margin: 2.2rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--green-100); }
.course-article > h2:first-child { margin-top: 0; }
.course-article h3 { font-size: 1.18rem; color: var(--green-800); margin: 1.5rem 0 .5rem; }
.course-article p { font-size: 1.02rem; line-height: 1.8; margin-bottom: 1rem; color: var(--ink-soft); }
.course-article ul, .course-article ol { margin: 0 0 1.2rem; padding-inline-start: 1.3rem; }
.course-article li { font-size: 1.02rem; line-height: 1.7; margin-bottom: .5rem; color: var(--ink-soft); }
.course-article a { color: var(--green-700); font-weight: 600; }
.course-article img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1rem 0; }
/* structured (card-based) course content */
.cx-intro p { font-size: 1.06rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: 1rem; }
.cx-sec { margin-top: 2.8rem; padding: 0; }
.cx-sec:first-child { margin-top: 0; }
.cx-sec > h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--green-900); margin: 0 0 .9rem; padding-bottom: .55rem; border-bottom: 2px solid var(--green-100); }
.cx-sec > h3 { font-size: 1.18rem; color: var(--green-800); margin: 1.3rem 0 .5rem; }
.cx-lead p { font-size: 1.02rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: 1rem; }
.cx-sec > p { font-size: 1.02rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: 1rem; }
.cx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; margin-top: 1.3rem; }
.cx-card { background: #fff; border: 1px solid var(--green-100); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.cx-card .qi.cx-ic { display: block; width: 30px; height: 30px; color: var(--green-600); margin-bottom: .7rem; }
.cx-card h3 { font-size: 1.06rem; color: var(--green-900); margin: 0 0 .4rem; line-height: 1.35; }
.cx-card p { font-size: .94rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 .5rem; }
.cx-card p:last-child { margin-bottom: 0; }
.course-cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 2.4rem; background: linear-gradient(135deg, var(--green-100), #fff); border: 1px solid var(--green-300); border-radius: var(--radius-lg); padding: 26px 30px; }
.course-cta-inline h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.course-cta-inline p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

.course-side { position: sticky; top: 90px; }
.course-book-card { background: #fff; border: 1px solid var(--green-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 28px 26px; text-align: center; }
.cbc-badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--gold-500); color: #3a2c07; font-size: .78rem; font-weight: 800; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.cbc-badge .qi { width: 15px; height: 15px; }
.course-book-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.course-book-card > .muted { font-size: .92rem; margin-bottom: 1.2rem; }
.cbc-list { list-style: none; padding: 0; margin: 1.4rem 0 1rem; text-align: start; display: flex; flex-direction: column; gap: .6rem; }
.cbc-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; color: var(--ink); }
.cbc-list li .qi { width: 16px; height: 16px; color: var(--green-600); flex: none; margin-top: 2px; }
.cbc-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 700; color: var(--green-700); }
.cbc-link .qi { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .ch-grid { grid-template-columns: 1fr; }
  .ch-media { order: -1; }
  .csb-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .course-body-grid { grid-template-columns: 1fr; }
  .course-side { position: static; }
  .course-book-card { max-width: 460px; margin: 0 auto; }
}

/* ===== Horizontal carousels (home) ===== */
.carousel { position: relative; }
.car-track { display: flex; gap: 22px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 6px 4px 18px; -ms-overflow-style: none; scrollbar-width: none; cursor: grab; }
.car-track::-webkit-scrollbar { display: none; }
.car-track.dragging { scroll-behavior: auto; cursor: grabbing; scroll-snap-type: none; }
.car-track > .car-item { flex: 0 0 300px; max-width: 300px; scroll-snap-align: start; margin: 0; }
.car-track > .cert-item.car-item { flex-basis: 300px; }
.carousel .car-nav { position: absolute; top: 42%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--green-100); background: #fff; color: var(--green-800); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md); transition: background .18s, color .18s, opacity .18s; }
.carousel .car-nav:hover { background: var(--green-700); color: #fff; }
.carousel .car-nav .qi { width: 20px; height: 20px; }
.carousel .car-prev { inset-inline-start: -10px; }
.carousel .car-next { inset-inline-end: -10px; }
html[dir="rtl"] .carousel .car-prev .qi, html[dir="rtl"] .carousel .car-next .qi { transform: scaleX(-1); }
.carousel .car-nav[hidden] { display: none; }
@media (max-width: 720px) { .carousel .car-nav { display: none; } .car-track > .car-item { flex-basis: 82%; max-width: 82%; } }

/* Screenshot testimonials (image reviews) */
.testi-card.testi-shot { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.testi-shot .testi-shot-img { display: block; background: var(--cream-2); }
.testi-shot .testi-shot-img img { width: 100%; height: auto; display: block; }
.testi-shot figcaption { padding: 12px 18px; font-size: .9rem; color: var(--green-900); border-top: 1px solid var(--green-100); }
.testi-shot figcaption span { color: var(--ink-soft); }

/* ===== Inline quiz (home section) ===== */
.quiz-inline-sec { padding: 6px 0 48px; }
.quiz-inline-sec .sec-head { margin-bottom: 20px; }
.quiz-inline-sec .sec-head .eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .35rem; }
.quiz-inline-sec .sec-head .eyebrow .qi { width: 16px; height: 16px; }
.quiz-inline-sec .sec-head h2 { margin-bottom: 0; }
.quiz-overlay.quiz-inline { position: static; inset: auto; background: none; backdrop-filter: none; display: block; z-index: auto; padding: 0; }
.quiz-inline .quiz-modal { max-width: 620px; margin: 0 auto; max-height: none; animation: none; border: 1px solid var(--green-100); box-shadow: var(--shadow-md); }
.quiz-inline .quiz-viewport { max-height: none; padding: 24px 30px 6px; }
.quiz-inline .quiz-step { padding: 0; }
.quiz-inline .quiz-step h2 { margin-bottom: .9rem; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.quiz-inline .quiz-kicker { margin-bottom: .3rem; }
.quiz-inline .quiz-options { gap: 10px; }
.quiz-inline .quiz-opt { padding: .8rem 1rem; }
.quiz-inline .qo-ic { font-size: 1.3rem; }
.quiz-inline .quiz-nav { min-height: 0; padding-top: .2rem; }
@media (max-width: 720px) { .quiz-inline .quiz-viewport { padding: 20px 18px 6px; } }

/* ===== Quiz wizard modal ===== */
.quiz-overlay { position: fixed; inset: 0; background: rgba(24,36,20,.72); backdrop-filter: blur(5px); z-index: 130; display: none; align-items: center; justify-content: center; padding: 20px; }
.quiz-overlay.show { display: flex; }
.quiz-modal { background: var(--cream); width: 100%; max-width: 680px; max-height: 92vh; border-radius: var(--radius-lg); position: relative; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); animation: pop .3s ease; }
.quiz-progress { height: 6px; background: var(--sand); flex: none; }
.quiz-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green-600), var(--gold-500)); transition: width .35s ease; }
.quiz-close { position: absolute; top: 14px; inset-inline-end: 16px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.06); border: none; font-size: 1.1rem; cursor: pointer; color: var(--ink-soft); z-index: 2; }
.quiz-close:hover { background: rgba(0,0,0,.12); }
.quiz-viewport { padding: 48px 40px 20px; overflow-y: auto; flex: 1; }
.quiz-step { display: none; animation: quizin .35s ease; }
.quiz-step.active { display: block; }
@keyframes quizin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.quiz-kicker { display: inline-block; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .74rem; color: var(--gold-600); margin-bottom: .5rem; }
.quiz-step h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.2rem; }
.quiz-hint { color: var(--ink-soft); font-size: .95rem; margin: -.6rem 0 1.2rem; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-options.quiz-multi { grid-template-columns: 1fr 1fr; }
.quiz-opt { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.2rem; border: 2px solid var(--sand); background: #fff; border-radius: 16px; font-family: inherit; font-size: 1.02rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: all .18s; text-align: start; }
.quiz-opt:hover { border-color: var(--green-500); transform: translateY(-2px); }
.quiz-opt.sel { border-color: var(--green-700); background: var(--green-100); color: var(--green-900); }
.quiz-opt .qo-ic { font-size: 1.5rem; flex: none; }
.quiz-multi.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.quiz-counter { display: inline-flex; align-items: center; gap: .6rem; border: 2px solid var(--sand); border-radius: 14px; overflow: hidden; background: #fff; margin-bottom: .6rem; }
.quiz-counter button { width: 48px; height: 48px; border: none; background: var(--cream); color: var(--green-800); font-size: 1.4rem; cursor: pointer; }
.quiz-counter button:hover { background: var(--green-100); }
.quiz-counter span { min-width: 46px; text-align: center; font-weight: 800; font-size: 1.3rem; color: var(--green-900); }
.quiz-ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 1rem 0 1.4rem; }
.quiz-age label { display: block; font-size: .8rem; color: var(--ink-soft); margin-bottom: .25rem; }
.quiz-age input { width: 100%; padding: .6rem .7rem; border: 1.5px solid var(--sand); border-radius: 10px; font-family: inherit; font-size: 1rem; background: #fff; }
.quiz-next { margin-top: 1.4rem; }
.quiz-field { margin-bottom: 1rem; }
.quiz-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--green-900); }
.quiz-field input, .quiz-phone select, .quiz-phone input { padding: .85rem 1rem; border: 1.5px solid var(--sand); border-radius: 12px; font-family: inherit; font-size: 1rem; background: #fff; width: 100%; }
.quiz-phone { display: flex; gap: 8px; }
.quiz-phone select { flex: none; width: 130px; }
.quiz-phone input { flex: 1; }
.quiz-err { color: #b23b3b; font-size: .88rem; margin-top: .6rem; min-height: 1em; }
.quiz-done { text-align: center; padding: 20px 0 10px; }
.quiz-done-ic { font-size: 4rem; }
.quiz-done h2 { margin-top: .5rem; }
.quiz-done p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 1.4rem; }
.quiz-nav { flex: none; padding: 12px 40px 22px; }
.quiz-back { background: none; border: none; color: var(--ink-soft); font-family: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; padding: .3rem .2rem; }
.quiz-back:hover { color: var(--green-800); }
@media (max-width: 560px) {
  .quiz-viewport { padding: 40px 22px 16px; }
  .quiz-nav { padding: 10px 22px 18px; }
  .quiz-options, .quiz-options.quiz-multi { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.faq-item { background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden; border: 1px solid rgba(67,101,57,.07); }
.faq-q { padding: 20px 24px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--green-900); }
.faq-q .plus { flex: none; font-size: 1.4rem; color: var(--green-600); transition: transform .25s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 24px; color: var(--ink-soft); }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--green-800), var(--green-600)); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .92; font-size: 1.1rem; max-width: 560px; margin: 0 auto 1.6rem; }

/* ===== Footer ===== */
.site-footer { background: var(--green-900); color: #c8d6bf; padding: 64px 0 0; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; letter-spacing: .04em; margin-bottom: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer a { color: #c8d6bf; }
.site-footer a:hover { color: var(--gold-300); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .6rem; font-size: .93rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .footer-logo { height: 48px; width: auto; }
.footer-brand p { font-size: .92rem; opacity: .85; margin-top: 1rem; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }
.footer-socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer-socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.footer-socials a:hover { background: var(--green-600); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 22px 0; text-align: center; font-size: .86rem; opacity: .8; }

/* ===== Floating WhatsApp ===== */
.wa-float { position: fixed; bottom: 22px; inset-inline-start: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.5); z-index: 80; color: #fff; font-size: 1.7rem; animation: wapulse 2.4s infinite; }
.wa-float:hover { color: #fff; }
@keyframes wapulse { 0%,100%{ box-shadow: 0 8px 24px rgba(37,211,102,.5);} 50%{ box-shadow: 0 8px 34px rgba(37,211,102,.85);} }

/* ===== Forms ===== */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 38px; border: 1px solid var(--green-100); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--green-900); }
.field label .opt { font-weight: 400; color: var(--ink-soft); font-size: .82rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--sand); border-radius: 12px; font-family: inherit; font-size: 1rem;
  background: var(--cream); color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.phone-group { display: flex; gap: 8px; }
.phone-group input { flex: 1 1 auto; min-width: 0; width: auto; }
/* Compact country-code select — flag + code only (higher specificity beats .field select) */
.phone-group .cc-select, .cc-select { flex: 0 0 auto; width: 112px; padding: .8rem .55rem; border: 1.5px solid var(--sand); border-radius: 12px; font-family: inherit; font-size: .95rem; font-weight: 600; background: var(--cream); color: var(--ink); text-align: center; }
.cc-select:focus { outline: none; border-color: var(--green-500); background: #fff; }
.alert { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 500; }
.alert-success { background: var(--green-100); color: var(--green-900); border: 1px solid var(--green-300); }
.alert-error { background: #fbeaea; color: #8a2b2b; border: 1px solid #e6b8b8; }
.field .val-err, .text-danger { color: #b23b3b; font-size: .82rem; margin-top: .3rem; display: block; }

/* ===== Page hero (inner pages) ===== */
.page-hero { background: radial-gradient(120% 140% at 50% 0%, var(--green-100), var(--cream)); padding: 56px 0 44px; text-align: center; }
.page-hero .crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: .6rem; }
.page-hero .crumbs a { color: var(--green-700); }
.page-hero h1 { margin-bottom: .4rem; }
.page-hero p { color: var(--ink-soft); max-width: 620px; margin: 0 auto; }

/* ===== Category filter pills ===== */
.filter-pills { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-pills a { padding: .55rem 1.2rem; border-radius: 999px; background: #fff; border: 1.5px solid var(--green-100); font-weight: 600; font-size: .92rem; color: var(--green-800); }
.filter-pills a.active, .filter-pills a:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* ===== Article ===== */
.article { max-width: 780px; margin: 0 auto; }
.article .meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.4rem; }
.article p { font-size: 1.08rem; }
.blog-card .blog-img { height: 180px; background: linear-gradient(135deg, var(--green-300), var(--green-600)); display: grid; place-items: center; font-size: 3rem; }
.blog-card .blog-body { padding: 22px 24px; }
.blog-card .blog-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; color: var(--gold-600); letter-spacing: .05em; }
.blog-card h3 { font-size: 1.14rem; margin: .4rem 0; }
.blog-card p { font-size: .92rem; color: var(--ink-soft); }

/* ===== Prayer times widget ===== */
.prayer-widget { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; border: 1px solid var(--green-100); }
.prayer-widget h3 { text-align: center; }
.prayer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; text-align: center; margin-top: 1rem; }
.prayer-grid .p { background: var(--cream); border-radius: 12px; padding: 12px 6px; }
.prayer-grid .p .name { font-size: .8rem; color: var(--ink-soft); }
.prayer-grid .p .time { font-weight: 700; color: var(--green-800); }

/* ===== Modal (trial popup) ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(30,45,26,.6); backdrop-filter: blur(3px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 460px; width: 100%; padding: 36px; position: relative; box-shadow: var(--shadow-lg); text-align: center; animation: pop .3s ease; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .close-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 50%; background: #f2dede; color: #b23b3b; border: none; font-size: 1.1rem; cursor: pointer; }
.modal h3 { color: var(--green-800); font-size: 1.5rem; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .grid-4, .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Collapse nav to hamburger while the full menu no longer fits */
@media (max-width: 992px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset-inline-start: 0; top: 0; bottom: 0; width: 82%; max-width: 320px; background: #fff;
    flex-direction: column; align-items: stretch; padding: 80px 20px 20px; box-shadow: var(--shadow-lg);
    transform: translateX(-105%); transition: transform .3s; overflow-y: auto; gap: .2rem; z-index: 55;
  }
  html[dir="rtl"] .nav-links { transform: translateX(105%); }
  .nav-links.open { transform: translateX(0); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--cream); margin-inline-start: 1rem; }
}
@media (max-width: 1000px) {
  .steps.steps-5 { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
}
@media (max-width: 780px) {
  .grid-3, .grid-2, .steps, .steps.steps-5 { grid-template-columns: 1fr; }
  .story-body, .story-body p { font-size: 1.02rem; }
  section { padding: 56px 0; }
  .cta-band { padding: 36px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .topbar .contact-links .hide-sm { display: none; }
  .nav-actions .btn { padding: .6rem 1rem; font-size: .9rem; }
}
@media (max-width: 480px) {
  .grid-4, .stats .grid { grid-template-columns: 1fr 1fr; }
  .offer-bar .container { gap: .6rem; }
}
