/* 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 {
  height: 160px;
  width: auto;
  object-fit: contain;
}

/* الروابط */
.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-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 {
  background-color: #fff;
  color: #02594B !important;
}

.has-dropdown {
  position: relative;
}

.has-dropdown .arrow {
  font-size: 12px;
  margin-right: 6px;
}


.dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background: #fff;
  min-width: 220px;
  padding: 8px 0;
  list-style: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;


  display: flex;
  flex-direction: column;
}


.dropdown-menu li a {
  position: relative;
  padding: 12px 0;  
  margin: 0 18px;   
  display: inline-block;   
  color: #333;
  font-size: 15px;
  font-weight: 500;
}

.dropdown-menu li a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  right: 0;
  width: 0%;
  height: 2px;
  background-color: #9A12BB;
  transition: width 0.3s ease;
}

.dropdown-menu li a:hover::after {
  width: 100%; 
}

.dropdown-menu li a:hover::after {
  width: calc(100% - 36px);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a:hover {
  color: black;
}

.has-dropdown > a::after {
  display: none;
}
/* End Header */

/* Start Background */
.hero {
  width: 100%;
  min-height: 32vh;
  background-color: #ccdedb;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  padding: 2rem 5rem;
  overflow: hidden;
}

/* النص */
.hero .left {
  position: absolute; 
  top: rem; /* ارتفاع النص */ 
  right: 400px; /* المسافة من يمين الشاشة، حسب حجم الشعار */ 
  max-width: 1000px; 
  color: white; 
  text-align: right; 
  z-index: 2; 
}

/* العنوان */
.hero h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: #02594B;
}

/* النص */
.hero p {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: #02594B;
}

/* الشعار */
.hero .right {
  position: absolute;
  right: 0;
  bottom: -40px;
  z-index: 1;
}

/* صورة الشعار */
.hero .right img {
  width: 500px;
  height: auto;
  filter: drop-shadow(-4px 6px 20px rgba(0, 0, 0, 0.3));
  transform: translate(80px, 0);
}


@media (max-width: 1200px) {
  .hero .left {
    max-width: 60%;
  }

  .hero .right img {
    width: 350px;
  }
}
@media (max-width: 850px) {

  .hero {
    margin-top: 85px; 
    min-height: auto;      
    overflow: visible;      
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1.2rem 2rem;
    text-align: center;
  }


  .hero .right {
    position: static;       
    order: 1;
    margin-top: 1rem;      
    margin-bottom: 1.2rem;
  }

  .hero .right img {
    width: 240px;          
    max-width: 90%;
    transform: none;
  }


  .hero .left {
    position: static;
    order: 2;
    max-width: 100%;
    text-align: center;
    right: auto;
  }
}

@media (max-width: 768px) {

  .hero {
    margin-top: 85px; 
    min-height: auto;      
    overflow: visible;      
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1.2rem 2rem;
    text-align: center;
  }


  .hero .right {
    position: static;       
    order: 1;
    margin-top: 1rem;      
    margin-bottom: 1.2rem;
  }

  .hero .right img {
    width: 240px;          
    max-width: 90%;
    transform: none;
  }


  .hero .left {
    position: static;
    order: 2;
    max-width: 100%;
    text-align: center;
    right: auto;
  }
}

@media (max-width: 1500px) {

  .hero {
    margin-top: 85px;
    min-height: auto;       
    overflow: visible;      
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1.2rem 2rem;
    text-align: center;
  }


  .hero .right {
    position: static;       
    order: 1;
    margin-top: 1rem;      
    margin-bottom: 1.2rem;
  }

  .hero .right img {
    width: 240px;          
    max-width: 90%;
    transform: none;
  }


  .hero .left {
    position: static;
    order: 2;
    max-width: 100%;
    text-align: center;
    right: auto;
  }
}
@media (max-width: 992px) {
  .hero {
    margin-top: 85px;
    min-height: auto;
    flex-direction: column;
    padding: 2rem 1.5rem;
    overflow: visible;
    text-align: center;
  }

  .hero .left {
    position: static;     
    transform: none;
    right: auto;
    top: auto;
    max-width: 100%;
    text-align: center;
    order: 2;
  }

  .hero .right {
    position: static;
    order: 1;
    margin-bottom: 1rem;
  }

  .hero .right img {
    width: 260px;
    max-width: 90%;
    transform: none;
  }
}
/* Service Page */
.service-page {
  padding: 4rem 2rem;
  background: #fff;
}

.service-page .container {
  display: flex;
  align-items: stretch; 
  gap: 40px;
  flex-wrap: nowrap;
}


.service-text {
  flex: 1.3;
  direction: rtl;
  text-align: right;
}

.service-text h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.service-text p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-image {
  flex: 0 0 280px;     
  aspect-ratio: 1 / 1;
  align-self: stretch;
  overflow: hidden;
  border-radius: 24px;
}


/* .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
} */
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 768px) {
  .service-page .container {
    flex-direction: column;
  }

  .service-image {
    width: 100%;
    height: 420px;
  }
}

.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.features-list li {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  margin-bottom: 0.8rem;
  padding-right: 1rem;
  position: relative;
}

.features-list li::before {
  content: "•";  
  color: #02594B;
  position: absolute;
  right: 0;
  top: 0;
}

.btn-primary {
  background-color: #02594B;
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: clamp(0.95rem, 1.5vw, 1rem);
}

/* End Background */

/* Start Footer */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.footer {
    background-color: #ccdedb;
    color: #02594B;
    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: #02594B;        
    text-decoration: none; 
}

.email-link:hover {
    color: #ffffff;        
    text-decoration: none; 
}
.phone-link {
    color: #02594B;        
    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;
}

@media (max-width: 768px) {

  .footer-container {
    flex-direction: column;      
    text-align: center;
    gap: 20px;
  }

  .footer-right {
    order: 1;                    
  }

  .footer-left {
    order: 2;                  
    text-align: center;
  }

  .footer-right .footer-logo {
    max-height: 180px;         
  }
}

/* End Footer */

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #02594B;
  position: absolute;
  top: 22px;
  left: 20px;
  z-index: 3000;
}

/* عند الشاشات الصغيرة أقل من 768px */
@media (max-width: 767px) {

  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    left: 20px; 
    z-index: 1100;
  }
  .header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
  }

  .header .links {
    position: absolute;
    top: 85px;               
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 20px 0;
    border-top: 1px solid #ccc;
    box-shadow: 0 4px 10px 02594B(0,0,0,0.15);
    z-index: 2500;
  }

  .header .links.active {
    display: flex;
  }

  .header .links ul {
    flex-direction: column;
    gap: 15px;
  }
}


