/*
Theme Name: Spacious Pro Child
Description: Child theme voor Spacious Pro met cursussen-archief template
Template: spacious-pro
Version: 1.0.0
*/


/* ============================================
   CURSUSSEN ARCHIEF — Card Grid + Filterbar
   ============================================ */

/* --- Header --- */
.cursussen-archive-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.cursussen-archive-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.cursussen-archive-beschrijving {
    color: #666;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Filterbar --- */
.cursussen-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.cursussen-filter-link {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333 !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cursussen-filter-link:hover {
    border-color: #a01d25;
    color: #a01d25 !important;
    text-decoration: none;
}

.cursussen-filter-link.actief {
    background-color: #a01d25;
    border-color: #a01d25;
    color: #fff !important;
}

/* --- Card Grid --- */
.cursussen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* --- Card --- */
.cursussen-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.cursussen-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* --- Card afbeelding --- */
.cursussen-card-afbeelding {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.cursussen-card-afbeelding img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cursussen-card:hover .cursussen-card-afbeelding img {
    transform: scale(1.05);
}

/* --- Card inhoud --- */
.cursussen-card-inhoud {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* --- Labels (BBS / ADR) --- */
.cursussen-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.cursussen-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cursussen-label:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Kleur per categorie — pas aan naar wens */
.cursussen-label-bbs {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.cursussen-label-adr {
    background-color: #fff3e0;
    color: #e65100;
}

/* Fallback voor andere categorieën */
.cursussen-label {
    background-color: #f0f0f0;
    color: #555 !important;
}

.cursussen-label-bbs {
    background-color: #e8f5e9;
    color: #2e7d32 !important;
}

.cursussen-label-adr {
    background-color: #fff3e0;
    color: #e65100 !important;
}

/* --- Titel --- */
.cursussen-card-titel {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.cursussen-card-titel a {
    color: #333 !important;
    text-decoration: none;
}

.cursussen-card-titel a:hover {
    color: #a01d25 !important;
}

/* --- Excerpt --- */
.cursussen-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 15px;
}

.cursussen-card-excerpt p {
    margin: 0;
}

/* --- Meta velden (duur, prijs, locatie) --- */
.cursussen-card-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    border-top: 1px solid #eee;
    padding-top: 12px;
    font-size: 13px;
}

.cursussen-meta-item {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
    color: #555;
}

.cursussen-meta-label {
    font-weight: 600;
    white-space: nowrap;
}

/* --- Button --- */
.cursussen-card-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #a01d25 !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.cursussen-card-button:hover {
    background-color: #8a1820 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* --- Geen resultaten --- */
.cursussen-geen-resultaten {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 16px;
}

/* --- Paginering --- */
.nav-links {
    text-align: center;
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 960px) {
    .cursussen-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobiel */
@media (max-width: 600px) {
    .cursussen-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cursussen-archive-title {
        font-size: 26px;
    }

    .cursussen-filterbar {
        gap: 8px;
    }

    .cursussen-filter-link {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* --- Verberg "Archieven" header-bar op cursussenpagina's --- */
.post-type-archive-cursussen .post-title-wrapper,
.tax-cursuscategorie .post-title-wrapper {
    display: none !important;
}

/* ============================================
   SPACIOUS PRO — Primaire kleur overschrijven
   !important nodig om inline Customizer CSS
   te overrulen
   ============================================ */

/* Links — alleen content links, NIET menu of buttons */
.entry-content a,
.entry-title a:hover,
.entry-meta a:hover,
.widget a:hover,
#content a:hover,
.type-post a:hover,
.type-page a:hover {
    color: #a01d25 !important;
}

/* Read more — twee varianten */

/* Variant 1: .more-link-wrap > a.more-link — tekstlink, geen button */
.more-link-wrap a.more-link,
.more-link-wrap a.more-link:hover {
    background-color: transparent !important;
    color: #a01d25 !important;
}

.more-link-wrap a.more-link:hover {
    color: #8a1820 !important;
}

/* Variant 2: span.read-more-link is de button-wrapper, a.read-more de link erin */
span.read-more-link,
.read-more-link {
    background-color: #a01d25 !important;
    border-color: #a01d25 !important;
}

span.read-more-link:hover,
.read-more-link:hover {
    background-color: #8a1820 !important;
    border-color: #8a1820 !important;
}

.read-more-link a.read-more,
.read-more-link a.read-more:hover,
a.read-more,
a.read-more:hover {
    color: #fff !important;
    background-color: transparent !important;
}

/* Buttons — achtergrond rood, tekst wit */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.btn,
.btn a,
.previous a:hover,
.next a:hover,
#featured-slider .slider-read-more-button,
.call-to-action-button,
.scrollup,
.entry-content .btn,
.entry-content .btn a,
article .btn,
article .btn a {
    background-color: #a01d25 !important;
    border-color: #a01d25 !important;
    color: #fff !important;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.btn:hover,
.btn:hover a,
#featured-slider .slider-read-more-button:hover,
.call-to-action-button:hover,
.scrollup:hover {
    background-color: #8a1820 !important;
    border-color: #8a1820 !important;
    color: #fff !important;
}

/* Navigatie — standaard kleur behouden, alleen hover rood */
.main-navigation a {
    color: inherit !important;
}

/* Slider progress/pager blokjes */
#controllers a.active,
#controllers a:hover {
    background-color: #a01d25 !important;
}

.main-navigation a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current_page_item a,
.main-navigation ul li:hover > a {
    color: #a01d25 !important;
}

/* Call to Action widget — alleen de linker accentstreep */
.widget_call_to_action .call-to-action-content-wrapper {
    border-left-color: #a01d25 !important;
}

/* TG widgets */
.tg-service-widget .service-title-wrap a:hover {
    color: #a01d25 !important;
}

/* Paginering */
.pagination span.current,
.pagination a:hover {
    background-color: #a01d25 !important;
    border-color: #a01d25 !important;
    color: #fff !important;
}

/* Footer */
.footer-widgets-wrapper a:hover,
.footer-socket-wrapper a:hover {
    color: #a01d25 !important;
}

/* Breadcrumbs */
.breadcrumb a:hover {
    color: #a01d25 !important;
}

/* WooCommerce (indien actief) */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .product .onsale {
    background-color: #a01d25 !important;
    color: #fff !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #8a1820 !important;
    color: #fff !important;
}
