:root {
  --primary: #1064a8;
  --secondary: #1CB5E0;
  --accent: #e3f0ff;
  --text: #232b38;
  --footer-bg: #16325c;
  --header-bg: rgba(255,255,255,0.97);
}

body {
  background: var(--accent);
  margin: 0;
  font-family: 'Roboto', 'Tajawal', Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--secondary);
}

.container {
  width: 95%;
  max-width: 1120px;
  margin: 0 auto;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-header {
  background: var(--header-bg);
  box-shadow: 0 2px 12px 0 rgba(25,118,210,0.07);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img {
  height: 52px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--text);
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom: 2px solid var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#langSwitch {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 6px 15px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

#langSwitch:hover {
  background: #0c4774;
}

.signin-btn {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 7px 18px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1.02rem;
  border: none;
  display: inline-block;
  transition: background 0.2s;
  text-shadow: 0 2px 8px rgba(16,100,168,0.09);
}

.signin-btn:hover {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
}

.hero {
  min-height: 410px;
  padding: 0;
  background: #0a4a7a;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 2.2rem 2.2rem;
}

.hero-bg {
  background: url('/images/background.jpg') no-repeat center center/cover;
  opacity: 0.50;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  filter: brightness(0.85) saturate(1.12) blur(0.5px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 3.2rem 1.2rem 2.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 2.3rem;
  font-family: inherit;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: 1.4px;
  text-shadow: 0 4px 16px rgba(16,100,168,0.22);
}

.hero-sub {
  font-size: 1.18rem;
  margin-bottom: 2.1rem;
  color: #e3f0ff;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(16,100,168,0.13);
}

.cta-btn {
  background: linear-gradient(90deg, #1CB5E0 0%, #1064a8 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px 32px;
  font-size: 1.13rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px 0 rgba(16,100,168,0.13);
  text-shadow: 0 2px 8px rgba(16,100,168,0.07);
  transition: background 0.2s, box-shadow 0.2s;
  margin-bottom: 1.1rem;
}

.cta-btn:hover {
  background: linear-gradient(90deg, #1064a8 0%, #1CB5E0 100%);
  box-shadow: 0 6px 18px 0 rgba(16,100,168,0.23);
}

.features {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 2.2rem;
  margin-bottom: 2.7rem;
  flex-wrap: wrap;
}

.feature-card {
  background: linear-gradient(120deg, #fff 75%, #e3f0ff 100%);
  border-radius: 1.2rem;
  box-shadow: 0 6px 18px 0 rgba(25,118,210,0.11);
  padding: 2rem 1.1rem 1.4rem 1.1rem;
  width: 315px;
  max-width: 97vw;
  text-align: center;
  margin-bottom: 1.1rem;
  transition: transform 0.13s;
  border: 1.5px solid #0d6efd0a;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.018);
  box-shadow: 0 9px 24px 0 rgba(16,100,168,0.17);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1064a8 60%, #1CB5E0 100%);
  border-radius: 50%;
  width: 60px; height: 60px;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 8px 0 rgba(16,100,168,0.14);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-card h3 {
  font-size: 1.13rem;
  font-weight: 700;
  color: #1064a8;
  margin-bottom: 0.45rem;
}

.feature-card p {
  color: #1976d2;
  font-size: 1.02rem;
  margin: 0;
  font-weight: 500;
}

.main-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 2rem 0 0.7rem 0;
  border-radius: 2.2rem 2.2rem 0 0;
  margin-top: 2.7rem;
}

.footer-grid {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-logo {
  height: 44px;
  margin-bottom: 0.9rem;
}

.footer-company {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.7px;
}

.footer-heading {
  font-weight: 700;
  font-size: 1.11rem;
  margin-bottom: 0.7rem;
  display: block;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.footer-icon {
  margin-right: 0.5rem;
  font-size: 1.16rem;
}

.footer-map {
  color: #8ab4f8;
  text-decoration: underline;
  font-size: 1rem;
}

.footer-bottom {
  text-align: center;
  color: #c5d6f3;
  font-size: 0.98rem;
  margin-top: 2.1rem;
  padding-bottom: 0.6rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1064a8;
  cursor: pointer;
  margin-left: 0.7rem;
}

@media (max-width: 900px) {
  .features {
    flex-direction: column;
    align-items: center;
  }
  .feature-card {
    width: 98vw;
  }
  .footer-grid {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .main-header {
    padding: 0.2rem 0;
  }
  .container {
    width: 99%;
    min-width: 0;
  }
  .main-nav ul {
    gap: 0.6rem;
    font-size: 0.95rem;
  }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 64px;
    background: var(--header-bg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    z-index: 99;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav ul {
    flex-direction: column;
    width: 100%;
    padding: 0.7rem 1.5rem;
  }
  .main-nav ul li {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .main-nav ul li a {
    width: 100%;
    display: block;
    padding: 10px 0;
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 2rem 0.25rem 1.3rem 0.25rem;
  }
  .hero h1 {
    font-size: 1.25rem;
  }
  .feature-card {
    width: 97vw;
    padding: 1.3rem 0.4rem 1.1rem 0.4rem;
  }
  .cta-btn {
    padding: 11px 21px;
    font-size: 0.98rem;
  }
}

@media (max-width: 400px) {
  .feature-card {
    font-size: 0.98rem;
  }
}

body[dir="rtl"] {
  font-family: 'Tajawal', Arial, sans-serif;
}

body[dir="rtl"] .main-nav ul, 
body[dir="rtl"] .features,
body[dir="rtl"] .footer-grid {
  direction: rtl;
}

body[dir="rtl"] .feature-card,
body[dir="rtl"] .footer-list li {
  text-align: right;
}

body[dir="rtl"] .footer-icon {
  margin-right: 0;
  margin-left: 0.5rem;
}