/* ============================================
   ANAS CPA - Governance Program Shared Styles
   ============================================ */

:root{
  --green:#1F4438;
  --green-dark:#163328;
  --green-darker:#0E2E1A;
  --gold:#A88A47;
  --gold-light:#C8A865;
  --gold-soft:#E8C677;
  --cream:#FAF8F3;
  --cream-dark:#EDE8DC;
  --text:#1A1A1A;
  --text-soft:#4A4A4A;
  --muted:#7A7670;
  --border:#E8E4DA;
  --white:#FFFFFF;
  --bad:#A02828;
  --shadow-sm:0 1px 3px rgba(22,63,40,.06);
  --shadow:0 4px 12px rgba(22,63,40,.08);
  --shadow-lg:0 12px 32px rgba(22,63,40,.12);
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Cairo','Tajawal','Segoe UI',Tahoma,Arial,sans-serif;
  background:var(--cream);
  color:var(--text);
  line-height:1.7;
  direction:rtl;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Remove number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
input[type=number]{-moz-appearance:textfield;appearance:textfield}

a{color:inherit;text-decoration:none}

/* ============================================
   HEADER
   ============================================ */
.site-header{
  background:var(--white);
  border-bottom:1px solid var(--cream-dark);
  padding:14px 32px;
  position:sticky;
  top:0;
  z-index:100;
  box-shadow:var(--shadow-sm);
}
.site-header .row{
  max-width:1280px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand img{
  height:54px;
  width:auto;
  object-fit:contain;
}
.brand .firm-name-block{
  border-right:2px solid var(--gold);
  padding-right:14px;
  display:none;
}
.brand .firm-name-block .name{
  font-size:13px;
  font-weight:700;
  color:var(--green);
  line-height:1.3;
}
.brand .firm-name-block .sub{
  font-size:10.5px;
  color:var(--muted);
}
@media(min-width:1100px){.brand .firm-name-block{display:block}}

.main-nav{
  display:flex;
  align-items:center;
  gap:4px;
  flex-wrap:wrap;
}
.main-nav a{
  color:var(--text);
  font-size:14.5px;
  font-weight:600;
  padding:9px 16px;
  border-radius:6px;
  transition:all .2s;
  position:relative;
}
.main-nav a:hover{color:var(--green);background:rgba(31,95,60,.05)}
.main-nav a.active{color:var(--gold);font-weight:700}
.main-nav a.active::after{
  content:'';
  position:absolute;
  bottom:-2px;
  left:16px;
  right:16px;
  height:2px;
  background:var(--gold);
}

.cta-btn{
  background:var(--green);
  color:var(--white)!important;
  font-weight:700;
  padding:10px 22px!important;
  border-radius:8px!important;
  border:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  transition:all .25s;
  font-family:inherit;
}
.cta-btn:hover{background:var(--green-dark)!important;transform:translateY(-1px)}
.cta-btn-gold{background:var(--gold)!important}
.cta-btn-gold:hover{background:var(--gold-light)!important}

/* ============================================
   HERO
   ============================================ */
.hero{
  background:linear-gradient(135deg,var(--green) 0%,var(--green-dark) 100%);
  color:var(--white);
  padding:56px 32px 64px;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:'';
  position:absolute;
  top:-100px;
  left:-50px;
  width:380px;
  height:380px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(184,134,47,.1) 0%,transparent 70%);
  pointer-events:none;
}
.hero::after{
  content:'';
  position:absolute;
  bottom:-150px;
  right:-100px;
  width:500px;
  height:500px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(184,134,47,.08) 0%,transparent 70%);
  pointer-events:none;
}
.hero-inner{
  max-width:1280px;
  margin:0 auto;
  position:relative;
  z-index:1;
}
.hero-badge{
  display:inline-block;
  background:rgba(184,134,47,.18);
  color:var(--gold-soft);
  padding:7px 18px;
  border-radius:30px;
  font-size:12.5px;
  font-weight:700;
  margin-bottom:16px;
  border:1px solid rgba(184,134,47,.4);
  letter-spacing:0.3px;
}
.hero h1{
  font-size:40px;
  font-weight:800;
  margin-bottom:14px;
  line-height:1.3;
  letter-spacing:-0.5px;
}
.hero h1 .gold-text{color:var(--gold-light)}
.hero p{
  font-size:16px;
  opacity:.92;
  line-height:1.85;
  max-width:780px;
  margin-bottom:8px;
}
.breadcrumb{
  font-size:13px;
  color:var(--gold-soft);
  margin-top:18px;
}
.breadcrumb a{color:var(--white)}
.breadcrumb a:hover{color:var(--gold-light)}

/* ============================================
   MAIN CONTENT
   ============================================ */
main{
  max-width:1280px;
  margin:0 auto;
  padding:32px 24px;
}

.section-title{
  text-align:center;
  margin:40px 0 28px;
}
.section-title .badge{
  display:inline-block;
  background:rgba(184,134,47,.12);
  color:var(--gold);
  padding:6px 18px;
  border-radius:30px;
  font-size:12.5px;
  font-weight:700;
  margin-bottom:10px;
  border:1px solid rgba(184,134,47,.25);
}
.section-title h2{
  color:var(--green);
  font-size:30px;
  font-weight:800;
  margin-bottom:8px;
  line-height:1.3;
}
.section-title p{
  color:var(--text-soft);
  font-size:15px;
  max-width:680px;
  margin:0 auto;
  line-height:1.8;
}

/* ============================================
   CARDS
   ============================================ */
.card{
  background:var(--white);
  border-radius:12px;
  padding:28px;
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  margin-bottom:20px;
  transition:box-shadow .3s,transform .3s;
}
.card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.card h2{
  color:var(--green);
  font-size:22px;
  margin-bottom:14px;
  font-weight:800;
  border-right:4px solid var(--gold);
  padding-right:14px;
}
.card h3{
  color:var(--green);
  font-size:18px;
  margin:22px 0 10px;
  font-weight:700;
}
.card h4{
  color:var(--green);
  font-size:16px;
  margin:16px 0 8px;
  font-weight:700;
}
.card p{
  margin-bottom:12px;
  color:var(--text-soft);
  line-height:1.85;
}
.card ul,.card ol{margin:8px 28px 14px;color:var(--text-soft)}
.card li{margin-bottom:6px;line-height:1.8}

/* Service-style card matching website */
.svc-card{
  background:var(--white);
  border-radius:12px;
  padding:26px 22px;
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  position:relative;
  text-align:right;
  transition:all .3s;
  height:100%;
  display:flex;
  flex-direction:column;
}
.svc-card::before{
  content:'';
  position:absolute;
  top:0;
  right:0;
  height:3px;
  width:60px;
  background:var(--gold);
  border-radius:0 0 0 4px;
}
.svc-card:hover{
  box-shadow:var(--shadow-lg);
  transform:translateY(-4px);
  border-color:var(--gold);
}
.svc-card h4{
  color:var(--green);
  font-size:17px;
  margin-bottom:10px;
  font-weight:700;
}
.svc-card p{
  color:var(--text-soft);
  font-size:14px;
  line-height:1.75;
  margin-bottom:16px;
  flex-grow:1;
}
.svc-card .more-link{
  color:var(--gold);
  font-weight:700;
  font-size:14px;
  display:inline-block;
  border-bottom:2px solid transparent;
  transition:border-color .2s;
}
.svc-card:hover .more-link{border-color:var(--gold)}

/* ============================================
   GRID
   ============================================ */
.grid{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
@media(max-width:900px){.grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}

/* ============================================
   PILLS / BADGES
   ============================================ */
.pill{
  display:inline-block;
  padding:4px 12px;
  border-radius:14px;
  font-size:12px;
  font-weight:700;
  margin-right:6px;
  letter-spacing:0.2px;
}
.pill-green{background:rgba(31,95,60,.1);color:var(--green)}
.pill-gold{background:rgba(184,134,47,.12);color:var(--gold)}
.pill-cream{background:var(--cream-dark);color:var(--text-soft)}
.pill-red{background:#FCE3E3;color:var(--bad)}

/* ============================================
   BUTTONS
   ============================================ */
.btn{
  display:inline-block;
  padding:11px 22px;
  background:var(--green);
  color:var(--white);
  border:none;
  border-radius:8px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  font-family:inherit;
  transition:all .2s;
  margin:3px;
  text-decoration:none;
}
.btn:hover{background:var(--green-dark);transform:translateY(-1px)}
.btn-outline{background:transparent;color:var(--green);border:2px solid var(--green)}
.btn-outline:hover{background:var(--green);color:var(--white)}
.btn-gold{background:var(--gold);color:var(--white)}
.btn-gold:hover{background:var(--gold-light)}
.btn-sm{padding:7px 16px;font-size:13px}

/* ============================================
   TABLES
   ============================================ */
table{
  width:100%;
  border-collapse:collapse;
  margin:18px 0;
  font-size:14px;
  background:var(--white);
  border-radius:8px;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}
table th{
  background:var(--green);
  color:var(--white);
  padding:13px 14px;
  text-align:right;
  font-weight:700;
  font-size:13.5px;
}
table td{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  text-align:right;
  color:var(--text-soft);
}
table tr:last-child td{border-bottom:none}
table tr:hover td{background:var(--cream)}
table.compact td,table.compact th{padding:8px 10px;font-size:13px}

/* ============================================
   FORMS
   ============================================ */
.field{margin-bottom:16px}
.field label{
  display:block;
  font-weight:700;
  margin-bottom:7px;
  color:var(--green);
  font-size:14px;
}
.field input,.field select,.field textarea{
  width:100%;
  padding:11px 14px;
  border:1.5px solid var(--border);
  border-radius:8px;
  font-size:14px;
  font-family:inherit;
  background:var(--white);
  direction:rtl;
  transition:all .2s;
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(184,134,47,.15);
}
.field input[readonly]{background:var(--cream);color:var(--muted)}
.field .hint{font-size:12px;color:var(--muted);margin-top:4px}

/* ============================================
   ALERTS
   ============================================ */
.alert{
  padding:14px 18px;
  border-radius:8px;
  margin:14px 0;
  border-right:4px solid;
  font-size:14px;
  line-height:1.7;
}
.alert-info{background:#F0F7F3;border-color:var(--green);color:var(--green-dark)}
.alert-warn{background:#FAEBC9;border-color:var(--gold);color:#5A4310}
.alert-success{background:#E8F2EC;border-color:var(--green);color:var(--green-dark)}
.alert-error{background:#FCE3E3;border-color:var(--bad);color:#7C1818}

/* ============================================
   FOOTER
   ============================================ */
.site-footer{
  background:var(--green-dark);
  color:var(--white);
  padding:48px 32px 24px;
  margin-top:60px;
  position:relative;
}
.site-footer::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background:linear-gradient(90deg,var(--gold),var(--gold-light),var(--gold));
}
.footer-inner{
  max-width:1280px;
  margin:0 auto;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:36px;
  margin-bottom:32px;
}
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.footer-grid{grid-template-columns:1fr}}

.footer-brand img{
  height:60px;
  width:auto;
  filter:brightness(0) invert(1);
  margin-bottom:14px;
}
.footer-brand .firm-name{
  font-size:14px;
  font-weight:700;
  color:var(--white);
  margin-bottom:4px;
}
.footer-brand .firm-tagline{
  font-size:12.5px;
  color:#B8B5AB;
  line-height:1.7;
  margin-top:8px;
}

.footer-col h4{
  color:var(--gold-light);
  font-size:14.5px;
  font-weight:800;
  margin-bottom:16px;
  letter-spacing:0.3px;
  border-bottom:1px solid rgba(184,134,47,.2);
  padding-bottom:8px;
}
.footer-col ul{list-style:none;padding:0;margin:0}
.footer-col li{margin-bottom:9px;font-size:13.5px}
.footer-col a{color:#D5D2C8;transition:color .2s}
.footer-col a:hover{color:var(--gold-light)}

.footer-contact-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:10px;
  font-size:13px;
  color:#D5D2C8;
}
.footer-contact-row .lbl{
  color:var(--gold-light);
  font-weight:700;
  min-width:46px;
}

.footer-divider{
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(184,134,47,.3),transparent);
  margin:24px 0 18px;
}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  font-size:12.5px;
  color:#9F9C92;
}
.footer-bottom .branches{display:flex;gap:8px;flex-wrap:wrap}
.footer-bottom .branch{
  background:rgba(184,134,47,.1);
  padding:4px 12px;
  border-radius:14px;
  font-size:12px;
  border:1px solid rgba(184,134,47,.2);
  color:#D5D2C8;
}
.footer-bottom .copy strong{color:var(--gold-light)}

/* ============================================
   LANDING SPECIFIC
   ============================================ */
.standard-card{
  background:var(--white);
  border-radius:14px;
  padding:32px 28px;
  border:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  text-align:right;
  transition:all .35s;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height:100%;
}
.standard-card::before{
  content:'';
  position:absolute;
  top:0;
  right:0;
  width:5px;
  height:100%;
  background:var(--gold);
  transition:width .3s;
}
.standard-card:hover{
  box-shadow:var(--shadow-lg);
  transform:translateY(-6px);
  border-color:var(--gold);
}
.standard-card:hover::before{width:8px}
.standard-card .num-tag{
  display:inline-block;
  background:rgba(31,95,60,.08);
  color:var(--green);
  padding:6px 14px;
  border-radius:20px;
  font-size:13px;
  font-weight:700;
  margin-bottom:14px;
}
.standard-card .weight{
  display:inline-block;
  background:rgba(184,134,47,.12);
  color:var(--gold);
  padding:5px 12px;
  border-radius:20px;
  font-size:12.5px;
  font-weight:700;
  margin-right:8px;
}
.standard-card h3{
  color:var(--green);
  font-size:22px;
  font-weight:800;
  margin-bottom:12px;
  line-height:1.4;
}
.standard-card p{
  color:var(--text-soft);
  line-height:1.85;
  margin-bottom:18px;
  flex-grow:1;
}
.standard-card .features{margin-bottom:20px}
.standard-card .features li{
  list-style:none;
  padding:6px 26px 6px 0;
  position:relative;
  font-size:14px;
  color:var(--text-soft);
  line-height:1.7;
}
.standard-card .features li::before{
  content:'✓';
  position:absolute;
  right:0;
  top:6px;
  color:var(--gold);
  font-weight:800;
  width:18px;
  text-align:center;
}
.standard-card .open-btn{
  display:inline-block;
  background:var(--green);
  color:var(--white);
  padding:11px 24px;
  border-radius:8px;
  font-weight:700;
  text-align:center;
  transition:background .2s;
  align-self:flex-start;
}
.standard-card:hover .open-btn{background:var(--gold)}

/* CTA section */
.cta-section{
  background:linear-gradient(135deg,var(--green) 0%,var(--green-dark) 100%);
  color:var(--white);
  padding:40px 32px;
  border-radius:14px;
  text-align:center;
  margin:32px 0;
  position:relative;
  overflow:hidden;
}
.cta-section::before{
  content:'';
  position:absolute;
  top:-80px;
  right:-80px;
  width:300px;
  height:300px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(184,134,47,.12) 0%,transparent 70%);
}
.cta-section h2{color:var(--white);font-size:26px;margin-bottom:10px;font-weight:800;border:none;padding:0}
.cta-section p{opacity:.9;font-size:15px;margin-bottom:18px;max-width:620px;margin-left:auto;margin-right:auto;color:rgba(255,255,255,.92)}

/* ============================================
   PROGRESS / CHARTS
   ============================================ */
.progress{
  width:100%;
  height:18px;
  background:var(--cream-dark);
  border-radius:9px;
  overflow:hidden;
  margin:6px 0;
}
.progress .bar{
  height:100%;
  background:linear-gradient(90deg,var(--green),var(--gold));
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  color:#fff;
  font-size:11px;
  padding-left:10px;
  font-weight:700;
  transition:width .4s;
}
.progress .bar.green{background:linear-gradient(90deg,var(--green-dark),var(--green))}
.progress .bar.gold{background:linear-gradient(90deg,var(--gold),var(--gold-light))}
.progress .bar.red{background:linear-gradient(90deg,#7C1818,var(--bad))}

/* ============================================
   STAT BOXES
   ============================================ */
.stat{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:12px;
  padding:24px 18px;
  text-align:center;
  border-top:4px solid var(--gold);
  transition:transform .25s,box-shadow .25s;
}
.stat:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.stat .num{font-size:38px;font-weight:800;color:var(--green);line-height:1}
.stat .lbl{font-size:13.5px;color:var(--text-soft);margin-top:8px;font-weight:600}

/* ============================================
   PRINT
   ============================================ */
@media print{
  .site-header,.cta-btn,.btn,.no-print{display:none!important}
  .card,.standard-card{box-shadow:none;border:1px solid #999;page-break-inside:avoid}
  body{background:#fff}
  .hero{padding:24px}
  .footer-inner{font-size:11pt}
}

/* ============================================
   MOBILE
   ============================================ */
@media(max-width:768px){
  .hero h1{font-size:26px}
  .hero{padding:36px 20px 44px}
  main{padding:24px 16px}
  .card{padding:20px}
  .main-nav a:not(.cta-btn){display:none}
  .site-header{padding:12px 16px}
  .brand img{height:42px}
  .section-title h2{font-size:22px}
}

.divider{height:1px;background:var(--border);margin:24px 0}

/* Floating mini buttons */
.floating-actions{
  position:fixed;
  bottom:24px;
  left:24px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:90;
}
.floating-actions button{
  width:50px;
  height:50px;
  border-radius:50%;
  background:var(--green);
  color:var(--white);
  border:none;
  cursor:pointer;
  font-size:18px;
  box-shadow:var(--shadow-lg);
  transition:all .2s;
}
.floating-actions button:hover{transform:translateY(-3px);background:var(--gold)}

/* ============================================
   Mobile-friendly tables + swipe hint (added per audit)
   ============================================ */
@media(max-width: 700px){
  .card table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-radius: 8px;
  }
  .card table::-webkit-scrollbar{height: 4px}
  .card table::-webkit-scrollbar-thumb{background: var(--gold); border-radius: 4px}
  /* Swipe hint visible only on mobile */
  .card table:not(.no-hint)::before{
    content: '↔ اسحب أفقيًّا لرؤية كامل الجدول';
    display: block;
    background: var(--cream);
    color: var(--gold);
    padding: 6px 10px;
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
  }
}

/* Table caption styling for accessibility */
.card table caption{
  caption-side: top;
  text-align: right;
  font-weight: 700;
  color: var(--green);
  padding: 8px 4px;
  font-size: 14px;
}

/* Better focus indicators (a11y) */
button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================================
   Premium Question Cards (الامتثال + الشفافيّة)
   عرض احترافي للسؤال + الشواهد + التقييم
   ============================================================ */
.q-item{
  background:#fff;
  border:1.5px solid var(--border);
  border-radius:12px;
  padding:18px 20px;
  margin-bottom:14px;
  border-right:4px solid var(--gold);
  transition:all .2s cubic-bezier(.4,0,.2,1);
  position:relative;
}
.q-item:hover{
  box-shadow:0 6px 18px rgba(14,61,42,.08);
  transform:translateY(-1px);
}
.q-item.rated-100{border-right-color:#1b8a4a;background:linear-gradient(135deg,#fff,#f3fbf5)}
.q-item.rated-50{border-right-color:#A88A47;background:linear-gradient(135deg,#fff,#fdfaef)}
.q-item.rated-0{border-right-color:#a83232;background:linear-gradient(135deg,#fff,#fef5f5)}

.q-item .q-head{
  display:flex;align-items:flex-start;gap:14px;margin-bottom:14px;
}
.q-item .q-num{
  flex-shrink:0;
  width:36px;height:36px;
  background:linear-gradient(135deg,var(--green),var(--green-dark));
  color:var(--gold);
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:15px;
  box-shadow:0 3px 8px rgba(14,61,42,.18);
}
.q-item .q-text{
  flex:1;
  font-weight:700;color:var(--green-dark);
  font-size:15px;line-height:1.85;
  padding-top:5px;
}

/* Evidence collapsible block */
.q-item .ev-block{
  background:linear-gradient(135deg,var(--cream),#fff);
  border:1px solid rgba(184,134,47,.25);
  border-radius:10px;
  padding:0;
  margin:0 0 14px;
  overflow:hidden;
  transition:all .2s;
}
.q-item .ev-block summary{
  cursor:pointer;
  padding:11px 16px;
  font-size:13.5px;color:var(--gold);
  font-weight:700;
  list-style:none;
  display:flex;align-items:center;gap:8px;
  background:rgba(184,134,47,.08);
}
.q-item .ev-block summary::-webkit-details-marker{display:none}
.q-item .ev-block summary::after{
  content:'+';color:var(--gold);font-size:18px;font-weight:800;
  margin-right:auto;
}
.q-item .ev-block[open] summary::after{content:'−'}
.q-item .ev-block[open]{box-shadow:inset 0 0 0 1px rgba(184,134,47,.4)}
.q-item .ev-block summary strong{color:var(--green-dark)}
.q-item .ev-block .ev-count{
  background:var(--gold);color:#fff;
  padding:1px 8px;border-radius:10px;font-size:11.5px;font-weight:800;
  min-width:22px;text-align:center;
}
.q-item .ev-list{
  margin:0;padding:12px 18px 14px 24px;list-style:none;
  background:#fff;
}
.q-item .ev-list li{
  position:relative;
  padding:5px 22px 5px 0;
  font-size:13.5px;color:var(--text-soft);line-height:1.85;
}
.q-item .ev-list li::before{
  content:'';position:absolute;right:6px;top:14px;
  width:6px;height:6px;border-radius:50%;
  background:var(--gold);
}

/* Rating row */
.q-item .q-rating{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding-top:12px;border-top:1px dashed rgba(14,61,42,.10);
}
.q-item .rt-label{
  font-size:13.5px;font-weight:700;color:var(--green-dark);
}
.q-item .q-rating select{
  flex:1;min-width:200px;
  padding:10px 14px;font-size:14px;
  border:1.5px solid var(--border);border-radius:8px;
  background:#fff;font-family:inherit;
  color:var(--green-dark);font-weight:600;
  cursor:pointer;transition:border-color .2s;
}
.q-item .q-rating select:hover{border-color:var(--gold)}
.q-item .q-rating select:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(184,134,47,.15)}

/* ============================================================
   Evaluation Disclaimer Block (آخر كلّ تقييم)
   ============================================================ */
.eval-disclaimer{
  display:flex;align-items:flex-start;gap:14px;
  margin-top:24px;
  background:linear-gradient(135deg,#fff8e1,#FAF8F3);
  border:1.5px solid var(--gold);
  border-right:5px solid var(--gold);
  border-radius:12px;
  padding:18px 22px;
  box-shadow:0 4px 14px rgba(184,134,47,.10);
}
.eval-disclaimer .ed-icon{
  flex-shrink:0;
  width:42px;height:42px;
  background:linear-gradient(135deg,var(--gold),#8a6e3a);
  color:#fff;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  margin-top:2px;
}
.eval-disclaimer .ed-text{
  font-size:14px;color:#5b4318;line-height:1.95;flex:1;
}
.eval-disclaimer .ed-text strong{color:var(--green-dark);font-weight:800}
.eval-disclaimer .ed-text ul{
  margin:10px 22px 10px 0;padding:0;list-style:none;
}
.eval-disclaimer .ed-text ul li{
  position:relative;padding:4px 18px 4px 0;
  font-size:13.5px;color:#5b4318;
}
.eval-disclaimer .ed-text ul li::before{
  content:'';position:absolute;right:0;top:13px;
  width:6px;height:6px;border-radius:50%;
  background:var(--gold);
}
@media(max-width:600px){
  .eval-disclaimer{flex-direction:column;gap:8px}
  .eval-disclaimer .ed-icon{width:34px;height:34px}
}

/* ============================================================
   Q-CARD — Premium visual separation for assessment questions
   ============================================================ */
.q-card{
  display:flex;
  gap:14px;
  align-items:flex-start;
  background:#fff;
  border:1px solid #e7e0c8;
  border-right:4px solid #A88A47;
  border-radius:12px;
  padding:16px 18px;
  margin-bottom:14px;
  box-shadow:0 1px 4px rgba(22,63,40,.04);
  transition:box-shadow .25s, transform .25s, border-right-color .25s;
}
.q-card:hover{
  box-shadow:0 6px 18px rgba(22,63,40,.08);
  transform:translateY(-1px);
}
.q-card .q-num{
  flex-shrink:0;
  width:36px;
  height:36px;
  border-radius:50%;
  background:linear-gradient(135deg,#1F4438,#2a7a4e);
  color:#fff;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
}
.q-card .q-body{flex:1;min-width:0}
.q-card .q-text{
  font-size:15px;
  font-weight:600;
  color:#1A1A1A;
  margin-bottom:10px;
  line-height:1.75;
}
.q-card .q-ev{
  margin:8px 0;
  padding:8px 12px;
  background:#FAF8F3;
  border-right:3px solid #A88A47;
  border-radius:6px;
  font-size:13px;
}
.q-card .q-ev summary{
  cursor:pointer;
  color:#5b4318;
  font-weight:700;
  list-style:none;
  user-select:none;
}
.q-card .q-ev summary::before{content:'📄 '}
.q-card .q-ev[open] summary{margin-bottom:6px}
.q-card .q-ev div{color:#3a2c0f;line-height:1.7}
.q-card .q-rate{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}
.q-card .q-rate label{
  flex:1 1 auto;
  min-width:140px;
  padding:8px 12px;
  border:1.5px solid #e0d8c2;
  border-radius:8px;
  font-size:13.5px;
  cursor:pointer;
  transition:all .2s;
  background:#fafaf7;
  display:flex;
  align-items:center;
  gap:6px;
}
.q-card .q-rate label:hover{border-color:#A88A47;background:#FAF8F3}
.q-card .q-rate input{margin-left:4px;cursor:pointer}
.q-card .q-rate input:checked + span,
.q-card .q-rate label:has(input:checked){
  background:rgba(31,95,60,.08);
  border-color:#1F4438;
  color:#1F4438;
  font-weight:700;
}

/* Rated state colors — applied via JS class on container */
.q-card.rated-100{border-right-color:#1F4438;background:linear-gradient(to left,#f4f9f6 0%,#fff 50%)}
.q-card.rated-50{border-right-color:#A88A47;background:linear-gradient(to left,#FAF8F3 0%,#fff 50%)}
.q-card.rated-0{border-right-color:#A02828;background:linear-gradient(to left,#fdf3f3 0%,#fff 50%)}

@media (max-width:700px){
  .q-card{padding:14px 12px;gap:10px}
  .q-card .q-num{width:30px;height:30px;font-size:13px}
  .q-card .q-text{font-size:14px}
  .q-card .q-rate label{min-width:100%}
}

/* ============================================================
   Q-CARD v3 — Premium structure with weights and verification
   ============================================================ */
.q-card .q-head{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:10px;
}
.q-card .q-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:11.5px;
}
.q-card .q-weight{
  display:inline-flex;
  align-items:center;
  gap:4px;
  background:rgba(184,134,47,.12);
  color:#7C5A1A;
  padding:3px 8px;
  border-radius:12px;
  font-weight:700;
  border:1px solid rgba(184,134,47,.25);
}
.q-card .q-type{
  display:inline-flex;
  align-items:center;
  gap:4px;
  background:rgba(31,95,60,.10);
  color:#1F4438;
  padding:3px 8px;
  border-radius:12px;
  font-weight:600;
}
.q-card .q-vr{
  margin:8px 0;
  padding:8px 12px;
  background:#f0f4f0;
  border-right:3px solid #1F4438;
  border-radius:6px;
  font-size:13px;
}
.q-card .q-vr summary{
  cursor:pointer;
  color:#1F4438;
  font-weight:700;
  list-style:none;
  user-select:none;
}
.q-card .q-vr[open] summary{margin-bottom:6px}
.q-card .q-vr div{color:#2a3d34;line-height:1.7}

.q-opt{
  flex:1 1 auto;
  min-width:140px;
  padding:10px 14px;
  border:1.5px solid #e0d8c2;
  border-radius:8px;
  font-size:13.5px;
  cursor:pointer;
  transition:all .2s;
  background:#fafaf7;
  display:flex;
  align-items:center;
  gap:8px;
  user-select:none;
}
.q-opt:hover{transform:translateY(-1px);box-shadow:0 2px 8px rgba(22,63,40,.08)}
.q-opt input{margin-left:0;cursor:pointer;accent-color:#1F4438}
.q-opt span{flex:1}

.q-opt-green:has(input:checked){background:rgba(31,95,60,.10);border-color:#1F4438;color:#1F4438;font-weight:700}
.q-opt-gold:has(input:checked){background:rgba(184,134,47,.10);border-color:#A88A47;color:#7C5A1A;font-weight:700}
.q-opt-red:has(input:checked){background:rgba(160,40,40,.06);border-color:#A02828;color:#A02828;font-weight:700}

/* ============================================================
   Q-CARD v4 — larger readable fonts (per user feedback)
   ============================================================ */
.q-card .q-text{font-size:16.5px;line-height:1.8;font-weight:600}
.q-card .q-vr{font-size:14.5px;padding:12px 14px}
.q-card .q-vr summary{font-size:14.5px;font-weight:700}
.q-card .q-vr div{font-size:14.5px;line-height:1.85;padding-top:8px}
.q-card .q-meta{font-size:13px}
.q-card .q-weight,.q-card .q-type{font-size:12.5px;padding:4px 10px}
.q-opt{font-size:14.5px;padding:12px 16px;min-width:160px}
.q-opt span{font-size:14.5px}
@media (max-width:700px){
  .q-card .q-text{font-size:15.5px}
  .q-card .q-vr,.q-card .q-vr div{font-size:14px}
  .q-opt{font-size:14px;padding:10px 14px;min-width:100%}
}

/* ============================================================
   Indicator Cards (المؤشرات)
   ============================================================ */
.ind-card{background:#fff;border:1px solid #e7e0c8;border-radius:14px;padding:20px 24px;margin-bottom:22px;box-shadow:0 2px 8px rgba(22,63,40,.05)}
.ind-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-bottom:14px;border-bottom:2px solid #f0e9d6;margin-bottom:18px;flex-wrap:wrap}
.ind-title{display:flex;align-items:center;gap:12px}
.ind-num{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#1F4438,#2a7a4e);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;flex-shrink:0}
.ind-name{font-size:18px;font-weight:700;color:#1F4438}
.ind-stats{display:flex;gap:8px;flex-wrap:wrap}
.ind-stat{background:rgba(184,134,47,.12);color:#7C5A1A;padding:5px 12px;border-radius:14px;font-size:12.5px;font-weight:600;border:1px solid rgba(184,134,47,.25)}
.q-list{display:flex;flex-direction:column;gap:12px}
.q-method{background:#f0f4f0;color:#5f5e5a;padding:3px 10px;border-radius:10px;font-weight:500;font-size:12px}
@media(max-width:700px){.ind-card{padding:16px;margin-bottom:18px}.ind-na