/* ========================================
   RIGHT NAVIGATION WITH FULL MEGA MENU
   Logo left, menu right with full-width dropdown
======================================== */

/* Main Navigation Bar */
.navbar-right {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-right.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-right .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

/* Brand/Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 0;
}

.brand-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #F4C430, #FFD700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    position: relative;
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.3);
}

.brand-logo::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.brand-logo-text {
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-main {
    font-size: 1.4rem;
    color: #002147;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.brand-sub {
    font-size: 0.7rem;
    color: #F4C430;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation Menu */
.nav-menu-wrapper {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.7rem 1.2rem;
    color: #2E5C8A;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: #2E5C8A;
    color: white;
}

.nav-link.active {
    background: linear-gradient(135deg, #2E5C8A, #4A7BA7);
    color: white;
}

/* Language Links */
.nav-sep {
    padding: 0 10px;
}

.language-link {
    display: block;
    padding: 0.7rem 1.2rem;
    margin: 0 0.2rem;
    font-size: 0.9rem;
    color: #4d4d4d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.language-link:hover {
    color: #F4C430;
}

.language-link.active {
    font-weight: 600;
    color: #F4C430;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.hamburger-line {
    width: 26px;
    height: 3px;
    background: #2E5C8A;
    transition: all 0.3s ease;
}

/* Mega Menu Overlay */
.mega-menu-overlay {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 999;
}

.mega-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mega-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem;
}

/* Mega Menu Content */
.mega-menu-content {
    display: none;
}

.mega-menu-content.active {
    display: block;
}

/* Mega Menu Grid */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.products-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Mega Menu Section */
.mega-menu-section {
    padding-right: 2rem;
}

.mega-menu-title {
    color: #002147;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #F4C430;
}

.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-links li {
    margin-bottom: 0.5rem;
}

/* Mega Link */
.mega-link {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.mega-link:hover {
    background: #f8f9fa;
}

.mega-link-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mega-link-title {
    color: #2E5C8A;
    font-weight: 600;
    font-size: 0.95rem;
}

.mega-link-desc {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2E5C8A;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #2E5C8A;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-menu-item:hover {
    background: #f8f9fa;
}

.mobile-menu-item i {
    width: 24px;
    font-size: 1.1rem;
    color: #F4C430;
}

.mobile-menu-item.highlight {
    background: linear-gradient(135deg, #2E5C8A, #4A7BA7);
    color: white;
    margin-top: 1rem;
}

.mobile-menu-item.highlight i {
    color: #F4C430;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-language-switch {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.mobile-language-switch a {
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    color: #2E5C8A;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-language-switch a:hover,
.mobile-language-switch a.active {
    background: linear-gradient(135deg, #F4C430, #FFD700);
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar-right .container {
        padding: 0.5rem 1rem;
    }

    .mega-menu-container {
        padding: 2rem;
    }

    .mega-menu-grid {
        gap: 2rem;
    }
}

@media (max-width: 991px) {
    .navbar-right .container {
        padding: 0.5rem 1rem;
    }

    .nav-menu-wrapper {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .brand-text {
        display: none;
    }

    .mega-menu-overlay {
        top: 58px;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-logo-text {
        font-size: 1rem;
    }
}

/* Body padding for fixed navbar */
body {
    padding-top: 68px;
}

@media (max-width: 991px) {
    body {
        padding-top: 58px;
    }
}
