:root {
  --blue: #003f8f;
  --blue-2: #0069c8;
  --light-blue: #eef7ff;
  --orange: #ff6a00;
  --orange-2: #ff8a2b;
  --text: #062b5f;
  --muted: #30475f;
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.94);
  --shadow: 0 18px 45px rgba(0, 63, 143, 0.14);
  --border: rgba(0, 105, 200, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Cairo", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 34%, rgba(0, 105, 200, 0.08), transparent 20%),
    radial-gradient(circle at 88% 22%, rgba(255, 106, 0, 0.08), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #f5fbff 50%, #eaf5ff 100%);
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: "Cairo", "Inter", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 26px rgba(0, 63, 143, 0.06);
}

.header-inner {
  min-height: 90px;
  display: grid;
  grid-template-columns: 300px 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand img {
  width: 285px;
  height: 78px;
  object-fit: contain;
  object-position: left center;
}

body[dir="rtl"] .brand img {
  object-position: right center;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 52px;
  font-size: 18px;
  font-weight: 800;
}

.nav a {
  color: var(--text);
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--orange); }

.language-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  border: 2px solid rgba(0, 63, 143, 0.55);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
}

.lang-btn.active {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.lang-btn.arabic {
  font-family: "Cairo", sans-serif;
}

.hero {
  position: relative;
  padding: 50px 0 18px;
  min-height: 560px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(156deg, rgba(255,255,255,0) 0 54%, rgba(219, 238, 255, 0.75) 54% 100%),
    radial-gradient(circle at 88% 58%, rgba(0,105,200,0.1), transparent 25%);
  pointer-events: none;
}

body[dir="rtl"] .hero::before {
  background:
    linear-gradient(204deg, rgba(255,255,255,0) 0 54%, rgba(219, 238, 255, 0.75) 54% 100%),
    radial-gradient(circle at 12% 58%, rgba(0,105,200,0.1), transparent 25%);
}

.decor {
  position: absolute;
  color: rgba(0, 63, 143, 0.08);
  font-weight: 900;
  user-select: none;
}

.decor-1 { right: 9%; top: 13%; font-size: 74px; }
.decor-2 { right: 6%; bottom: 26%; font-size: 122px; }
.decor-3 { left: 48%; top: 44%; font-size: 64px; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 54px;
  align-items: center;
}

body[dir="rtl"] .hero-grid {
  direction: rtl;
}

.hero-copy {
  padding: 26px 0 0 62px;
}

body[dir="rtl"] .hero-copy {
  padding: 26px 62px 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: white;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 18px 28px rgba(255, 106, 0, 0.18);
}

.hero h1 {
  margin: 24px 0 10px;
  font-size: clamp(58px, 7vw, 98px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

body[dir="rtl"] .hero h1 {
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--blue);
  text-shadow: 0 4px 0 rgba(0, 63, 143, 0.06);
}

.hero h1 strong {
  color: var(--orange);
  font-weight: 900;
  text-shadow: 0 4px 0 rgba(255, 106, 0, 0.08);
}

.intro {
  max-width: 690px;
  margin: 22px 0;
  color: #1e3350;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 500;
}

.hero h2 {
  margin: 28px 0 0;
  color: var(--blue);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  font-style: italic;
  display: inline-block;
  border-bottom: 4px solid var(--orange);
  padding-bottom: 8px;
}

body[dir="rtl"] .hero h2 {
  font-style: normal;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art img {
  width: min(610px, 100%);
  filter: drop-shadow(0 24px 38px rgba(0, 63, 143, 0.16));
}

.cards-section {
  padding: 0 0 22px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.info-card,
.detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.info-card {
  padding: 34px 36px;
  position: relative;
  overflow: hidden;
}

.info-card::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -68px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 105, 200, 0.08), transparent 70%);
}

body[dir="rtl"] .info-card::after {
  right: auto;
  left: -52px;
}

.card-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: white;
  font-size: 34px;
  box-shadow: 0 14px 24px rgba(0, 63, 143, 0.2);
  margin-bottom: 18px;
}

.main-about-card .card-icon {
  background: linear-gradient(135deg, var(--blue), #0e62b8);
}

.mission-card .card-icon {
  background: linear-gradient(135deg, #174b9a, var(--blue-2));
}

.info-card h2,
.detail-card h2 {
  margin: 0 0 22px;
  font-size: 28px;
  color: var(--blue);
  line-height: 1.2;
}

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

.info-card li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
  color: #1e3350;
  font-size: 18px;
  font-weight: 500;
}

.info-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-2);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

body[dir="rtl"] .info-card li {
  padding-left: 0;
  padding-right: 30px;
}

body[dir="rtl"] .info-card li::before {
  left: auto;
  right: 0;
}

.info-card p,
.detail-card p {
  margin: 0 0 14px;
  color: #1e3350;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 500;
}

.info-card .highlight {
  color: var(--orange);
  font-weight: 900;
  font-size: 21px;
}

.about-detail {
  padding: 0 0 24px;
}

.detail-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 40px;
}

body[dir="rtl"] .detail-card {
  grid-template-columns: 90px 1fr;
  direction: rtl;
}

.detail-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  font-size: 38px;
}

.contact-bar {
  background: linear-gradient(90deg, #003f8f, #005bc2);
  color: white;
  padding: 22px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.contact-item {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.35);
  font-size: 20px;
  font-weight: 900;
}

body[dir="rtl"] .contact-item {
  direction: ltr;
  border-right: 0;
  border-left: 1px solid rgba(255,255,255,0.35);
}

.contact-item:last-child { border-right: 0; }
body[dir="rtl"] .contact-item:last-child { border-left: 0; }

.contact-item span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: grid;
  place-items: center;
  font-size: 25px;
}

.contact-item.whatsapp span {
  background: #30c768;
}

.ltr-text,
.phone-number {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
  display: inline-block;
}

.contact-item strong {
  direction: ltr;
  unicode-bidi: isolate;
}

body[dir="rtl"] .contact-item.whatsapp strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body[dir="rtl"] .contact-item.whatsapp [data-i18n="whatsapp_label"] {
  direction: rtl;
  unicode-bidi: isolate;
  font-family: "Cairo", sans-serif;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 260px 1fr;
  }

  .language-switch {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .hero-copy,
  body[dir="rtl"] .hero-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cards-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-item,
  body[dir="rtl"] .contact-item {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255,255,255,0.25);
  }

  .contact-item:last-child,
  body[dir="rtl"] .contact-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 840px) {
  .container {
    width: min(100% - 28px, 1440px);
  }

  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 10px 0;
  }

  .brand img {
    width: 250px;
    object-position: center;
  }

  .nav {
    gap: 18px;
    flex-wrap: wrap;
    font-size: 15px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-copy,
  body[dir="rtl"] .hero-copy {
    padding: 10px 0 0;
    text-align: center;
  }

  .intro {
    margin-left: auto;
    margin-right: auto;
    font-size: 19px;
  }

  .badge {
    font-size: 20px;
  }

  .hero-art img {
    width: min(430px, 92%);
  }

  .cards-grid {
    gap: 18px;
  }

  .info-card {
    padding: 24px 22px;
  }

  .detail-card,
  body[dir="rtl"] .detail-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .detail-icon {
    margin: 0 auto;
  }

  .contact-item {
    font-size: 16px;
    flex-wrap: wrap;
  }
}


/* Arabic detail card layout fix */
body[dir="rtl"] .detail-card > div:last-child {
  min-width: 0;
  width: 100%;
  text-align: right;
}

body[dir="rtl"] .detail-card h2,
body[dir="rtl"] .detail-card p {
  text-align: right;
  max-width: 100%;
}
