/* Abnaa Tuwaiq PRO v2 — home page only */
:root{
  --pro-navy:#0b3557;
  --pro-navy-2:#123f61;
  --pro-green:#2f8b57;
  --pro-green-dark:#216c43;
  --pro-ink:#17364c;
  --pro-muted:#617485;
  --pro-line:#dce7ed;
  --pro-soft:#f6f9fb;
  --pro-soft-green:#f2f9f5;
  --pro-white:#fff;
  --pro-shadow:0 18px 50px rgba(15,52,80,.08);
  --pro-title-font:"Alexandria","IBM Plex Sans Arabic",Tahoma,Arial,sans-serif;
  --pro-body-font:"IBM Plex Sans Arabic",Tahoma,Arial,sans-serif;
}

.home-page.pro-home{background:#fff;color:var(--pro-ink);font-family:var(--pro-body-font)!important}
.pro-home main{overflow:hidden}
.pro-home h1,.pro-home h2,.pro-home h3,.pro-home .tuwaiq-section-title h2{font-family:var(--pro-title-font)!important;letter-spacing:0!important}

/* Header: force readable dark navigation on white */
.pro-home .tuwaiq-header{
  position:sticky;top:0;z-index:50;height:82px;
  background:#f7faf8!important;
  color:#102b40!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  border-bottom:1px solid #d4e0da;
  box-shadow:0 3px 16px rgba(13,53,82,.07)
}
.pro-home .tuwaiq-brand img{height:66px!important;width:auto!important}
.pro-home .tuwaiq-brand{opacity:1!important;filter:none!important}
.pro-home .tuwaiq-nav{gap:4px}
.pro-home .tuwaiq-nav a{
  color:#102b40!important;
  opacity:1!important;
  -webkit-text-fill-color:#102b40!important;
  padding:10px 12px!important;
  border-radius:10px;
  font-family:var(--pro-title-font)!important;
  font-size:14px!important;
  font-weight:700!important;
  letter-spacing:0!important;
  text-shadow:none!important;
  filter:none!important
}
.pro-home .tuwaiq-nav a:after{display:none!important}
.pro-home .tuwaiq-nav a:hover,.pro-home .tuwaiq-nav a.active{background:#dfeee5!important;color:#175d39!important;-webkit-text-fill-color:#175d39!important}
.pro-home .nav-login-v2{background:var(--pro-navy)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;padding-inline:16px!important;border-color:var(--pro-navy)!important}
.pro-home .nav-login-v2:hover{background:var(--pro-navy-2)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}

/* First screen: one decision, one place */
.pro-hero{position:relative;padding:42px 20px 34px;background:linear-gradient(135deg,#f8fbfd 0%,#f3faf6 55%,#fff 100%);border-bottom:1px solid #e7eff3}
.pro-hero:before{content:"";position:absolute;inset:-170px auto auto -120px;width:440px;height:440px;border-radius:50%;background:radial-gradient(circle,rgba(47,139,87,.10),rgba(47,139,87,0) 68%);pointer-events:none}
.pro-hero-inner{width:min(1120px,94%);margin:auto;position:relative;z-index:1}
.pro-hero-single{display:block}
.pro-hero-copy{text-align:center;max-width:860px;margin:0 auto 24px}
.pro-kicker{display:inline-flex;align-items:center;gap:8px;background:#eaf6ee;color:var(--pro-green-dark);border:1px solid #cfe7d7;border-radius:999px;padding:7px 13px;font-size:13px;font-weight:700}
.pro-kicker:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--pro-green)}
.pro-hero h1{font-size:clamp(34px,4.5vw,54px);line-height:1.32;color:var(--pro-navy);margin:15px 0 9px;font-weight:800}
.pro-hero h1 em{font-style:normal;color:var(--pro-green)}
.pro-hero-copy>p{font-size:17px;line-height:1.85;color:#526a7b;max-width:680px;margin:0 auto}

.pro-chooser{max-width:1040px;margin:0 auto;background:#fff;border:1px solid var(--pro-line);border-radius:22px;box-shadow:var(--pro-shadow);overflow:hidden}
.pro-role-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-bottom:1px solid var(--pro-line);background:#fbfdfe}
.pro-role-tab{appearance:none;border:0;border-left:1px solid var(--pro-line);background:transparent;color:#345165;min-height:64px;padding:10px 14px;display:flex;align-items:center;justify-content:center;gap:9px;font-family:var(--pro-body-font);font-weight:700;font-size:15px;cursor:pointer;transition:.18s}
.pro-role-tab:last-child{border-left:0}
.pro-role-tab span{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#edf4f7;color:var(--pro-navy);font-weight:800}
.pro-role-tab:hover{background:#f3f8f5;color:var(--pro-green-dark)}
.pro-role-tab.is-active{background:#eef8f2;color:var(--pro-green-dark);box-shadow:inset 0 -3px 0 var(--pro-green)}
.pro-role-tab.is-active span{background:var(--pro-green);color:#fff}
.pro-role-tab:focus-visible{outline:3px solid rgba(47,139,87,.25);outline-offset:-3px}

.pro-role-results{padding:18px}
.pro-role-result[hidden]{display:none!important}
.pro-result-head{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin-bottom:12px;padding:0 2px}
.pro-result-head b{font-family:var(--pro-title-font);font-size:17px;color:var(--pro-navy);font-weight:700}
.pro-result-head small{font-size:12px;color:var(--pro-muted)}
.pro-test-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pro-test-grid.two{grid-template-columns:repeat(2,1fr)}
.pro-test-grid.one{grid-template-columns:1fr}
.pro-test-grid.teacher-grid{grid-template-columns:repeat(5,1fr)}
.pro-test-grid a{min-height:88px;padding:14px;border:1px solid #dfe9ee;border-radius:14px;background:#fff;text-decoration:none;color:var(--pro-ink);display:flex;flex-direction:column;gap:4px;transition:.18s}
.pro-test-grid a:hover{transform:translateY(-2px);border-color:#b8d8c3;background:#f7fcf9;box-shadow:0 9px 22px rgba(15,52,80,.06)}
.pro-test-grid strong{font-family:var(--pro-title-font);font-size:14px;line-height:1.5;color:var(--pro-navy);font-weight:700}
.pro-test-grid span{font-size:12px;color:var(--pro-muted)}
.pro-test-grid em{font-style:normal;margin-top:auto;color:var(--pro-green-dark);font-size:12px;font-weight:700}

/* Direct access: compact, not another card catalogue */
.pro-quick-section{background:#fff;border-bottom:1px solid #e8eff3}
.pro-quick-inner{width:min(1120px,94%);margin:auto;padding:24px 0}
.pro-quick-head.compact{text-align:center;margin-bottom:13px}
.pro-quick-head h2{margin:0;color:var(--pro-navy);font-size:21px;font-weight:700}
.pro-quick-head p{margin:3px 0 0;color:var(--pro-muted);font-size:13px}
.pro-quick-pills{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.pro-quick-pills a{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 14px;border:1px solid var(--pro-line);border-radius:999px;background:#fbfdfe;text-decoration:none;color:#28485f;font-size:13px;font-weight:700;transition:.18s}
.pro-quick-pills a span{color:var(--pro-green)}
.pro-quick-pills a:hover{background:#eef8f2;border-color:#bcd9c5;color:var(--pro-green-dark)}

/* One narrow proof strip */
.pro-proof{width:min(1120px,94%);margin:22px auto 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--pro-line);border-radius:16px;overflow:hidden;background:#fff}
.pro-proof div{padding:14px 12px;text-align:center;border-left:1px solid var(--pro-line)}
.pro-proof div:last-child{border-left:0}
.pro-proof b{display:inline-block;font-family:var(--pro-title-font);font-size:20px;color:var(--pro-navy);margin-left:6px}
.pro-proof span{font-size:12px;color:var(--pro-muted)}

/* Small explainer, no oversized section */
.pro-how-compact{width:min(900px,92%);margin:22px auto 36px;padding:12px 16px;display:flex;align-items:center;justify-content:center;gap:18px;border-radius:14px;background:var(--pro-soft);color:#4f6576}
.pro-how-compact div{display:flex;align-items:center;gap:8px}
.pro-how-compact span{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:var(--pro-navy);color:#fff;font-size:11px;font-weight:800}
.pro-how-compact b{font-size:13px;color:#355166}
.pro-how-compact i{font-style:normal;color:#9aabb7}

/* SEO stays low on the page */
.pro-seo{background:#fbfcfd;border-top:1px solid #edf2f5;padding-top:48px!important}
.pro-seo .seo-copy-grid article{box-shadow:none;border-radius:15px;padding:19px}
.pro-seo .seo-copy-grid article h3{font-family:var(--pro-title-font)!important;font-size:15px;margin-top:0;color:var(--pro-navy)}
.pro-seo .seo-copy-grid article p{font-size:13px;line-height:1.8;color:var(--pro-muted)}
.pro-seo .seo-copy-grid article a{font-size:13px;color:var(--pro-green-dark);font-weight:700}
.pro-home #links{padding-top:42px}
.pro-home .visual-links{gap:14px}
.pro-home .visual-link{border-radius:18px;overflow:hidden}

@media(max-width:1050px){
  .pro-test-grid.teacher-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .pro-home .tuwaiq-header{height:74px}
  .pro-home .tuwaiq-brand img{height:58px!important}
}
@media(max-width:760px){
  .pro-hero{padding:30px 14px 26px}
  .pro-hero-inner{width:100%}
  .pro-hero h1{font-size:34px}
  .pro-hero-copy>p{font-size:15px}
  .pro-role-tabs{grid-template-columns:1fr 1fr}
  .pro-role-tab:nth-child(2){border-left:0}
  .pro-role-tab:nth-child(-n+2){border-bottom:1px solid var(--pro-line)}
  .pro-role-tab{min-height:58px;font-size:13px}
  .pro-result-head{align-items:flex-start;flex-direction:column;gap:2px}
  .pro-test-grid,.pro-test-grid.two,.pro-test-grid.teacher-grid{grid-template-columns:1fr 1fr}
  .pro-test-grid.one{grid-template-columns:1fr}
  .pro-proof{grid-template-columns:1fr 1fr}
  .pro-proof div:nth-child(2){border-left:0}
  .pro-proof div:nth-child(-n+2){border-bottom:1px solid var(--pro-line)}
  .pro-how-compact{gap:8px;flex-wrap:wrap}
  .pro-how-compact i{display:none}
}
@media(max-width:520px){
  .pro-hero h1{font-size:30px}
  .pro-role-results{padding:13px}
  .pro-test-grid,.pro-test-grid.two,.pro-test-grid.teacher-grid{grid-template-columns:1fr}
  .pro-test-grid a{min-height:78px}
  .pro-quick-inner{padding:20px 0}
  .pro-quick-pills{justify-content:flex-start}
  .pro-quick-pills a{flex:1 1 calc(50% - 8px);justify-content:space-between;border-radius:12px;min-height:42px}
  .pro-proof b{display:block;margin:0 0 2px;font-size:19px}
  .pro-how-compact{justify-content:flex-start}
}

/* V4 fallback for dynamically built global navigation */
.pro-home .tuwaiq-nav .nav2-trigger,
.pro-home .tuwaiq-nav .nav2-direct{
  color:#102b40!important;
  -webkit-text-fill-color:#102b40!important;
  opacity:1!important;
  font-family:var(--pro-title-font)!important;
  font-weight:700!important;
}

/* FINAL HOME QA POLISH — 2026-08-23
   Scope intentionally limited to the homepage so exam engines/pages remain untouched. */
.pro-home{
  --pro-muted:#465f72;
  --pro-line:#d4e1e8;
}

/* Keep the main chooser crisp and obviously clickable */
.pro-home .pro-hero-copy>p{color:#425b6d;font-weight:500}
.pro-home .pro-result-head small,
.pro-home .pro-test-grid span,
.pro-home .pro-quick-head p{color:#52697a}
.pro-home .pro-test-grid a{
  border-color:#d4e1e7;
  background:#ffffff;
  box-shadow:0 2px 10px rgba(13,53,82,.035);
}
.pro-home .pro-test-grid a:hover{
  border-color:#9fcbb0;
  background:#f5fbf7;
  box-shadow:0 8px 22px rgba(15,52,80,.075)
}
.pro-home .pro-test-grid em{color:#17683e}

/* Direct-access controls: small, clear and high contrast */
.pro-home .pro-quick-section{background:#fbfdfc}
.pro-home .pro-quick-pills a{
  background:#fff;
  border-color:#cfdde4;
  color:#173d58;
  box-shadow:0 2px 7px rgba(15,52,80,.035)
}
.pro-home .pro-quick-pills a:hover{
  background:#eaf6ee;
  border-color:#9fcbb0;
  color:#145d38
}

/* Proof strip must remain readable even on low-contrast displays */
.pro-home .pro-proof{border-color:#cfdde4;background:#fbfdfe}
.pro-home .pro-proof b{color:#0b3557;font-weight:800}
.pro-home .pro-proof span{color:#425b6d;font-weight:600}
.pro-home .pro-how-compact{background:#f1f5f7;color:#425b6d}
.pro-home .pro-how-compact b{color:#28465b;font-weight:700}

/* SEO: useful for search, intentionally quieter than the test chooser */
.pro-home .pro-seo{padding-top:38px!important;padding-bottom:48px!important}
.pro-home .pro-seo .tuwaiq-section-title{margin-bottom:26px}
.pro-home .pro-seo .tuwaiq-section-title>span{font-size:12px}
.pro-home .pro-seo .tuwaiq-section-title h2{
  font-size:clamp(25px,3vw,34px)!important;
  line-height:1.45;
  margin-top:7px
}
.pro-home .pro-seo .seo-copy-grid{gap:12px}
.pro-home .pro-seo .seo-copy-grid article{
  padding:16px 17px;
  border-radius:13px;
  border-color:#d9e4ea;
  background:#fff
}
.pro-home .pro-seo .seo-copy-grid article p{color:#4b6374}

/* روابطنا: deliberately small square tiles instead of oversized image panels */
.pro-home #links{
  padding-top:38px;
  padding-bottom:48px
}
.pro-home #links .tuwaiq-section-title{margin-bottom:24px}
.pro-home #links .tuwaiq-section-title h2{font-size:clamp(25px,3vw,34px)}
.pro-home #links .tuwaiq-section-title p{color:#465f72}
.pro-home #links .visual-links{
  grid-template-columns:repeat(3,minmax(0,180px));
  justify-content:center;
  align-items:stretch;
  gap:16px
}
.pro-home #links .visual-link{
  width:100%;
  height:auto!important;
  aspect-ratio:1/1;
  border-radius:16px;
  box-shadow:0 9px 24px rgba(7,45,36,.12)
}
.pro-home #links .visual-content{padding:15px}
.pro-home #links .visual-content small{font-size:10px}
.pro-home #links .visual-content strong{margin-top:4px;font-size:16px;line-height:1.45}
.pro-home #links .visual-content em{margin-top:7px;font-size:10.5px}

@media(max-width:760px){
  .pro-home #links .visual-links{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px
  }
  .pro-home #links .visual-content{padding:10px}
  .pro-home #links .visual-content small{display:none}
  .pro-home #links .visual-content strong{font-size:13px}
  .pro-home #links .visual-content em{font-size:9.5px;margin-top:5px}
}
@media(max-width:430px){
  .pro-home #links .visual-links{grid-template-columns:repeat(3,1fr);gap:8px}
  .pro-home #links .visual-content strong{font-size:11.5px}
  .pro-home #links .visual-content em{display:none}
}
