:root{
  --primary:#0f3a70;
  --primary2:#1f5ea8;
  --light:#f3f6fb;
  --text:#1f2937;
  --muted:#6b7a90;
  --line:#d9e4f2;
  --soft:#eef4fb;
  --shadow:0 12px 32px rgba(15,58,112,.08);
  --shadow-hover:0 18px 40px rgba(15,58,112,.12);
}

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

body{
  margin:0;
  font-family:Cairo,sans-serif;
  background:var(--light);
  color:var(--text);
  line-height:1.85;
}

a{text-decoration:none;color:inherit}
.container{width:1200px;max-width:92%;margin:auto}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid rgba(15,58,112,.08);
  backdrop-filter:blur(10px);
}

.header-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
  flex:1;
}

.brand-logo{
  width:54px;
  height:54px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
  font-weight:800;
  font-size:17px;
  flex-shrink:0;
  box-shadow:0 8px 20px rgba(15,58,112,.16);
}

.brand-text{
  min-width:0;
}

.brand-text h1{
  margin:0;
  color:var(--primary);
  font-size:16px;
  line-height:1.35;
}

.brand-text p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.nav{
  display:flex;
  align-items:center;
  gap:8px;
}

.nav a{
  padding:10px 14px;
  border-radius:999px;
  color:var(--primary);
  font-weight:700;
  font-size:15px;
  transition:.2s ease;
}

.nav a:hover,
.nav a.active{
  background:var(--soft);
}

.lang-switch{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:56px;
  height:44px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--primary);
  font-weight:800;
  font-size:15px;
  transition:.2s ease;
}

.lang-switch:hover{
  background:var(--soft);
  border-color:#bfd3ea;
}

.menu-toggle{
  display:none;
  width:46px;
  height:46px;
  border:none;
  background:#fff;
  border-radius:14px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex-direction:column;
  gap:5px;
  flex-shrink:0;
  box-shadow:0 6px 20px rgba(15,58,112,.08);
}

.menu-toggle span{
  width:22px;
  height:2.5px;
  background:var(--primary);
  border-radius:999px;
  display:block;
}

/* Shared sections */
.hero{padding:34px 0 26px}

.hero-box{
  background:linear-gradient(135deg,#0f3a70 0%, #184b88 55%, #1f5ea8 100%);
  border-radius:32px;
  padding:76px 44px;
  color:#fff;
  text-align:center;
  box-shadow:var(--shadow);
}

.hero-badge{
  display:inline-flex;
  padding:8px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  margin-bottom:18px;
  font-weight:700;
  font-size:14px;
}

.hero-box h2{
  font-size:48px;
  line-height:1.22;
  margin:0 0 18px;
}

.hero-box p{
  max-width:760px;
  margin:auto;
  opacity:.92;
  font-size:18px;
}

.hero-buttons{
  margin-top:30px;
  display:flex;
  justify-content:center;
  gap:15px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 26px;
  border-radius:16px;
  font-weight:700;
  font-size:15px;
  transition:.2s ease;
}

.btn:hover{transform:translateY(-2px)}

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

.btn-outline{
  border:1px solid rgba(255,255,255,.32);
  color:#fff;
  background:rgba(255,255,255,.06);
}

.section{padding:28px 0 44px}

.section-title{
  text-align:center;
  margin-bottom:26px;
}

.section-title h2{
  color:var(--primary);
  margin:0 0 10px;
  font-size:34px;
}

.section-title p{
  color:var(--muted);
  margin:0 auto;
  max-width:760px;
  font-size:16px;
}

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

.card{
  background:#fff;
  border:1px solid rgba(15,58,112,.06);
  border-radius:24px;
  padding:24px;
  box-shadow:var(--shadow);
  transition:.25s ease;
  height:100%;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-hover);
}

.card-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  background:var(--soft);
  color:var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:18px;
  margin-bottom:16px;
}

.card h3{
  color:var(--primary);
  margin:0 0 10px;
  font-size:22px;
  line-height:1.4;
}

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

.card-link{
  display:inline-flex;
  margin-top:16px;
  font-weight:700;
  color:var(--primary2);
}

.feature-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
}

.feature-list li{
  position:relative;
  color:var(--muted);
}

html[dir="rtl"] .feature-list li{
  padding-right:18px;
}

html[dir="rtl"] .feature-list li::before{
  content:"✓";
  position:absolute;
  right:0;
  top:0;
  color:var(--primary2);
  font-weight:800;
}

html[dir="ltr"] .feature-list li{
  padding-left:18px;
}

html[dir="ltr"] .feature-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:var(--primary2);
  font-weight:800;
}

.site-footer{
  background:linear-gradient(135deg,#0f3a70,#1f5ea8);
  padding:50px 0;
  margin-top:40px;
}

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

.footer-card{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:20px;
  padding:25px;
  color:#fff;
}

.footer-card h3{
  margin:0 0 12px;
  font-size:20px;
}

.footer-card p,
.footer-card a{
  color:rgba(255,255,255,.85);
}

.footer-bottom{
  text-align:center;
  margin-top:30px;
  color:rgba(255,255,255,.7);
  font-size:14px;
}

/* Tablet */
@media(max-width:1100px){
  .nav a{
    padding:9px 10px;
    font-size:14px;
  }
  .brand-text h1{
    font-size:15px;
  }
}

/* Mobile */
@media(max-width:700px){
  .header-wrap{
    gap:12px;
  }

  .brand{
    flex:1;
    min-width:0;
  }

  .brand-text h1{
    font-size:15px;
  }

  .brand-text p{
    font-size:12px;
  }

  html[dir="rtl"] .nav{
    display:none;
    position:absolute;
    top:78px;
    right:0;
    left:0;
    background:#fff;
    flex-direction:column;
    align-items:stretch;
    padding:18px;
    border-radius:20px;
    box-shadow:0 16px 40px rgba(15,58,112,.12);
    border:1px solid rgba(15,58,112,.08);
  }

  html[dir="ltr"] .nav{
    display:none;
    position:absolute;
    top:78px;
    left:0;
    right:0;
    background:#fff;
    flex-direction:column;
    align-items:stretch;
    padding:18px;
    border-radius:20px;
    box-shadow:0 16px 40px rgba(15,58,112,.12);
    border:1px solid rgba(15,58,112,.08);
  }

  .nav.open{
    display:flex;
  }

  .nav a,
  .lang-switch{
    width:100%;
    justify-content:center;
  }

  .menu-toggle{
    display:flex;
  }

  .hero-box{
    padding:44px 22px;
    border-radius:24px;
  }

  .hero-box h2{
    font-size:30px;
  }

  .hero-box p{
    font-size:16px;
  }

  .hero-buttons{
    flex-direction:column;
  }

  .btn{
    width:100%;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid{
    grid-template-columns:1fr;
  }
}

.site-header{
  z-index: 2000;
}

.menu-toggle{
  position: relative;
  z-index: 2100;
  pointer-events: auto;
}

.nav{
  z-index: 2050;
}
/* ===== Mobile menu final fix ===== */
.site-header,
.header-wrap{
  position: relative;
  overflow: visible !important;
}

@media (max-width:700px){

  .menu-toggle{
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: relative;
    z-index: 3001;
  }

  .nav{
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(15,58,112,.08);
    box-shadow: 0 18px 40px rgba(15,58,112,.16);
    z-index: 3000;
  }

  html[dir="ltr"] .nav{
    left: 0;
    right: 0;
  }

  html[dir="rtl"] .nav{
    right: 0;
    left: 0;
  }

  .nav.open{
    display: flex !important;
  }

  .nav a,
  .lang-switch{
    width: 100%;
    display: flex;
    justify-content: center;
  }
}
.site-header,
.header-wrap,
.brand,
.brand-text,
.brand-logo,
.nav,
.menu-toggle{
  pointer-events: auto !important;
}

.site-header,
.header-wrap{
  position: relative !important;
  z-index: 5000 !important;
  overflow: visible !important;
}

.menu-toggle{
  position: relative !important;
  z-index: 99999 !important;
}

.hero,
.hero-box,
.hero-section,
section,
main,
.container{
  position: relative;
}
