@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap");

:root {
  --primary-color: #0d47a1;
  --secondary-color: #1565c0;
  --text-color: #333;
  --light-bg: #f5f5f5;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

body {
  direction: rtl;
  background-color: #fff;
  color: var(--text-color);
}

#userIconAlt {
  font-size: 14px;
  color: #0055d2;
  cursor: pointer;
  margin-right: 10px;
  display: flex;
  align-items: center;
  gap: 17px;
}

#userIconAlt a {
  text-decoration: none;
  color: #0055d2;
  font-size: 14px;
}

header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}
nav {
  display: flex;
  justify-content: flex-end; /* أو space-between حسب الحاجة */
  align-items: center;
  max-width: 1300px;
  direction:rtl; /* يضمن ترتيب العناصر صح */
  gap: 250px;
}
@media (min-width: 1600px) {
  nav {
    max-width: 1650px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.code-icon {
  font-size: 1.8rem;
  font-weight: bold;
}
.nav-links {
  margin-left: auto; /* يجعلها تروح أقصى اليمين */
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.login-btns {
  display: flex;
  gap: 1rem;
}

.login-btns button:last-child {
  background-color: transparent;
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--primary-color);
}

.login-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.login-btns .login-btn:first-of-type a {
  text-decoration: none;
  color: white;
}

.login-btns .login-btn:last-of-type a {
  text-decoration: none;
  color: var(--primary-color);
}

.login-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(13, 71, 161, 0.9), rgba(13, 71, 161, 0.9)),
    url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80")
      center/cover;
  color: white;
  padding: 4rem 2rem;
  margin-top: 0 !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
}

.hero p {
  animation: fadeInUp 1s ease;
}

/* Links */
.links.nav-links li a {
  color: #444;
}

.links.nav-links li a.active {
  color: #0055d2;
}

/* Links */
.links.nav-links li a {
  color: #444;
}

.links.nav-links li a.active {
  color: #0055d2;
}

/* Hero */
.about-hero {
  position: relative;
  background-image: url("../images/hero-contact.png");
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero .overlay {
  background-color: rgba(0, 15, 40, 0.7);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 5%;
}

.about-content {
  color: #fff;
  text-align: right;
  width: 100%;
  padding: 0 10rem;
}

.about-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.about-content p {
  font-size: 0.8rem;
  display: flex;
  gap: 0.5rem;
}

.about-content a {
  color: #fff;
  text-decoration: none;
}

.about-content a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .about-hero {
    height: 250px;
  }

  .about-content h1 {
    font-size: 2rem;
  }

  .about-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .about-hero {
    height: 200px;
  }

  .about-content {
    padding: 0 10px;
  }

  .about-content h1 {
    font-size: 1.5rem;
  }

  .about-content p {
    font-size: 0.8rem;
  }
}

.contact-cards {
  background-color: #f4f9fc;
  padding: 60px 0;
  font-family: "Almarai", sans-serif;
}

.contact-cards__container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-cards__left {
  flex: 2;
  display: grid;
  gap: 20px;
}

.contact-cards__right {
  flex: 1;
  display: flex;
  flex-direction: column;

  gap: 20px;
}

.contact-cards__card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.contact-cards__card:hover {
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.contact-cards__card--wide {
  grid-column: span 2;
}

.contact-cards__icon {
  font-size: 2.5rem;
  color: #0066ff;
}

.contact-cards__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0066ff;
}

.contact-cards__value {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}

.contact-cards__note {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
}

.contact-cards__info {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-cards__label {
  font-size: 1rem;
  font-weight: 700;
  color: #0066ff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.contact-cards__label-icon {
  font-size: 16px;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-cards__container {
    flex-direction: column;
  }

  .contact-cards__card--wide {
    grid-column: span 1;
  }
  .nav-links {
    display: none;
  }
}
