/* head_foot.css */
/* ==========================================================================
   Base Header and Footer
   ========================================================================== */
/* head_foot.css */

.main-header {
    background: var(--header-footer-bg);
    color: var(--text-primary);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--yellow);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1100;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    overflow: visible !important;
}

.footer {
    background: var(--header-footer-bg);
    color: var(--text-primary);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--yellow);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    margin-top: auto;
    flex-shrink: 0;
    text-align: center;
    display: block;
    position: relative;
}

/* ==========================================================================
   Base Header Content
   ========================================================================== */
.header-left,
.header-right {
    flex: 0 1 auto !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-right {
    display: flex;
    align-items: center;
}

.search-container.flex-grow-1 {
    flex-grow: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

.search-container .input-group {
    width: 100%;
    max-width: 500px;
}

.search-container .input-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 50px 0 0 50px;
    border-right: none;
}

.search-container .input-group .search-btn {
    border-radius: 0 50px 50px 0;
    border: 2px solid rgba(var(--yellow-rgb), 0.2);
    border-left: none;
}

/* ==========================================================================
   Mobile & Tablet Header (showing dropdown menu)
   ========================================================================== */
@media (max-width: 1399px) {
    .main-header {
        padding: 5px 8px !important;
        flex-direction: row;
        /* Ensure horizontal layout for mobile */
        justify-content: space-between;
    }

    .main-header .header-icon {
        display: none;
        /* Hide the icon to save space */
    }

    /* Adjust search bar for mobile */
    .main-header .search-container {
        width: 100%;
        margin: 5px 0 0 0 !important;
        padding: 0 8px !important;
    }

    .main-header .search-container .input-group {
        max-width: 100%;
    }
}

/* ==========================================================================
   Google Translate Widget
   ========================================================================== */
[id^="k08fs02d5mgk"],
#google_translate_element {
    z-index: 1000;
    position: fixed;
    bottom: 20px;
    right: 20px;
    overflow: hidden;
}