﻿    
        body {
  overflow-x: hidden;
}
        
        .navbar {
            background-color: #004d99; 
            padding: 10px 0;
        }

       .navbar .navbar-brand img {
    max-height: 50px;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: bold;
    padding: 10px 15px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #f8f9fa !important;
    background-color: #0056b3;
}

.navbar-toggler-icon {
    background-color: #fff;
}

.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
    }

    .navbar-collapse {
        background-color: #004d99;
        padding: 10px;
    }
}

.navbar-nav .nav-item.dropdown {
    position: relative;
}

.navbar-nav .nav-item .dropdown-menu {
    background-color: #0056b3;
    border: none;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.navbar-nav .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.navbar-nav .dropdown-item {
    color: #fff;
    padding: 10px 20px;
    text-transform: capitalize;
    transition: background-color 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: #003366;
    color: #f8f9fa;
}

@media (max-width: 768px) {
    .navbar-nav .nav-item .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }
}

#image-slider {
    position: relative;
    width: 100%;
    height: 300px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

@media (max-width: 768px) {
    #image-slider {
        height: 250px;
    }

    .carousel-caption h5 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    #image-slider {
        height: 200px;
    }

    .carousel-caption h5 {
        font-size: 1rem;
    }
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: #004d99;
    border-radius: 50%;
}

.carousel-caption h5 {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.navbar .dropdown-menu {
    display: grid;
    grid-auto-rows: min-content;
    grid-template-rows: repeat(8, auto);
    grid-auto-flow: column;
    column-gap: 25px;
    padding: 10px 20px;
    min-width: 500px;
}

.navbar .dropdown-menu .dropdown-item {
    text-transform: uppercase;
    white-space: nowrap;
    font-size: 15px;
    padding: 6px 12px;
}

header .dropdown-menu {
    z-index: 1050 !important;
    position: absolute;
    width: 120px;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    white-space: nowrap;
}

.navbar {
    background-color: #003366;
}

.dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    max-width: 90vw;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    overflow-x: auto;
}

.dropdown-menu.show:has(.dropdown-item:nth-child(9)) {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (max-width: 991.98px) {
    .dropdown-menu {
        left: 0;
        transform: none;
        grid-template-columns: 1fr !important;
    }
}

.dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    min-width: 250px;
    max-width: 90vw;
    padding: 1rem;
}

.dropdown-menu.show:has(.dropdown-item:nth-child(9)),
.dropdown-menu.multi-column {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.dropdown-right .dropdown-menu {
    left: 0;
    transform: none;
}

.dropdown-left .dropdown-menu {
    right: 0;
    left: auto;
    transform: none;
}

@media (max-width: 991.98px) {
    .dropdown-menu {
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        grid-template-columns: 1fr !important;
    }
}

.custom-bg-dark-blue {
    background-color: #001f3f !important;
}

.custom-bg-dark-blue .dropdown-menu {
    background-color: #001f3f !important;
    border: none;
}

.custom-bg-dark-blue .dropdown-menu .dropdown-item:hover {
    background-color: #002d60 !important;
    color: white !important;
}

.navbar .dropdown-menu {
    width: auto !important;
    min-width: unset !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.navbar .dropdown-menu.show {
    left: auto !important;
    right: auto !important;
}

.dropdown-menu {
    width: auto;
    min-width: 1200px;
    max-width: 1500px;
    white-space: normal;
    padding: 0;
    overflow: visible;
    display: block;
}

.dropdown-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}

.dropdown-column {
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
    min-width: 300px;
}

.dropdown-header {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1rem;
}

.dropdown-item {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    margin-bottom: 5px;
}

@media (max-width: 1500px) {
    .dropdown-menu {
        width: auto;
    }

    .dropdown-columns {
        display: flex;
        flex-wrap: wrap;
    }

    .dropdown-column {
        width: 33%;
    }
}

@media (max-width: 768px) {
    .dropdown-columns {
        flex-direction: column;
    }

    .dropdown-column {
        width: 100%;
    }
}

.dropdown-header {
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: underline;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.navbar .dropdown-menu .dropdown-item {
    font-size: 16px;
}

@media (max-width: 1200px) {
    .navbar .dropdown-menu .dropdown-item {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .navbar .dropdown-menu .dropdown-item {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .navbar .dropdown-menu .dropdown-item {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .navbar .dropdown-menu .dropdown-item {
        font-size: 10px;
    }
}
/* Adjust submenu positioning */
.navbar .dropdown-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px 20px;
    min-width: 2400px; /* Ensure it's wide enough */
    position: absolute;
    left: 28px; /* Increased margin to move the submenu more to the right */
    top: 100%;
    box-sizing: border-box;
}

/* Ensure each column has enough space */
.navbar .dropdown-column {
    padding: 10px;
    min-width: 350px; /* Increased column width to prevent overflow */
}

/* Reduce font size to ensure it fits better */
.dropdown-item {
    font-size: 12px; /* Reduce the font size */
    margin-bottom: 5px;
}

/* Responsiveness */
@media (max-width: 1500px) {
    .navbar .dropdown-menu {
        min-width: 2200px; /* Adjusted for medium screens */
    }
}

@media (max-width: 1200px) {
    .navbar .dropdown-menu {
        min-width: 1800px; /* Adjusted for smaller screens */
    }
}

@media (max-width: 992px) {
    .navbar .dropdown-menu {
        min-width: 1500px; /* Adjusted for even smaller screens */
    }
    .navbar .dropdown-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar .dropdown-menu {
        min-width: 1000px; /* Adjusted for small screens */
    }
    .navbar .dropdown-column {
        width: 100%;
    }
}
.custom-wide-dropdown {
  width: 600px; 
  max-height: 90vh;
  overflow-y: auto;
  column-count: 2;
  column-gap: 30px;
  white-space: normal;
  padding: 1rem;
  left: auto !important;
  right: auto !important;

  position: absolute !important;
  transform: translateX(-400px); 
  z-index: 9999;
  background-color: white;
}
@media (max-width: 768px) {
  .custom-wide-dropdown {
    transform: none !important;
    width: 100vw;
    left: 0 !important;
    right: 0 !important;
    column-count: 1;
  }
}


    footer.footer {
        background-color: #001f4d; /* Dark blue */
        color: white;
    }

    footer.footer a {
        color: white;
        text-decoration: none;
    }

    footer.footer a:hover {
        color: #ccccff; /* Light hover color for contrast */
        text-decoration: underline;
    }

    footer.footer address {
        color: white;
    }


  #backToTop {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 999;
    font-size: 24px;
    background-color: #007bff;
    color: white;
    padding: 12px 16px;
    border-radius: 50%;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
  }

  #backToTop:hover {
    background-color: #0056b3;
  }
