/* ============================================
   ALL CSS RULES USED IN:
   - pages/accessibilityStatement.js
   - pages/privacyPolicy.js
   - pages/termsOfUse.js
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
    /* Primary Colors - Blue Palette */
    --color-primary: #0063AD;
    --color-accent-light: #4a9bd8;
    --color-accent-dark: #004a7a;
  
    /* Base Backgrounds - Light Blue Palette */
    --color-background: #f6f8fd; /* Light blue background */
    --color-bg-light: #f6f8fd; /* For ending section compatibility */
    --color-bg-lighter: #fafbfe; /* Lighter background */
    --color-bg-white: #ffffff; /* White background */
    --color-surface: #e8f4fd; /* Lighter blue surface cards */
  
    /* Accent Shades */
    --color-accent: #0063AD; /* Primary blue accent */
  
    /* Core / Text */
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-text-invert: #ffffff;
    --color-text-white: #ffffff;
    --color-text-black: #333333;
  
    /* Border */
    --color-border: #e8f4fd;
  }
  
  /* ========== GLOBAL RESETS ========== */
  * {
    margin: 0;
    padding: 0;
  }
  
  html {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
  }
  
  body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* prevents horizontal scrollbar */
    overflow-y: auto; /* allow vertical scrolling */
    font-family: "Open Sans", sans-serif;
    color: var(--color-text-main);
  }
  /* ========== SECTION ELEMENT ========== */
  section {
    scroll-margin-top: 65px;
  }
  
  /* ========== MAIN ELEMENT ========== */
  main {
  }
  
  /* ========== PAGE WRAPPER ========== */
  .page-wrapper {
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
  }
  
  /* ========== MAIN WRAPPER ========== */
  .main-wrapper {
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
  }
  
  /* ========== CONTACT SECTION OVERRIDE ========== */
  /* Ensure contact section is visible on legal pages - OVERRIDE ALL POSSIBLE HIDING */
  section.contact-us,
  body > section.contact-us,
  body .contact-us,
  .page-wrapper .contact-us,
  .main-wrapper .contact-us,
  main .contact-us {
    position: relative !important;
    z-index: 1000 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100vh !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 100px 20px 60px !important;
    /* Fix background image path for legal pages (2 levels deep) */
    background-image: url('../../assets/images/site/contact-background.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure gradient overlay is behind the content - same as index and projects */
  body .contact-us::before,
  .page-wrapper .contact-us::before,
  .main-wrapper .contact-us::before,
  main .contact-us::before,
  section.contact-us::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background: linear-gradient(
      to left,
      rgba(240, 240, 240, 0.95) 0%,
      rgba(240, 240, 240, 0.85) 20%,
      rgba(240, 240, 240, 0.6) 40%,
      rgba(240, 240, 240, 0.3) 50%,
      transparent 60%
    ) !important;
  }
  
  body .contact-wrapper,
  .page-wrapper .contact-wrapper,
  .main-wrapper .contact-wrapper,
  main .contact-wrapper {
    position: relative !important;
    z-index: 1001 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
  }
  
  body .contact-form-container,
  body .contact-map-container,
  .page-wrapper .contact-form-container,
  .page-wrapper .contact-map-container,
  .main-wrapper .contact-form-container,
  .main-wrapper .contact-map-container,
  main .contact-form-container,
  main .contact-map-container {
    position: relative !important;
    z-index: 1002 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
  }
  
  /* Ensure form and map containers have proper backgrounds */
  body .contact-form-container,
  .page-wrapper .contact-form-container,
  .main-wrapper .contact-form-container,
  main .contact-form-container {
    background-color: rgba(255, 255, 255, 0.95) !important;
  }
  
  body .contact-map-container,
  .page-wrapper .contact-map-container,
  .main-wrapper .contact-map-container,
  main .contact-map-container {
    background-color: rgba(255, 255, 255, 0.95) !important;
  }
  
  /* ========== SKIP TO CONTENT (Accessibility) ========== */
  .skip-to-content {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
    background: #fff;
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
  }
  
  .skip-to-content:focus {
    left: 8px;
    top: 8px;
    width: auto;
    height: auto;
    outline: 2px solid #000;
  }
  
  /* ========== VISUALLY HIDDEN (Accessibility) ========== */
  .visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
  }
  
  /* ========== FOCUS STATES (Accessibility) ========== */
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
  }
  
  /* ========== RTL/LTR DIRECTION SUPPORT ========== */
  .rtl .legal-banner,
  .rtl .legal-description {
    direction: rtl;
    text-align: right;
  }
  
  .ltr .legal-banner,
  .ltr .legal-description {
    direction: ltr;
    text-align: left;
  }
  
  .rtl {
    /* Used as a class modifier */
  }
  
  .ltr {
    /* Used as a class modifier */
  }
  
  /* ========== LEGAL BANNER ========== */
  .legal-banner {
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    font-weight: 100;
    background-color: #ffffff;
  }
  
  .legal-banner h2 {
    font-size: 48px;
    margin: 0;
    text-align: center;
  }
  
  /* ========== LEGAL DESCRIPTION ========== */
  .legal-description {
    margin: 0 auto;
    padding: 60px 30px;
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    line-height: 2;
    color: black;
    background-color: white;
  }
  
  .legal-description h3 {
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    padding-inline-start: 10px;
    border-inline-start: 4px solid var(--color-accent);
  }
  
  .legal-description p {
    margin-top: 1rem;
    color: black;
  }
  
  /* ========== PRIVACY AND TERMS (Legacy classes, may be used) ========== */
  .privacyAndTerms {
    background-color: #d0d0d02e;
  }
  
  .privacyAndTermsText {
    padding: 5%;
    width: 80%;
  }
  
  .privacyAndTermsText h1 {
    justify-content: space-around;
    padding: 0;
    font-size: 32px;
    font-family: "Open Sans", sans-serif;
    font-weight: 500 !important;
    font-style: normal !important;
    letter-spacing: 2px;
  }
  
  .privacyAndTermsText h2 {
    justify-content: space-around;
    padding: 0;
    font-size: 22px;
    font-family: "Open Sans", sans-serif;
    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: 1px;
  }
  
  .privacyAndTermsText p {
    justify-content: space-around;
    padding: 0;
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    font-weight: 300 !important;
    font-style: normal !important;
    letter-spacing: 1px;
    line-height: 140%;
    padding-top: 0.5%;
    padding-left: 0.5%;
  }
  
  /* ========== WEB LINK ========== */
  .web-link {
    color: #0063AD;
    padding: 0;
  }
  
  .web-link:hover {
    color: #004a7a;
  }
  
  /* ========== NAGISHLI ACCESSIBILITY PLUGIN ========== */
  .nagishli-submenu-state-icon,
  .nagishli-option-icon,
  .nagishli-trigger-icon,
  .nagishli-tabs .nagishli-tabs-slider .nagishli-tabs-indicator,
  .nagishli-overlay-content-close:focus {
    background-color: #0063AD !important;
  }
  
  /* ============================================
     NAVBAR CSS (Used by LegalNavbar component)
     ============================================ */
  
  /* ========== BASE NAVBAR STYLES ========== */
  .navbar {
    background-color: transparent;
    padding: 2px 20px;
    display: flex;
    align-items: center; /* Center items vertically */
    margin: 0 auto; /* Center the border horizontally */
    background-color: var(--color-primary);
    color: var(--color-text-invert);
    overflow-x: visible !important;
  }
  
  .navbar ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    font-size: 16px;
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
    gap: 20px; /* Adds equal spacing between items */
    position: relative; /* Needed for the pseudo-element */
  }
  
  .navbar li {
    display: flex;
    align-items: center; /* Vertically center child elements */
    margin: 0 20px;
    padding: 0;
  }
  
  .navbar.sticky-scroll ul::before {
    opacity: 0; /* Makes the line invisible */
  }
  
  .navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .rtl .navbar-content {
    flex-direction: row-reverse;
  }
  
  /* ========== DESKTOP MENU ========== */
  .desktop-menu {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 1.5rem;
    list-style: none;
  }
  
  .desktop-menu.ltr {
    direction: ltr;
    justify-content: flex-end;
  }
  
  .desktop-menu.rtl {
    direction: rtl;
    justify-content: flex-start;
  }
  
  /* ========== MAIN TITLE (Navigation Links) ========== */
  .main-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-size: 18px;
    font-weight: 300;
    font-family: "Open Sans", sans-serif;
    color: var(--color-text-white);
    text-decoration: none;
    transition: color 0.3s ease, cursor 0.3s ease;
    cursor: pointer;
    letter-spacing: 1.2px;
  }
  
  .main-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-text-invert);
    transition: width 0.3s ease;
  }
  
  .main-title:hover::after {
    width: 100%;
    left: auto;
    right: 0;
  }
  
  .main-title:hover {
    color: var(--color-text-invert);
  }
  
  /* ========== STICKY SCROLL ========== */
  .sticky-scroll {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100; /* Ensure it stays above all content */
    width: 100%;
    backdrop-filter: blur(10px); /* ✨ Blurs the background */
    background-color: rgba(255, 255, 255, 0.6); /* Semi-transparent white */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .sticky-scroll .main-title {
    color: #333;
    font-weight: 300 !important;
    transition: color 0.5s ease;
  }
  
  nav.sticky-scroll {
    padding: 10px 20px; /* Reduced padding for a compact sticky navbar */
    height: auto; /* Allow the height to adjust dynamically */
  }
  
  /* ========== MOBILE NAVBAR ========== */
  .mobile-navbar {
    display: none; /* Hide the mobile navbar */
  }
  
  /* ========== MOBILE MENU ICON ========== */
  .mobile-menu-icon {
    display: none; /* Initially hide the mobile menu icon */
    cursor: pointer;
  }
  
  .menu-icon {
    display: flex;
    align-items: center; /* Vertically center-align items */
  }
  
  .hamburger-icon {
    font-size: 32px;
    cursor: pointer;
    font-family: "Open Sans", sans-serif;
    color: rgb(241, 241, 241);
    padding-bottom: 10px;
  }
  
  .close-icon {
    font-size: 23px;
    cursor: pointer;
    color: var(--color-text-white); /* Customize the color as needed */
    padding-bottom: 0px;
  }
  
  /* ========== MOBILE MENU ========== */
  .mobile-menu {
    font-family: "Open Sans", sans-serif;
    list-style-type: none;
    display: none; /* Initially hide the mobile menu items */
    /* Add styling for the mobile menu items */
  }
  
  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    width: 90%;
    padding-right: 20px;
    gap: 5px;
  }
  
  .mobile-menu ul.ltr {
    align-items: flex-start;
    text-align: left;
    padding-left: 20px;
  }
  
  .mobile-menu ul.rtl {
    align-items: flex-end;
    text-align: right;
    padding-right: 20px;
  }
  
  .mobile-menu ul.rtl a {
    text-align: right;
  }
  
  .mobile-menu ul.ltr a {
    text-align: left;
  }
  
  .mobile-menu li {
    margin-bottom: 25px;
    width: 100%;
    text-align: right;
  }
  
  .mobile-menu a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 20px;
    width: 100%;
    display: block;
  }
  
  .mobile-menu a:hover {
    color: var(--color-accent-light);
  }
  
  .mobile-menu.open {
    overflow: hidden;
    height: 100vh;
  }
  
  .mobile-menu .submenu li {
    margin-bottom: 0;
    margin-top: 8px;
    position: relative;
    left: -9%;
  }
  
  /* ========== NAVBAR MOBILE ITEMS ========== */
  .navbar-mobile-items {
    box-sizing: border-box;
    font-size: 20px;
    color: white;
    font-weight: bold;
    text-align: left;
    text-transform: uppercase;
    font-family: "Open Sans", sans-serif;
    font-weight: 500;
    letter-spacing: 2px;
  }
  
  /* ========== ADDITIONAL LOGOS ========== */
  .additional-logos {
    display: flex;
    flex-direction: column;
    padding-top: 10%;
  }
  
  .mobile-menu .additional-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 20px;
  }
  
  /* ========== LANGUAGE TOGGLE ========== */
  .language-toggle-item {
    flex-grow: 1;
    display: flex;
  }
  
  .language-toggle-item {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: flex-end;
  }
  
  .language-toggle-container {
    margin-inline-start: auto; /* pushes it to the edge */
  }
  
  .language-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .mobile-menu .language-toggle-container {
    margin-inline-start: 0;
    margin-inline-end: 0;
    display: flex;
    justify-content: center;
    padding-top: 20px;
  }
  
  .language-toggle-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-background);
    border-radius: 9999px;
    padding: 4px;
    width: 92px;
    height: 40px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .language-toggle-button:hover {
    background-color: var(--color-accent-light);
  }
  
  .language-toggle-button:hover .label-left,
  .language-toggle-button:hover .label-right {
    color: var(--color-background);
  }
  
  .mobile-menu .language-toggle-button {
    background-color: var(--white);
  }
  
  .toggle-indicator {
    position: absolute;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background-color: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s;
  }
  
  .toggle-indicator.left {
    left: 4px;
  }
  
  .toggle-indicator.right {
    left: 56px;
  }
  
  .globe-icon {
    color: var(--color-accent);
  }
  
  .label-left,
  .label-right {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
  }
  
  .label-left {
    left: 8px;
  }
  
  .label-right {
    right: 8px;
  }
  
  /* ========== VISIBILITY UTILITIES ========== */
  .hidden {
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .visible {
    opacity: 1;
    transition: opacity 0.3s;
  }
  
  /* ========== BODY MENU OPEN ========== */
  body.menu-open {
    overflow: hidden;
  }
  
  /* ============================================
     MEDIA QUERIES
     ============================================ */
  
  /* ========== @media screen and (max-width: 970px) ========== */
  @media screen and (max-width: 970px) {
    .sticky-scroll {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      width: 100%;
    }
  
    .additional-logos {
      display: flex;
      flex-direction: column;
      padding-top: 10%;
    }
  
    .desktop-menu {
      display: none; /* Hide the desktop menu on small screens */
    }
  
    .desktop-menu.ltr {
      display: none; /* Hide the desktop menu on small screens */
    }
  
    .desktop-menu.rtl {
      display: none; /* Hide the desktop menu on small screens */
    }
  
    .mobile-menu .icon-svg {
      width: 30px;
      height: 22px;
    }
  
    .navbar {
      flex-direction: column; /* Stack items vertically */
      align-items: flex-start; /* Align items to the left */
      padding: 0px; /* Increase padding for better spacing */
      border-top: 0px solid rgb(176, 176, 176);
      top: 10px; /* Adjust the value as needed */
      z-index: 100; /* Ensure a high z-index value */
      width: 100%;
    }
  
    .mobile-menu {
      position: fixed;
      top: 65px;
      width: 100%;
      background-color: var(--color-background);
      z-index: 9999;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      overflow: hidden;
      direction: rtl;
      padding-top: 30px;
    }
  
    .mobile-menu ul {
      display: flex;
      flex-direction: column;
      padding: 0;
      margin: 0;
      width: 90%;
      padding-right: 20px;
      gap: 5px;
    }
  
    .mobile-menu-icon {
      position: absolute;
      right: 16px; /* Adjust the right positioning as needed */
      color: rgb(176, 176, 176); /* Set the color to white */
      z-index: 3; /* Ensure the hamburger icon appears above other content */
      display: block;
    }
  
    .mobile-navbar {
      top: 0px;
      position: fixed;
      display: flex;
      align-items: center; /* Vertically center-align items */
      justify-content: space-between; /* Distribute items horizontally */
      background-color: var(--color-primary);
      width: 100%;
      height: 65px;
      z-index: 9998;
      color: var(--color-accent-dark);
    }
  
    .mobile-menu ul.ltr {
      align-items: flex-start;
      text-align: left;
      padding-left: 20px;
    }
  
    /* RTL (Hebrew) */
    .mobile-menu ul.rtl {
      align-items: flex-end;
      text-align: right;
      padding-right: 20px;
    }
  
    .sticky-scroll .mobile-navbar {
      top: -10px; /* Return to normal after scrolling */
    }
  
    .sticky-scroll .mobile-menu.open {
      top: 55px; /* Return to normal after scrolling */
    }
  
    .mobile-menu.open {
      overflow: hidden;
      height: 100vh;
    }
  
    .mobile-menu li {
      margin-bottom: 25px;
      width: 100%;
      text-align: right;
    }
  
    .mobile-menu a {
      color: var(--color-primary);
      text-decoration: none;
      font-size: 20px;
      width: 100%;
      display: block;
    }
  
    .mobile-menu ul.rtl a {
      text-align: right;
    }
  
    .mobile-menu ul.ltr a {
      text-align: left;
    }
  
    .mobile-menu a:hover {
      color: var(--color-accent-light);
    }
  
    body.menu-open {
      overflow: hidden;
    }
  
    .mobile-menu .submenu li {
      margin-bottom: 0;
      margin-top: 8px;
      position: relative;
      left: -9%;
    }
  
    .mobile-menu .additional-logos {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      padding-top: 20px;
    }
  
    .mobile-menu .language-toggle-container {
      margin-inline-start: 0;
      margin-inline-end: 0;
      display: flex;
      justify-content: center;
      padding-top: 20px;
    }
  
    .mobile-menu .language-toggle-button {
      background-color: var(--white);
    }
  
    .language-toggle-button:hover {
      background-color: var(--color-accent-dark);
    }
  
    .legal-banner h2 {
      font-size: 36px;
      margin: 0;
    }
  }
  
  /* ========== @media (max-width: 768px) ========== */
  @media (max-width: 768px) {
    .legal-banner h2 {
      font-size: 32px;
      margin: 0;
    }
  }
  
  /* ========== @media (max-width: 560px) ========== */
  @media (max-width: 560px) {
    .legal-banner h2 {
      font-size: 26px;
      margin-top: 50px;
    }
  }
  
  /* ========== @media (max-width: 400px) ========== */
  @media (max-width: 400px) {
    .hamburger-icon {
      font-size: 28px;
    }
  
    .close-icon {
      font-size: 23px;
    }
  
    .mobile-menu.open {
      height: 95vh;
    }
  
    .mobile-menu .submenu li {
      margin-bottom: 0;
      margin-top: 8px;
      position: relative;
      left: -30px;
    }
  
    .navbar-mobile-items {
      font-size: 18px;
      letter-spacing: 2.5px;
    }
  
    .mobile-menu a {
      font-size: 18px;
    }
  }
  .contact-us::before {
    content: none !important;
  }
  
  /* kill overlay div */
  .contact-us .right-overlay {
    display: none !important;
  }
  /* ============================================
     END OF LEGAL PAGES CSS
     ============================================ */
  
  