/* ============================================
   Three Cards Section Styles
   ============================================ */

/* Section Container */
.section-three-cards {
    position: relative;
    /* Background color now handled via ACF and utility classes */
}

/* Section Header */
.section-three-cards .section-header {
    margin-bottom: 60px;
    text-align: center;
}

/* Section Title */
.section-three-cards .section-title {
    font-family: 'Impact', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2197265625;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.section-three-cards .section-title .title-line-1 {
    color: var(--paperwise-dark-green);
    display: block;
}

.section-three-cards .section-title .title-line-2 {
    color: var(--paperwise-accent);
    display: block;
}

/* Section Description */
.section-three-cards .section-description {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: var(--paperwise-dark-green);
    margin: 20px auto 0;
    max-width: 51%;
    text-align: center;
}

/* Bootstrap Row Adjustments - Meer ruimte tussen cards */
.section-three-cards .row {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 3rem;
}

/* Card Item */
.section-three-cards .card-item {
    height: 480px;
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
}

.section-three-cards .card-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.section-three-cards .card-image {
    height: 199.56px;
    width: 100%;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    flex-shrink: 0;
}

.section-three-cards .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Image Placeholder */
.section-three-cards .card-image-placeholder {
    background-color: var(--paperwise-accent-light, #d4e3b8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-three-cards .card-image-placeholder .placeholder-content {
    text-align: center;
}

/* Card Content */
.section-three-cards .card-content {
    flex: 1;
    background-color: var(--paperwise-teal);
    border-radius: 0 0 20px 20px;
    padding: 28px 30px 30px;
    display: flex;
    flex-direction: column;
}

/* Card Title */
.section-three-cards .card-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: var(--paperwise-off-white);
    margin: 0 0 18px;
}

/* Card Description */
.section-three-cards .card-description {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5714285714;
    letter-spacing: 0.0286em;
    color: var(--paperwise-off-white);
    margin: 0;
    flex: 1;
}

/* Card CTA */
.section-three-cards .card-cta {
    margin-top: 24px;
}

@media (min-width: 1430px) {
    .section-three-cards .g-4 {
    	width: 90%;
		justify-self: center;
	}
}
/* Responsive Adjustments */
@media (max-width: 991px) {
    .section-three-cards .row {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }

    .section-three-cards .section-header {
        margin-bottom: 48px;
    }

    .section-three-cards .section-title {
        font-size: 32px;
        display: flex;
        flex-direction: column;
        align-items: baseline;
    }

    .section-three-cards .section-description {
        font-size: 15px;
        margin-top: 16px;
    }

    .section-three-cards .card-title {
        font-size: 26px;
    }
    
}

@media (max-width: 768px) {
    .section-three-cards .section-header {
        margin-bottom: 40px;
    }

    .section-three-cards .section-title {
        font-size: 28px;
        letter-spacing: 0.12em;
    }

    .section-three-cards .section-description {
        font-size: 14px;
        margin-top: 14px;
    }

    .section-three-cards .row {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.25rem;
    }

    .section-three-cards .card-item {
        height: auto;
        min-height: 400px;
    }

    .section-three-cards .card-image {
        height: 180px;
    }

    .section-three-cards .card-content {
        padding: 24px 24px 26px;
    }

    .section-three-cards .card-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .section-three-cards .card-cta {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .section-three-cards .section-header {
        margin-bottom: 32px;
    }

    .section-three-cards .section-title {
        font-size: 24px;
        letter-spacing: 0.1em;
    }

    .section-three-cards .section-description {
        font-size: 13px;
        margin-top: 12px;
    }

    .section-three-cards .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.25rem;
    }

    .section-three-cards .card-item {
        min-height: 380px;
    }

    .section-three-cards .card-image {
        height: 160px;
    }

    .section-three-cards .card-content {
        padding: 20px 20px 24px;
    }

    .section-three-cards .card-title {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .section-three-cards .card-description {
        font-size: 13px;
        line-height: 1.6;
    }

    .section-three-cards .card-cta {
        margin-top: 18px;
    }
}

/* Dark Mode Support */
[data-bs-theme="dark"] .section-three-cards {
    background-color: var(--dark-gray);
}

[data-bs-theme="dark"] .section-three-cards .section-title .title-line-1 {
    color: var(--white);
}

[data-bs-theme="dark"] .section-three-cards .section-title .title-line-2 {
    color: var(--paperwise-accent);
}

[data-bs-theme="dark"] .section-three-cards .section-description {
    color: var(--paperwise-off-white);
}

[data-bs-theme="dark"] .section-three-cards .card-content {
    background-color: var(--paperwise-dark-green);
}

[data-bs-theme="dark"] .section-three-cards .card-title {
    color: var(--paperwise-off-white);
}

[data-bs-theme="dark"] .section-three-cards .card-description {
    color: var(--paperwise-off-white);
}

[data-bs-theme="dark"] .section-three-cards .card-image-placeholder {
    background-color: var(--paperwise-dark-green-hover, #3a5a55);
}

/* Print Styles */
@media print {
    .section-three-cards .card-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .section-three-cards .card-item:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .section-three-cards .card-item {
        transition: none;
    }

    .section-three-cards .card-item:hover {
        transform: none;
    }

    /* Global button reduced motion styles are handled in global-buttons.css */
}