:root {
  --brand: #1f9bd1;
  --brand-2: #0ea5e9;
  --muted: #5b6478;
  --ink: #0c1326;
  --panel: #fff;
  --line: #e9eef6;
  --shadow: 0 10px 25px rgba(2, 8, 23, .08);
  --radius: 18px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, Tajawal, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--ink);
  background: linear-gradient(180deg, #f6f8fc, #eef2f7)
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8edf4
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700
}

.nav a {
  padding: 10px 12px;
  font-weight: 600;
  color: #20304d;
  border-radius: 10px
}

.nav a:hover {
  background: #eef4fb
}

.cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
  border: none
}

#langBtn {
  margin-left: 10px;
  background: #edf6ff;
  border: 1px solid #cfe8fb;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  color: #0b4570;
  cursor: pointer
}

.hero {
  padding: 80px 0;
  text-align: center
}

.hero h1 {
  font-size: 42px;
  margin: 20px 0 12px
}

.hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #43506a;
  font-size: 18px
}

.hero img {
  margin-top: 30px;
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(22, 78, 99, .25))
}

section {
  padding: 64px 0
}

.section-title {
  font-size: 28px;
  margin-bottom: 10px;
  text-align: center
}

.section-sub {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center
}

.grid {
  display: grid;
  gap: 20px
}

.cols-2 {
  grid-template-columns: repeat(2, 1fr)
}

@media(max-width: 960px) {
  .cols-2 {
    grid-template-columns: 1fr
  }
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  border: 1px solid var(--line);
  overflow: hidden
}

.card .card-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block
}

.card .card-banner {
  height: 72px;
  background: linear-gradient(135deg, #e0f2fe, #cbe8fb);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e6eef8
}

.card .card-banner .banner-text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .08em;
  color: #0b4570;
  text-align: center;
  padding: 0 12px;
  display: block;
  max-width: 92%;
  line-height: 1.25;
  white-space: pre-line
}

.card .card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  text-align: center
}

.card p {
  color: #2b3852;
  margin: 0;
  line-height: 1.6
}

.list {
  margin: 0;
  padding-left: 22px;
  color: #2b3852
}

.list li {
  margin: 6px 0
}

.site-footer {
  padding: 28px 0;
  background: #0b4570;
  color: #e8f2fb
}

.footer-inner {
  display: flex;
  justify-content: center
}

.footer-left {
  width: 100%;
  display: flex;
  justify-content: center
}

html[dir='rtl'] {
  direction: rtl
}

html[dir='rtl'] .section-sub,
html[dir='rtl'] .card p,
html[dir='rtl'] .list,
html[dir='rtl'] .list li {
  text-align: right
}

html[dir='rtl'] .list {
  padding-right: 22px;
  padding-left: 0
}

/* Header logo clarity */
.brand img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  image-rendering: auto
}

@media(max-width: 960px) {
  .brand img {
    height: 28px
  }
}

/* Partners grid */
.logo-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: center
}

.logo-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 110px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow)
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block
}

@media(max-width: 1024px) {
  .logo-rail {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width: 720px) {
  .logo-rail {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* Contact section */
section.contact .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section.contact .wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

section.contact .contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
}

section.contact form {
  width: 100%;
}

section.contact form div {
  margin-bottom: 12px;
}

section.contact label {
  font-weight: 600;
  color: #1b2a4a;
}

section.contact input,
section.contact textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font: inherit;
}

section.contact textarea {
  min-height: 180px;
  resize: vertical;
}

section.contact .form-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

section.contact .contact-info-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

@media(max-width: 900px) {
  section.contact .wrap {
    width: 100%;
  }
  section.contact .contact-card,
  section.contact .contact-info-block {
    width: 100%;
  }
}

/* Footer & social icons refresh */
.social-inline,
.site-footer .social {
  display: flex;
  gap: 10px;
  align-items: center
}

.icon-circle,
.site-footer .social a {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, #eef3fb);
  border: 1px solid #dbe4f0;
  box-shadow: 0 6px 14px rgba(12, 40, 80, .08);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}

.icon-circle svg,
.site-footer .social a svg {
  width: 18px;
  height: 18px
}

.icon-circle:hover,
.site-footer .social a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(12, 40, 80, .14)
}