.navbar-brand img {
    height: 60px;
}

/* General Navbar Styling */
.navbar {
    padding: 10px 15px;
    width: 100% !important; /* Hakikisha navbar ina full width */
    position: relative; /* Epuka kuathirika na flex ya container */
    z-index: 1000; /* Iwe juu ya content nyingine */
}

/* Logos Alignment */
.logo-ocgs {
    max-width: 120px; /* Adjust size for better visibility */
    height: auto;
    object-fit: contain;
    margin: 0 10px; /* Add small margin for alignment */
    padding: 5px 0; /* Reduce space above and below */
}


.logo-smz {
    width: 160px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Titles */
.title-smz {
    font-size: 26px;
    margin-bottom: 0;
}

.title-ocgs {
    font-size: 35px;
    margin-bottom: 5px;
}

/* Search Bar */
.search-container {
    width: 100%;
    max-width: 350px;
    margin: auto;
    margin-top: 5px; /* Small spacing */
}

.search-bar {
    width: 100%;
    border-radius: 20px;
    padding-right: 40px;
}

.search-icon {
    width: 18px;
    height: 18px;
}


/* Search Popup (Hidden by Default) */
.search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

/* Search Box Inside Popup */
.search-popup-content {
    width: 80%;
    max-width: 600px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

/* Input Field Inside Popup */
.search-popup-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Close Button */
.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: black;
}

/* Show Popup Effect */
.search-popup.active {
    opacity: 1;
    visibility: visible;
}

.search-popup.active .search-popup-content {
    transform: scale(1);
}

/* Mobile Friendly Design */
@media (max-width: 768px) {
.d-flex.flex-column.flex-lg-row {
    flex-direction: row !important;
    text-align: center;
}

.logo-smz, .logo-ocgs {
    max-width: 100px; /* Adjust logo size for mobile */
}

.title-smz {
    font-size: 14px;
}

.title-ocgs {
    font-size: 16px;
}

.search-container {
    width: 90%;
    max-width: 300px;
        margin-top: 5px;
        display: none;
    }

    .search-bar {
        width: 100%;
        padding: 10px 15px;
    }
}

/* Ensure navbar links are properly styled */
.nav-link {
    font-size: 20px;
    color: white;
    transition: background-color 0.3s, color 0.3s;
}

/* Active state for the current page */
.nav-link.active {
    font-weight: bold;
    background-color: #D6E3F0;
    color: black !important;
}

/* Auto Width Dropdown */
.nav-item.dropdown {
    position: relative; /* Inafanya dropdown-menu ifuate position yake */
}

.full-width-dropdown {
    min-width: fit-content; /* Inajifit kulingana na content */
    max-width: none; /* Hakuna kikomo cha upana */
    width: fit-content; /* Inajifit kulingana na content */
    left: 0; /* Anza moja kwa moja chini ya Publication */
    top: 100%;
    position: absolute;
    z-index: 1000;
    border: none;
    background-color: #738FB1;
    padding: 20px 0;
    display: none; /* Hide by default */
    white-space: nowrap; /* Zuia kujikunja */
}

/* Hakikisha container inajifit kulingana na content */
.full-width-dropdown .container {
    width: auto !important;
    max-width: none !important;
    display: flex; /* Weka categories kwenye mstari mmoja */
    flex-wrap: nowrap; /* Zuia columns kujikunja */
    gap: 20px; /* Weka nafasi kati ya categories */
}

/* Hakikisha columns hazijikunji */
.full-width-dropdown .row {
    flex-wrap: nowrap !important;
    display: flex;
}

/* Columns ziwe na upana wa dynamic */
.full-width-dropdown .col-md-3 {
    flex: 1; /* Panua columns zote */
    min-width: 200px; /* Ruhusu upana wa column kubadilika */
}


/* Ensure dropdown items are aligned properly */
.full-width-dropdown .container {
    max-width: 95%; /* Adjust container width */
    margin: auto;
}

.dropdown-item {
    color: black;
}

/* Style the submenu items */
.full-width-dropdown .dropdown-item {
    display: block;
    padding: 8px 15px;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 8px;
}

/* Hover effect for dropdown items */
.full-width-dropdown .dropdown-item:hover {
    background-color: #D6E3F0;
    /* color: white !important; */
    font-weight: bold;
    border-radius: 8px;
}


/* Show dropdown on hover for desktop */
.navbar-nav .dropdown:hover .full-width-dropdown,
.navbar-nav .dropdown:focus-within .full-width-dropdown {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-link {
        font-size: 16px;
    }

    .full-width-dropdown .container {
        max-width: 100%;
    }
}

/* Ensure language switcher is aligned properly */
.navbar-nav .nav-item.ms-auto {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item.ms-auto a {
    padding: 5px 10px;
    font-size: 18px;
    font-weight: bold;
}

.navbar-nav .nav-item.ms-auto img {
    width: 20px;
    height: 20px;
}

/* Search Modal (Hidden by Default) */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

/* Modal Content */
.search-modal-content {
    width: 80%;
    max-width: 600px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Results start from left */
    text-align: left;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}

/* Show Modal */
.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal.active .search-modal-content {
    transform: scale(1);
}

/* Search Results List */
#searchResults {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    width: 100%;
}

#searchResults li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    width: 100%;
}

/* Align language switcher to the right end */
.navbar-nav.ms-auto {
    display: flex;
    justify-content: flex-end; /* Push items to the right */
    align-items: center;
}

/* Ensure items stay in a single line with proper spacing */
.navbar-nav .nav-item.d-flex {
    gap: 10px; /* Adjust spacing between SW, icon, and ENG */
}

/* Style language switcher */
.navbar-nav .nav-item.d-flex a {
    padding: 5px 10px;
    font-size: 18px;
    font-weight: bold;
}

/* Adjust icon size */
.navbar-nav .nav-item.d-flex img {
    width: 20px;
    height: 20px;
}

.gt_switcher:hover {
    background: #474747;
}

.gtranslate_wrapper {
    color: white !important; /* Text color to white */
}

.gtranslate_wrapper a,
.gtranslate_wrapper span {
    color: white !important; /* Make all text inside white */
}

.gtranslate_wrapper .gt_switcher * {
    background-color: transparent !important; /* Remove background */
    border: none !important; /* Remove border if any */
}

.gtranslate_wrapper .gt_selected {
    color: white !important; /* Selected language color */
}

.gtranslate_wrapper .gt_selector .gt_option {
    color: black !important; /* Options inside dropdown remain readable */
    background-color: white !important; /* Background for dropdown options */
}

/* Fix issues on smaller screens */
@media (max-width: 991px) {
    .full-width-dropdown {
        width: 100% !important;
        position: static;
    }
}

.container-fluid{
    padding: 0;
}
/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1050; /* Ensures it stays above other elements */
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Sticky Navbar */
.sticky-navbar {
    position: sticky;
    top: 160px; /* Adjust based on the header height */
    width: 100%;
    z-index: 1040;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}