/* Container overrides voor volledige breedte */
.case-overview-wrapper {
    width: 100%;
    position: relative;
    padding: 0;
    box-sizing: border-box;
}

/* Header Section */
.case-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 0 100px 0;
    margin: 0;
}

.case-overview-section-title {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    color: #1d1d1d;
    margin: 0;
    text-transform: none;
}

.case-overview-button-wrapper {
    margin-top: 0;
}

.case-overview-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 48px 10px 20px;
    background-color: #2563EB;
    color: #FFF;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.case-overview-button::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: #fff;
    border-radius: 50px;
    transition: width 0.4s ease 0.3s, width 0.4s ease 0.4s;
    z-index: 1;
}

.case-overview-button:hover::before {
    width: 100%;
    right: 0;
}

.case-overview-button-text {
    color: #fff;
    background: linear-gradient(to right, #fff 0%, #fff 50%, #2563EB 50%, #2563EB 100%);
    background-size: 200% 100%;
    background-position: 0% 0;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 3;
}

.case-overview-button-icon-bg {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 33px;
    height: 33px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.4s ease 0.8s, right 0.4s ease 0.8s;
    z-index: 2;
}

.case-overview-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.case-overview-button-icon svg {
    width: 16px;
    height: 16px;
    color: #2563EB;
    position: relative;
    z-index: 3;
}

.case-overview-button:hover {
    text-decoration: none;
    background-color: #2563EB;
    transition: background-color 0.4s ease 0.7s;
}

.case-overview-button:hover::before {
    width: 100%;
}

.case-overview-button:hover .case-overview-button-icon-bg {
    transform: translateY(-50%) scale(1.25);
    transition: transform 0.3s ease;
}



/* Case Overview Grid */
.case-overview {
    margin: 0;
    padding: 0 0 150px 0;
    display: flex;
    gap: 60px;
    width: 100%;
    position: relative;
}

.case-overview:last-child {
    margin-bottom: 0;
}

.case-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    transition: transform 0.1s ease-out;
    will-change: transform;
    transform: translateY(0);
    min-height: 100%;
}

.case-column-center {
    transform: translateY(-20px);
    transition: transform 0.5s ease;
}

.case-column-left,
.case-column-right {
    transform: translateY(40px);
    transition: transform 0.3s ease;
}





/* Case Items - Exact same as loile-cases */
.case-item {
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.case-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.case-item:hover {
    text-decoration: none;
    color: inherit;
}

.case-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio (3/4 = 0.75) */
    overflow: hidden;
    border-radius: 16px;
}

.case-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.case-image-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-item:hover .case-image-img {
    transform: scale(1.05);
}

/* Verberg standaard cursor als custom cursor actief is */
.case-image:hover {
    cursor: none !important;
}

.case-placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
}

/* Category badges - Exact same as loile-cases */
.case-category-badges {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.case-category-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.case-category-badge--more {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

/* Case label styling - Exact same as loile-cases */
.case-label {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    z-index: 2;
}

.case-label-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.case-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.3;
    color: #FFFFFF;
    margin: 0;
    flex: 1;
}

.case-short-text {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #FFFFFF;
    text-align: right;
    white-space: nowrap;
    z-index: 3;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .case-overview-header {
        padding: 60px 0 80px 0;
    }
    
    .case-overview-section-title {
        font-size: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .case-overview-wrapper {
        padding: 0;
    }

    .case-overview-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 40px 0 30px 0;
    }
    
    /* Verberg alleen de originele knop in de header op mobiel */
    .case-overview-header .case-overview-button-wrapper {
        display: none;
    }
    
    /* Toon de mobiele knop onder de grid items */
    .case-overview-button-wrapper--mobile {
        display: flex !important;
        justify-content: center;
        align-items: center;
        margin-top: 0px; /* Minder ruimte boven de knop */
        margin-bottom: 40px; /* Meer ruimte onder de knop */
        width: 100%;
        text-align: center;
    }

    .case-overview-section-title {
        font-size: 2.5rem;
    }

    .case-overview {
        flex-direction: column;
        padding: 0 0 80px 0;
        gap: 40px;
    }

    .case-column {
        flex: 0 0 100%;
        transform: none !important;
    }

    .case-title {
        font-size: 1.6rem;
    }

    .case-short-text {
        font-size: 1.2rem;
        text-align: left;
    }
}



/* Desktop view (standaard) */
.tablet-view {
    display: none;
}

/* Verberg mobiele knop op desktop */
@media screen and (min-width: 769px) {
    .case-overview-button-wrapper--mobile {
        display: none;
    }
}

/* Tablet view */
@media screen and (max-width: 1048px) {
    .desktop-view {
        display: none;
    }
    
    .tablet-view {
        display: flex;
        gap: 60px;
    }
    
    .tablet-view .case-column {
        flex: 0 0 calc(50% - 30px);
    }
}

/* Mobile view - maar 3 items tonen */
@media screen and (max-width: 768px) {
    .tablet-view {
        flex-direction: column;
    }
    
    /* Toon alle items in 1 kolom op mobiel */
    .case-column {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
    
    /* Zorg dat alle items zichtbaar zijn */
    .case-item {
        display: block !important;
    }
    
    /* Zorg dat de case overview binnen dezelfde grid valt als hero-focus-grid-v2 */
    .case-overview-wrapper {
        margin-top: -40px; /* Overlap met de hero-focus-grid-v2 */
    }
    
    .case-overview {
        padding: 0 20px 40px 20px; /* Meer ruimte onder de knop */
    }
}
