html[dir="rtl"] {
  .navbar .nav-link:not(.contextual-links) {
    text-align: right !important;
  }


  @media (min-width: 991px) {
    /* Ensure the nav-links are inside cait-list-items */
    .block--cait-menu-account .navbar-nav .nav-item .nav-link {
      font-size: 0 !important; /* Hides the text visually and collapses its space */
    }
    
    .block--cait-menu-account .navbar-nav .nav-item .nav-link img,
    .block--cait-menu-account .navbar-nav .nav-item .nav-link svg {
      font-size: initial; 
    }
  }
  .navbar {
    .dropdown-menu.show {
      text-align: right !important;
    }
  }
  .navbar .nav-link:not(.contextual-links) {
    font-size: 20px;
  }
  .block--cait-menu-account .navbar-nav {
    padding-right: 12rem;
  }

  .block--cait-languageswitcher .contextual .trigger {
    right: auto;
    left: -25px !important;
    float: right !important;
  }
  body:not(.user-logged-in) {
    .block--cait-menu-account .navbar-nav {
      padding-right: 21rem !important;
    }

  }

  .block--cait-searchform {
    margin-left: 5px !important;
  }
  .nav-item {
    margin-right: 0px;
  }
  .block--cait-menu-account
    .navbar-nav
    .nav-item:nth-child(2)
    .nav-link::before {
    margin-top: 0px;
  }
  @media (max-width: 1025px) {
    .navbar .nav-link:not(.contextual-links) {
      font-size: 16px !important;
    }
    .navbar-expand-lg .navbar-nav {
      padding-right: 0 !important;
    }
    .block--cait-menu-account .navbar-nav {
      padding-right: 3rem !important;
    }

    body:not(.user-logged-in) {
      .block--cait-menu-account .navbar-nav {
        padding-right: 14rem !important;
      }
    }
  }
  @media (max-width: 830px) {
    body:not(.user-logged-in) {
      .block--cait-menu-account .navbar-nav {
        padding-right: 0rem !important;
      }
    }
  }

  @media (max-width: 768px) {
    .header-container .navbar .container {
      left: 0 !important;
    }

    .block--cait-menu-account .navbar-nav {
      padding-right: 0rem !important;
    }
  }
}
.block--cait-main-menu {
  .dropdown-item.active,
  .dropdown-item:active {
    color: unset;
    background-color: unset;
  }
}
.block--cait-main-menu .dropdown:hover{
  background-color: transparent;
    color: #42bb96 !important;
    border-radius: 0px;
    border-bottom: 3px solid #42bb96;
}
/* General Container */
.header-container {
  position: relative;
  width: 100%;
  height: 350px;
  /* Adjust height to match the visual proportions */
}
.block--cait-menu-account {
  .nav-item {
    padding-bottom: 0px !important;
    margin-right: 5px;
  }
}
/* Background Color Layer */
.color-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Behind all other elements */
}

.color-image img {
  width: 100%;
  height: 100%;
  /* Ensure full coverage */
  object-fit: cover;
}

/* Background Buildings Layer */
.buildings-image {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* Above the color layer */
  opacity: 0.5;
}

.buildings-image img {
  width: 100%;
  height: 100%;
  /* Ensure full coverage */
  object-fit: contain;
  /* Keep the buildings proportion intact */
}

/* Logo and Agency Title */
.logo-container {
  position: absolute;
  /* Place it over the background */
  top: 15%;
  /* Adjust based on image */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  /* Above the background layers but below the navbar */
  text-align: center;
}

.logo-container .logo {
  max-width: 320px;
  /* Adjust logo size */
  margin: 0 auto;
}

.logo-container .agency-name {
  color: #fff;
  /* White text for contrast */
  font-family: "Arial", sans-serif;
  /* Update with desired font-family */
  margin-top: 10px;
  /* Add spacing between logo and text */
}

.logo-container .agency-name h1 {
  font-size: 1.8rem;
  /* Adjust title size */
  font-weight: bold;
  margin: 0;
}

.logo-container .agency-name p {
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Navbar Styling */
.navbar {
  position: absolute !important;
  height: 350px;
  width: 100%;
  z-index: 4;
  /* Above all other layers */
  background: transparent;
  /* Transparent navbar */
  padding: 0.5rem 1rem;
  /* Adjust padding */
}

.cait-list-items .form-search::placeholder {
  color: transparent !important;
  /* Hides the placeholder by making it transparent */
}

.form-search {
  width: 184px;
  height: 40px;
  display: flex;
  border: 2px solid #fff !important;
  border-radius: 10px !important;
  background: transparent;
  background-image: url("../images/search-alt.svg");
  display: block;
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.header-container .navbar .container {
  position: relative;
  bottom: -43%;
}

@media (min-width: 1200px) {
  html[dir="rtl"] {
    .header-container .navbar .container {
      max-width: 1260px !important;
    }

    .dropdown-menu .show {
      text-align: right !important;
    }
  }
}
@media (max-width: 1025px) {
  .navbar .nav-link:not(.contextual-links) {
    font-size: 16px !important;
  }
}
.navbar .nav-link:not(.contextual-links) {
  color: var(--Nautral-300, rgba(220, 223, 226, 1));
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: var(--TitleLargeTracking);
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.nav-item {
  padding-bottom: 0px !important;
  margin-right: 5px;
  .language-link {
    color: #14537e;
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: var(--TitleLargeTracking);
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    visibility: hidden;
  }
}

.nav-item a{
  border-bottom: 3px solid transparent;

}

.nav-item a:hover {
  background-color: transparent;
  color: #42bb96 !important;
  border-radius: 0px;
  border-bottom: 3px solid #42bb96;
  text-decoration: none;
}
.dropdown-menu .dropdown-item a:hover {
  text-decoration: none;
  border-bottom: 0;
}

.dropdown-menu .dropdown-item {
  border-bottom: 3px solid transparent; /* Add transparent border */
  padding-bottom: 0; /* Ensure padding remains constant */
}


.dropdown-menu .dropdown-item:hover {
  background-color: transparent;
  color: #42bb96 !important;
  border-bottom: 3px solid transparent;
  padding-bottom: 0;
}

/* .nav-item a.active:hover {
  padding-bottom: 0 !important;
} */

.active {
  border-bottom: 3px solid #42bb96;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #f8f9fa;
  text-decoration: none;
  /* border-bottom: none; */
}

.navbar-text {
  padding-top: 0 !important;
}

.nav-item.active .nav-link {
  border-bottom: none !important;
}

.cait-list-items #search-block-form {
  padding-top: 15px !important;
}

/* Hide the original text */
/* .links.nav .language-link {
  font-size: 0; 

  position: relative; 
}

.links.nav .language-link[data-drupal-link-query*='"language":"en"']::after {
  content: "EN";
  font-size: 20px;
  position: absolute;
}

.links.nav .language-link[data-drupal-link-query*='"language":"ar"']::after {
  content: "AR";
  font-size: 20px; 
  position: absolute;
} */

.links.nav .language-link.is-active {
  display: none !important; /* Hide the active link */
}

.block--cait-languageswitcher .links.nav {
  padding-left: 15px !important;
}


html[dir="rtl"] {
  .me-auto {
    margin-right: 0px !important;
  }
  .nav-item {
    margin-left: 5px;
  }

  .block--cait-searchform {
    margin-left: 5px !important;
  }

  .block--cait-languageswitcher .links.nav {
    padding-right: 15px !important;
  }

  .block--cait-menu-account .navbar-nav .nav-item:nth-child(2) {
    margin-top: 4px !important;
  }

  .cait-list-items {
    padding-right: 25px;
  }
}

@media (min-width: 991px) {
  /* Ensure the nav-links are inside cait-list-items */
  .block--cait-menu-account .navbar-nav .nav-item .nav-link {
    display: flex;
    align-items: center;
    font-size: 0 !important; /* Hides the text visually and collapses its space */
  }
  
  .block--cait-menu-account .navbar-nav .nav-item .nav-link img,
  .block--cait-menu-account .navbar-nav .nav-item .nav-link svg {
    font-size: initial; 
  }
  

  .block--cait-menu-account .navbar-nav .nav-item .nav-link:hover {
    border-bottom: 3px solid transparent !important;
  }

  /* For My Account - Add your SVG as background */
  .block--cait-menu-account
    .navbar-nav
    .nav-item:nth-child(1)
    .nav-link::before {
    content: "";
    display: inline-block;
    width: 40px;
    /* Width of your SVG */
    height: 40px;
    /* Height of your SVG */
    background-image: url("../images/account.svg");
    background-repeat: no-repeat;
  }

  /* Change the pseudo-element's background image when the parent is hovered */
  .block--cait-menu-account
    .navbar-nav
    .nav-item:nth-child(1)
    .nav-link:hover::before {
    background-image: url("../images/account-hover.svg");
    /* Hover SVG */
    border-bottom: transparent !important;
  }

  /* For Log out - Add your SVG as background */
  .block--cait-menu-account
    .navbar-nav
    .nav-item:nth-child(2)
    .nav-link::before {
    content: "";
    display: inline-block;
    margin-top: 4px;
    width: 40px;
    /* Width of your SVG */
    height: 40px;
    /* Height of your SVG */
    background-image: url("../images/logout.svg");
    background-repeat: no-repeat;
  }

  /* Change the pseudo-element's background image when the parent is hovered */
  .block--cait-menu-account
    .navbar-nav
    .nav-item:nth-child(2)
    .nav-link:hover::before {
    background-image: url("../images/logout-hover.svg");
    /* Hover SVG */
    border-bottom: transparent !important;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .logo-container {
    top: 25%;
  }

  .header-container {
    height: 350px;
    /* Reduce header height on smaller screens */
  }

  .logo-container .logo {
    max-width: 80%;
  }

  .logo-container .agency-name h1 {
    font-size: 1.2rem;
  }

  .navbar {
    bottom: 2%;
    /* Adjust navbar position */
  }

  .navbar .nav-link {
    font-size: 0.9rem;
  }

  .header-container .navbar .container {
    top: 140px !important;
    left: -25px;
  }
  .navbar .nav-link:not(.contextual-links) {
    font-size: 16px !important;
  }
  .navbar .form-search {
    padding-right: 40px;
    width: 100%;
    border: 1px solid #14537e !important;
  }

  .form-search {
    background-image: url("../images/search-alt-black.svg");
  }
}

@media (max-width: 991px) {
  .header-container .navbar .container {
    top: 0;
  }

  .navbar-toggler {
    color: white;
    border: none;
  }

  .navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none !important;
  }

  /* Base navbar styling */
  .cait-header-container {
    background: transparent !important;
    border: none;
    transition: none;
  }

  /* When navbar is expanded (open) */
  .cait-header-container .navbar-collapse.show {
    background-color: white !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); /* Adds shadow on all sides */
  }

  /* Change link and button color when expanded */
  .cait-header-container .navbar-collapse.show .nav-link,
  .cait-header-container .navbar-collapse.show .navbar-toggler-icon svg path {
    color: #14406f !important;
    stroke: #14406f !important;
  }

  /* Styling when navbar is collapsed (closed) */
  .cait-header-container .navbar-toggler {
    border: none;
  }

  .cait-header-container .navbar-toggler-icon svg path {
    stroke: white !important;
  }

  /* Ensure the link and button colors remain white when collapsed */
  .cait-header-container .nav-link {
    color: white !important;
  }

  .cait-header-container .nav-link:hover {
    color: #ddd !important;
  }

  .cait-list-items {
    padding: 2%;
  }
}

/* I pad Air */
@media only screen and (max-width: 820px) and (min-height: 1180px) {
  .header-container .navbar .container {
    top: 140px !important;
    left: -25px;
  }
  .navbar .form-search {
    padding-right: 40px;
    width: 100%;
    border: 1px solid #14537e !important;
  }
  .navbar .nav-link:not(.contextual-links) {
    font-size: 16px !important;
  }
  .nav-item {
    .language-link {
      color: #14537e !important;
    }  
  }
}
@media only screen and (max-width: 1024px) and (min-height: 1366px) {
  .navbar .nav-link:not(.contextual-links) {
    font-size: 16px !important;
  }
}
.block--cait-searchform {
  margin-left: 0 !important;
}

.form-control:not(:placeholder-shown) {
  color: #495057;
  background-color: #fff;
  /* border-color: #59b0f6; */
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}