:root{
  --brand:#0264BA;
  --navy:#0B1F3A;
  --text:#111827;
  --muted:#6B7280;
  --border:rgba(17,24,39,.12);
  --soft:rgba(2,100,186,.06);

  --bg:#ffffff;
  --heroText:rgba(255,255,255,.92);
  --heroMuted:rgba(255,255,255,.75);
  --heroBorder:rgba(255,255,255,.18);
}

*{box-sizing:border-box;}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden; /* keep as one place */
}

a{color:var(--brand); text-decoration:none;}
a:hover{opacity:.92; text-decoration:underline;}

.eah-container{max-width:1100px;margin:0 auto;padding:0 20px;}
.eah-section{padding:32px 0;border-top:1px solid var(--border);}
.eah-section h2{margin:0 0 10px;font-size:26px;color:var(--navy);}
.eah-section p{margin:0 0 14px;line-height:1.75;color:var(--text);}

.eah-hero-wrap{
  background:var(--navy);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.eah-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  gap:18px;
}

.eah-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:240px;
}

.eah-logo{
  height:34px;
  width:auto;
  display:block;
}

.eah-brandname{
  color:#fff;
  font-weight:700;
  letter-spacing:.2px;
  line-height:1.2;
  white-space:nowrap;
}

.eah-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
}

.eah-nav a{
  color:var(--heroText);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  padding:8px 10px;
  border-radius:10px;
}

.eah-nav a:hover{
  background:rgba(255,255,255,.08);
  text-decoration:none;
}

/* Home hero */
.eah-hero{padding:26px 0 22px;} /* reduced bottom padding slightly */
.eah-hero h1{
  margin:0 0 10px;
  font-size:44px;
  line-height:1.1;
  color:#fff;
  letter-spacing:-.4px;
}

.eah-lead{
  font-size:18px;
  line-height:1.7;
  max-width:900px;
  margin:0 0 14px; /* reduced to pull video closer */
  color:var(--heroText);
}

/* Internal page hero */
.eah-page-hero{padding:22px 0 22px;} /* reduced bottom padding slightly */
.eah-page-hero h1{
  margin:0 0 8px;
  font-size:40px;
  line-height:1.15;
  color:#fff;
  letter-spacing:-.3px;
}

.eah-page-hero p{
  margin:0;
  max-width:900px;
  color:var(--heroText);
  line-height:1.7;
  font-size:16px;
}

/* Buttons */
.eah-btns{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 0;}
.eah-btn{
  display:inline-block;
  text-decoration:none;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid var(--border);
  font-weight:700;
  transition:all .15s ease;
}

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

.eah-btn.primary:hover{filter:brightness(.95); text-decoration:none;}

.eah-btn.secondary{
  background:transparent;
  color:var(--navy);
  border-color:var(--border);
}

.eah-btn.secondary:hover{background:var(--soft); text-decoration:none;}

/* Hero button contrast */
.eah-hero .eah-btn.secondary,
.eah-page-hero .eah-btn.secondary{
  color:#fff;
  border-color:var(--heroBorder);
  background:transparent;
}

.eah-hero .eah-btn.secondary:hover,
.eah-page-hero .eah-btn.secondary:hover{
  background:rgba(255,255,255,.10);
}

/* Cards / Grid */
.eah-grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:12px;}

.eah-card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  background:#fff;
  box-shadow:0 1px 0 rgba(17,24,39,.02);
}

.eah-card h3{margin:0 0 8px;font-size:18px;color:var(--navy);}
.eah-card p{margin:0;line-height:1.7;color:var(--text);}

.eah-list,.eah-numbered{margin:0;padding-left:18px;line-height:1.85;color:var(--text);}
.eah-list li,.eah-numbered li{margin:6px 0;}

.eah-footer{
  padding:26px 0;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

@media (min-width: 860px){
  .eah-grid{grid-template-columns:1fr 1fr;}
  .eah-hero h1{font-size:52px;}
  .eah-topbar{padding:20px 0;}
}

/* RTL support */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .eah-topbar { direction: rtl; }
html[dir="rtl"] .eah-nav { direction: rtl; }
html[dir="rtl"] .eah-nav a { text-align: right; }

/* =========================
   Mobile / small screens
   ========================= */
@media (max-width: 860px) {
  .eah-container{
    padding-left:16px;
    padding-right:16px;
  }

  /* Header: stack brand + nav */
  .eah-topbar{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .eah-brand{
    min-width:auto;
  }

  /* Nav: wrap nicely on smaller widths */
  .eah-nav{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    width:100%;
    justify-content:flex-start;
  }

  .eah-nav a{
    font-size:14px;
    padding:6px 8px;
  }

  /* Buttons: wrap instead of overflowing */
  .eah-btns{
    flex-wrap:wrap;
    gap:10px;
  }

  /* Reduce hero spacing */
  .eah-hero{
    padding-top:16px;
    padding-bottom:16px;
  }

  .eah-page-hero{
    padding-top:15px;
    padding-bottom:16px;
  }

  /* Footer readability */
  .eah-footer{
    font-size:13px;
    line-height:1.6;
  }
}

/* Very small phones: keep nav in one line with horizontal scroll */
@media (max-width: 520px) {
  .eah-nav{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:6px;
    gap:8px;
  }
  .eah-nav a{
    white-space:nowrap;
  }
  /* Language switch (Arabic) */
.eah-nav .eah-lang{
  opacity:.95;
}

/* LTR spacing */
.eah-nav .eah-lang{
  margin-left:10px;
}

/* RTL spacing (so it doesn't look wrong on Arabic pages) */
html[dir="rtl"] .eah-nav .eah-lang{
  margin-left:0;
  margin-right:10px;
}
.eah-nav .eah-lang{
  border:1px solid rgba(255,255,255,.18);
}
.eah-nav .eah-lang:hover{
  background:rgba(255,255,255,.10);
}

}

/* Ensure media never overflows horizontally */
img, video { max-width: 100%; display: block; }

/* Panoramic hero video strip */
.eah-hero-media{
  margin-top: 8px;              /* smaller gap under hero text */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Wide look, controlled height */
.eah-hero-video{
  width: 100%;
  height: clamp(160px, 18vw, 260px);
  object-fit: cover;
}

/* Mobile tuning */
@media (max-width: 640px){
  .eah-hero-media{ border-radius: 14px; }
  .eah-hero-video{ height: 210px; }
}
