:root {
  --ink: #17211c;
  --muted: #5b6962;
  --line: #d8e3dd;
  --paper: #f5f8f6;
  --surface: #ffffff;
  --green: #0b7a4b;
  --green-dark: #075738;
  --gold: #d99b1c;
  --teal: #0f6f7b;
  --shadow: 0 14px 34px rgba(23, 33, 28, .09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Noto Naskh Arabic", "Noto Nastaliq Urdu", sans-serif;
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(11, 122, 75, .24);
  border-radius: 8px;
  background: #eef7f2;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #334139;
  font-weight: 800;
}

.main-nav a {
  padding: 9px 10px;
  border-radius: 6px;
}

.main-nav a:hover {
  color: var(--green-dark);
  background: #edf6f1;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--surface);
}

section {
  padding: clamp(42px, 6vw, 76px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  gap: 30px;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(11, 122, 75, .1), rgba(15, 111, 123, .05)),
    #fff;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-lead,
.section-title p {
  max-width: 860px;
  color: #394840;
  font-size: 18px;
}

.hero-actions,
.register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
}

.notice-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.notice-panel img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: #f3f7f5;
}

.notice-list {
  padding: 18px;
}

.notice-list h2 {
  font-size: 24px;
}

.notice-list a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #2f3d36;
  font-weight: 800;
}

.notice-list span {
  display: inline-block;
  min-width: 92px;
  color: var(--green);
}

.section-title {
  max-width: 920px;
  margin-bottom: 28px;
}

.directory-grid,
.topic-grid,
.language-grid,
.safety-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.directory-grid article,
.topic-grid article,
.language-grid article,
.safety-grid article,
.faq-grid article,
.news-list article,
.article-list a,
.spec-table div,
.update-table a,
.link-hub a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.directory-grid article,
.topic-grid article,
.language-grid article,
.safety-grid article,
.faq-grid article {
  padding: 22px;
}

.directory-grid span {
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
}

.directory-grid p,
.topic-grid p,
.language-grid p,
.safety-grid p,
.faq-grid p,
.news-list p,
.article-list span,
.featured-article p,
.update-table em {
  color: var(--muted);
}

.directory-grid a,
.topic-grid a,
.featured-article a {
  color: var(--green-dark);
  font-weight: 900;
}

.info-section,
.topics-section,
.updates-section,
.links-section,
.download-section,
.language-section,
.faq-section {
  background: #f7faf8;
}

.download-layout {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.download-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.primary-download {
  color: #eef8f3;
  border-color: rgba(11, 122, 75, .24);
  background:
    linear-gradient(135deg, rgba(11, 122, 75, .94), rgba(15, 111, 123, .86)),
    var(--green);
}

.download-card p {
  color: var(--muted);
}

.primary-download p {
  color: #e4f1eb;
}

.step-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.download-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.download-facts div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.download-facts strong,
.download-facts span {
  display: block;
}

.download-facts strong {
  color: var(--green);
  font-weight: 900;
}

.download-facts span {
  margin-top: 4px;
  color: var(--muted);
}

.topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.updates-section {
  background: #fff;
}

.update-table {
  display: grid;
  gap: 10px;
}

.update-table a {
  display: grid;
  grid-template-columns: 130px minmax(180px, .7fr) 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}

.update-table span {
  color: var(--green);
  font-weight: 900;
}

.update-table strong {
  color: var(--ink);
}

.update-table em {
  font-style: normal;
}

.links-section {
  background: #fff;
}

.link-hub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-hub a {
  padding: 12px 16px;
  color: var(--green-dark);
  font-weight: 900;
}

.spec-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.spec-table div {
  padding: 18px;
}

.spec-table dt {
  color: var(--green);
  font-weight: 900;
}

.spec-table dd {
  margin: 8px 0 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 18px;
}

.featured-article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 122, 75, .08), rgba(217, 155, 28, .07)),
    #fff;
  box-shadow: var(--shadow);
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-list a {
  display: block;
  padding: 18px;
}

.article-list strong,
.article-list span {
  display: block;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: #edf6f1;
}

.game-card h3,
.game-card p {
  padding-inline: 16px;
}

.game-card h3 {
  margin-top: 14px;
}

.game-card p {
  margin-bottom: 18px;
  color: var(--muted);
}

.language-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.language-grid article[dir="rtl"] {
  text-align: right;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-list article {
  padding: 22px;
}

.news-list span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 900;
}

.safety-section,
.register-section {
  color: #eef8f3;
  background: #101b16;
}

.safety-section .eyebrow,
.register-section .eyebrow {
  color: #f0c75f;
}

.safety-section .section-title p,
.register-section p {
  color: #dce8e2;
}

.safety-grid article {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}

.safety-grid p {
  color: #dce8e2;
}

.register-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.register-section h2 {
  font-size: clamp(30px, 4.4vw, 56px);
}

.contact-section {
  background: #eef5f1;
}

.contact-line {
  max-width: 980px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.contact-line strong {
  color: var(--green);
}

.contact-line span {
  color: #91a098;
  margin: 0 8px;
}

.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 56px);
  color: #dce8e2;
  background: #0d1713;
}

.site-footer a {
  color: #fff;
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header,
  .register-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .directory-grid,
  .topic-grid,
  .safety-grid,
  .faq-grid,
  .game-grid,
  .spec-table,
  .download-layout,
  .download-facts,
  .news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    padding: 7px 8px;
    font-size: 14px;
  }

  section {
    padding-inline: 16px;
  }

  .directory-grid,
  .topic-grid,
  .language-grid,
  .safety-grid,
  .faq-grid,
  .game-grid,
  .spec-table,
  .download-layout,
  .download-facts,
  .news-list {
    grid-template-columns: 1fr;
  }

  .update-table a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .notice-panel img {
    height: auto;
  }
}
