/*   
Theme Name: Quantum Engine
Version: 10.0
Author: Ivan Konkov
Author URI: https://wp-craft.site
Description: Wordpress cansvas based ACF framework
*/

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.current-lang {
    padding: 8px 12px;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
    user-select: none;
    font-weight: 600;
}

.lang-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
}

.lang-list a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

.lang-list a:hover {
    opacity: .7;
}

.lang-dropdown.active .lang-list {
    display: block;
}

.dark-mode .current-lang {
        background-color: var(--Surface);
}


.site-logo {
    max-width: 340px;
}

.wpd_post h2 {
    font-size: 24px;
    line-height: 130%;
    margin-bottom: 12px;
}

.wpd_post img {
    max-width: 100%;
    height: auto;
}

.sidebar .box-author.style-1 .avatar {
    width: 125px;
    height: 125px;
}

.sidebar .box-author.style-1 .info{
    margin-top: 0;
}

.feature-post-item .wrap-tag {
    margin-top: 0 !important;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    width: 300px;
    background: #fff;

    border-radius: 8px;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.offcanvas-backdrop {
    z-index: 9999;
}

@media screen and (max-width: 640px) {
    .topbar .tf-social, .topbar .wrap, .topbar .site-logo {
        width: 100%;
    }

    .topbar .tf-container .topbar-inner {
        flex-wrap: wrap;
        flex-direction: column !important;
        justify-content: space-between !important;
        gap: 10px;
    }

    .topbar {
        padding-top: 10px;
        padding-bottom: 10px;
        
    }

    .topbar .justify-content-end {
        justify-content: space-between !important;
    }
    
    .site-logo img {
        width: 100% !important;
    }

    .d-flex {
        flex-wrap: wrap;
    }

    .page-title.style-default .tag {
        margin-bottom: 20px;
    }

    .box-fieldset-item, .feature-post-item {
        flex-wrap: nowrap !important;
    }

    .text-body-1.line-clamp-2 {
        display: none !important;
    }
}