/* ==================== RESPONSIVE STYLES - CLEANED ==================== */
/* Only classes actually used in HTML files */

/* ==================== MEDIA QUERY: 1200px ==================== */
@media only screen and (max-width: 1200px) {
  .container {
    max-width: 95%;
  }
  body{
  overflow-x: hidden;
}
}

/* ==================== MEDIA QUERY: 991px - TABLET ==================== */
@media only screen and (max-width: 991px) {
  /* Typography */
p{
  font-size: 16px !important;
}
.next-button {
    left: 16%;
}
button.prev-button, button.next-button {
    width: 30px;
    height: 30px;
  font-size: 12px;
  }
  .slider-works .img-card::after {
    color: var(--primaryColor);
    position: absolute;
    right: 15px;
    bottom: -25%;
    counter-increment: section;
    content: "0" counter(count, decimal);
    font-size: 130px;
    font-weight: 600;
}
  h3 {
    font-size: 24px !important;
    line-height: 31px !important;
  }
  .carousel-item {
    height: 500px;
}
  h4 {
    font-size: 20px !important;
    line-height: 27px;
  }

  h5 {
    font-size: 27px !important;
    line-height: 34px;
    font-weight: 600;
  }

  h6 {
    font-weight: bold;
    font-size: 16px !important;
  }

  /* Buttons */
  .btn {
    font-size: 13px !important;
    font-weight: 400 !important;
  }

  /* Images */
  .img-container {
    height: 340px;
  }

  /* Layout */
  .w-75 {
    width: 100% !important;
  }

  .w-25 {
    width: 100% !important;
  }

  /* Footer */
  footer img {
    width: 150px;
  }

  footer h4 {
    font-size: 16px;
  }

    .navContainer .nav-item{
    display: flex;
border-bottom: 1px solid rgb(218, 218, 218);
}
   .nav-link:hover span::after {
  width: 0% !important;
}
.lan {
    color: rgb(0, 0, 0);
}
}

/* ==================== MEDIA QUERY: 770px - MOBILE ==================== */
@media only screen and (max-width: 770px) {
  /* RTL Support */
  html[lang="ar"] .text-md-start.text-center,
  html[lang="ar"] .text-md-end.text-center {
    text-align: center !important;
  }
  .img-container {
    height: 330px;
  }

  .header-div {
    height: 220px;
  }

  /* Grid Layout */
  .container-divs div:nth-child(3n+2) {
    padding-inline-start: 4px;
  }

  .container-divs div:nth-child(3n+1) {
    padding-inline-end: 4px;
  }

  .container-divs div:nth-child(3n) {
    margin-block: 16px;
  }
}

/* ==================== MEDIA QUERY: 550px - SMALL MOBILE ==================== */
@media only screen and (max-width: 550px) {
  h1, h2, h3, h4, h5 {
    font-size: 18px !important;
  }

  label:not(.form-check-label) {
    font-size: 15px;
  }

  footer a {
    font-size: 14px;
  }
}

/* ==================== MEDIA QUERY: 450px - EXTRA SMALL MOBILE ==================== */
@media only screen and (max-width: 450px) {
  .img-card {
    max-height: 250px !important;
    height: auto !important;
  }

  p {
    font-size: 14px !important;
    line-height: 18px;
  }
}

@media only screen and (min-width: 991px) {
 .slider-gallery .slick-slide:nth-child(odd) .img-card {
transform: rotate(4.67deg);
  }
   .slider-gallery .slick-slide:nth-child(even) .img-card {
transform: rotate(-5.87deg);
  }


  .img-card-grid .grid .img-card:nth-child(2) , .img-card-grid .grid div:nth-child(3) {
    height: 275px;
  
   
    }
    .img-card-grid .grid div:nth-child(1) ,   .img-card-grid .grid div:nth-child(4)  {
      height: 225px;
  
  
    }  
  .img-card-grid .grid div:nth-child(3) {
    margin-top: -50px;
    
     
      }

            .slider-testimonials .slick-center  .card {
    transition: all 0.8s ease;
    transform : scale(1.25);
        z-index: 1;
              background: var(--primaryColor);
              color: white;
    position: relative;
  }
              .slider-testimonials .slick-cloned.slick-active  .card  {
background-color: #E7E6E6;
color: black;
  }

   .slider-testimonials .slick-track{
    padding-block: 50px;
   }
  body:has(.slider-home-nav) .nav-link span {
    color: var(--mainColor4);
    font-weight: 400;
  }
    body:has(.slider-home-nav) .navContainer {
        position: absolute;
        top: 0px;
        right: 0px;
        left: 0px;
    }
 body:has(.slider-home-nav)   .navContainer .LanguageMenu svg {
    transition: transform 0.2s ease-in-out;


  }
  body:has(.slider-home-nav)  .navContainer .LanguageMenu svg path{

    stroke: white;

  }
 
   body:has(.slider-home-nav)  .navContainer .LanguageMenu svg path:hover {
    transform: rotateY(180deg);

  }
 body:has(.slider-home-nav) .navContainer .nav-link span {
    color: var(--mainColor4);
    font-weight: 400;
}
 body:has(.slider-home-nav) .navContainer  .lan {
    color: var(--mainColor4);
}
}