/**
Theme Name: Rotterdam Haven Training
Author: Digital Dreamers
Author URI: https://www.digitaldreamers.nl
Description: Rotterdam Haven Training
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rht
Template: astra
*/

/* Global Styling */
.ast-outline-button {
    border: 2px solid;
}
.entry-header {
    display: none;
}
.ast-plain-container.ast-no-sidebar #primary {
margin-top:0px;
margin-bottom:0px;
}

/* Facet Styling */
.facet-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    hyphens:auto;
    z-index: 2;
    color: white;
}

.card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #377b01;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    text-transform: uppercase;
}

.card-title {
    font-size: 22px !important;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: white !important;
    text-transform: uppercase;
}

.tag-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(76, 175, 80, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    display: inline-block;
    color: white;
}

.read-more {
    color: #7AB80E;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    margin-top: 16px;
    display: inline-block;
}

@media (max-width: 1024px) {
    .facet-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .card-subtitle {
        font-size: 16px;
    }
    
    .card-category {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .facet-container {
        grid-template-columns: 1fr;
    }
};

/* Filter Styling */
.facet-filters {
    margin: 2rem 0;
}

.facet-wrapper__filter-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.facet-wrapper__filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.facet-wrapper__btn {
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.facet-wrapper__btn:hover {
    background-color: #f5f5f5;
}

.facet-wrapper__btn.checked {
    background-color: #377b01;
    color: white;
    border-color: #377b01;
}

.facet-wrapper__btn .unit__name {
    font-size: 1rem;
    font-weight: 500;
}

.facet-wrapper__btn .click-url {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

/* Hide FacetWP default styling */
.facetwp-filters {
    display: none;
}

