﻿.navbar-expand-lg .navbar-nav .nav-item.dropdown .dropdown-menu.mega-menu {
    top: auto !important;
}

.owl-carousel .item {
    padding: 10px;
}

.card-img-top {
    max-height: 200px;
    object-fit: cover;
}

#TheTeamSection .card {
    height: 100%;
    transition: transform 0.2s ease-in-out;
}

    #TheTeamSection .card:hover {
        transform: scale(1.02);
    }

#TheTeamSection .card-title {
    font-size: 1.2rem;
}

.brand-strong {
    font-family: var(--font-display, "Michroma", sans-serif);
    font-weight: 800;
    letter-spacing: .03em;
}
/* Full-screen overlay */
.language-popup {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: rgba(0, 0, 0, 0.6);
    display: none; /* hidden by default */
    align-items: center; /* center content vertically */
    justify-content: center; /* center content horizontally */
    z-index: 9999999 !important; /* higher than side menu */
}

    /* When open, show as flex overlay */
    .language-popup.open {
        display: flex;
    }

/* Popup card */
.language-popup-content {
    background: #fff;
    width: 90%;
    max-width: 480px;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Close button */
.language-popup .btn-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    text-decoration: none;
    font-size: 1rem;
    color: #666;
}

.language-switcher {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

    .language-switcher li {
        margin: 0;
    }

    .language-switcher a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        text-decoration: none;
        color: #334155;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        position: relative;
    }

        .language-switcher a:hover {
            background: #ffffff;
            border-color: #3b82f6;
            color: #3b82f6;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
        }

    .language-switcher li.active a {
        background: linear-gradient(135deg, #3b82f6, #06b6d4);
        border-color: transparent;
        color: #ffffff;
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    }

.lang-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.lang-name {
    flex: 1;
    text-align: left;
}

.lang-check {
    color: #ffffff;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* On larger screens use 3 columns */
@media (min-width: 768px) {
    .language-switcher {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* On mobile use single column */
@media (max-width: 480px) {
    .language-switcher {
        grid-template-columns: 1fr;
    }

    .language-switcher a {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
}

/* When language popup is open, hide navbar completely */
.navbar.navbar-hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =============================================
   STICKY NAVBAR
   ============================================= */

/* Navbar base styles for smooth transition */
.navbar#navigation {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Sticky state */
.navbar#navigation.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

/* Slide down animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add padding to body when navbar becomes sticky to prevent content jump */
body.navbar-is-sticky {
    padding-top: 80px;
}

/* Adjust logo size when sticky */
.navbar#navigation.navbar-sticky .logo {
    max-height: 40px;
    transition: all 0.3s ease;
}

/* Ensure dropdowns work properly with fixed navbar */
.navbar#navigation.navbar-sticky .dropdown-menu {
    position: absolute;
}

/* Mobile navbar adjustments */
@media (max-width: 991px) {
    body.navbar-is-sticky {
        padding-top: 70px;
    }

    .navbar#navigation.navbar-sticky .logo {
        max-height: 35px;
    }
}