/* ============================================================
   GLOBAL SEARCH BAR (CLEAN + UPDATED)
   ============================================================ */

.search-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.search-icon {
    background: #f9d970;
    color: #8b1e2d;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2;
}

.search-input {
    width: 0;
    opacity: 0;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 0;
    position: absolute;
    right: 45px; /* expands to the left */
    transition: 0.3s ease;
}

.search-container:hover .search-input {
    width: 180px;
    opacity: 1;
    padding: 8px 15px;
}



/* ============================================================
   FULL SCREEN / DESKTOP HEADER (min-width: 992px)
   ============================================================ */
@media (min-width: 992px) {


    header.fixed-top {
        background: radial-gradient(circle at top, #8b1e2d, #3a0710 60%) !important;
        height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        width: 100%;
        z-index: 9999;
    }

    .desktop-logo-badge {
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 130px;
        height: 130px;
        background: #2b0d0d;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
        z-index: 1001;
    }

        .desktop-logo-badge img {
            width: 125px;
        }

    .desktop-nav-wrapper {
        width: 100%;
        max-width: 1400px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 40px;
        margin-top: 15px;
    }

    .desktop-nav-left, .desktop-nav-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .desktop-nav-left a,
        .desktop-nav-right a,
        nav a,
        .dropbtn {
            color: #fff !important;
            text-decoration: none;
            font-weight: 500;
            letter-spacing: 1px;
            font-size: 15px;
        }

            nav a:hover,
            .dropbtn:hover {
                color: #ffcc66 !important;
            }

    .dropdown-content {
        background: #ffffff;
        border-radius: 6px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        padding: 8px 0;
        display: none;
        position: absolute;
        min-width: 180px;
        z-index: 9999;
    }

        .dropdown-content a,
        .dropdown-link {
            padding: 10px 16px;
            font-size: 14px;
            color: #333;
            display: block;
        }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    #main-res-nav {
        display: none !important;
    }

    /* MAIN DESKTOP GRID → Left | Center | Right */
    .desktop-nav-wrapper {
        width: 100%;
        max-width: 1500px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 40px;
        margin-top: 20px;
        position: relative;
    }

    .desktop-left-fixed,
    .desktop-center-logo,
    .desktop-right-fixed {
        flex: 1;
        display: flex;
        align-items: center;
    }

    /* Left Menu */
    .desktop-left-fixed {
        justify-content: flex-start;
        gap: 20px;
    }

    /* Center Logo (empty wrapper because logo is absolute) */
    .desktop-center-logo {
        justify-content: center;
    }

    /* Right Menu + Search */
    .desktop-right-fixed {
        justify-content: flex-end;
        gap: 22px;
    }

}


/* Logo background adjust */
.bg_less-mg {
    margin-top: -15% !important;
}



/* ============================================================
   MOBILE NAV (UNTOUCHED)
   ============================================================ */

@media (max-width: 992px) {
    .button-link {
        background: none;
        border: none;
        color: #007bff; /* link color */
        padding: 0;
        font-size: inherit;
        cursor: pointer;
        text-decoration: none;
    }

    .search-icon {
        top: 70% !important;
    }

    #main-res-nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #5e1f23;
        padding-top: 65px;
        padding-bottom: 0px;
        position: absolute;
        z-index: 900;
    }

    .mobile-row {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 12px;
        margin-top: -50px;
        z-index: 5;
        /*margin-right: 55px !important;*/
    }

    .desktop-nav-left,
    .desktop-nav-right {
        display: flex !important;
        gap: 10px;
        align-items: center;
    }

        .desktop-nav-left .dropdown,
        .desktop-nav-right .dropdown {
            border-bottom: none !important;
            width: auto !important;
        }

    .mobile-center-logo {
        position: relative !important;
        top: 0 !important;
        width: 85px !important;
        z-index: 10;
    }

    #main-res-nav::before {
        content: "";
        width: 100%;
        height: 55px;
        background: #2b1214;
        position: absolute;
        top: 30px;
        left: 0;
        z-index: 1;
    }

    #main-res-nav a,
    #main-res-nav .dropbtn {
        color: #fff !important;
        font-size: 11px;
        padding: 6px 3px;
        background: transparent !important;
        font-size: 10px;
    }

    .dropdown:hover .dropdown-content {
        display: none !important;
    }

    .dropdown {
        position: relative !important;
    }

    .dropdown-content {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 140px !important;
        background: #441316 !important;
        padding: 0 !important;
        z-index: 9999 !important;
        box-shadow: none !important;
    }

    .dropdown.open .dropdown-content {
        display: block !important;
    }

    .dropdown-content a,
    .dropdown-content button {
        color: #fff !important;
        padding: 10px 8px !important;
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    .dropdown.open .dropdown-content {
        display: block !important;
    }
}



/* ============================================================
   OPTIONAL: HAMBURGER SUPPORT (UNTOUCHED)
   ============================================================ */

.menu-toggle {
    display: none;
}

@media (max-width: 992px) {

    .menu-toggle {
        display: flex;
        flex-direction: column;
        width: 32px;
        height: 24px;
        justify-content: space-between;
        cursor: pointer;
        z-index: 2000;
    }

        .menu-toggle span {
            height: 3px;
            background: #fff;
            width: 100%;
            transition: 0.3s;
        }

        .menu-toggle.open span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .menu-toggle.open span:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.open span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }
}
