:root {
  --ink: #081a3f;
  --blue: #1688ff;
  --muted: #65728a;
  --line: #d9e4f4;
  --shadow: 0 12px 30px rgba(8, 27, 79, 0.14);
  --container: 1120px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
body[dir="rtl"] {
  font-family: Tajawal, Arial, sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.risk-strip {
  background: #020817;
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 8px 14px;
}
.site-header {
  background: linear-gradient(135deg, #1645b8, #0d2c88);
  color: #fff;
  position: relative;
  z-index: 10;
}
.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 92%;
}
.brand-logo {
  width: 190px;
  height: auto;
}
.nav-panel,
.site-nav,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a,
.utility-link {
  font-size: 14px;
  font-weight: 800;
  opacity: 0.94;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  padding: 12px 24px;
  box-shadow: 0 8px 20px rgba(22, 136, 255, 0.25);
  cursor: pointer;
}
.btn-small {
  padding: 9px 16px;
  font-size: 13px;
}
.language-switcher {
  position: relative;
}
.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 20;
}
.language-switcher.is-open .language-menu {
  display: grid;
}
.language-menu a {
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 900;
}
.language-menu a:hover {
  background: #eef5ff;
}
body[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  margin: 5px 0;
}
.hero {
  background: linear-gradient(135deg, #123ba5, #0a247b);
  color: #fff;
  padding: 70px 0 58px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
}
.eyebrow {
  font-weight: 900;
  color: #9bd4ff;
  text-transform: uppercase;
}
.hero h1,
.subhero h1,
.article-hero h1 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1;
  margin: 0 0 18px;
  font-weight: 900;
}
.hero p {
  font-size: 20px;
  max-width: 650px;
  color: #dceaff;
}
.search-pill {
  margin-top: 24px;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.search-pill input {
  border: 0;
  outline: 0;
  width: 100%;
  font: inherit;
}
.hero-illustration {
  min-height: 310px;
  position: relative;
}
.grid-plane {
  position: absolute;
  inset: 40px 0 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: perspective(500px) rotateX(58deg);
  opacity: 0.55;
}
.cap,
.book-stack {
  position: absolute;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5fbff, #55bdff);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.cap {
  width: 160px;
  height: 68px;
  right: 120px;
  top: 50px;
  transform: skewY(-12deg);
}
.book-stack {
  width: 220px;
  height: 130px;
  right: 50px;
  bottom: 42px;
}
.academy-tabs {
  background: #edf4ff;
  border-bottom: 1px solid var(--line);
}
.academy-tabs .container {
  display: flex;
  gap: 34px;
  overflow-x: auto;
}
.academy-tabs a {
  padding: 16px 0;
  color: #24427b;
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
}
.section {
  padding: 76px 0;
}
.section-dark {
  background: #0d2c88;
  color: #fff;
}
.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}
.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--blue);
}
.section-dark .section-heading h2 {
  color: #fff;
}
.section-heading p {
  color: var(--muted);
  margin: 0;
}
.section-dark .section-heading p {
  color: #d8e8ff;
}
.card-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.news-grid {
  grid-template-columns: repeat(3, 1fr);
}
.academy-card {
  background: #fff;
  border: 1px solid #e7eef9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.section-dark .academy-card {
  color: var(--ink);
}
.thumb {
  height: 150px;
  background: linear-gradient(135deg, #e9f4ff, #8fc9ff);
  position: relative;
  overflow: hidden;
}
.thumb span {
  position: absolute;
  left: 18px;
  top: 16px;
  color: #0d2c88;
  font-weight: 900;
  font-size: 28px;
}
.thumb i,
.thumb b {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
}
.thumb i {
  width: 84px;
  height: 84px;
  right: 18px;
  bottom: 18px;
}
.thumb b {
  width: 130px;
  height: 12px;
  left: 22px;
  bottom: 26px;
}
.thumb-chart {
  background: linear-gradient(135deg, #061a59, #38a7ff);
}
.thumb-guide {
  background: linear-gradient(135deg, #d9ebff, #5aa8ff);
}
.thumb-session {
  background: linear-gradient(135deg, #163a9b, #8ae0ff);
}
.thumb-news {
  background: linear-gradient(135deg, #0b173c, #2d7fff);
}
.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.card-actions {
  margin-top: auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.text-link {
  color: #126be7;
  font-weight: 900;
}
.center {
  text-align: center;
  margin-top: 36px;
}
.learn-grid {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 44px;
  align-items: start;
}
.category-sidebar {
  display: grid;
  gap: 8px;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
body[dir="rtl"] .category-sidebar {
  border-right: 0;
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 24px;
}
.category-button {
  border: 0;
  background: #fff;
  color: #19417d;
  text-align: inherit;
  font-weight: 900;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.category-button.is-active {
  background: #0d2c88;
  color: #fff;
}
.article-select-label {
  display: block;
  font-weight: 900;
  margin-bottom: 14px;
}
.article-select-label select {
  display: block;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  width: min(280px, 100%);
}
.article-list {
  display: grid;
}
.article-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #b9c9e6;
  padding: 14px 0;
  font-weight: 800;
  color: #24427b;
}
.article-list a:after {
  content: "›";
}
body[dir="rtl"] .article-list a:after {
  content: "‹";
}
.subhero,
.article-hero {
  background: linear-gradient(135deg, #123ba5, #071b63);
  color: #fff;
  padding: 70px 0;
}
.subhero p,
.article-hero p {
  max-width: 780px;
  color: #dceaff;
  font-size: 18px;
}
.article-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  padding: 62px 0;
}
.topic-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}
.topic-sidebar h2 {
  font-size: 18px;
  margin-top: 0;
}
.topic-sidebar a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: #174a9a;
  font-weight: 800;
}
.article-body {
  font-size: 18px;
  max-width: 820px;
}
.article-body h2 {
  color: #0d2c88;
  margin-top: 0;
}
.article-body p,
.article-body li {
  color: #34445f;
}
.notice-box {
  background: #edf4ff;
  border-left: 4px solid var(--blue);
  padding: 18px;
  border-radius: 8px;
  margin-top: 24px;
}
body[dir="rtl"] .notice-box {
  border-left: 0;
  border-right: 4px solid var(--blue);
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}
.faq-list summary {
  font-weight: 900;
  cursor: pointer;
}
.pdf-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.narrow {
  max-width: 840px;
}
.legal-copy {
  font-size: 18px;
}
.license-frame {
  width: 100%;
  height: 78vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fff;
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.contact-card,
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}
.contact-form textarea,
.contact-form button {
  grid-column: 1/-1;
}
.site-footer {
  background: #050b24;
  color: #dbe7ff;
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 34px;
}
.footer-logo {
  width: 180px;
  margin-bottom: 16px;
}
.footer-links {
  display: grid;
  gap: 10px;
}
.footer-links a {
  font-weight: 800;
}
.footer-social {
  display: flex;
  gap: 10px;
  align-items: start;
}
.footer-social span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #123ba5;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 12px;
  color: #aebce0;
}
.is-hidden {
  display: none !important;
}
@media (max-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid,
  .learn-grid,
  .article-shell,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .category-sidebar {
    border: 0;
    padding: 0;
    grid-template-columns: repeat(2, 1fr);
  }
  body[dir="rtl"] .category-sidebar {
    border: 0;
    padding: 0;
  }
  .topic-sidebar {
    position: static;
  }
  .hero-illustration {
    min-height: 220px;
  }
  .brand-logo {
    width: 170px;
  }
}
@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, var(--container));
  }
  .menu-toggle {
    display: block;
  }
  .header-inner {
    min-height: 76px;
  }
  .nav-panel {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    display: none;
    grid-template-columns: 1fr;
    background: #06143f;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 96px);
    overflow: auto;
  }
  .site-header.is-open .nav-panel {
    display: grid;
  }
  .site-nav,
  .nav-actions {
    display: grid;
    gap: 0;
    align-items: stretch;
  }
  .site-nav a,
  .utility-link {
    font-size: 22px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 12px;
  }
  .nav-actions .btn {
    margin-top: 12px;
  }
  .language-switcher {
    margin: 8px 0;
  }
  .language-toggle {
    width: 100%;
    justify-content: space-between;
    border-radius: 12px;
    padding: 14px 18px;
  }
  .language-menu {
    position: static;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
  }
  .language-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  .hero {
    padding: 42px 0;
  }
  .hero-grid {
    gap: 20px;
  }
  .hero h1,
  .subhero h1,
  .article-hero h1 {
    font-size: 40px;
  }
  .section {
    padding: 54px 0;
  }
  .card-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .academy-tabs .container {
    gap: 24px;
  }
  .category-sidebar {
    grid-template-columns: 1fr;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .thumb {
    height: 135px;
  }
  .footer-grid {
    gap: 24px;
  }
  .risk-strip {
    text-align: start;
  }
  .footer-logo,
  .brand-logo {
    width: 160px;
  }
}
@media (max-width: 460px) {
  .hero h1,
  .subhero h1,
  .article-hero h1 {
    font-size: 34px;
  }
  .site-nav a,
  .utility-link {
    font-size: 19px;
  }
  .brand-logo {
    width: 150px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .contact-card,
  .contact-form {
    padding: 18px;
  }
  .article-body {
    font-size: 16px;
  }
  .license-frame {
    height: 65vh;
  }
}
