:root {
    --primary-blue: #5e7c9b;
    --sidebar-width: 280px;
    --text-dark: #3c3c3d;
    --bg-light: #f8f9fa;
}

.mobile-hero-selector,
.mobile-feature-scroller,
.mobile-pill-tabs {
    display: none !important;
}

/* pill-tab base styles (used on mobile only) */
.pill-tab {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1.5px solid #e1e3e6;
    background: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    white-space: nowrap;
    min-height: 42px;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.pill-tab.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 14px rgba(94, 124, 155, 0.28);
}

.culture-sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #e1e3e6;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    position: fixed;
    height: 100%;
    left: 35px;
    z-index: 100;
    overflow: visible;
    transition: width 0.25s ease;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 2rem;
}

.sidebar-collapse-btn {
    position: absolute;
    top: 270px;
    right: -13px;
    transform: none;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #d9dce2;
    background: #ffffff;
    color: #5f6b7a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 101;
}

.sidebar-collapse-btn:hover {
    color: var(--primary-blue);
}

.sidebar-collapse-btn i {
    font-size: 0.8rem;
}

.nav-item {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 14px 18px 14px 30px;
    border: none;
    background: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
}

.nav-item i {
    flex: 0 0 20px;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.nav-item-label {
    display: inline-block;
    max-width: 160px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.22s ease, opacity 0.16s ease;
}

.nav-item:hover {
    background: #f3f4f6;
}

.nav-item.active {
    background: #eef4ff;
    border: 2px solid var(--primary-blue);
    color: #4f7cff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 124, 255, 0.15);
}

.modern-lang-wrapper {
    position: relative;
    margin-bottom: 2rem;
    padding: 0 10px;
}

.lang-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid #e1e3e6;
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn .fa-globe {
    flex: 0 0 20px;
    width: 20px;
    text-align: center;
}

.lang-btn .fa-chevron-down {
    margin-left: auto;
    transition: opacity 0.16s ease, max-width 0.22s ease, margin 0.22s ease;
}

.lang-btn-label {
    display: inline-block;
    max-width: 150px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.22s ease, opacity 0.16s ease;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 10px;
    right: 10px;
    background: white;
    border: 1px solid #e1e3e6;
    border-radius: 14px;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1001;
    overflow: hidden;
}

.lang-dropdown.lang-dropdown-open {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--text-dark);
}

.lang-dropdown a.active {
    background: #eef4ff;
    color: #4f7cff;
    border-left: 3px solid #4f7cff;
    padding-left: 15px;
}

/* pill-lang-dropdown: hidden by default at all sizes, shown via JS on mobile */
.pill-lang-dropdown {
    display: none;
    position: fixed;
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 2000;
    min-width: 180px;
    overflow: hidden;
    border: 1px solid #e1e3e6;
}

.pill-lang-dropdown.open {
    display: block;
}

.pill-lang-dropdown .lang-link {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.pill-lang-dropdown .lang-link:hover {
    background: #f3f4f6;
}

.explore-container.sidebar-collapsed .culture-sidebar {
    width: 80px;
}

.explore-container.sidebar-collapsed .sidebar-nav {
    gap: 0.5rem;
}

.explore-container.sidebar-collapsed .modern-lang-wrapper {
    margin-bottom: 2rem;
}

.explore-container.sidebar-collapsed .lang-btn {
    gap: 0;
}

.explore-container.sidebar-collapsed .lang-btn .fa-globe {
    margin-right: 0;
}

.explore-container.sidebar-collapsed .lang-btn-label {
    max-width: 0;
    opacity: 0;
}

.explore-container.sidebar-collapsed .lang-btn .fa-chevron-down {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
}

.explore-container.sidebar-collapsed .lang-dropdown {
    position: fixed;
    right: auto;
    margin-top: 0;
    min-width: 210px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2001;
}

.explore-container.sidebar-collapsed .nav-item {
    font-size: 1rem;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.explore-container.sidebar-collapsed .nav-item i {
    margin-right: 0;
    font-size: 1rem;
}

.explore-container.sidebar-collapsed .nav-item-label {
    max-width: 0;
    opacity: 0;
}

.explore-container.sidebar-collapsed .sidebar-collapse-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .culture-sidebar {
        display: none;
    }

    /* Hero selector not needed — lang is in pill row */
    .mobile-hero-selector {
        display: none !important;
    }

    /* ── Mobile pill-tab bar ── */
    .mobile-pill-tabs {
        /* Fixed tab strip directly under the fixed header */
        display: flex !important;
        margin: 0;
        margin-bottom: 1.25rem;
        padding: 14px 1rem 14px 1rem;
        gap: 8px;
        border-bottom: 1.5px solid #e8eaed;
        border-radius: 0;
        background: #ffffff;
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        z-index: 1900;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .mobile-pill-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Re-show lang pill on mobile */
    .mobile-pill-tabs .pill-lang-wrapper {
        display: flex;
    }

    .pill-tab {
        padding: 10px 18px;
        font-size: 0.88rem;
        min-height: 42px;
        border-width: 1.5px;
    }

    .pill-lang-wrapper {
        flex: 0 0 auto;
    }

    .pill-lang-btn {
        background: white;
        color: var(--primary-blue);
        border: 1.5px solid var(--primary-blue);
    }

    .pill-lang-chevron {
        font-size: 0.7rem;
        margin-left: 2px;
        transition: transform 0.2s;
    }

    .pill-lang-btn.open {
        background: var(--primary-blue);
        color: white;
    }
}
