/* ============ TOKENS ============ */
:root {
  /* ألوان الهوية */
  --brand-orange: #f36e33;
  --brand-blue: #182c47;

  /* أساس */
  --bg-page: #ffffff;
  --bg-section: #F5F6FA;
  --text-base: #182c47;
  --text-muted: #475569;
  --text-heading: #0b1220;
  --link: #182c47;
  --link-hover: #f36e33;
  --border: #e5e7eb;
  --primary: #ff6600;
  /* الاساسي البرتقالي */
  --primary-weak: #e6d9ff;
  /* خلفيات فاتحة */
  --rail: #d9dbe1;
  /* لون السكة */
  --text: #222;
  --muted: #6b7280;
  --bg: #fafbff;
  --radius: 18px;
  --shadow: 0 10px 24px rgba(0, 0, 0, .06);
  /* حاوية */
  --container-w: 1200px;




  /* خط نظامي (عربي/إنجليزي) بلا استدعاءات خارجية */
  --font-sans: "Jazeera-Regular";
}

/* ==================== Fonts ==================== */
@font-face {
  font-family: 'Jazeera-Bold';
  src: url('../assets/fonts/ArbFONTS-Al-Jazeera-Arabic-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Jazeera-Regular';
  src: url('../assets/fonts/ArbFONTS-Al-Jazeera-Arabic-Regular.ttf') format('truetype');

}

@font-face {
  font-family: 'Montserrat-Bold';
  src: url('../assets/fonts/montserrat.bold.ttf') format('truetype');

}

@font-face {
  font-family: 'Montserrat-Regular';
  src: url('../assets/fonts/montserrat.regular.ttf') format('truetype');

}


html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-base);
  background: var(--bg-page);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* أدوات سريعة */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 20px;
}

.u-heading {
  color: var(--text-heading);
  font-weight: 700;
}

.u-muted {
  color: var(--text-muted);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--link-hover);
}

/* زر عام */


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
}

.btn.primary {
  background: var(--brand-orange);
  color: #fff;
}

.btn.primary:hover {
  filter: brightness(.95);
}

.btn.outline {
  background: #fff;
  color: var(--brand-blue);
  border-color: var(--brand-blue);

}

.btn.outline:hover {
  color: #fff;
  background: var(--brand-blue);
}

/* ============ HEADER ============ */
.main-header {

  position: sticky;
  top: 0;
  z-index: 999;
  padding: 1rem 2rem;
  background: rgba(255, 240, 220, 0.8);

  backdrop-filter: blur(10px);
}

.container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 12px;
  flex-wrap: wrap;
  font-family: 'Jazeera-Bold';

}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
  margin-right: 2.5rem;
}

#menu-icon {
  font-size: 1.6rem;
  color: var(--brand-blue);
  display: none;
  cursor: pointer;
}

/* روابط الهيدر */
.header-center {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.header-center a {
  position: relative;
  font-weight: 600;
  padding: .4rem .8rem;
  border-radius: 6px;
}

.header-center a::after {
  content: "";
  position: absolute;
  inset-inline-start: 6%;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--brand-orange);
  transition: width .25s ease;
}

.header-center a:hover::after {
  width: 88%;
}

/*
.header-center a.active { 
    
    color: var(--brand-orange);
    
    
}

*/
/* يمين الهيدر */
.nav-controls {
  display: flex;
  gap: .6rem;
  align-items: center;
}

/* موبايل */
@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .header-center {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 12px 16px;
  }

  .header-center.active {
    display: flex;
  }
}

/* ============ HERO ============ */

/* ===== HERO (وسط + خلفية صورة) ===== */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 5rem 0;
  gap: 20px;
  /* This replaces the margin and adds consistent spacing */
}

.hero--center {
  text-align: center;
  justify-content: center;
  display: grid;
  place-items: center;
  padding-block: 80px;
}

.hero--with-bg {
  position: relative;
  overflow: hidden;
  /* احذف أي خلفية قديمة للـ .hero إن وُجدت */
  background: none;
}

.hero--with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(24, 44, 71, .65), rgba(24, 44, 71, .25)),
    url("assets/images/heroBG.jpg") center/cover no-repeat;
  z-index: 0;
}

.hero--with-bg>.container {
  position: relative;
  z-index: 1;
  justify-content: center;
}

.hero-logo {
  width: 60%;
  height: auto;
  /* Remove margin-bottom: 12px; */
}


.hero-desc {
  max-width: 760px;
  margin-inline: auto;
  line-height: 1.9;
  font-size: 1.05rem;
  color: var(--brand-blue);
  text-align: center;
  /* #f7f9ff; /* نص واضح فوق الصورة */
}

/* مسافات الأزرار */

.hero-ctas {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}


/* استجابة */
@media (max-width: 640px) {
  .hero-desc {
    padding-inline: 16px;
  }
}


@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* غلاف أنيق بنفس روح الهوية */


/* ========================      ================================*/
.award-brief {
  background: linear-gradient(180deg, #f2f6fb 0%, #f5f7fa 100%);
  border-radius: 24px;
  padding: 62px;
  border-radius: 28px;
  max-width: 90%;
  margin: 2rem auto;
  align-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 10px 24px rgba(0, 0, 0, .04);
}

/* صفوف مرنة */
.about-row {
  display: grid;
  gap: 20px;
}

.about-row--top {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 10px;
}

.about-row--bottom {
  grid-template-columns: repeat(3, 1fr);
}

/* البطاقات نفس ستايلك الأساسي */
.about-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-icon {
  font-size: 28px;
  color: var(--brand-orange, #f36e33);
}

.about-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-heading, #0b1220);
}

.about-text {
  margin: 0;
  color: var(--text-muted, #475569);
}

.about-list {
  margin: 0;
  padding-inline-start: 1.2rem;
  color: var(--text-base, #182c47);
}

.about-list li+li {
  margin-top: .35rem;
}

/* تجاوبية */
@media (max-width: 1100px) {
  .about-row--bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .about-row--top {
    grid-template-columns: 1fr;
  }

  .about-row--bottom {
    grid-template-columns: 1fr;
  }
}

/* ===============================about =====================*/
.container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.item:nth-child(1) {
  flex-grow: 1;
  height: 50%;
}

.item:nth-child(2),
.item:nth-child(4) {
  flex-grow: 1;
}

.item:nth-child(3) {
  width: 100%;
  height: 50%;
}

.item:nth-child(5) {
  height: 40%;
  flex-grow: 1;
  flex-shrink: 4;
}

/*========== to up button ================= */
/* زر الرجوع للأعلى */
.to-top {
  position: fixed;
  bottom: 35px;
  left: 35px;
  /* أسفل يسار */
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
  z-index: 9999;
}

.to-top:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22)
}

.to-top:focus-visible {
  outline: 3px solid #ffd6b3;
  outline-offset: 3px
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none
}

/*================ timeline =========================   */

.soft-shell {
  background: linear-gradient(180deg, #f2f6fb 0%, #f5f7fa 100%);
  border-radius: 28px;
  padding: 50px 30px 100px;
  max-width: 85%;
  margin: 3rem auto;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 10px 24px rgba(0, 0, 0, .04);
}

.section-title {
  margin: 0 0 6rem;
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Jazeera-Bold';
}

.timeline {
  position: relative;
  padding: 80px 0;
  direction: rtl;
  /* مهم */
}

.rail {
  position: absolute;
  inset-inline: 0;
  top: 52%;
  transform: translateY(-50%);
  height: 6px;
  background: var(--rail);
  border-radius: 999px;
}

.progress {

  position: absolute;
  top: 52%;
  transform: translateY(-50%);
  height: 6px;
  background: var(--primary);
  border-radius: 999px;
  inset-inline-start: 0;
  /* يبدأ من اليمين */
  width: 0;
  transition: width 600ms ease;
}


.milestone {
  position: relative;
  display: inline-block;
  width: 16%;
  /* 6 مراحل */
  text-align: center;
  vertical-align: top;
}

.milestone .dot {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: #fff;
  border: 6px solid var(--rail);
  border-radius: 50%;
  z-index: 2;
  transition: border-color 300ms ease, transform 300ms ease;
}

.milestone.active .dot {
  border-color: var(--primary);
  transform: translate(-50%, -50%) scale(1.05);
}

.card {
  position: absolute;
  bottom: calc(10% + 30px);
  inset-inline: 5px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 15px 20px;
  text-align: right;
  border: 1px solid #f0ecff;
  border-radius: var(--radius);
}

.card.bottom {
  bottom: auto;
  top: calc(10% + 30px);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px
}

.card-date {
  font-size: 14px;
  color: var(--muted);
  margin: 0
}

.milestone.active .card {
  background: linear-gradient(110deg, var(--primary) 0%, #d86f35 100%);
  color: #fff;
  border-color: transparent;
}

.milestone.active .card .card-date {
  color: #f7f2ff
}

/* Added styles for layout */
.cta-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
}

.cta-text-section {
  flex: 1;
  max-width: 600px;
}

.cta-logo-section {
  flex: 0 0 auto;
}

.cta-logo-section img {
  max-width: 100%;
  height: auto;
  max-height: 350px;
}

.cta-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.cta-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.primary-cta {
  background-color: #f36e33;
  /* brand-orange */
  color: white;
  border: 1px solid #f36e33;
}

.primary-cta:hover {
  background-color: #d95d2b;
  color: white;
}

@media (max-width: 900px) {
  .cta-content-wrapper {
    flex-direction: column-reverse !important;
    text-align: center;
    gap: 2rem;
  }

  .cta-actions {
    justify-content: center;
  }
}

/* Fix layout direction to ensure image/text flip correctly */
/* We need row-reverse for BOTH to achieve: */
/* English: Logo | Text */
/* Arabic: Text | Logo */
.cta-content-wrapper {
  flex-direction: row !important;
}

/* استجابة الهواتف */
@media (max-width: 900px) {
  .milestone {
    width: 33.333%
  }
}

@media (max-width: 640px) {
  .timeline {
    padding: 60px 0
  }

  .milestone {
    width: 50%
  }

  .card {
    font-size: 15px
  }

  .card-title {
    font-size: 15px
  }

  .card-date {
    font-size: 13px
  }
}

@media (max-width: 420px) {
  .milestone {
    width: 100%
  }

  .card {
    position: relative;
    inset-inline: auto;
    top: auto;
    bottom: auto;
    margin: 16px 0
  }

  .rail,
  .progress,
  .dot {
    display: none
  }
}

/* ============ FOOTER (latc-*) ============ */
.footer {
  background: var(--bg-section);
  color: var(--text-base);
  border-top: 1px solid var(--border);
  width: 100%;
  font-family: var(--font-sans);
}

.latc-footer__wrap {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 44px 20px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: start;
}

.latc-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.latc-footer__logo {
  display: inline-flex;
  align-items: center;
  max-width: auto;
  height: 100%;
  display: block;
}

.latc-logo-img {
  max-height: auto;
  width: 100%;
  display: block;
}


.latc-footer__col-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 4px 0 8px;
  color: var(--text-heading);
  font-family: 'Jazeera-Bold';
}

.latc-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.latc-footer__link {
  color: var(--link);
  text-decoration: none;
  position: relative;
  padding-block-end: 2px;
}

.latc-footer__link:hover {
  color: var(--link-hover);
}

.latc-footer__bottom {
  border-top: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.latc-footer__mini {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.latc-footer__copy,
.latc-footer__credit {
  color: var(--text-muted);
  margin: 0;
  font-size: .95rem;
  white-space: wrap;
}

.latc-footer__bottom-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .latc-footer__wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .latc-footer__wrap {
    grid-template-columns: 1fr;
  }

  .latc-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* =========================== ==================================*/
.about-award {
  background: var(--bg-section, #F5F6FA);
  padding: 48px 0;
}

.about-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.about-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-icon {
  font-size: 28px;
  color: var(--brand-orange, #f36e33);
}

.about-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading, #0b1220);
}

.about-text {
  margin: 0;
  color: var(--text-muted, #475569);
}

.about-list,
.about-timeline,
.about-steps {
  margin: 0;
  padding-inline-start: 1.2rem;
  color: var(--text-base, #182c47);
}

.about-steps li+li,
.about-list li+li,
.about-timeline li+li {
  margin-top: .35rem;
}

@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ صفحة محتوى عامة ============ */
.page--sticky-footer {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page--sticky-footer .page-content {
  flex: 1 0 auto;
}



/* ====================    صفحة سهولة الوصول    ====================== */

/* Skip Link */
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform .2s;
  z-index: 9999
}

.skip-link:focus {
  transform: translateY(0)
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 16px
}

.breadcrumbs a {
  color: inherit
}

/* Title */
.page-title {
  margin: 8px 0 6px;
  font-size: 28px
}

.page-sub {
  margin: 0 0 18px;
  color: var(--muted)
}

/* Toolbar */
.a11y-toolbar {
  position: sticky;
  top: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 10px 12px;
  margin: 14px 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05)
}

.a11y-toolbar .btn {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600
}

.a11y-toolbar .btn:hover {
  border-color: #dcdcdc
}

.a11y-group {
  display: flex;
  gap: 8px
}

/* Layout: TOC + content */
.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr
  }
}

.toc {
  position: sticky;
  top: 85px;
  align-self: start
}

.toc .card {
  padding: 16px
}

.toc h3 {
  margin: 0 0 10px;
  font-size: 16px
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none
}

.toc li {
  margin: 8px 0
}

/* Cards */
.card {
  background: linear-gradient(180deg, var(--soft-start) 0%, var(--soft-end) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px
}

section.card {
  margin-bottom: 18px
}

h2 {
  font-size: 22px;
  margin: 0 0 8px
}

p {
  margin: 0 0 10px
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr
  }
}

.feature {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: #fff;
  padding: 16px
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px
}

.feature p {
  margin: 0;
  color: var(--muted)
}

/* Feedback form */
form label {
  display: block;
  margin: 10px 0 6px
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  background: #fff
}

form button {
  margin-top: 12px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer
}

/* High contrast + Reduced motion */
body.high-contrast {
  background: #fff;
  color: #000
}

body.high-contrast .card {
  background: #fff;
  border-color: #000
}

body.reduce-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important
}

/* Focus outline */
:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 3px;
  border-radius: 8px
}