/*
Theme Name: Zilom Child
Theme URI: https://gaviaspreview.com/wp/zilom/
Author URI: http://gaviasthemes.com/
Author: Gaviasthemes Team
Description: Child theme for the Zilom theme.
Template: zilom
*/

/* Hide the administrative author identity in course cards and course details. */
.course-author:has(a[href*="/profile/admin?"]),
.tutor-single-course-author-meta .author-information:has(a[href*="/profile/admin?"]),
.tutor-single-course-author-meta .author-information:has(a[href*="/profile/admin?"]) + .line,
.single-courses .single-instructor-top:has(a[href*="/profile/admin?"]) {
    display: none !important;
}

/* Hide the detailed information panel on all course pages. */
.single-courses .single-course-sidebar .course-single-meta {
    display: none !important;
}

/* Keep the contact call to action without LMS progress and completion controls. */
.single-courses .single-course-sidebar .tutor-course-progress-wrapper,
.single-courses .single-course-sidebar form:has(button[name="complete_course_btn"]) {
    display: none !important;
}

/* Hide duration and learner counts in course cards throughout the site. */
.course-loop-meta .course-user,
.course-loop-footer .coruse-duration {
    display: none !important;
}

/* Compact, flag-free language controls for desktop and mobile headers. */
.cfpte-header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}
.cfpte-header-tools > .gva-element-gva-search-box,
.cfpte-language {
    flex: 0 0 auto;
}
.cfpte-language {
    display: inline-flex;
    align-items: center;
    line-height: normal;
    color: #1c1e27;
}
.header-position-absolute .cfpte-language {
    color: #fff;
}
.cfpte-language select.gt_selector {
    box-sizing: border-box;
    width: 66px;
    min-width: 66px;
    max-width: 66px;
    height: 38px;
    margin: 0;
    padding: 0 6px;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background-color: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: normal;
    cursor: pointer;
}
.cfpte-language select.gt_selector option {
    background: #fff;
    color: #1c1e27;
}
.cfpte-language select.gt_selector:focus-visible {
    outline: 2px solid #3bb7ef;
    outline-offset: 3px;
}
.header-mobile .header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.header-mobile .cfpte-language {
    color: #1c1e27;
}
.header-mobile .cfpte-language select.gt_selector {
    height: 42px;
}

/* Keep translated navigation on one line beside the language control. */
@media (min-width: 1025px) {
    html[lang^="en"] .header_default_screen .gva-main-menu > li {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    html[lang^="en"] .header_default_screen .gva-main-menu > li > a {
        font-size: 15px !important;
    }
}
@media (min-width: 1025px) and (max-width: 1199px) {
    .header_default_screen .gva-main-menu > li {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .header_default_screen .gva-main-menu > li > a {
        font-size: 15px !important;
    }
}
