/* ======================================================
   Global Variables (Colors)
====================================================== */
:root {
   --primary-color: #5a8c57;   /* أخضر زيتي غامق */
  --secondary-color: #517d4e;   /* Gray */
  --light-color: #f8f9fa;       /* Light Background */
  --dark-color: #212529;        /* Dark Text */
}




/* ======================================================
   Base Styles (NO RESET)
====================================================== */
body {
  direction: rtl;
  text-align: right;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

a {
  text-decoration: none;
}

/* ======================================================
   Header & Navbar (Bootstrap Friendly)
====================================================== */
header {
  display: block;
}

.navbar {
  background-color: var(--primary-color);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: #ffffff !important;
}

.navbar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  margin: 0 0.5rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #dbe7ff !important;
}

.dropdown-menu {
  text-align: right;
  font-size: 0.95rem;
}

/* ======================================================
   Sections
====================================================== */
.section {
  padding: 70px 0;
}

.section h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.section p {
  font-size: 1.05rem;
}

/* ======================================================
   Hero Section
====================================================== */
.hero {
  min-height: 80vh;
  background: linear-gradient(
      rgba(0, 51, 102, 0.85),
      rgba(0, 51, 102, 0.85)
    );
  color: #ffffff;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 900px;
  margin: auto;
  font-size: 1.2rem;
}

/* ======================================================
   Cards
====================================================== */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card-title {
  color: var(--primary-color);
  font-weight: 600;
}

/* Icons inside cards */
.card-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* ======================================================
   Buttons
====================================================== */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #002244;
  border-color: #002244;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* ======================================================
   Partners Section
====================================================== */
.partners {
  background-color: #ffffff;
  padding: 50px 0;
}

.partners img {
  max-width: 200px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.partners img:hover {
  opacity: 1;
}

/* ======================================================
   About Page
====================================================== */
.about-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* ======================================================
   Footer
====================================================== */
footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 50px 0 20px;
}

footer h5 {
  font-weight: 600;
  margin-bottom: 15px;
}

footer a {
  color: #ffffff;
}

footer a:hover {
  text-decoration: underline;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

/* ======================================================
   Responsive
====================================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .navbar-nav .nav-link {
    margin: 0.3rem 0;
  }
  
}
/* ===============================
   Navbar Responsive Fix
================================ */

.navbar {
  min-height: 70px;
}

.navbar-brand {
  white-space: nowrap;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
  }

  .navbar-nav .nav-link {
    padding: 10px 0;
    text-align: right;
  }
}
/* ===============================
   Layout Spacing
================================ */

main {
  min-height: 60vh;
}

.section {
  padding: 60px 15px;
}

@media (max-width: 768px) {
  .section {
    padding: 40px 15px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.95rem;
  }
}


/* Logo in Navbar */
.logo {
  height: 50px;
  width: auto;
}

@media (max-width: 768px) {
  .logo {
    height: 32px;
  }
}

/* =================================
   Logo Background for All Pages
================================= */

body {
  background-color: var(--light-color);
  background-image: url("assets/images/Logo1.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 500px;
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(248, 249, 250, 0.92); /* شفافية */
  z-index: -1;
}
@media (max-width: 768px) {
  body {
    background-size: 220px;
  }
}
/* ===============================
   Footer Layout
================================ */

footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 50px 0 25px;
}

footer h6 {
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 5px;
}

footer p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

footer a {
  color: #ffffff;
}

footer a:hover {
  text-decoration: underline;
}

/* Icons */
.footer-icon {
  font-size: 1.8rem;
  color: #ffffff;
}

/* Mobile Centering */
@media (max-width: 768px) {
  footer {
    text-align: center;
  }
}
/* ===============================
   Footer – Icons & Links
================================ */

.footer-icon {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-link {
  color: #ffffff;
  display: inline-block;
}

.footer-link:hover {
  color: #dfe9df; /* أخضر فاتح */
  text-decoration: none;
}

footer h6 {
  margin-top: 6px;
  font-weight: 600;
}

footer p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Mobile alignment */
@media (max-width: 768px) {
  footer {
    text-align: center;
  }
}

/* ===============================
   Footer Icons & Links
================================ */

.footer-link {
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
}

.footer-link:hover {
  color: #dfe9df; /* أخضر فاتح */
}

.footer-icon {
  font-size: 1.9rem;
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
}

footer small {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  opacity: 0.9;
}


/* ===============================
   Footer – 3 Columns Layout
================================ */

.footer-link {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: #dfe9df;
}

.footer-icon {
  font-size: 1.6rem;
  color: #ffffff;
}

footer small {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 768px) {
  footer {
    text-align: center;
  }
}
/* Center icon above text */
.footer-center {
  text-align: center;
}

.footer-center .footer-icon {
  display: block;
  margin: 0 auto 8px;
}
/* العمود في المنتصف + الأيقونة بجانب النص */
.footer-center-horizontal {
  text-align: center;
}

.footer-row {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* مسافة بين الأيقونة والنص */
}

.footer-icon {
  font-size: 1.6rem;
}
