/* ═══════════════════════════════════════════════════════
   base.css — shared styles for ALL pages
   Requires: colors.css loaded BEFORE this file
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-main);
  direction: rtl;
  color: var(--text);
  background: var(--white);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
}
a   { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul  { list-style: none; }
/* Base style */
.lang-btn {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 6px;

    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;

    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;

    transition: all 0.2s ease;
    cursor: pointer;
}

/* Hover effect */
.lang-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3B82F6;
}

/* Active / current language */
.lang-btn.active {
    background: #3B82F6;
    border-color: #3B82F6;
    color: #ffffff;
}

/* Optional: remove last margin */
.lang-btn:last-child {
    margin-right: 0;
}
/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  border: 2px solid transparent;
  font-family: var(--font-main);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary  { background: var(--primary);  color: #fff; }
.btn-primary:hover { background: var(--primary-dk); }
.btn-outline  { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-secondary { background: var(--accent); color: #fff; }
.btn-secondary:hover { background: var(--accent-dk); }
.btn-ghost { border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary-bg); }

/* ── SECTION ── */
section { padding: 68px 24px; }
section.alt { background: var(--light); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: 32px; font-weight: 800; color: var(--dark);
  display: inline-block; position: relative;
}
.section-header h2::after {
  content: '';
  display: block; width: 60px; height: 4px;
  background: var(--primary);
  margin: 10px auto 0; border-radius: 2px;
}
.section-header p { color: var(--gray); max-width: 600px; margin: 16px auto 0; font-size: 17px; }

/* ── PAGE BANNER ── */
.page-banner {
  background: linear-gradient(135deg, var(--hero-grad-from), var(--hero-grad-to));
  padding: 52px 24px;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231a73e8' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-banner h1 {
  font-size: clamp(26px, 5vw, 44px); font-weight: 800;
  color: #fff; position: relative; margin-bottom: 12px;
}
.page-banner h1 span { color: var(--primary-lt); }
.page-banner p { color: rgba(255,255,255,.75); font-size: 17px; max-width: 600px; margin: 0 auto; position: relative; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--primary-bg);
  padding: 10px 24px;
  font-size: 13px; color: var(--gray);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── TOPBAR ── */
.topbar {
  background: var(--darkest);
  color: var(--gray-lt);
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--gray-lt); transition: color .2s; }
.topbar a:hover { color: var(--primary-lt); }
.topbar-social { display: flex; gap: 14px; align-items: center; }
.topbar-social a {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.topbar-social a:hover { background: var(--primary); color: #fff; }
.topbar-social svg { width: 14px; height: 14px; fill: currentColor; }
.topbar-lang { display: flex; gap: 6px; align-items: center; }
.topbar-lang a {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  font-size: 12px; font-weight: 600;
  transition: border-color .2s, color .2s;
}
.topbar-lang a:hover,
.topbar-lang a.active {
  border-color: var(--primary-lt);
  color: var(--primary-lt);
}

/* ── HEADER ── */
header {
  background: var(--dark);
  /* background: #1E3A5F; */
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; max-width: 1200px; margin: 0 auto; height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 46px; height: 46px;
  background: #FFF;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; font-weight: 800; flex-shrink: 0;
}
.logo-text .name { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.2; }
.logo-text .sub  { font-size: 11px; color: var(--gray-lt); }

/* ── NAV ── */
nav { display: flex; align-items: center; }
nav ul { display: flex; gap: 2px; }
nav ul li { position: relative; }
nav ul li > a {
  color: rgba(255,255,255,.85);
  font-size: 14px; font-weight: 600;
  padding: 8px 11px;
  display: flex; align-items: center; gap: 4px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
nav ul li > a .caret { font-size: 10px; opacity: .7; }
nav ul li > a:hover,
nav ul li.active > a { color: var(--primary-lt); background: rgba(255,255,255,.07); }

/* dropdown */
nav ul li ul {
  display: none; position: absolute; top: 100%; right: 0;
  background: var(--darker); min-width: 210px;
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  flex-direction: column; gap: 0;
  box-shadow: var(--shadow-lg);
}
nav ul li:hover > ul { display: flex; }
nav ul li ul li > a {
  font-size: 13px; padding: 10px 18px;
  border-radius: 0; color: var(--gray-lt);
}
nav ul li ul li > a:hover { background: rgba(255,255,255,.06); color: #fff; }

/* hamburger */
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #ddd; border-radius: 2px; transition: .3s; }

/* ── STATS STRIP ── */
.stats-strip {
  background: linear-gradient(90deg, var(--accent-dk), var(--primary));
  color: #fff; padding: 30px 0;
}
.stats-strip .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.stat-item { text-align: center; flex: 1; min-width: 120px; }
.stat-num  { font-size: 40px; font-weight: 800; line-height: 1; }
.stat-lbl  { font-size: 13px; opacity: .85; margin-top: 4px; }

/* ── FOOTER ── */
footer {
  background: var(--darker);
  color: var(--gray-lt);
  padding: 56px 24px 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; max-width: 1200px; margin: 0 auto;
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 14px; line-height: 1.7; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-lt); transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-col h4 {
  font-size: 14px; font-weight: 800; color: #fff;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--primary); display: inline-block;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary-lt); }
.footer-bottom {
  background: var(--darkest); text-align: center;
  padding: 16px 24px; margin-top: 48px;
  font-size: 13px; color: rgba(255,255,255,.3);
}

/* ── CONTACT FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-lt);
  border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: 14px; direction: rtl;
  transition: border-color .2s; resize: vertical; background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { min-height: 110px; }
.contact-form button {
  background: var(--primary); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 13px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: var(--font-main); transition: background .2s;
}
.contact-form button:hover { background: var(--primary-dk); }

/* ── MOBILE ── */
@media (max-width: 960px) {
  nav ul { display: none; }
  nav ul.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; right: 0; left: 0;
    background: var(--darker); padding: 12px; z-index: 999;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  nav ul.open li ul { position: static; display: none; border-top: none; box-shadow: none; background: rgba(255,255,255,.04); }
  nav ul.open li:hover > ul { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 48px 16px; }
  .page-banner { padding: 40px 16px; }
}
