.cws-suite-posts {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cws-suite-single-post-content {
    background: #fff;
    border-radius: 8px;
    flex-direction: column;
    height: 100%;
}

.cws-suite-post-featured-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.cws-suite-post-featured-image img {
    transition: 500ms;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cws-suite-post-content {
    flex-direction: column;
    gap: 8px;
}

.cws-suite-metadata {
    width: 100%;
    border-top: 1px solid #e5e7eb;
    padding: 8px 16px;
    justify-content: space-between;
}

.cws-suite-post-category-list {
    flex-wrap: wrap;
    position: absolute;
    gap: 8px;
    top: 0px;
    left: 0px;
    z-index: 2;
}

.cws-suite-single-category {
    background: #222;
    color: #fff;
    font-size: 14px;
    padding: 8px 16px;
    line-height: 14px;
}

.cws-suite-single-post-wrap{
    background: #fff;
    box-shadow: 0px 0px 10px 5px #f5f5f5;
    border-radius: 8px;
    transition: 500ms;
    overflow: hidden;
}

.cws-suite-single-post-wrap:hover{
    box-shadow: 0px 0px 10px 5px #e9e9e9;
}

/* Custom — the card markup comes from a theme template. The wrapper stays (it
   is the grid item, and the skeleton height is measured from it) but every
   piece of plugin chrome goes: the whole point of the mode is that the theme
   owns how the card looks. Specificity, not !important — (0,2,0) and (0,2,1)
   beat the two rules above. overflow:visible matters: the inherited
   overflow:hidden would silently clip any badge or shadow that leaves the box. */
.cws-suite-single-post-wrap.is-custom,
.cws-suite-single-post-wrap.is-custom:hover {
    background: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    transition: none;
}

.cws-suite-post-title a{
    transition: 500ms;
    color: #222;
}

.cws-suite-post-title h2:hover{
    color: #444 !important;
}

.cws-suite-post-title h2{
    font-size: 24px;
    line-height: 32px;
    margin: 0;
}

.cws-suite-post-title{
    padding: 12px 16px;   
}

.cws-suite-post-category-inline-list{
    padding: 12px 16px 0px 16px;
}

.cws-suite-post-title h2{
    font-size: 24px;
    line-height: 32px;
}

.cws-suite-post-excerpt{
    padding: 0px 16px;
    font-size: 14px;
    line-height: 22px;
}

.cws-suite-post-actions{
    padding: 12px 16px;
}

.cws-suite-post-content{
    height: 100%;
    flex: 1;
    justify-content: space-between;
}

.cws-suite-metadata > span{
    font-size: 12px;
    line-height: 12px;
    color: #777777;
    gap: 6px;
    align-items: center;
}

.cws-suite-metadata .icon{
    width: 14px;
    height: 14px;
}

.cws-suite-metadata .date-published .icon path{
    stroke:#777777;
}

.cws-suite-single-category-filter{
    display: block;
}

.cws-suite-single-category-filter,
.read-more-button{
    cursor: pointer;
    transition: 500ms;
    padding: 8px 16px;
    background: var(--cws-suite-neutral);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    width: max-content;
}

.read-more-button .icon{
    width: 24px;
    height: 24px;
    transition: 500ms;
}

.read-more-button .icon path{
    stroke: #fff;
}

.cws-suite-single-category-filter.active{
    background:var(--cws-suite-neutral-active)
}

.cws-suite-single-category-filter,
.read-more-button:hover{
    background: var(--cws-suite-neutral-hover);
    color: #fff;
}

.read-more-button:hover .icon{
    transform: translateX(8px);
}

.cws-suite-img-link{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cws-suite-single-post-content:hover .cws-suite-post-featured-image img{
    filter: brightness(1.08);
    transform: scale(1.02);
}

.cws-suite-posts-filter-wrap{
    gap: 12px;
    margin-bottom: 6px;
    padding-bottom: 6px;
}

.cws-suite-pagination{
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.cws-suite-pagination .single-page{
    cursor: pointer;
    background: var(--cws-suite-neutral);
    font-size: 16px;
    line-height: 32px;
    width: 32px;
    height: 32px;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    color: #fff;
    transition: 500ms;
}

.cws-suite-pagination .single-page.active{
    background: var(--cws-suite-neutral-active);
}

.cws-suite-pagination .single-page:hover{
    background: var(--cws-suite-neutral-hover);
}

.cws-suite-pagination .single-page .icon svg{
    width: 21px;
}

.cws-suite-pagination .single-page .icon svg path{
    stroke:#fff;
}

.cws-suite-pagination .single-page.prev .icon svg{
    transform: rotate(180deg);
}

.cws-suite-single-post-wrap.modern .cws-suite-metadata .basic-data{
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.cws-suite-single-post-wrap.modern .cws-suite-metadata .author-image img{
    width: 48px;
    height: 48px;
    border-radius: 100%;
}

.cws-suite-single-post-wrap.modern .cws-suite-metadata .basic-data .single-metadata{
    flex-direction: column;
}

.cws-suite-single-post-wrap.modern .cws-suite-metadata .basic-data .author-name{
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
}

.cws-suite-single-post-wrap.modern .cws-suite-metadata .basic-data .date-published{
    font-size: 12px;
    line-height: 18px;
}

.cws-suite-post-category-inline-list .single-inline-category{
    font-weight: 500;
    font-size: 16px;
    color: var(--e-global-color-primary);
}

.cws-suite-single-post-wrap.modern .cws-suite-metadata .basic-data .reading-time{
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
}

@media (max-width:768px){
    .cws-suite-posts{
        grid-template-columns: repeat(2, 1fr);
    }

    .cws-suite-posts-filter-wrap{
        overflow-x: auto;
    }

    .cws-suite-single-category-filter{
        width: max-content;
        white-space: nowrap;
    }
}

@media (max-width:480px){
    .cws-suite-posts{
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ============================================================
 * Specificity armour — Elementor kit link styling
 * ============================================================
 *
 * Alongside its button rule the kit ships `.elementor-kit-N a { color: … }` —
 * one class plus one element, specificity (0,1,1). `.read-more-button` is an
 * <a>, not a button (templates/single-post.php:5), so at (0,1,0) it loses its
 * white label and the pill renders with the site's link colour on a dark
 * background.
 *
 * `.cws-suite-post-title a` was worse in a quieter way: at (0,1,1) it TIED with
 * the kit, so which won came down to stylesheet order. A tie is luck, not a
 * defence — the extra step makes it deterministic.
 *
 * Only `color` is re-asserted: the kit's <a> rule sets nothing else, so the
 * read-more background is not at risk and does not belong here.
 */

.cws-suite-single-post-wrap .read-more-button {
    color: #fff;
}

.cws-suite-single-post-wrap .read-more-button:hover {
    color: #fff;
}

.cws-suite-single-post-wrap .cws-suite-post-title a {
    color: #222;
}