﻿/* ===== Base Styles ===== */
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --dark: #212529;
    --light: #f8f9fa;
    --nav-bg: #1a2b4d;
    --nav-text: #ffffff;
    --nav-hover: #2d4a7a;
    --dropdown-bg: #ffffff;
    --dropdown-text: #333333;
    --dropdown-hover: #f5f5f5;
    --accent: #ff6b6b;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding-top: 10px;
    background: transparent !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    .navbar.scrolled {
        background-color: #fff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        padding-top: 0;
        height: 70px;
    }

/* Navbar Container */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--nav-text);
    transition: var(--transition);
}

.logo-icon {
    margin-right: 10px;
    font-size: 1.5rem;
    color: #007c80;
    animation: float 3s ease-in-out infinite;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-sky {
    color: #2c2c2c;
}

.logo-highlight {
    color: #007c80;
}

/* Navbar Links */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
    margin: 0 0.8rem;
}

.nav-link {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 0.5rem;
    display: block;
    position: relative;
    transition: var(--transition);
}

    .nav-link:hover {
        color: var(--accent);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background: #006d44;
        transition: var(--transition);
        border-radius: 2px;
    }

    .nav-link:hover::after {
        width: 100%;
    }

/* Scrolled state */
.navbar.scrolled .nav-link {
    color: #333 !important;
}

    .navbar.scrolled .nav-link:hover {
        color: #006d44 !important;
    }

.navbar.scrolled .lang-current span {
    color: #fff !important;
}

/* ===== Dropdowns ===== */
.dropdown, .sub-submenu {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #f0eee6;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 2rem;
    padding: 1rem;
    min-width: max-content;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.nav-item:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown Groups */
.dropdown-group {
    min-width: 200px;
    flex: 1;
    margin-left: 50px;
    position: relative;
}

.group-title {
    padding: 0.6rem 0;
    font-weight: 600;
    color: #006d44;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 0.5rem;
}

.group-items li a, .dropdown li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.5rem;
    color: var(--dropdown-text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

    .group-items li a:hover {
        background: var(--dropdown-hover);
        color: forestgreen;
        padding-left: 0.8rem;
    }

    .dropdown li a:hover {
        background: var(--dropdown-hover);
        padding-left: 1.5rem;
    }

    .dropdown li a i {
        font-size: 0.8rem;
        opacity: 0.7;
    }

.dropdown-subitem {
    position: relative;
}

.sub-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background: #f0eee6;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 1050;
}

.dropdown-subitem:hover > .sub-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Submenu arrow */
.dropdown-subitem.has-submenu > a::after {
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.dropdown-subitem.has-submenu:hover > a::after {
    transform: rotate(90deg);
}


/* Menu Content */
.menu-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}



.dropdown-subitem,
.dropdown-subitem li,
.sub-submenu li {
    list-style: none; /* remove bullets */
    margin: 0;
    padding: 0;
}


/* ===== Language Dropdown ===== */
.lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .lang-dropdown .lang-arrow {
        color: #60003a;
        font-size: 12px;
        cursor: pointer;
    }

    .lang-dropdown .nav-icon {
        background: #006666;
        color: #fff;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 18px;
        cursor: pointer;
    }

        .lang-dropdown .nav-icon i {
            color: #fff !important;
        }

    .lang-dropdown .lang-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 6px;
        background: #f0eee6;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        display: flex;
        flex-direction: column;
        width: 200px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        z-index: 9999;
        padding: 0;
    }

    .lang-dropdown:hover .lang-menu {
        opacity: 1;
        visibility: visible;
    }

    .lang-dropdown .lang-menu a {
        padding: 10px 14px;
        color: black;
        text-decoration: none;
        font-size: 14px;
        border-bottom: 1px solid #eee;
        display: block;
    }

        .lang-dropdown .lang-menu a:last-child {
            border-bottom: none;
        }

        .lang-dropdown .lang-menu a:hover {
            background: teal;
            color: ghostwhite;
        }

        .lang-dropdown .lang-menu a.active {
            background: #60003a;
            color: #fff;
            font-weight: 600;
        }

/* ===== Search Box ===== */
.search-box-wrapper {
    position: relative;
    display: inline-block;
}

.search-input {
    width: 260px;
    height: 42px;
    border-radius: 50px;
    border: 1.8px solid #008060;
    padding: 0 40px 0 15px;
    cursor: pointer;
    font-size: 14px;
    background-color: #fff;
    box-shadow: 0 0 4px rgba(0,128,96,0.2);
    transition: all 0.3s ease;
}

    .search-input:hover {
        border-color: #006d44;
        box-shadow: 0 0 6px rgba(0,109,68,0.4);
    }

    .search-input:focus, .search-input:active {
        border-color: #004d33;
        box-shadow: 0 0 8px rgba(0,77,51,0.6);
        background-color: #f9fdfb;
        outline: none;
    }

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #008060;
    font-size: 16px;
    pointer-events: none;
}

/* ===== Right Nav ===== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 16px;
}

.nav-icon {
    color: var(--nav-text);
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 0.8rem 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
    text-decoration: none;
}

    .nav-icon i, .nav-icon span {
        line-height: 1;
        vertical-align: middle;
    }

    .nav-icon:hover {
        color: var(--accent);
        transform: translateY(-2px);
    }

.navbar.scrolled .nav-icon {
    color: #006d44 !important;
}

    .navbar.scrolled .nav-icon:hover {
        color: #004d30 !important;
    }

.user-dropdown {
    position: relative;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dropdown-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.user-dropdown:hover .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    color: var(--dropdown-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

    .user-menu a:hover {
        background: var(--dropdown-hover);
        color: var(--primary);
    }

/* ===== Buttons ===== */
.contact-btn {
    background-color: #f0eee6;
    color: #007c80;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid #007c80;
}

    .contact-btn:hover {
        background: #007c80;
        border: 1px solid #ccc;
        transform: translateY(-2px);
        color: #fff;
    }

/* ===== Mobile Toggle ===== */
.mobile-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar.scrolled .mobile-toggle {
    color: teal !important;
}

.mobile-close {
    display: none;
}

/* ===== Navbar Search ===== */
.navbar-search {
    position: relative;
    width: 360px;
    max-width: 42vw;
    flex-shrink: 0;
}

    .navbar-search input {
        width: 100%;
        height: 44px;
        padding: 0 44px 0 16px;
        border-radius: 999px;
        border: 2px solid #22c5c6;
        background: #fff;
        color: #333;
        font-size: 0.95rem;
        outline: none;
        cursor: pointer;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .navbar-search input::placeholder {
            color: #9aa0a6;
        }

        .navbar-search input:hover,
        .navbar-search input:focus {
            border-color: #18b6b7;
            box-shadow: 0 0 0 4px rgba(34,197,198,0.15);
        }

    .navbar-search .search-trigger {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        cursor: pointer;
        font-size: 1rem;
        color: #666;
    }

.navbar.scrolled .navbar-search input {
    background: #fff;
}

/* ===== Badge ===== */
.hot {
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    font-weight: 600;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}




@media (min-width: 993px) {
    .mobile-logo {
        display: none !important;
    }
}


/* ===== Responsive (Mobile) ===== */
@media (max-width: 992px) {
    .navbar-search {
        display: none;
    }

    .nav-container {
        justify-content: space-between;
        padding: 0 15px;
    }

    .logo {
        margin: 0 10px 17px 0;
    }

    .nav-right {
        gap: 10px;
    }

    .contact-btn {
        white-space: nowrap;
        padding: 0.35rem 0.8rem;
        font-size: 0.85rem;
    }

    .nav-links {
        padding-left: 0;
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 20px 20px 20px;
        transition: right 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
    }

        .nav-links.active {
            right: 0;
        }

    .mobile-toggle {
        display: block;
        margin-left: -5px;
    }

    .mobile-close {
        display: block;
        align-self: flex-end;
        font-size: 2rem;
        color: #fff;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 10001;
        line-height: 1;
    }

    .dropdown {
        display: none;
        flex-direction: column;
        gap: 0;
        background: transparent;
        box-shadow: none;
        position: static !important;
        transform: none !important;
        min-width: 100% !important;
        padding: 0;
        background: #0d1e3b !important; /* same as your sidebar */
    }
    .sub-submenu {
        background: #0d1e3b !important;
    }

    .nav-item.open > .dropdown {
        display: flex;
    }

    .dropdown li a {
        color: #fff;
        padding-left: 1.5rem;
    }

    .sub-submenu {
        display: none;
        position: static;
        box-shadow: none;
        background: transparent;
    }

    .dropdown-subitem.open > .sub-submenu {
        display: block;
    }

    .navbar.scrolled .nav-links .nav-link {
        color: #fff !important;
    }

        .navbar.scrolled .nav-links .nav-link:hover {
            color: #ffcc00 !important;
        }

    .nav-links .group-title {
        display: block;
        width: 100%;
        font-size: 1rem;
        font-weight: 600;
        color: #ffcc00;
        margin: 10px 0 5px;
        padding: 5px 0;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .nav-links .group-items li a {
        padding: 8px 0 8px 1.5rem;
        color: #fff;
    }

        .nav-links .group-items li a:hover {
            color: #ffcc00;
        }

    .nav-links .group-items > li > a {
        font-weight: 500;
    }

        .nav-links .group-items > li > a:hover {
            color: #ffcc00;
        }

    .nav-links .sub-submenu li a {
        color: #ccc;
        font-weight: 400;
        padding-left: 2.5rem;
    }

        .nav-links .sub-submenu li a:hover {
            color: #ffcc00;
        }

    .mobile-logo {
        display: block;
        align-self: center;
        text-align: center;
        position: relative;
        padding-bottom: 10px;
        width: 100%;
    }

        .mobile-logo img {
            max-width: 120px;
            height: auto;
            display: inline-block !important;
            margin: 0 auto !important;
            float: none !important;
        }

        .mobile-logo::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 2px;
            background-color: #ffcc00;
        }





        /* BLOCK 2 */
        .nav-item.open > .dropdown {
            background: #0d1e3b !important;
        }

    .dropdown-subitem.open > .sub-submenu {
        background: #0d1e3b !important;
    }

    /* BLOCK 3 */
    .dropdown {
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
    }











}
