/*
Theme Name: Euro University of Bahrain
Theme URI: https://eub.edu.bh
Author: EUB
Author URI: https://eub.edu.bh
Description: Child theme for the Unicamp University Theme
Version: 1.0.0
Template: unicamp
Text Domain: unicamp-child
*/

/* 1. GLOBAL UI ALIGNMENT */
p.elementor-image-box-description {
    text-align: center;
}

.entry-title {
    text-align: left;
}

/* 2. FILTER TOOLBAR (DESKTOP) */
.custom-blog-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.custom-blog-filters .filter-wrapper {
    flex-grow: 1;
    position: relative;
    background: #f2f2f2;
    border-right: 1px solid #e1e1e1;
}

.custom-blog-filters select {
    width: 100%;
    height: 50px;
    border: none;
    background: transparent;
    padding: 0 40px 0 20px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
    outline: none;
}

/* 3. BUTTONS: NORMAL RED / HOVER BLACK */
.custom-blog-filters button, 
.eub-clear-btn,
#uni-filter-btn {
    flex-shrink: 0;
    width: auto;
    min-width: 140px;
    height: 50px;
    background-color: #C0392B !important; /* EUB RED */
    color: #fff !important;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.custom-blog-filters button:hover, 
.eub-clear-btn:hover,
#uni-filter-btn:hover {
    background-color: #333 !important; /* HOVER BLACK */
    color: #fff !important;
    transform: translateY(-2px);
}

/* 4. MOBILE LAYOUT */
@media (max-width: 768px) {
    .custom-blog-filters {
        flex-direction: column;
        gap: 10px;
    }
    .custom-blog-filters .filter-wrapper {
        border-right: none;
    }
    .custom-blog-filters button {
        width: 100%;
    }
}

/* 5. "NO RESULTS" ERROR (BRUTE FORCE CENTERING) */
#eub-empty-results {
    display: none; 
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    min-height: 400px !important; 
    padding: 100px 20px !important;
    border: none !important;      
    background: transparent !important;
    box-sizing: border-box !important;
}

.eub-error-text {
    font-size: 20px !important;
    color: #333 !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.eub-error-text strong {
    font-size: 32px !important;
    color: #C0392B !important;
    display: block !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}