.stirfr-feed,
.stirfr-wrapper {
    --stirfr-card-bg: #ffffff;
    --stirfr-text-color: #111111;
    --stirfr-readmore-color: #0073aa;
}

.stirfr-wrapper,
.stirfr-feed {
    width: 100%;
    box-sizing: border-box;
    padding: 0 12px;
    gap: 20px;
}

.stirfr-wrapper:not(.stirfr-grid),
.stirfr-feed:not(.stirfr-grid) {
    display: flex;
    flex-direction: column;
}

.stirfr-wrapper.stirfr-grid,
.stirfr-feed.stirfr-grid {
    display: grid;
    grid-template-columns: repeat(var(--stirfr-cols, 2), minmax(0, 1fr));
    gap: 24px;
}

.stirfr-item,
.stirfr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    border-radius: 12px;
    background: var(--stirfr-card-bg);
    color: var(--stirfr-text-color);
    border: 1px solid rgb(0 0 0 / 0.08);
    box-shadow:
        0 1px 0 rgb(0 0 0 / 0.06),
        inset 0 0 0 1px rgb(0 0 0 / 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.stirfr-item:hover,
.stirfr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgb(0 0 0 / 0.18);
}

.stirfr-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
}

.stirfr-content,
.stirfr-thumb,
.stirfr-title,
.stirfr-category,
.stirfr-excerpt,
.stirfr-powered {
    position: relative;
    z-index: 2;
}

.stirfr-title,
.stirfr-title a {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.15;
    margin: 0 0 10px;
    color: var(--stirfr-text-color);
    text-decoration: none;
}

.stirfr-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 6px;
}

.stirfr-meta {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 6px;
}

.stirfr-thumb {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.stirfr-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    pointer-events: none;
}

.stirfr-excerpt {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--stirfr-text-color);
    opacity: 0.9;
}

.stirfr-excerpt > *:not(.stirfr-read-more) {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stirfr-read-more {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
    color: var(--stirfr-readmore-color);
    text-decoration: underline;
}

.stirfr-excerpt a,
.stirfr-read-more {
    color: var(--stirfr-readmore-color);
}

.stirfr-powered {
    margin-top: auto;
    font-size: 0.8rem;
    opacity: 0.65;
}

.stirfr-powered a {
    color: var(--stirfr-text-color);
    text-decoration: none;
}

.stirfr-powered a:hover {
    text-decoration: underline;
}

/* Columns */
.stirfr-cols-1 { --stirfr-cols: 1; }
.stirfr-cols-2 { --stirfr-cols: 2; }
.stirfr-cols-3 { --stirfr-cols: 3; }
.stirfr-cols-4 { --stirfr-cols: 4; }
.stirfr-cols-5 { --stirfr-cols: 5; }
.stirfr-cols-6 { --stirfr-cols: 6; }

.stirfr-feed.notice {
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .stirfr-wrapper.stirfr-grid,
    .stirfr-feed.stirfr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .stirfr-wrapper.stirfr-grid,
    .stirfr-feed.stirfr-grid {
        grid-template-columns: 1fr;
    }

    .stirfr-title {
        font-size: 1.25rem;
    }

    .stirfr-thumb img {
        height: 200px;
    }
}