/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.aaa-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.aaa-btn {
    background: #fff;
    border: 2px solid #001952;
    color: #001952;
    padding: 3px 10px;
    font-weight: bold;
    cursor: pointer;
    font-family: sans-serif;
    transition: 0.2s;
}

.aaa-btn.active {
    background-color: rgb(0, 25, 82);
    color: rgb(255, 255, 255);
}

/* PZC Teaser Element */
.pzc-teaser {
    display: block;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s;
    height: 100%;
    min-height: 350px;
    /* Minimum height as requested */
    box-sizing: border-box;
    /* Ensure padding doesn't break layout */
    /* Margins moved to mobile only */
}

@media (max-width: 767px) {
    .pzc-teaser {
        margin-top: 15px !important;
        margin-bottom: 20px !important;
    }
}




/* Image Style */
/* Image Style */
/* Image Style */
.pzc-teaser--image {
    background-color: #78B4B4;
    /* Match border color to hide sub-pixel gaps */
    display: flex;
    flex-direction: column;
    position: relative;
    /* Context for absolute title and pseudo-border */
}

.pzc-teaser--image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #78B4B4;
    border-radius: 15px;
    pointer-events: none;
    z-index: 20;
    /* Sit on top of everything to mask gaps */
    box-sizing: border-box;
}

.pzc-teaser__image {
    width: 100%;
    height: 100%;
    flex-grow: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pzc-teaser__title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: #78B4B4;
    /* Fully opaque to match everything */
    color: #fff;
    font-weight: bold;
    font-size: 1.9rem;
    /* Increased to 1.9rem */
    font-family: sans-serif;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 10;
}

.pzc-teaser__title--left {
    justify-content: flex-start;
}

.pzc-teaser__title--center {
    justify-content: center;
}

.pzc-teaser__title--right {
    justify-content: flex-end;
}


/* Solid Style */
.pzc-teaser--solid {
    background-color: #78B4B4;
    /* Full teal background */
    color: #fff;
    padding: 30px;
    border: 3px solid #78B4B4;
    /* Ensure solid card also respects height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically if desired, or 'flex-start' */
}

.pzc-teaser--solid .pzc-teaser__content {
    font-size: 1.1rem;
    line-height: 1.6;
}

.pzc-teaser--solid h3 {
    color: #001952;
    /* PZC Blue Default */
    line-height: 1.4;
    margin: 0;
    font-family: sans-serif;
}

.pzc-teaser--align-center h3 {
    text-align: center;
}

.pzc-teaser--align-left h3 {
    text-align: left;
}

.pzc-teaser--align-right h3 {
    text-align: right;
}

/* --- Bordered Text --- */
/* --- Bordered Text --- */
/* Fix for WPBakery Equal Height: ensure wrapper stretches */
.wpb_wrapper:has(.pzc-bordered-text) {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pzc-bordered-text {
    border: 3px solid #78B4B4;
    border-radius: 15px;
    padding: 20px;
    height: 100%;
    flex-grow: 1;
    /* Grow to fill wrapper */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* --- CTA Element (Content Only) --- */
.pzc-cta-element {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    gap: 20px;
}

/* Alignment Classes */
.pzc-cta-align-center {
    justify-content: center;
    text-align: center;
}

.pzc-cta-align-left {
    justify-content: flex-start;
    text-align: left;
}

.pzc-cta-align-right {
    justify-content: flex-end;
    text-align: right;
}

/* Text Part */
.pzc-cta-title {
    margin: 0;
    color: #001952;
    font-weight: 700;
}

.pzc-cta-text {
    color: #001952;
}

.pzc-cta-text p {
    margin-bottom: 0;
    /* Remove paragraph spacing inside horizontal layout */
    display: inline-block;
    /* Try to keep inline if possible */
}

/* Button Styling */
.pzc-btn.pzc-btn-pink {
    background-color: #d1125d;
    color: white !important;
    padding: 8px 20px;
    border-radius: 24px;
    text-decoration: none !important;
    font-weight: 600;
    text-transform: none;
    display: inline-block;
    transition: background-color 0.2s;
    font-size: 13px;
}

.pzc-btn.pzc-btn-pink:hover {
    background-color: #a00d46;
    color: white !important;
}

/* --- Centered CTA Bar --- */
.pzc-cta-centered-bar {
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pzc-cta-centered-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    max-width: 1200px !important;
    width: auto !important;
    /* Don't force 100% width, let it fit content then center */
}

.pzc-cta-centered-title {
    margin: 0 !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    width: auto !important;
    display: inline-block !important;
}

.pzc-cta-centered-btn-wrapper {
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .pzc-cta-centered-inner {
        flex-direction: column !important;
        gap: 20px !important;
    }

}

/* --- PZC Nieuwsoverzicht --- */
.pzc-news-overview-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: #F7F7F7;
    border-radius: 15px;
    padding: 15px;
}

.pzc-news-item {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.pzc-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Image Section */
.pzc-news-image {
    width: 30%;
    min-width: 250px;
    max-width: 300px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.pzc-news-read-more {
    color: #D6005E;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.9em;
    margin-top: 10px;
    display: inline-block;
}

.pzc-news-read-more:hover {
    color: #a0124d;
}

/* Desktop Grid View */
@media (min-width: 992px) {
    .pzc-news-overview-container {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 30px;
        background-color: transparent;
        border-radius: 0;
        padding: 0;
    }

    .pzc-news-item {
        width: calc(50% - 15px);
        background-color: #F7F7F7;
        border-radius: 15px;
        padding: 20px;
        border-bottom: none;
        gap: 20px;
    }

    .pzc-news-image {
        width: 25%;
        min-width: 100px;
        border-radius: 8px;
        flex-shrink: 0;
    }
}

/* Mobile Adjustments (Layout change but keeping original items order) */
@media (max-width: 767px) {
    .pzc-news-item {
        flex-direction: column;
        gap: 15px;
    }

    .pzc-news-image {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

.pzc-news-img-cover {
    width: 100%;
    padding-bottom: 65%;
    /* Aspect ratio approx 3:2 */
    background-size: cover;
    background-position: center;
    background-color: #f7f7f7;
    position: relative;
    display: block;
}

.pzc-news-swiper {
    width: 100%;
    height: 100%;
}

/* Placeholder specific */
.pzc-news-placeholder {
    position: relative;
    width: 100%;
}

.pzc-news-date-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.pzc-news-date-overlay .day {
    display: block;
    font-size: 3em;
    font-weight: bold;
    line-height: 0.9;
}

.pzc-news-date-overlay .month {
    display: block;
    font-size: 1.5em;
    font-weight: 600;
}

/* Overlay background if image is placeholder */
.pzc-news-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* Content Section */
.pzc-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pzc-news-content h5 {
    margin: 0 0 10px 0;
    font-weight: 700;
    text-transform: uppercase;
    color: #212121;
    /* Dark text */
    line-height: 1.3;
    font-size: 1.1em;
    /* Adjust as needed */
    font-family: inherit;
}

.pzc-news-content h5 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.pzc-news-content h5 a:hover {
    color: #78B4B4;
    /* PZC Teal */
}

.pzc-news-excerpt {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin-bottom: 10px;
}

.pzc-news-excerpt p {
    margin-bottom: 0;
}

.pzc-news-meta-date {
    font-size: inherit;
    color: #4a4a4a;
    margin-top: auto;
}

/* Support for img tag instead of background-image */
.pzc-news-img-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* More News Button */
.pzc-news-footer {
    margin-top: 20px;
    display: flex;
}

.pzc-news-footer.text-left {
    justify-content: flex-start;
}

.pzc-news-footer.text-center {
    justify-content: center;
}

.pzc-news-footer.text-right {
    justify-content: flex-end;
}

.pzc-news-btn {
    background-color: #d1125d;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 24px;
    text-transform: none;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
    transition: background-color 0.2s;
    font-size: 13px;
}

.pzc-news-btn:hover {
    background-color: #a00d46;
}

.pzc-news-read-more {
    color: #D6005E;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.9em;
    margin-top: 10px;
}

.pzc-news-read-more:hover {
    color: #a0124d;
}

/* Pagination */
.pzc-news-pagination {
    margin-top: 30px;
    text-align: center;
}

.pzc-news-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #4a4a4a;
    border-radius: 4px;
}

.pzc-news-pagination .page-numbers.current {
    background-color: #78B4B4;
    color: #fff;
    border-color: #78B4B4;
}

.pzc-news-pagination .page-numbers:hover:not(.current) {
    background-color: #f7f7f7;
}

/* Single News Template */
.pzc-news-single-container {
    max-width: 900px;
    /* Limit width for reading */
    margin: 0 auto;
    padding: 20px 0;
}

.pzc-news-single-header {
    margin-bottom: 20px;
}

.pzc-news-single-title {
    margin-bottom: 5px;
    color: #212121;
}

.pzc-news-single-header .pzc-news-meta-date {
    color: #777;
    margin-top: 0;
}

.pzc-news-single-image {
    margin-bottom: 30px;
}

.pzc-news-single-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.pzc-news-single-content {
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.pzc-news-single-content p {
    margin-bottom: 1.5em;
}

.pzc-news-single-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* --- PZC Contact Cards --- */
/* --- Container Layout --- */
.pzc-contact-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Space between cards */
}

/* --- Card Base --- */
.pzc-location-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* --- Image Styling --- */
.pzc-loc-image img {
    border-radius: 12px;
    /* That nice rounded corner */
    object-fit: cover;
    width: 120px;
    height: 120px;
}

/* --- Typography --- */
.pzc-loc-content h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a50;
    /* Dark Blue */
}

.pzc-address,
.pzc-contact-links {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #333;
}

.pzc-contact-links a {
    color: #333;
    text-decoration: underline;
}

/* --- The Pink Button --- */
.pzc-location-card .pzc-btn {
    display: inline-block;
    background-color: #d1125d;
    /* That specific pink color */
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
    /* Pill shape */
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
    transition: background 0.3s;
}

.pzc-location-card .pzc-btn:hover {
    background-color: #a00d46;
}

/* --- SPECIFIC ADJUSTMENTS FOR RIGHT COLUMN (Compact Mode) --- */
.layout-compact .pzc-location-card {
    gap: 15px;
    margin-bottom: 20px;
}

.layout-compact .pzc-loc-image img {
    width: 60px;
    /* Smaller image for right side */
    height: 60px;
}

.layout-compact .pzc-loc-content h3 {
    font-size: 16px;
    /* Slightly smaller title */
}

/* Mobile Title Adjustments */
@media (max-width: 767px) {

    .pzc-location-card .pzc-loc-content h3,
    .pzc-contact-list h2,
    .pzc-contact-list h3 {
        margin-top: 30px;
    }
}

/* --- Search Page Override --- */
.pzc-search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.pzc-search-result-card {
    display: flex;
    flex-direction: row;
    background-color: #F7F7F7;
    /* Grey background as requested */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
}

.pzc-search-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.pzc-search-card-image {
    width: 250px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.pzc-search-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pzc-search-result-card:hover .pzc-search-card-image img {
    transform: scale(1.05);
}

.pzc-search-card-content {
    flex-grow: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.pzc-search-meta-top {
    margin-bottom: 15px;
}

.pzc-post-type-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: #001952;
    /* Reverted to PZC Blue */
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pzc-search-card-content .entry-header h2 {
    margin: 0 0 10px 0;
    /* Override theme margins */
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.pzc-search-card-content a {
    text-decoration: none;
    color: inherit;
}

.pzc-search-card-content a:hover {
    color: #D6005E;
    /* Pink hover */
}

.pzc-search-card-content .entry-summary {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Push footer down */
}

.pzc-search-card-content .entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: auto;
}

.pzc-read-more {
    color: #D6005E !important;
    /* Force Pink */
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.pzc-read-more:hover {
    text-decoration: underline !important;
}

.pzc-post-date {
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .pzc-search-result-card {
        flex-direction: column;
    }

    .pzc-search-card-image {
        width: 100%;
        height: 200px;
        /* Fixed height for mobile */
    }

}


/* --- Search Page Input Form (High Specificity) --- */
#main-content .pzc-custom-search-form {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    max-width: 100%;
    position: relative;
    border: none;
    margin-bottom: 0;
    width: 100%;
}

#main-content .pzc-search-input-wrapper {
    flex-grow: 1;
    flex-shrink: 1;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 0;
    /* Critical for flex containers */
}

/* Specific input styling */
#main-content .pzc-custom-search-form .search-field {
    width: 100% !important;
    height: 50px !important;
    padding: 0 20px !important;
    font-size: 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-right: none !important;
    border-radius: 8px 0 0 8px !important;
    outline: none;
    transition: border-color 0.3s;
    color: #333 !important;
    background-color: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    -webkit-appearance: none;
    line-height: normal !important;
    min-width: 0;
    /* Critical */
}

#main-content .pzc-custom-search-form .search-field:focus {
    border-color: #D6005E !important;
}

/* Specific button styling */
#main-content .pzc-custom-search-form .search-submit {
    background-color: #D6005E !important;
    color: #fff !important;
    border: 2px solid #D6005E !important;
    height: 50px !important;
    padding: 0 30px !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    border-radius: 0 8px 8px 0 !important;
    transition: background-color 0.3s, border-color 0.3s;
    -webkit-appearance: none;
    box-shadow: none !important;
    margin: 0 !important;
    line-height: 1 !important;
    flex-shrink: 0;
    width: auto !important;
    float: none !important;
    display: inline-block !important;
    /* Ensure it behaves */
}

#main-content .pzc-custom-search-form .search-submit:hover {
    background-color: #a0124d !important;
    border-color: #a0124d !important;
}

/* Mobile responsive */
@media (max-width: 600px) {
    #main-content .pzc-custom-search-form {
        flex-direction: column;
        gap: 15px;
    }

    #main-content .pzc-custom-search-form .search-field {
        border-right: 2px solid #e0e0e0 !important;
        border-radius: 6px !important;
    }

    #main-content .pzc-custom-search-form .search-submit {
        border-radius: 6px !important;
        width: 100% !important;
        border-left: 2px solid #D6005E !important;
    }
}