html[dir="rtl"] {
  .footer h2:not(.contextual-links) {
    text-align: right;
  }
  .block--cait-quicklinks {
    flex: 1;
    margin-right: 80px;
  }
  .block--cait-resources {
    flex: 1;
    margin-right: 20px;
  }
  .block--cait-legalinformation {
    flex: 1;
    margin-right: 20px;
  }
  .block--system-branding {
    padding-top: 5%;
  }
  .footer {
    .navbar-nav {
      padding-right: 0 !important;
    }
  }
  @media screen and (min-width: 1150px) {
    .block--system-branding {
      margin-left: 0% !important;
    }

    .block--cait-sociallinksblock {
      margin-right: 0% !important;
    }
  }
  @media screen and (max-width: 768px) {
    .block--cait-quicklinks {
      margin-right: 30px !important;
    }
    /* .block--cait-sociallinksblock {
      margin-right: 40% !important;
    } */
    .block--system-branding {
      padding-top: 0%;
    }
  }

  @media only screen and (min-width: 320px) and (max-width: 425px) {
    .block--cait-quicklinks {
      margin-right: 20px !important;
    }
    .block--cait-sociallinksblock {
      margin-right: 0% !important;
    }
    footer{
      width: 100%;
      background-size: cover !important;
      background-position: center !important;
    }
  }
}
footer {
  background-image: url("../images/footer-layer.png") !important;
  width: 100%;
  background-size: cover !important;
  background-position: center !important;
  .active {
    border-bottom: none !important;
  }

  .nav-item a{
    border-bottom: inherit !important;

  }
}
footer .nav-item a:hover {
  color: #42bb96 !important;
  border-radius: none !important;
  border-bottom: none !important
}
.page__footer a {
  color: var(--Nautral-300, rgba(220, 223, 226, 1)) !important;
}

.footer .nav:not(.contextual-links) {
  display: flex !important;
  flex-direction: column;
}

.footer h2:not(.contextual-links) {
  color: var(--Nautral-300, rgba(220, 223, 226, 1)) !important;
  font-size: 16px;
  font-weight: 750;
  line-height: 19.2px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.block--system-branding {
  padding-top: 5%;
  /* flex: 1; */
}
/* .block--cait-quicklinks {
  flex: 1;
}
.block--cait-resources {
  flex: 1;
}
.block--cait-legalinformation {
  flex: 1;
} */

.block--system-branding .navbar-brand img {
  width: 190px !important;
  max-height: none !important;
}

.copyright,
.footer::after {
  display: block;
  text-align: center;
  color: var(--Nautral-300, rgba(220, 223, 226, 1));
  font-size: 14px;
  line-height: 1.5;
}

.footer-social-icons {
  margin-top: 100px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border-radius: 8px;
}

.social-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease-in-out;
}



.footer-social-icons a[href*="youtube"]:hover img {
  content: url('../images/youtube-hover.svg');
}

.footer-social-icons a[href*="github"]:hover img {
  content: url('../images/github-icon-hover.svg');
}

.footer-social-icons a[href*="x.com"]:hover img {
  content: url('../images/twitter-hover.svg');
}

.footer-social-icons a[href*="linkedin"]:hover img {
  content: url('../images/linkedin-hover.svg');
}

.footer-social-icons a[href*="instagram"]:hover img {
  content: url('../images/instagram-hover.svg');
}

.footer-social-icons a[href*="facebook"]:hover img {
  content: url('../images/facebook-hover.svg');
}

@media screen and (max-width: 768px) {
  .footer h2:not(.contextual-links) {
    padding-left: 0;
  }
  .block--system-branding {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
  }
  .footer {
    .navbar-nav {
      padding-bottom: 25px;
    }
  }
}

/* Apply to iPads and Android tablets */
@media only screen and (min-width: 768px) and (max-width: 820px) {
.block--cait-sociallinksblock {
  width: 100%;
}
}
@media only screen and (min-width: 320px) and (max-width: 425px) {
  .block--cait-sociallinksblock {
    margin-right: 0% !important;
  }
  footer{
    background-size: cover !important;
    background-position: center !important;
  }
}
@media only screen and (min-width: 560px) and (max-width: 768px) {

  .footer .justify-content-md-between {
    gap: 15px !important;
    flex-wrap: wrap;
  }

  /* .footer-social-icons {
    margin-left: 30vw;
  } */
}

@media only screen and (max-width: 860px) and (min-height: 1080px) {
  .footer .justify-content-md-between {
    gap: 15px !important;
    flex-wrap: wrap;
  }
}


@media screen and (max-width: 768px) {
  .footer::after {
    font-size: 12px; /* Smaller font size for mobile */
    margin-bottom: -12px; /* Adjust margin for better spacing */
    margin-top: 19px;
  }
  .footer-social-icons {
    margin-top: 0 !important;
    padding: 0;
  }
}

@media screen and (min-width: 1024px) {

  .block--system-branding {
    margin-left: 10px !important;
  }

  .block--cait-sociallinksblock {
    margin-right: 0 !important;
  }

  html[dir="rtl"] {
    .block--system-branding {
      margin-right: 0% !important;
    }

    .block--cait-sociallinksblock {
      margin-left: 0% !important;
    }
  }
}



