/* Global styling */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Cairo";
  direction: rtl;
}
h1,h2,h3,h4,h5,p,span{
  font-family: "Cairo";
}
/* Language Toggle Styling */
.language-toggle {
  color: #333;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

@media (max-width: 768px) {
  .language-toggle {
    margin-right: 10px;
  }
}

/* Responsive Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  width: 100%;
  font-family: "Cairo", sans-serif;
}

header .logo img {
  width: 80px;
}
.imageSection{
  display: flex;
}
.imageSection1{
  display: flex;
}
.imageSection1>img{
  padding: 0px 10px;
}
.imageSection>img{
  padding: 0px 10px;
  width: 50%!important;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

header nav a {
  color: #333;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
}
.chartdiv{
  width: 100%;
  height: 400px;
}
canvas{
  border-radius: 0px;
}
header .btn-outline-primary {
  background-color: #62a19e;
  color: #fff;
  padding: 8px 20px;
  border-radius: 5px;
  border: none;
}
.custom-menu>li>a:hover{
  border-radius: 10px 10px 0px 0px;
}
#madrajPlusDropdown:hover{
  border-radius: 0px 0px 10px 10px;
}
header .custom-link {
  font-family: Cairo, sans-serif;
  font-size: 18px;
  font-style: bold;
  font-weight: 400;
  line-height: 120%;
}
header .custom-links {
  color: #EEB262 !important;
  font-family: Cairo, sans-serif;
  font-size: 18px;
  font-style: bold;
  font-weight: 400;
  line-height: 120%;
  direction: ltr !important;
}
header .custom-btn {
  border-radius: 6px;
  background: #eeb262;
  color: #ffffff;
  width: 105px;
}

.custom-menu{
  border-radius: 15px !important;  
  width: 170px;
  text-align: start !important;
}
.dropdown-item {
  font-size: 16px;
  padding: 10px 20px;
}

.dropdown-menu {
  background-color: #f8f9fa;
}

.dropdown-menu-end {
  left: 60px; 
  border-radius: 15px !important;
  width: 200px;
}

.dropdown-item:hover {
  background-color: #62A19E;
  color: white;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

.custom-menu, .dropdown-item {
  background-color: #f8f9fa; 
}

@media (max-width: 991px) {
  .custom-menu {
    background-color: transparent !important; 
    margin-left: 15px;
  }
  .dropdown-item {
    background-color: transparent !important; 

  }
  .dropdown-menu{
    border: none !important;
    background-color: transparent !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
  }
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  font-family: "Cairo", sans-serif;
  direction: rtl;
}

.hero-content {
  padding-top: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: 54px;
  font-weight: bold;
  color: #333;
}

.hero-subtitle {
  margin-top: 30px;
  font-size: 20px;
  color: #666;
}

.herosubtitle {
  margin-top: 30px;
  font-size: 30px;
  font-weight: bold;
  color: #333;
}

.align-items-center {
  display: flex;
  align-items: center;
  margin-top: 16px;
}

.cta-button {
  margin-top: 40px;
  background-color: #4ba69c;
  color: #fff;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  border: #4ba69c;
}

/* Background Images */
.background-image {
  position: absolute;
  /* position: fixed; */
  height: auto;
}

.top-left {
  top: 0;
  left: 0;
}

.bottom-right {
  bottom: 0;
  margin: -160px;
  right: 0;
  height: 60%;
  width: 80%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.nav-link i {
  font-size: 0.9em;
  margin-left: 5px;
}
.logoEn{
  display: none;
}
#logoEN{
  display: block;
}
.mobileBtn{
  display: none;
}
.DeskBtn{
  display: block;
}
/* Responsive styling for Hero section */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  .mobileBtn{
    display: block;
  }
  .DeskBtn{
    display: none;
  }
  .hero-subtitle {
    font-size: 18px;
  }

  .herosubtitle {
    font-size: 20px;
  }

  .hero-image img {
    width: 100%;
  }
  .navbar-nav{
    margin: 20px 10px 0px 10px;
  }
}

/* Additional responsive styling for smaller screens */
@media (max-width: 576px) {
  .hero-title {
    font-size: 28px;
  }
  .madrajplusstack{
    gap: 50px;
    padding-bottom: 30px;
  }
  .imageSection{
    display: flex;
    flex-direction: column;
  }
  .imageSection>img{
    object-fit: none;
    margin-bottom: -50px;
    margin-top:-30px;
    width: 100%!important;
  }
  .hero-subtitle {
    font-size: 16px;
  }

  .herosubtitle {
    font-size: 20px;
  }
  .overlay-image {
    bottom: 30px!important;
  }
  .texthover{
    font-size: 12px!important;
    margin: 0px;
    text-align: start;
    padding: 2px 2px!important;
  }
  .cta-button {
    padding: 10px 20px;
    font-size: 14px;
  }
  #logoEN,#logoAR{
    display: none;
  }
  .hero-content {
    padding-top: 32px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .team-image{
    width: 120px!important;
  }
  .sectionlink{
    display: flex;
    justify-content: start;
    align-items: center;
    width: 160px;
    margin: 2px 0px;
  }
}

/* Service class */
.Service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; 
}
.ServiceGroups{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; 
}
.hero-text{
  direction: rtl;
}
.text-column {
  flex: 1;
  padding: 20px;
  direction: rtl;
}

.image-column {
  flex: 1;
  padding: 20px;
  text-align: center;
}

.image-column img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  object-fit: contain;
}
.text-content{
  height: 150px;
}
.top-section{
  margin-top: 150px;
  height: 100vh;
}
.desktopdiv{
  display: block;
}
.mobilediv{
  display: none;
}
/* Custom styles for mobile responsiveness */
@media (max-width: 768px) {
  .Service {
    flex-direction: column; 
    margin-top: 10%!important;
  }
  .ServiceGroups{
    flex-direction: column;
  }
  .plusmadrajtop{
    margin-top: 30%!important;
  }
  .text-content{
    height: fit-content;
  }
  .top-section{
    margin-top: 20px;
    height: 80vh;
  }
  .top-sub-section{
    gap: 80px;
  }
  .madrajGrouptxt{
    /* padding-top: 50px; */
    text-align: center;
  }
  .madrajexpresstxt{
    text-align: center;
  }
  .desktopdiv{
    display: none;
  }
  .mobilediv{
    display: block;
  }
}

/* Styling for the Madraj Section */
.madraj-section {
  padding: 50px 0; 
}
.arrow{
  background-image: url('../images/vector.png'); 
  background-size: contain; 
  background-position: center center; 
  background-repeat: no-repeat;
}

/* Styling for the Madraj Plus Text (Row 1) */
.madraj-plus-text {
  color: #62A19E;
  font-family: Cairo, sans-serif;
  font-size: 35px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; 
}

/* Styling for the Madraj Eye Text (Row 2) */
.madraj-eye-text {
  color: #121212;
  font-family: Cairo, sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%; 
}

/* Styling for the Subheading after Madraj Plus */
.madraj-subheading {
  color: #666;
  font-family: Cairo, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%; 
  margin-top: 20px;
}

/* Styling for the image after Madraj Eye */
.madraj-image {
  max-width: 100%;  
  height: auto;
  margin-top: 20px; 
}

/* Styling for the Image Container */
.image-container {
  position: relative;
}

/* Overlay Image Styling (hidden by default) */
.overlay-image {
  position: absolute;
  bottom: 50px; 
  left: 50px; 
  opacity: 0; 
  transform: translateX(-100%);
  transition: opacity 0.3s ease, transform 0.5s ease; 
}
@media (min-width: 992px) {
  .overlay-image {
    opacity: 0; 
    transform: translateX(-100%); 
    bottom: 50px;
    left: 50px;
  }

  /* Show overlay image when hovering over the image */
  .image-container:hover .overlay-image {
    opacity: 1; 
    transform: translateX(0); 
  }
}

/* Always show the overlay image on screens smaller than 992px */
@media (max-width: 991px) {
  .overlay-image {
    opacity: 1; 
    transform: translateX(0);
    bottom: 60px;
    left: 60px;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .madraj-eye-text{
    font-size: 25px; 
  }
  .heading{
    font-size: 25px!important; 
  }

  .madraj-subheading {
    font-size: 16px; 
    margin-top: 0px;
  }

  .madraj-image {
    width: 100%; 
  }

  .madraj-section {
    padding: 30px 0;
  }
  .overlay-image {
    opacity: 1; 
    transform: translateX(0);
    bottom: 35px;
    left: 30px;
  }
  .hover-image{
    height: auto;
    width: 235px;
  }
}

/* Madraj Expert */
.team-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 10px 0px;
  max-width: 100%;
  height: auto;
}

.text {
  color: #666;
  text-align: center;
  font-family: Cairo;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
}
.hover-image{
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 280px;
}
.spandiv{
  background-color: #62A19E;
  padding: 8px 10px;
  border-radius: 10px;
  gap:10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.spandiv>img{
  width: 20px;
}
.hover1{
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.90);
  display: flex;
  justify-content: center;
  align-items: center;
  padding:8px;
}
.texthover{
  font-size: 15px;
  margin: 0px;
  text-align: start;
  padding: 5px 5px;
}
.textspan{
  font-size: 15px;
  margin: 0px;
}
.heading {
  color: #121212;
  font-family: Cairo, sans-serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%; 
}

/* Optional styling for the Customer Care section */
.customer-care-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 0px;
  text-align: center;
  justify-content: center;
}

.customer-care .icon {
  width: 24px; 
  height: 24px;
}

.customer-care span {
  font-size: 1rem;
  color: #333;
}

.customer-care .d-flex i,
.customer-care .d-flex img {
  font-size: 1.5rem;
  margin: 0px 5px; 
}

.customer-care .row {
  margin-left: 0;
  margin-right: 0;
}

/* Ensure no margin on columns */
.customer-care .col-12 {
  margin-bottom: 0 !important; 
}

/* Optional: Reset padding and margin for icon container */
.customer-care .d-flex {
  margin: 0;
  padding: 0;
}

.customer-care .icon {
  margin-right: 10px;
}

.text1 {
  color: #121212;
  font-variant-numeric: lining-nums proportional-nums;
  font-family: Cairo;
  font-size: 15px;
  font-weight: 600;
  line-height: 140%;
}

.text2 {
  color: #444;
  font-variant-numeric: lining-nums proportional-nums;
  font-family: Cairo;
  font-size: 15px;
  font-weight: 500;
  line-height: 140%;
}

.a {
  color: #444;
  text-decoration: none;
  font-variant-numeric: lining-nums proportional-nums;
  font-family: Cairo;
  font-size: 15px;
  font-weight: 500;
  line-height: 140%;
}
/* Footer Section */
.footer-section {
  /* background: linear-gradient(90deg, rgba(246, 206, 151, 0.20) 0%, #F6F6F6 100%); */
  background: linear-gradient(90deg, rgba(135, 189, 186, 0.06) 0%, #FFF 100%);
  background-size: cover;
  padding: 30px 0;
  color: #333;
}

.footer-logo-image {
  max-width: 100%;
  height: auto;
}

.footer-heading {
  font-size: 22px;
  /* font-weight: 500; */
  color: #000;
}
.logoAr{
  display: none;
}
.footer-text {
  font-size: 16px;
  /* font-weight: 500; */
  color: #444;
}

.footer-subtext {
  font-size: 15px;
  font-weight: 500;
  color: #EEB262; 
}

.footer-subtext-number {
  font-size: 16px;
  font-weight: 400;
  color: #444; 
}

/* Space between social icons */
.d-flex.justify-content-around {
  gap: 10px;
  /* width: 20px; */
}

.social-icon {
  width: 30px;
  height: 30px;
}

.app-store-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.app-store-buttons img {
  width: 130px;
  height: auto;
}

.app-store-icon {
  width: 130px;
  height: auto;
}

.footer-bottom {
  margin-top: 20px;
}

.aboutmadraj {
  /* border-right: 2px solid #EEB262; */
  /* padding-right: 20px; */
}
.iconsdiv{
  justify-content: center;
}
.followustxt{
  text-align: center;
}
.sectionlink{
  display: flex;
  justify-content: start;
  align-items: center;
}
.social-icon{
  margin: 0px 5px;
}
/* Responsive Styles */
@media (max-width: 768px) {
  .footer-section .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  header{
    padding: 16px 0px;
  }
  .footer-logo {
    text-align: center;
    margin-bottom: 20px;
  }
  #Products{
    margin-top: 1rem !important;
    margin-bottom: 3rem !important;
  }
  /* Remove the border-right for small screens */
  /* .aboutmadraj {
    border-right: none!important;
    border-left: none!important;
  } */

  .footer-nav {
    text-align: center;
  }
  .hover-image{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 240px;
  }
  .hover1{
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.90);
    display: flex;
    justify-content: center;
    align-items: center;
    padding:5px;
  }
  .spandiv{
    background-color: #62A19E;
    padding: 7px 10px;
    border-radius: 10px;
    gap:5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
  }
  .hover1>img{
    width: 20px;
  }
  .spandiv>img{
    width: 18px;
  }
  .texthover{
    font-size: 13px;
    margin: 0px;
    text-align: start;
    padding: 5px 5px;
  }
  .textspan{
    font-size: 13px;
    margin: 0px;
  }
  /* Make sure footer bottom section items stack vertically and are centered */
  .footer-bottom .row {
    justify-content: center;
  }

  .footer-subtext-number,
  .footer-subtext {
    font-size: 14px;
  }

  /* Center the App Store buttons */
  .app-store-buttons {
    justify-content: center;
    margin-top: 20px;
  }

  .app-store-buttons img {
    width: 130px; 
    height: auto;
  }

  .social-icon {
    width: 25px;
    height: 25px; 
  }

  /* Adjust the spacing of the columns in the footer */
  .footer-bottom .row {
    width: 100%;
    text-align: center;
  }

  .footer-bottom .col-6 {
    margin-bottom: 15px; 
  }

  .footer-subtext-number,
  .footer-subtext {
    font-size: 14px;
  }

  .footer-text{
    font-size: 14px;
  }
  .footer-heading {
    font-size: 20px;
  }

  /* Adjust row padding for better alignment */
  .footer-bottom .row .col-12 {
    padding-left: 15px;
    padding-right: 15px;
  }
}
