/* General adjustments */
body {
    font-family: 'Inter', Arial, sans-serif !important;
    line-height: 1.6em;
    margin: 0;
    padding: 0;
}

body .btn {
    height: 60px;
    width: 180px;
    border-style: none;
    color: white;
    font-size: 1.2rem;
    background-color: #1D73BE;
    margin-top: 50px ;
    margin-bottom: 50px ;
    cursor: pointer;
}

body .btn:hover {
    background-color: #000; /* Background color on hover */
    color: #fff; /* Text color on hover */
}

/* Navbar adjustments */
.navbar {
    height: 90px;
    background-color: #1D73BE;
    justify-content: right;
    align-items: center;

}

.navbar-toggle {
    margin:10px;
}

.navbar .navbar-collapse {
    background-color: #1D73BE; /* Add background color to navbar when expanded */
    width: 100%;
    align-items: center;
    justify-content: center;
}

.navbar .nav-link {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 25px 15px;
}

.navbar .nav-item:hover {
    color: black;
}

.navbar-expand-lg .navbar-nav .nav-link {
    margin: 8px;
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
    background: #1D73BE;
    width: 100%;
    border-width: 1px;
    border-color: black;
    margin: 0px;
}
.navbar .nav-link[href="/contact-us"] {
  color: black;
  border: black;
  border-width: 1px;
  border-style: solid;
  background-color: white;
}

.navbar .nav-link[href="/contact-us"]:hover {
  color: white;
  border: black;
  border-width: 1px;
  border-style: solid;
  background-color: black;
}


/* CTA Section adjustments */
.container-cta .row {
    background-color: lightgray;
    padding: 20px 0px;
}
.cta-header {
    margin-left: 70px;
}

.cta-header h2 {
    font-size: 3rem;
    font-weight: bold;
}

.cta-header p {
    font-size: 1.2rem;
}

/* Trusted By section adjustments */
.trusted-by {
    background-color: #ffffff; /* Light background color for section */
    padding: 40px 0; /* Add padding instead of fixed height */

}

.container-trust {
    padding: 0 70px; /* Combined left and right margin into padding */
    margin: 0 auto; /* Center content */
}

.container-trust h2 {
    font-weight: bold;
    font-size: 3rem;
    margin-bottom: 30px; /* Add bottom margin */
}

.trusted-by .card {
    border: 1px solid grey; /* Grey border */
    width: 100%; /* Full width for better responsiveness */
    height: auto; /* Allow height to adjust based on content */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure images are contained within the card */
    padding: 10px; /* Add padding */
}

.trusted-by .card img {
    max-width: 100%; /* Ensure image does not exceed card width */
    max-height: 100%; /* Ensure image does not exceed card height */
    object-fit: contain; /* Maintain aspect ratio and fit within card */
}

/* Footer adjustments */
.footer {
    color: white;
    background-color: #1D73BE;
    padding: 40px 0; /* Replace fixed height with padding */
}

.newsletter {
    margin-left: 5%;
    margin-right: 5%;
}

.footer-links {
    margin-left: 7%;
    margin-right: 7%;
}

.newsletter h3 {
    text-decoration-line: underline;
    font-weight: bold;
    margin-bottom: 20px;
}

.form-control {
    border-radius: 0 !important; /* No border radius */
    border: 1px solid black !important; /* Solid black border */
}

.footer .btn {
    width: 142px;
    height: 40px;
    font-size: 16px;
    margin-top: 5%; 
    background-color: white;
    color: black;
    border-radius: 0; /* No border radius */
    border: 1px solid black; /* Solid black border */
    text-align: center;
}

.footer .btn:hover {
    color: white;
    background-color: black;
}

.list-unstyled a {
    color: white; /* Set link text color to white */
    text-decoration: none; /* Remove underline from links */
}

.list-unstyled a:hover {
    color: black; /* Set link text color to white */
    text-decoration: none; /* Remove underline from links */
}

.row h4 {
    font-weight: bold;
    text-decoration-line: underline;
    margin-bottom: 20px;
}

.row .list-unstyled {
    line-height: 200%;
}

@media (max-width: 768px) {
    .cta-header h2, .cta-header p, .container-trust h2  {
        text-align: center;
    }
    .trusted-by .row {
        flex-direction: column; /* Stack cards vertically on smaller screens */
        align-items: center; /* Center the items */
    }

    .cta-header {
        margin-left: 20px; /* Reduce left margin for smaller screens */
    }

    .container-footer .col-md-8, .newsletter {
        margin-left: 5%;
        margin-right: 5%;
    }
}

.container-solutions h2 {
    font-size: 3rem;
    font-weight: bold;
}

/* Card styling */
.container-solutions .card {
    border: none;
}

.container-solutions h2 {
    font-weight: bold;
    font-size: 3rem;
}


.container-solutions .image-container {
    width: 100%;
    max-height: 200px; /* Set the fixed height for cropping */
    overflow: hidden; /* Hide overflow to crop the image */
    display: flex;
    justify-content: center;
    align-items: center;
}

.container-solutions .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop the image to fit the container */
    border-radius: 10px;
}


/* Overlay styling */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5); /* Slightly dark background */
    transition: background-color 0.3s ease;
}

/* Overlay text styling */
.overlay-text {
    color: #fff;
    font-weight: 750;
    font-size: 1.5rem;
    text-align: center;
}

/* Hover effects */
.card:hover .card-overlay {
    background-color: transparent; /* Make the background transparent */
    cursor: pointer;
}

.card:hover .card-img {
    filter: grayscale(0%); /* Remove greyed-out effect */
}

.card:hover .overlay-text {
    display: none; /* Hide text on hover */
}

.acym_module_form input {
  border-color: black;
  border-width: 1px;
  margin-bottom: 5px;
  width: 300px;
  height: 30px
}

@media (max-width: 768px) {
  body .btn {
    width: 200px;
    height: 65px;
  }
    .image-container {
    padding: 0 25px;
  }
  .card-overlay {
    margin: 0 25px;
  }
  .newsletter: {
    margin-botton: 2%;
  }
}

/* --- Fix for 3rd Level Menu Display --- */
/* --- CSS for Desktop Screens (992px and wider) --- */
@media (min-width: 992px) {
  /* Keep your original hover effect for desktops */
  .dropdown-menu > li:hover > .dropdown-menu {
    display: block;
  }

  /* Position the 3rd level menu to the side */
  .dropdown-menu .dropdown-menu {
    left: 100%;
    /* Adjust top position to align with the parent menu item */
    top: 0;
  }

  /* Prevent text from wrapping in dropdown links */
  .navbar-nav .dropdown-menu a {
    white-space: nowrap;
  }

  /* Ensure dropdown width fits its content */
  .navbar-nav > li > .dropdown-menu {
    width: max-content !important;
  }
}

/* --- CSS for Mobile & Tablet Screens (up to 991px) --- */
@media (max-width: 991px) {
  /* This class is toggled by JS to show the submenu */
  .navbar-nav .dropdown-menu.open {
    display: block;
    position: static; 
    width: 100%;
    border: none;
    box-shadow: none;
  }

  /* Initially hide the 2nd level+ submenus on mobile */
  li > .dropdown-menu {
    display: none;
  }

  /* Use '.dropdown' to add the plus/minus indicator */
  .navbar-nav .dropdown > a::after {
    content: '▼';
    float: right;
    margin-left: 10px;
    font-weight: bold;
    
    /* --- Add these lines to hide the arrow --- */
    border: none !important;
    width: auto !important;
    height: auto !important;
    vertical-align: baseline !important;
    margin-top: 0 !important;
    /* ----------------------------------------- */
  }

  /* Change the indicator when the submenu is open */
  .navbar-nav .dropdown.open > a::after {
    content: '▲';
  }
}