/* Text & Image Feature Block Styles */
.wp-block-cakeclub-text-image-feature {
    width: 100%;
    position: relative;
}

.text-image-feature-section {
    position: relative;
    background-color: #f5f4eb;
    /* Extra bottom padding leaves room for the divider graphic overlap */
    padding: 80px 40px 60px;
}

.text-image-feature-columns {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image on the left variation */
.text-image-feature-image-left .text-image-feature-columns {
    flex-direction: row-reverse;
}

.text-image-feature-text-col {
    flex: 1 1 55%;
    min-width: 0;
}

.text-image-feature-image-col {
    flex: 1 1 45%;
    min-width: 0;
}

.text-image-feature-heading {
    font-family: var(--font-heading, 'Mindset', sans-serif);
    font-weight: normal;
    font-size: 2.8rem;
    line-height: 1.05;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 30px 0;
}

.text-image-feature-body p {
    font-family: var(--font-body, 'PTMonoWebRegular', monospace);
    line-height: 1.7;
    margin: 0 0 22px 0;
}

.text-image-feature-body p:last-child {
    margin-bottom: 0;
}

/* Image + badge */
.text-image-feature-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.text-image-feature-image {
    display: block;
    width: 100%;
    height: auto;
}

.text-image-feature-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: rgba(57, 74, 120, 0.12);
}

.text-image-feature-badge {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 150px;
    height: auto;
    z-index: 2;
}

/* Divider graphic straddling the bottom edge */
.text-image-feature-divider {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: 135px;
    height: auto;
    z-index: 3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .text-image-feature-section {
        padding: 50px 20px 50px;
    }

    .text-image-feature-columns {
        flex-direction: column;
        gap: 40px;
    }

    .text-image-feature-image-left .text-image-feature-columns {
        flex-direction: column;
    }

    .text-image-feature-heading {
        margin-bottom: 20px;
    }

    .text-image-feature-image-col {
        width: 100%;
    }

    .text-image-feature-badge {
        right: -10px;
        bottom: -20px;
    }
}
