/*
Theme Name: Qudra ACF
Theme URI: https://qudra-apn.org
Author: Qudra APN
Description: Fully coded theme — client edits text/images via ACF fields in WP Admin. No Elementor needed. 3-language ready.
Version: 2.0.0
Text Domain: qudra
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --teal: #166164;
  --teal-dark: #0f4749;
  --teal-mid: #1d7a7e;
  --gold: #85724d;
  --gold-hover: #70603f;
  --cream: #f3efe6;
  --light: #f5f5f5;
  --white: #ffffff;
  --text-body: #4a4a4a;
  --text-muted: #999999;
  --border: #e0e0e0;
  --custom-color: #006a69;
  --custom-color-disabled: #6a9e9e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Cairo', sans-serif !important; }
html { font-size: 16px; }
body { background: var(--white); color: var(--text-body); direction: rtl; text-align: right; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp  { from { opacity:0; transform:translateY(30px) } to { opacity:1; transform:translateY(0) } }
@keyframes fadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes bounce  { 0%,100% { transform:translateY(0) } 50% { transform:translateY(7px) } }

.hero-tags    { animation: fadeUp .8s ease both; animation-delay:.44s; }
.hero-btns    { animation: fadeUp .8s ease both; animation-delay:.58s; }
.hero-chevron { animation: fadeIn 1s ease both; animation-delay:.85s; }

.reveal       { transition: opacity .6s ease, transform .6s ease; }
.reveal.hidden   { opacity:0; transform:translateY(26px); }
.reveal.visible  { opacity:1; transform:translateY(0); }

.reveal-scale  { transition: opacity .6s ease, transform .6s ease; }
.reveal-scale.hidden  { opacity:0; transform:scale(.93); }
.reveal-scale.visible { opacity:1; transform:scale(1); }

.stagger > .reveal:nth-child(1) { transition-delay:.05s; }
.stagger > .reveal:nth-child(2) { transition-delay:.16s; }
.stagger > .reveal:nth-child(3) { transition-delay:.27s; }
.stagger > .reveal:nth-child(4) { transition-delay:.38s; }
.stagger > .reveal:nth-child(5) { transition-delay:.48s; }
.stagger > .reveal:nth-child(6) { transition-delay:.57s; }
.stagger > .faq-item:nth-child(1) { transition-delay:.05s; }
.stagger > .faq-item:nth-child(2) { transition-delay:.16s; }
.stagger > .faq-item:nth-child(3) { transition-delay:.27s; }
.stagger > .faq-item:nth-child(4) { transition-delay:.38s; }
.stagger > .faq-item:nth-child(5) { transition-delay:.48s; }
.stagger > .faq-item:nth-child(6) { transition-delay:.57s; }
.stagger > .faq-item:nth-child(7) { transition-delay:.66s; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position:fixed; top:0; right:0; left:0; z-index:100;
  height:76px; background:rgba(255,255,255,.75);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  box-shadow:0 1px 0 rgba(22,97,100,.1);
  display:flex; align-items:center; justify-content:center;
  transition:background .3s;
}
.header-inner { width:100%; max-width:1152px; padding:0 64px; display:flex; align-items:center; justify-content:space-between; }
.header-logo { display:flex; align-items:center; flex-shrink:0; }
.header-logo img { height:60px; width:auto; object-fit:contain; }
.header-cta { background:var(--gold); color:#fff; border:none; border-radius:10px; padding:0 26px; height:44px; font-size:15px; font-weight:700; cursor:pointer; transition:background .2s,transform .15s; white-space:nowrap; }
.header-cta:hover { background:var(--gold-hover); transform:translateY(-1px); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top { position:fixed; bottom:28px; right:24px; z-index:200; width:48px; height:48px; background:#85724d; border:none; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 16px rgba(133,114,77,.4); cursor:pointer; opacity:0; transform:translateY(14px); transition:opacity .3s,transform .3s,background .2s; pointer-events:none; padding:0; }
.back-to-top.visible { opacity:1; transform:translateY(0); pointer-events:auto; }
.back-to-top:hover { background:#70603f; }
.back-to-top svg { width:20px; height:20px; stroke:#fff; fill:none; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position:relative; min-height:100vh; padding-top:76px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.hero-overlay { position:absolute; inset:0; z-index:1; background:linear-gradient(150deg,rgba(15,71,73,.80) 0%,rgba(29,122,126,.68) 50%,rgba(15,71,73,.80) 100%); }
.hero-inner { position:relative; z-index:2; width:820px; max-width:100%; padding:80px 24px 100px; text-align:center; }
.hero-h1   { font-size:68px; font-weight:800; color:var(--white); line-height:1.25; margin-bottom:16px; animation:fadeUp .8s ease both; animation-delay:.1s; }
.hero-sub  { font-size:32px; font-weight:600; color:rgba(255,255,255,.9); margin-bottom:28px; animation:fadeUp .8s ease both; animation-delay:.28s; }
.hero-tagline { font-size:19px; font-weight:600; color:var(--white); margin-bottom:10px; }
.hero-desc    { font-size:18px; color:rgba(255,255,255,.85); line-height:1.75; }
.hero-btns    { display:flex; gap:14px; justify-content:center; margin-bottom:40px; flex-wrap:wrap; }
.hero-chevron { color:rgba(255,255,255,.5); display:inline-block; animation:bounce 2.2s ease-in-out infinite; }

/* BUTTONS */
.btn-outline-white { padding:0 28px; height:60px; border:1.6px solid var(--white); border-radius:14px; color:var(--white); font-size:17px; font-weight:700; background:transparent; transition:background .2s; }
.btn-outline-white:hover { background:rgba(255,255,255,.1); }
.btn-gold { padding:0 28px; height:60px; background:var(--gold); border:none; border-radius:14px; color:#fff; font-size:17px; font-weight:700; transition:background .2s,transform .15s; }
.btn-gold:hover { background:var(--gold-hover); transform:translateY(-1px); }
.btn-cta  { display:inline-block; background:var(--gold); border:none; border-radius:14px; padding:18px 52px; font-size:22px; font-weight:700; color:#fff; cursor:pointer; transition:background .2s,transform .15s; }
.btn-cta:hover { background:var(--gold-hover); transform:translateY(-2px); }

/* ============================================================
   WHAT IS IT
   ============================================================ */
.section-what { background:var(--white); padding:80px 128px; text-align:center; }
.section-what h2       { font-size:44px; font-weight:700; color:var(--teal); margin-bottom:14px; }
.section-what .accent-sub { font-size:19px; color:var(--gold); font-weight:600; margin-bottom:28px; }
.section-what .body-text  { font-size:17px; color:var(--text-body); line-height:1.9; max-width:860px; margin:0 auto; }

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.section-features { background:var(--cream); padding:80px 16px 120px; }
.cards-grid { max-width:1152px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.feature-card { background:var(--white); border-radius:16px; padding:36px 28px; box-shadow:0 4px 12px rgba(22,97,100,.08),0 2px 4px rgba(0,0,0,.06); text-align:center; border-top:3px solid var(--gold); transition:transform .25s,box-shadow .25s; }
.feature-card:hover { transform:translateY(-4px); box-shadow:0 10px 24px rgba(22,97,100,.13); }
.feature-icon-wrap { width:64px; height:64px; background:var(--teal); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 24px; }
.feature-icon-wrap svg { width:30px; height:30px; stroke:white; fill:none; }
.feature-card h3 { font-size:20px; font-weight:700; color:var(--teal); line-height:1.45; }

/* ============================================================
   IMPACT
   ============================================================ */
.section-impact { background:var(--white); padding:80px 0; text-align:center; }
.section-impact h2 { font-size:44px; font-weight:700; color:var(--teal); margin-bottom:8px; }
.impact-subtitle   { font-size:17px; color:var(--text-muted); margin-bottom:40px; }
.impact-box { max-width:1024px; margin:0 auto 28px; background:linear-gradient(167deg,#f9fafb 0%,#f3f4f6 100%); border-radius:16px; box-shadow:0 10px 24px rgba(22,97,100,.1),0 4px 6px rgba(0,0,0,.06); padding:48px; display:flex; align-items:center; justify-content:center; gap:28px; flex-wrap:wrap; }
.impact-item { display:flex; flex-direction:column; align-items:center; gap:6px; }
.impact-item svg  { width:44px; height:44px; fill:none; }
.impact-num   { font-size:44px; font-weight:700; line-height:1.1; }
.impact-label { font-size:16px; color:var(--text-body); }
.impact-op    { font-size:44px; font-weight:700; color:var(--gold); align-self:center; padding-top:6px; }
.impact-note  { font-size:19px; font-weight:600; color:var(--teal); }

/* ============================================================
   QUOTE
   ============================================================ */
.section-quote { background:var(--cream); padding:52px 24px; text-align:center; position:relative; overflow:hidden; }
.section-quote::before { content:'\201C'; position:absolute; top:-20px; left:50%; transform:translateX(-50%); font-size:280px; font-weight:800; color:rgba(22,97,100,.07); line-height:1; pointer-events:none; white-space:nowrap; }
.section-quote-inner { position:relative; z-index:2; display:inline-block; background:rgba(22,97,100,.06); border:1.5px solid rgba(22,97,100,.12); border-radius:50px; padding:20px 40px; backdrop-filter:blur(2px); }
.section-quote .line1 { font-size:26px; font-weight:700; color:var(--teal); line-height:1.55; margin-bottom:2px; }
.section-quote .line2 { font-size:26px; font-weight:700; color:var(--gold); line-height:1.55; }

/* ============================================================
   BUILT ON
   ============================================================ */
.section-builton { background:var(--white); padding:80px 64px; }
.section-builton h2 { font-size:44px; font-weight:700; color:var(--teal); text-align:center; margin-bottom:44px; }
.builton-cards { display:flex; flex-direction:column; gap:20px; margin-bottom:40px; }
.builton-card { background:var(--white); border-radius:14px; box-shadow:0 4px 12px rgba(22,97,100,.07),0 2px 4px rgba(0,0,0,.05); border-right:4px solid var(--gold); padding:28px 20px 28px 24px; display:flex; align-items:center; gap:20px; transition:transform .25s,box-shadow .25s; max-width:1024px; margin-right:auto; margin-left:auto; width:100%; }
.builton-card:hover { transform:translateX(-4px); box-shadow:0 8px 20px rgba(22,97,100,.12); }
.builton-icon { width:52px; height:52px; flex-shrink:0; background:var(--cream); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.builton-icon svg { width:26px; height:26px; fill:none; }
.builton-text h3 { font-size:21px; font-weight:700; color:var(--teal); margin-bottom:6px; }
.builton-text p  { font-size:16px; color:var(--text-body); line-height:1.6; }
.builton-footer  { font-size:21px; font-weight:700; color:var(--teal); text-align:center; max-width:1024px; margin:0 auto; }

/* ============================================================
   ACADEMIC
   ============================================================ */
.section-academic { background:var(--teal); padding:80px 128px; text-align:center; }
.section-academic .icon-circle { width:80px; height:80px; background:rgba(255,255,255,.18); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 28px; }
.section-academic .icon-circle svg { width:44px; height:44px; fill:none; }
.section-academic h2 { font-size:44px; font-weight:700; color:var(--white); margin-bottom:10px; }
.section-academic .academic-subtitle { font-size:22px; font-weight:700; color:rgba(255,255,255,.9); margin-bottom:28px; }
.section-academic .body-line { font-size:17px; color:rgba(255,255,255,.88); margin-bottom:14px; line-height:1.75; }
.section-academic .highlight-group { display:inline-block; margin-top:20px; border-top:1px solid rgba(255,255,255,.2); padding-top:18px; }
.section-academic .highlight { font-size:20px; font-weight:700; color:#d4b07a; line-height:1.6; }

/* ============================================================
   QUDRA
   ============================================================ */
.section-qudra { background:var(--light); padding:80px 64px; text-align:center; }
.section-qudra h2  { font-size:44px; font-weight:700; color:var(--teal); margin-bottom:20px; }
.section-qudra .intro { font-size:17px; color:var(--text-body); max-width:820px; margin:0 auto 12px; line-height:1.85; }
.btn-more-qudra { display:inline-block; background:var(--teal); color:#fff !important; border:none; border-radius:14px; padding:14px 36px; font-size:17px; font-weight:700; text-decoration:none !important; cursor:pointer; transition:background .2s,transform .15s; margin-bottom:44px; }
.btn-more-qudra:hover { background:var(--teal-dark); transform:translateY(-1px); }
.checklist-box { max-width:1024px; margin:0 auto 28px; background:var(--white); border-radius:14px; padding:44px 48px; box-shadow:0 4px 12px rgba(22,97,100,.07),0 2px 4px rgba(0,0,0,.05); display:grid; grid-template-columns:1fr 1fr; gap:20px 40px; }
.check-item { display:flex; align-items:flex-start; gap:12px; }
.check-item span { font-size:16px; color:var(--text-body); line-height:1.5; }
.check-item a { color:var(--teal); text-decoration:underline; }
.check-icon { width:24px; height:24px; flex-shrink:0; background:var(--teal); border-radius:50%; display:flex; align-items:center; justify-content:center; margin-top:2px; }
.check-icon svg { width:13px; height:13px; }
.qudra-footer { font-size:21px; font-weight:700; color:var(--teal); }

/* ============================================================
   DONATE
   ============================================================ */
.section-donate-wrap { background:var(--white); padding:48px 64px; }
.section-donate { background:var(--white); border:1.6px solid var(--teal); border-radius:16px; max-width:1024px; margin:0 auto; padding:48px 40px; box-shadow:0 20px 48px rgba(22,97,100,.1); text-align:center; }
.donate-title { font-size:28px; font-weight:700; color:var(--teal); margin-bottom:28px; }
.donate-iframe-wrap iframe { width:100%; border:none; display:block; border-radius:10px; }

/* ============================================================
   FAQ
   ============================================================ */
.section-faq { background:var(--white); padding:80px 192px; text-align:center; }
.section-faq h2 { font-size:44px; font-weight:700; color:var(--teal); margin-bottom:44px; }
.faq-list { display:flex; flex-direction:column; gap:12px; text-align:right; }
details.faq-item { border:1px solid var(--border); border-radius:14px; overflow:hidden; transition:border-color .2s,box-shadow .2s; }
details.faq-item:hover { border-color:rgba(22,97,100,.3); }
details.faq-item[open] { border-color:var(--teal); box-shadow:0 4px 12px rgba(22,97,100,.1); }
details.faq-item summary { width:100%; display:flex; align-items:center; justify-content:space-between; padding:0 24px; min-height:64px; background:var(--white); border:none; font-size:17px; font-weight:600; color:var(--teal); cursor:pointer; gap:12px; list-style:none; user-select:none; }
details.faq-item summary::-webkit-details-marker { display:none; }
details.faq-item summary span { flex:1; }
.faq-chevron { width:22px; height:22px; flex-shrink:0; transition:transform .3s; color:var(--teal); fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
details.faq-item[open] .faq-chevron { transform:rotate(180deg); }
.faq-answer { font-size:16px; color:var(--text-body); padding:14px 24px 20px; line-height:1.75; border-top:1px solid var(--border); text-align:right; }
.faq-answer a { color:var(--teal); text-decoration:underline; }
.faq-answer ul { padding-right:20px; margin-top:8px; margin-bottom:8px; }
.faq-answer ul li { margin-bottom:6px; }

/* ============================================================
   CTA
   ============================================================ */
.section-cta { background:var(--teal); padding:80px 24px; text-align:center; }
.section-cta h2      { font-size:42px; font-weight:700; color:var(--white); margin-bottom:14px; }
.section-cta .sub-text { font-size:22px; font-weight:600; color:rgba(255,255,255,.85); margin-bottom:44px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background:var(--white); border-top:1px solid var(--border); padding:44px 24px; text-align:center; }
.footer-logo img { height:60px; width:auto; object-fit:contain; margin:0 auto 16px; }
.footer-text p    { font-size:16px; color:var(--text-body); margin-bottom:4px; }
.footer-text .small { font-size:13px; color:var(--text-muted); }
.footer-text a    { color:var(--teal); font-size:13px; }

/* ============================================================
   JGIVE OVERRIDES
   ============================================================ */
.FormHeader-module__header___RKBTR { color:var(--custom-color); }
.RichTextContent-module__rich-text-content___RmROb, button.ButtonStyle-module__engagement___nnfzJ { background:var(--custom-color) !important; }
.PurposeItem-module__purpose-amount-radio___drYtz > input[type="radio"]:checked + label { background:var(--custom-color) !important; border-color:var(--custom-color) !important; color:white !important; }
.PoweredBy-module__title___rFPm6 { display:none; }

/* ============================================================
   MOBILE
   ============================================================ */
@media(max-width:768px) {
  .site-header { height:64px; }
  .hero { padding-top:64px; }
  .header-inner { padding:0 16px; }
  .header-logo img { height:46px; }
  .header-cta { height:38px; font-size:14px; padding:0 16px; }
  .hero-inner { padding:60px 18px 68px; }
  .hero-h1 { font-size:30px; }
  .hero-sub { font-size:18px; }
  .hero-tagline { font-size:14px; }
  .hero-desc { font-size:13px; }
  .btn-gold, .btn-outline-white { height:48px; font-size:14px; padding:0 18px; }
  .section-what { padding:48px 18px; }
  .section-what h2 { font-size:26px; }
  .section-features { padding:44px 12px 64px; }
  .cards-grid { grid-template-columns:1fr; gap:14px; }
  .feature-card { padding:22px 18px; }
  .section-impact { padding:48px 14px; }
  .section-impact h2 { font-size:26px; }
  .impact-box { padding:24px 14px; gap:12px; flex-direction:column; }
  .impact-num { font-size:30px; }
  .impact-op  { font-size:26px; }
  .section-quote { padding:40px 16px; }
  .section-quote::before { font-size:160px; }
  .section-quote-inner { padding:16px 24px; border-radius:32px; }
  .section-quote .line1, .section-quote .line2 { font-size:18px; }
  .section-builton { padding:48px 14px; }
  .section-builton h2 { font-size:26px; }
  .builton-card { padding:18px 14px; }
  .section-academic { padding:48px 18px; }
  .section-academic h2 { font-size:26px; }
  .section-qudra { padding:48px 14px; }
  .section-qudra h2 { font-size:26px; }
  .checklist-box { grid-template-columns:1fr; gap:12px; padding:24px 16px; }
  .section-donate-wrap { padding:28px 10px; }
  .section-donate { padding:32px 16px; }
  .section-faq { padding:48px 12px; }
  .section-faq h2 { font-size:26px; }
  details.faq-item summary { font-size:14px; min-height:56px; padding:0 14px; }
  .section-cta { padding:48px 18px; }
  .section-cta h2 { font-size:26px; }
  .section-cta .sub-text { font-size:16px; margin-bottom:26px; }
  .btn-cta { font-size:17px; padding:14px 32px; }
}
@media(max-width:420px) {
  .hero-h1 { font-size:26px; }
  .hero-btns { flex-direction:column; align-items:stretch; }
  .btn-gold, .btn-outline-white { width:100%; text-align:center; }
}
