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

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

/* ==================== MEDIA QUERY: 991px - TABLET ==================== */
@media only screen and (max-width: 991px) {
  /* Typography */
  h3 {
    font-size: 24px !important;
    line-height: 31px !important;
  }

  h4 {
    font-size: 20px !important;
    line-height: 27px;
  }

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

  h6 {
    font-weight: bold;
  }
.lan{
  color: rgb(0, 0, 0) ;
}

.carousel-caption h4 {
    font-size: 25px !important;
  }

  .carousel-caption h6 {
    font-size: 16px;

  }

  .carousel-item {
    height: 650px;
  }

  .carousel-caption {
    right: 3%;
    top: 10%;
    left: 3%;
  }

  .carousel-control-next,
  .carousel-control-prev {
    top: 198px;
  }

  .carousel-caption h5 {
    font-size: 25px;
    line-height: 30px;
  }

  .carousel-caption p {
    font-size: 14px !important;
    line-height: 25px;
  }

  /* 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;
  }
}

/* ==================== 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;
  }
    .carousel-item {
    height: 500px;
  }
}

/* ==================== 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 QUERY: 991px+ DESKTOP ==================== */
@media only screen and (min-width: 991px) {
  /* Home Slider Navigation */
  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;
    }
    .list-footer li{
width: 30%;
    }
 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;
}
  .squre-after {
    position: relative;
  }
    .squre-after::after {
      position: absolute;
      content: "";
      width: 120px;
      bottom: 0px;
      right: -50px;
      top: 0px;
      transform: scaleX(-1);
      background-image: url(../imgs/home/aftersqure.svg);
      background-position: left;
      background-repeat: no-repeat;
      background-size: contain;
      z-index: -1;
    }
  

        .squre-after:nth-child(1)::after {
        left: -50px;
        transform: scaleX(1);
        right: auto;
      }

        body:has(.slider-home-nav) .navContainer {
    position: absolute;
    top: 0px;
    right: 0px;
    left: 0px;
  }

  body:has(.slider-home-nav) .navContainer .LanguageMenu {
    color: white;



  }
.form-icons div:nth-last-child(2) .border-start{
  border: 0px !important;

}
  .slider-blogs button.prev-button,
  .slider-blogs button.next-button {
    color: white !important;
    z-index: 111;
    top: 0% !important;
    bottom: auto;
  }

  .overflow-slider-hidden {
    overflow-x: hidden;
  }

  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 .navbar-brand2 {
    display: block;
  }

  body:has(.slider-home-nav) .navContainer .navbar-brand1 {
    display: none;
  }

  body:has(.slider-home-nav) .navContainer .icon-svg svg path {
    stroke: white !important;
  }

}
