/* Start Global Rules */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
body {
  font-family: "Noto Kufi Arabic", sans-serif;
}
.container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}
/* Small */
@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}
/* Medium */
@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}
/* Large */
@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}
/* End Global Rules */

/* Start Header */
.header {
  background-color: #fff;
  direction: rtl;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between; /* الأعمدة الثلاثة */
  align-items: center;
  width: 100%;
  padding: 0 40px;
}
.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
}

/* اللوقو */
.header .logo {
  position: relative;
  right: 0;
  max-height: 250px;
  width: auto;
}

/* الروابط */
.header .links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header .links ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.header .links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

/* الخط عند المرور */
.header .links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #9A12BB; /* لون الخط الجديد */
  transition: width 0.3s ease;
}

.header .links a:hover::after {
  width: 100%;
}

/* لا يتغير اللون عند المرور */
.header-center .links li a:hover {
  color: #333;            /* اللون يبقى مثل الأصل */
  background: transparent; /* الخلفية لا تتغير */
}

.header-center .links li a:hover::after {
  width: 100%; /* يظهر الخط تحت النص */
}

/* تسجيل الدخول */
.header-left .login {
  background-color: #02594B; /* الخلفية خضراء */
  color: #fff !important;               /* النص أبيض */
  padding: 10px 22px;        /* يوسع المساحة عن الروابط */
  margin-right: 200px;        /* مسافة عن الروابط */
  border-radius: 8px;
  border: 2px solid #02594B; /* الحدود خضراء */
  transition: all 0.3s ease;
}

/* عند المرور أو التركيز */
.header-left .login:hover,
.header-left .login:focus {
  background-color: #fff;      /* الخلفية بيضاء */
  color: #02594B !important;              /* النص أخضر */
  border: 2px solid #02594B;   /* الحدود خضراء */
  transform: scale(1.05);
}

/* عند الضغط */
.header-left .login:active {
  background-color: #fff;
  color: #02594B;
  border: 2px solid #02594B;
  transform: scale(1);
}
.header-left .login::after {
  display: none;  /* يمنع أي خط أسفل الزر */
}
/* End Header */

/* Start Background */
.hero {
  width: 100%;
  min-height: 32vh; /* تصغير ارتفاع الخلفية */
  background-color: #02594B;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* يجعل المحتوى باتجاه اليمين */
  text-align: right;
  direction: rtl;
  padding: 2rem 5rem 2rem 2rem; /* padding من اليمين أكثر */
  overflow: hidden;
}

/* النص */
.hero .left {
  position: absolute;
  top: rem;       /* ارتفاع النص */
  right: 400px;    /* المسافة من يمين الشاشة، حسب حجم الشعار */
  max-width: 500px;
  color: white;
  text-align: right;
  z-index: 2;
}

/* التحكم عند الشاشات الصغيرة */
@media (max-width: 1200px) {
  .hero .left {
    max-width: 60%; /* يقل الحجم مع الشاشة */
    margin-right: 1rem; /* يقل المسافة */
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .hero .right img {
    width: 350px;
  }
}

/* العنوان */
.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* النص */
.hero p {
  font-size: 1.3rem;
  color: #d9ebe4;
  line-height: 0.8;
}

/* الشعار */
.hero .right {
  position: absolute;
  right: 0;  /* أقصى اليمين */
  bottom: -40px; /* مرفوع شوي للأعلى */
  z-index: 1;
}

/* الصورة داخل الشعار */
.hero .right img {
  width: 600px; /* كبر الشعار */
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(-4px 6px 20px rgba(0, 0, 0, 0.3)); /* ظل ناعم */
    transform: translate(80px, 0); /* حرك 30px يمين */

}


/* --------- القسم الأخضر --------- */
.about-section {
  background-color: white;
  text-align: center;
  padding: 20px 20px;
  direction: rtl;
}
.about-section h3 {
  color: #02594B;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-section p {
  color: #02594B;
  font-size: 1.1rem;
  line-height: 1.6;      
  max-width: 70%;        /* النص يشغل كامل مساحة المستطيل تقريبًا */
  width: 100%;            /* إجبار النص ليملأ المستطيل */
  text-align: center;     
  margin: 0 auto 1rem auto;  /* تقليل المسافة أسفل النص */
}

.about-section .aboutus {
  background-color: #02594B;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  margin-top: -1rem;
}

.about-section .aboutus:hover,
.about-section .aboutus:focus {
  background-color: #fff ;
  color: #02594B !important;
  border: 2px solid #02594B;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .about-section {
    width: 90%;
    padding: 2rem 1.5rem;
  }
  .about-section h3 {
    font-size: 1.6rem;
  }
  .about-section p {
    font-size: 1rem;
    line-height: 1.7;
  }
  .about-section .aboutus {
    padding: 8px 18px;
  }
}

/* End Background */

/* Start services */
.services-section {
  background-color: #f2d368;
  text-align: center;
  padding: 50px 20px;
}

.services-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
}

.services-section p {
  color: white;
  font-size: 1.1rem;
  max-width: 100%;
  margin: 0 auto 50px;
  line-height: 1.8;
  direction: rtl;
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.service-box {
  background-color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
  width: 260px;
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-title {
  display: block;
  background-color: #9A12BB; /* بنفسجي غامق */
  color: white;
  padding: 10px 0;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none; /* إزالة الخط */
  transition: background-color 0.3s ease;
}

/* Disable pointer */
.no-pointer {
    pointer-events: none;
}

.service-title:hover {
  background-color: #9A12BB; /* لون أغمق شوي عند المرور */
}

/* End services */


/* Stsrt partners */
:root{
  --bg:white;
  --title:#02594B;
  --gap:60px;
  --logo-w:220px;
  --logo-h:120px;
  --track-speed:40s;
  --bottom-space:120px;
}

.partners-section{
  text-align:center;
  background:var(--bg);
  padding:48px 0;
  margin-bottom:var(--bottom-space);
  direction:rtl;
}

.partners-title{
  color:var(--title);
  font-size:1.85rem;
  font-weight:700;
  margin:0 0 28px 0;
}

.partners-viewport{
  width:94%;
  max-width:1200px;
  margin:0 auto;
  overflow:hidden;
  position:relative;
  padding:18px 0;
}
.track{
  display:flex;
  align-items:center;
  gap:var(--gap);
  width:max-content;
  animation:scroll var(--track-speed) linear infinite;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

.partners-viewport:hover .track{
  animation-play-state: paused;
}

.partner{
  flex:0 0 auto;
  width:var(--logo-w);
  height:var(--logo-h);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0.8;
  transition: transform .25s ease, filter .25s ease, opacity .25s ease;
  animation:moveLeft var(--track-speed) linear infinite;
  text-decoration: none;
}

.partner img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
  
}


.partner:hover{
  transform:scale(1.06);
  opacity:1;
}


/* حركة الشعارات من اليمين لليسار */
@keyframes moveLeft {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100% - var(--logo-w));
  }
}

@media (max-width:700px){
  :root{
    --logo-w:150px;
    --logo-h:90px;
    --gap:30px;
    --track-speed:15s;
  }
  .partners-title{ font-size:1.3rem; }
}

/* End partners */


/* Start Footer */
/* نخلي الجسم يغطي كل الصفحة */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

/* المحتوى ياخذ المساحة المتبقية */
.main-content {
    flex: 1;
}

.footer {
    background-color: #02594B;
    color: #fff;
    font-family: "Noto Kufi Arabic", sans-serif;
    direction: rtl; /* النص عربي */
    font-size: 20px;
}

.footer-container {
    display: flex;
    flex-direction: row-reverse; /* يعكس ترتيب العناصر: اللوقو يمين والكلام يسار */
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px;
    flex-wrap: wrap;
}

/* النص يبقى عربي */
.footer-left {
    direction: rtl; 
    text-align: right;
}

.footer-left h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.footer-left p {
    margin: 3px 0;
    font-size: 16px;
}

.footer-left a {
    color: #fff;
    text-decoration: none;
}

.footer-left a:hover {
    text-decoration: underline;
}
.email-link {
    color: #ffffff;        
    text-decoration: none; 
}

.email-link:hover {
    color: #ffffff;        
    text-decoration: none; 
}
.phone-link {
    color: #ffffff;        
    text-decoration: none; 
}

.phone-link:hover {
    color: #ffffff;        
    text-decoration: none; 
}
/* اللوقو على اليمين */
.footer-right .footer-logo {
    max-height: 300px;
    width: auto;
}

/* الحقوق */
.footer-bottom {
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    margin-top: 10px;
}

/* يغطي الجسم طول الصفحة */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* End Footer */

/* ---------------- Start Responsive Web Design ---------------- */

/* الهواتف الصغيرة (أقل من 768px) */
@media (max-width: 767px) {

  /* الهيدر */
  .header {
    height: auto;
    padding: 10px 0;
  }

  .header .container {
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
  }

  .header .links ul {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 0;
  }

  .header-left .login {
    margin-right: 0;
    padding: 8px 18px;
  }

  /* صندوق المحتوى الرئيسي */
  .main-content {
    padding: 40px 10px;
  }

  /* Hero Section */
  .hero {
    flex-direction: column;
    padding: 1.5rem;
    min-height: 40vh;
  }

  .hero .left {
    position: static;
    max-width: 100%;
    margin-bottom: 1rem;
    text-align: center;
  }

  .hero .right img {
    width: 90%;
    max-width: 350px;
    position: static;
    transform: translate(0,0);
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* قسم About */
  .about-section p {
    max-width: 95%;
    font-size: 1rem;
    line-height: 1.5;
  }

  .about-section .aboutus {
    padding: 8px 18px;
    margin-top: 0.5rem;
  }

  /* Services */
  .services-container {
    flex-direction: column;
    gap: 20px;
  }

  .service-box {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Partners */
  .partners-viewport {
    width: 100%;
    padding: 10px 0;
  }
  :root {
    --logo-w: 150px;
    --logo-h: 90px;
    --gap: 20px;
    --track-speed: 15s;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
    padding: 25px 15px;
  }

  .footer-right {
    margin-bottom: 15px;
  }

  .footer-right .footer-logo {
    max-height: 120px;
  }

  .footer-left h3 {
    font-size: 18px;
  }

  .footer-left p {
    font-size: 14px;
  }
}

/* الأجهزة اللوحية (من 768px إلى 991px) */
@media (min-width: 768px) and (max-width: 991px) {

  .header .container {
    padding: 0 20px;
  }

  .header .links ul {
    gap: 15px;
  }

  .header-left .login {
    margin-right: 50px;
  }

  .login-box {
    width: 380px;
  }

  .footer-container {
    padding: 30px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero .right img {
    width: 400px;
  }
}

/* الشاشات المتوسطة (من 992px إلى 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {

  .header-left .login {
    margin-right: 100px;
  }

  .login-box {
    width: 420px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .hero .right img {
    width: 500px;
  }
}

/* ---------------- End Responsive Web Design ---------------- */
