/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.header-full-width .container{
	padding-left: 15%;
}

.container, .container-width, .full-width .ubermenu-nav, .row {
    max-width: 90% !important;
}


.entry-image img {
	max-height: 800px;
    width: auto;      /* ширина підлаштується під висоту */
    display: block;
    margin: 0 auto;   /* центруємо */
}

/* Sort dropdown */
.stm_lms_courses_grid__sort select.no-search {
    appearance: none !important;
    -webkit-appearance: none !important;
    flex-basis: auto !important;
    text-indent: 0 !important;
    background: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    padding: 7px 30px 7px 12px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    max-width: 200px !important;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .lms_courses.sort {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .stm_lms_courses_grid__sort {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .stm_lms_courses_grid__sort select.no-search {
        max-width: none !important;
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .courses_filters__switcher {
        flex-shrink: 0 !important;
    }
}

.stm_lms_courses__filter.stm_lms_courses__level .stm_lms_courses__filter_heading h3 {
    visibility: hidden;
    position: relative;
}

.stm_lms_courses__filter.stm_lms_courses__level .stm_lms_courses__filter_heading h3::after {
    content: "Audience";
    visibility: visible;
    position: absolute;
    left: 0;
}

.stm-lms-plugin .wrap, 
body #main .stm_lms_courses_wrapper, 
body .stm_lms_courses_wrapper {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}



/* Прибираємо верхню лінію */
#menu-item-2880 .nav-dropdown {
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0;
    min-width: 210px;
    background-color: #e8e8e8; /* підбери точний колір навбару */
}

/* Пункти */
#menu-item-2880 .nav-dropdown .menu-item a {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #333;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.2s;
    background-color: transparent;
}

#menu-item-2880 .nav-dropdown .menu-item:last-child a {
    border-bottom: none;
}

/* Hover - легкий сірий */
#menu-item-2880 .nav-dropdown .menu-item a:hover {
    background-color: rgba(0, 0, 0, 0.07);
    color: #333;
}

/* Активний пункт */
#menu-item-2880 .nav-dropdown .active a {
    color: #1a3c8f;
}

#menu-item-2880 .nav-dropdown .active a:hover {
    background-color: rgba(0, 0, 0, 0.07);
}


.wpforo-cat-panel {
    background: rgba(26, 58, 107, 0.85) !important;
}

.wpforo-cat-panel .cat-name {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* Підкатегорії — pill теги */
#wpforo #wpforo-wrap .forum-card-subforums a {
    display: inline-block !important;
    background: #1a3a6b !important;
    color: #ffffff !important;
    font-size: 11px !important;
    padding: 3px 9px !important;
    border-radius: 20px !important;
    margin: 2px 2px !important;
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    line-height: 1.6 !important;
}

#wpforo #wpforo-wrap .forum-card-subforums a:hover {
    background: #f5a623 !important;
    color: #ffffff !important;
}

/* Назва форуму */
#wpforo #wpforo-wrap .forum-card-title a {
    color: #1a3a6b !important;
    font-weight: 700 !important;
}

/* Опис */
#wpforo #wpforo-wrap .forum-card-description {
    color: #444444 !important;
    font-size: 13px !important;
}

/* Ширша форма */
#wpforms-2977 {
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
}

/* Інпути на всю ширину (десктоп + мобільний) */
#wpforms-2977 .wpforms-field input,
#wpforms-2977 .wpforms-field textarea,
#wpforms-2977 .wpforms-field-medium {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}