/*
Theme Name: Eduma Child
Theme URI: https://themeforest.net/item/education-wordpress-theme-education-wp/14058034
Description: Child theme for Eduma (Netassist Customized)
Author: Netassist
Author URI: https://netassist.com.sg
Template: eduma
Version: 2.0

================================================================================
NETASSIST CUSTOM CSS - CONSOLIDATED STYLESHEET
================================================================================

TABLE OF CONTENTS:
------------------
1. LOGIN & POPUP STYLES
2. COURSE SEARCHING WIDGET
3. EVENT LIST STYLES
4. COURSE PRICE (HIDDEN)
5. COURSE CATEGORIES (SINGLE COURSE PAGE)
6. IMAGE & THUMBNAIL STYLES
7. HTX DIGITAL SKILLING PAGE (page-id-28941)
8. COURSE ITEM CARDS (ARCHIVE PAGE)
9. AUTHOR BOX (HIDDEN)
10. COURSE FILTER (SIDEBAR)
11. LEARNPRESS FILTER (CUSTOM)
12. COURSE FILTER STYLING (TIGHT)
*/

/* Import parent theme style */
@import url("../eduma/style.css");

/*============================================================================
  1. LOGIN & POPUP STYLES
============================================================================*/
#thim-popup-login .mo-openid-app-icons .btn-block {
    color: #fff !important;
}

/*============================================================================
  2. COURSE SEARCHING WIDGET
============================================================================*/
.thim-widget-courses-searching .thim-course-search-overlay .search-toggle {
    font-size: 18px;
}
.toolbar-container .thim-widget-courses-searching {
    padding: 8px 15px;
}

/*============================================================================
  3. EVENT LIST STYLES
============================================================================*/
.thim-list-event .item-event .time-from .month {
    text-transform: uppercase;
    margin-top: 4px;
}

/*============================================================================
  4. COURSE PRICE (HIDDEN)
============================================================================*/
.course-price {
    display: none !important;
}
.course-meta .course-price {
    display: none !important;
}

/*============================================================================
  5. COURSE CATEGORIES (SINGLE COURSE PAGE)
============================================================================*/
.course-categories label {
    color: white !important;
}
.course-categories .value .cat-links a {
    color: white !important;
    text-decoration: none;
}
.course-categories .value .cat-links a:hover {
    color: #cccccc !important;
    text-decoration: underline;
}
.course-categories .value {
    color: white !important;
}
.course-categories .cat-links {
    color: white !important;
}

/*============================================================================
  6. IMAGE & THUMBNAIL STYLES
============================================================================*/
.elementor-widget-image,
.elementor-image,
.course-thumbnail {
    margin: 0 !important;
    padding: 0 !important;
}
.course-thumbnail img {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    width: 100%;
    height: auto;
}

/*============================================================================
  7. HTX DIGITAL SKILLING PAGE (page-id-28941)
============================================================================*/
body.page-id-28941 .top_site_main {
    background-image: 
        linear-gradient(to right, #5C068C 0%, #3D0459 100%),
        url(https://netassist.com.sg/wp-content/uploads/2024/10/page-title-img.jpg) !important;
    background-size: 100% 100%, cover !important;
    background-position: center, center !important;
    background-repeat: no-repeat, no-repeat !important;
    background-blend-mode: normal, overlay !important;
    opacity: 1 !important;
    position: relative !important;
    overflow: hidden !important;
}
body.page-id-28941 .top_site_main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(https://netassist.com.sg/wp-content/uploads/2024/10/page-title-img.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.05 !important;
    z-index: 0;
}
body.page-id-28941 .overlay-top-header {
    display: none !important;
}
body.page-id-28941 .banner-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    z-index: 2 !important;
}
body.page-id-28941 .banner-wrapper::before {
    content: '';
    width: 80px !important;
    height: 80px !important;
    background-image: url(https://netassist.com.sg/wp-content/uploads/2025/09/htx_vertical_logo_reverse.png) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0 !important;
}
body.page-id-28941 .page-title {
    margin: 0 !important;
    flex: 1 !important;
    color: #ffffff !important;
}
@media (max-width: 768px) {
    body.page-id-28941 .banner-wrapper {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    body.page-id-28941 .banner-wrapper::before {
        width: 60px !important;
        height: 60px !important;
    }
}
@media (max-width: 480px) {
    body.page-id-28941 .banner-wrapper::before {
        width: 50px !important;
        height: 50px !important;
    }
}

/*============================================================================
  8. COURSE ITEM CARDS
============================================================================*/
.course-item {
    height: 450px;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.course-thumbnail {
    height: 200px;
    overflow: hidden;
}
.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.course-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}
.course-title, 
.course-permalink, 
.course-instructor a, 
.course-categories a,
.course-short-description,
.meta-item span,
.course-count-item,
.course-count-student {
    color: #333 !important;
}
.course-permalink:hover,
.course-instructor a:hover,
.course-categories a:hover {
    color: #006400 !important;
}
.course-readmore a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #006400;
    color: white !important;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.course-readmore a:hover {
    background-color: #004d00;
}
.course-info {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.course-short-description {
    height: 60px;
    overflow: hidden;
    margin-bottom: 10px;
}
.course-wrap-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}
.meta-item {
    font-size: 14px;
    color: #666;
}

/*============================================================================
  9. AUTHOR BOX (HIDDEN)
============================================================================*/
.course-author {
    display: none !important;
}
.thim-course-info {
    display: none !important;
}
.thim-about-author {
    display: none !important;
}
.thim-course-content {
    width: 100% !important;
}

/*============================================================================
  10. COURSE FILTER (SIDEBAR)
============================================================================*/
.thim-filter-sidebar-field[name="c_authors"],
.thim-filter-sidebar-field[name="price"],
.thim-filter-sidebar-field[name="sort_by"],
.thim-filter-sidebar-field[name="c_authors"] + label,
.thim-filter-sidebar-field[name="price"] + label,
.thim-filter-sidebar-field[name="sort_by"] + label {
    display: none !important;
}
.thim-course-filter .author-filter,
.thim-course-filter .price-filter {
    display: none !important;
}
.lp-form-course-filter__item:nth-of-type(2) {
    display: none !important;
}
.lp-form-course-filter__item:nth-of-type(3) {
    display: none !important;
}

/*============================================================================
  11. LEARNPRESS FILTER (CUSTOM)
============================================================================*/
/* Note: Custom filter sections generated in functions.php */

/*============================================================================
  12. COURSE FILTER STYLING - TIGHT & COMPACT
============================================================================*/

/* Force Roboto font */
.lp-form-course-filter,
.lp-form-course-filter * {
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif !important;
}

/* Filter section headers */
.custom-filter-header {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
}

/* Filter field items - tight spacing */
.lp-course-filter__field {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 3px !important;
}

/* Labels - smaller, no wrap */
.lp-course-filter__field label {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #666 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* Checkboxes */
.lp-form-course-filter input[type="checkbox"],
.lp-course-filter__field input[type="checkbox"] {
    width: 12px !important;
    height: 12px !important;
    margin-right: 2px !important;
    flex-shrink: 0 !important;
}

/* Count badges */
.lp-form-course-filter .cat-count-badge,
.lp-course-filter__field .cat-count-badge {
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #999 !important;
    margin-left: 2px !important;
    flex-shrink: 0 !important;
}

/* Filter groups spacing */
.custom-filter-group {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
}
.custom-filter-group:last-child {
    border-bottom: none !important;
}

/* Filter container */
.lp-form-course-filter {
    --lp-font-size-base: 11px !important;
}

/* EXTRA HIGH SPECIFICITY - Force font and no wrap */
.widget_course_filter .lp-form-course-filter .lp-course-filter__field label,
.lp-form-course-filter .lp-course-filter__field label,
aside .lp-course-filter__field label {
    font-family: 'Roboto', Arial, sans-serif !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    line-height: 1.1 !important;
}

.widget_course_filter .lp-form-course-filter,
aside .lp-form-course-filter {
    font-family: 'Roboto', Arial, sans-serif !important;
}

/*============================================================================
  13. CONTACT FORM 7 RESPONSE OUTPUT
============================================================================*/
.wpcf7-response-output {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
    border-radius: 4px !important;
    padding: 12px 18px !important;
    margin-top: 15px !important;
    font-size: 14px !important;
}

/* Validation errors - red styling */
.wpcf7-not-valid-tip {
    color: #721c24 !important;
    font-size: 13px !important;
    margin-top: 4px !important;
}

/* AJAX loader visible */
.wpcf7 .ajax-loader {
    display: inline-block !important;
    margin-left: 10px !important;
}

/*============================================================================
  14. COURSE FILTER - HIGHLIGHT SELECTED ITEMS
============================================================================*/
.lp-course-filter__field input[type="checkbox"]:checked + label {
    color: #006400 !important;
    font-weight: 600 !important;
}
.lp-course-filter__field:has(input[type="checkbox"]:checked) {
    background-color: #f0f8f0;
    border-radius: 4px;
    padding: 4px 8px;
}

/* Fallback: Class for URL-based highlighting */
.lp-course-filter__field.filter-active {
    background-color: #f0f8f0 !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
}
.lp-course-filter__field.filter-active label {
    color: #006400 !important;
    font-weight: 600 !important;
}

/* Simple: Highlight checked checkboxes directly */
.lp-course-filter__field input:checked + label {
    color: #006400 !important;
    font-weight: 600 !important;
}
.lp-course-filter__field:has(input:checked) {
    background-color: #f0f8f0;
    border-radius: 4px;
    padding: 4px 8px;
}
