/* 1. Universal Button Styling */
/* This ensures top filters and row labels look identical */
label[for="all"], 
label[for="strategy"], 
label[for="design"], 
label[for="writing"],
.row-filter-btn {
    display: inline-block;
    padding: 10px 25px;
    margin: 5px;
    border: 1px solid #000;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    background: #fffaf0; /* Matches your site background */
    color: #000;
}

/* 2. Hover and Active States */
label[for]:hover,
.row-filter-btn:hover {
    background: #e0e0e0;
}

/* Active Button State - Darkens when the category is selected */
input[name="kadence-filter"]:checked + label {
    background: #000 !important;
    color: #fff !important;
}

/* 3. Filter Wrapper (Top of page only) */
.kadence-filter-wrapper {
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 30px;
}

/* Hide the actual radio input circles */
input[name="kadence-filter"] {
    display: none;
}

/* 4. Filtering Logic */
/* Hides non-matching Kadence row wrappers */
#design:checked ~ .kb-row-layout-wrap:not(.design),
#strategy:checked ~ .kb-row-layout-wrap:not(.strategy),
#writing:checked ~ .kb-row-layout-wrap:not(.writing) {
    display: none !important;
}

#all:checked ~ .kb-row-layout-wrap,
#design:checked ~ .kb-row-layout-wrap.design,
#strategy:checked ~ .kb-row-layout-wrap.strategy,
#writing:checked ~ .kb-row-layout-wrap.writing {
    display: block !important;
}

/* 5. Row Layout Animation */
.kb-row-layout-wrap {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. Setup the Cover Block properties */
div.wp-block-cover.custom-locked-cover {
    aspect-ratio: 1 / 1 !important;
    min-height: auto !important; 
    transition: transform 0.3s ease-in-out !important; 
}

/* 2. THE FIX: Tell the Cover Block to move when the Kadence Column is hovered */
.wp-block-kadence-column:hover .custom-locked-cover {
    transform: translateY(-8px) !important;
}

/* 3. Force the image to crop nicely */
div.wp-block-cover.custom-locked-cover .wp-block-cover__image-background {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}