/*
 Theme Name:   Hello Biz Child
 Theme URI:    https://noexcusesjustresults.com
 Description:  Child theme voor Hello Biz
 Author:       noexcusesjustresults
 Author URI:   https://noexcusesjustresults.com
 Template:     hello-biz
 Version:      1.0.0
 Text Domain:  hello-biz-child
*/

/* -------------------------------------------------------------------------- */
/* Hier komt jouw eigen CSS ↓                                                 */
/* -------------------------------------------------------------------------- */

/* ==========================================================================
   Case Studies Archive – 3 koloms responsive grid + Hero
   ========================================================================== */

/* Hero block – forceer zichtbaarheid */
.case-studies-hero {
    position: relative !important;
    width: 100vw !important;                  /* full viewport width */
    margin-left: calc(-50vw + 50%) !important; /* centreer als site wrapper heeft */
    margin-right: calc(-50vw + 50%) !important;
    left: 50% !important;
    right: 50% !important;
    transform: translateX(-50%) !important;   /* perfecte centering*/
    height: 60vh !important;
    min-height: 450px !important;
    background: linear-gradient(135deg, #0f4fa3 0%, #1a73e8 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    color: white !important;
    margin-bottom: 3rem !important;
    padding: 0 !important;
    overflow: hidden !important;
    z-index: 1 !important;
}
/* Zorg dat hero-overlay niet beperkt wordt */
.case-studies-hero .hero-overlay {
    width: 100% !important;
    max-width: 1400px !important;             /* iets breder voor tekst */
    padding: 2rem 1rem !important;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
}

.hero-title {
    font-size: 3.8rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    text-shadow: 0 3px 12px rgba(0,0,0,0.5) !important;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem !important;
    }
    .case-studies-hero {
        height: 50vh !important;
        min-height: 350px !important;
    }
}

/* Grid container – forceer 3 kolommen */
.case-studies-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2.5rem 2rem !important;
    margin: 0 auto !important;
    padding: 0 1rem 4rem !important;
    max-width: 1200px !important;
}

@media (max-width: 992px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .case-studies-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem 1.5rem !important;
    }
}

/* Case study card */
.case-study-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    height: 220px;
    overflow: hidden;
}

.card-image img.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-study-card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 1.8rem 1.6rem;
}

.card-title {
    font-size: 1.45rem;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.card-title a {
    color: #111;
    text-decoration: none;
}

.card-title a:hover {
    color: #0a58ca;
}

.card-excerpt {
    font-size: 1rem;
    color: #555;
    line-height: 1.55;
    margin-bottom: 1.2rem;
}

/* .read-more uitgecommentarieerd in je PHP, dus even weggehaald hier */

/* Pagination */
.posts-pagination {  /* pas class aan als je the_posts_pagination() een andere class geeft */
    margin: 3rem 0;
    text-align: center;
}

.posts-pagination .page-numbers {
    padding: 0.6rem 1.1rem;
    margin: 0 0.3rem;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.posts-pagination .page-numbers.current,
.posts-pagination .page-numbers:hover {
    background: #0a58ca;
    color: white;
}

/* ==========================================================================
   Single Case Study – Detailpagina stijl
   ========================================================================== */

/* Hero / Banner */
.case-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    margin-bottom: 4rem;
    overflow: hidden;
}

.hero-featured-image {
    position: absolute;
    inset: 0;
}

.hero-featured-image img {
    border-radius: 50px 0px 50px 50px;  /* jouw custom radius */
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
   /* background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);*/
}

.hero-content {
    max-width: 900px;
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.15;
    text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .case-hero {
        min-height: 400px;
        height: 60vh;
    }
}

/* Hoofd content */
.case-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.entry-content h2,
.entry-content h3 {
    color: #0a58ca;
    margin: 2.5rem 0 1.2rem;
}

.entry-content h2 {
    font-size: 2.4rem;
}

.entry-content h3 {
    font-size: 1.8rem;
}

.entry-content p {
    margin-bottom: 1.6rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Meta / footer */
.entry-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.back-to-archive {
    margin-top: 2rem;
}

.back-link {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background: #0a58ca;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.25s ease;
}

.back-link:hover {
    background: #0848a8;
}

blockquote {
    border-left: 5px solid #0a58ca;
    padding-left: 1.5rem;
    font-style: italic;
    color: #444;
    margin: 2.5rem 0;
}

/* ==========================================================================
   Case Study Popup Modal – Mooie, gecentreerde styling
   ========================================================================== */

.case-modal {
display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-dialog {
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;                        /* iets breder voor betere look */
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    position: relative;
    border: 1px solid rgba(10, 88, 202, 0.15);
    animation: modalFadeIn 0.4s ease-out forwards;
    margin:0 auto;
    top:30px;
    bottom:30px;
}
.modal-body .featured-image-in-modal {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
   /* margin: -20px -20px 1.5rem -20px;        /* trek door tot rand */
   margin:0px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
/* Extra: body heeft overflow-hidden class als modal open */
body.modal-no-scroll {
    overflow: hidden !important;
    padding-right: 0px !important;           /* voorkom layout shift door scrollbar */
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: sticky;
    display:inline;
    top: 18px;
    right: 24px;
    font-size: 38px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.25s ease, transform 0.2s ease;
    background:none !important;
    box-shadow:none !important;
}

.close-modal:hover,
.close-modal:focus {
    color: #0a58ca;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2.8rem 3rem;
}

.modal-body .case-hero {
    margin: -2.8rem -3rem 2.5rem;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.modal-body .case-content {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #333;
}

.modal-body h1.hero-title {
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
}

.modal-body h2, .modal-body h3 {
    color: #0a58ca;
    margin: 2.2rem 0 1rem;
}

.modal-body img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    margin: 1.8rem 0;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-dialog {
        width: 94%;
        max-width: none;
        margin: 1rem;
        border-radius: 12px;
    }
    .modal-body {
        padding: 2rem 1.8rem;
    }
    .close-modal {
        top: 14px;
        right: 18px;
        font-size: 32px;
    }
    .modal-body .case-hero {
        margin: -2rem -1.8rem 2rem;
    }
}

@media (max-width: 480px) {
    .modal-body h1.hero-title {
        font-size: 2.1rem;
    }
}