.eko-article-filter-widget,
.eko-article-filter-widget * {
    box-sizing: border-box;
}

.eko-article-filter-widget {
    width: 100%;
}

.eko-filter-panel {
    margin-bottom: 52px;
}

.eko-filter-top {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.eko-search-wrap {
    flex: 1 1 520px;
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(42, 58, 45, 0.16);
    background: #f8f5ec;
    color: #223b2b;
}

.eko-search-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    color: rgba(42, 58, 45, 0.55);
}

.eko-search-icon svg,
.eko-article-meta svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.eko-article-search-input {
    width: 100%;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
    padding: 0 !important;
    min-height: 24px;
}

.eko-article-search-input::placeholder {
    color: rgba(42, 58, 45, 0.55);
    opacity: 1;
}

.eko-category-filters,
.eko-tags-list,
.eko-sort-wrap,
.eko-article-pagination,
.eko-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.eko-category-filters {
    gap: 8px;
    justify-content: flex-end;
}

.eko-cat-filter,
.eko-tag-filter,
.eko-page-btn,
.eko-sort-select {
    font-family: inherit;
}

.eko-cat-filter,
.eko-tag-filter,
.eko-page-btn {
    border: 1px solid rgba(42, 58, 45, 0.14);
    cursor: pointer;
    background: transparent;
    color: #263a2d;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.eko-cat-filter {
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #f8f5ec;
}

.eko-cat-filter:hover,
.eko-cat-filter.is-active,
.eko-tag-filter:hover,
.eko-tag-filter.is-active,
.eko-page-btn:hover,
.eko-page-btn.is-active {
    background: #103f26;
    border-color: #103f26;
    color: #fff;
}

.eko-tags-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 14px;
}

.eko-tags-label {
    flex: 0 0 auto;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .18em;
    color: rgba(42, 58, 45, 0.62);
    text-transform: uppercase;
}

.eko-tags-list {
    gap: 8px;
}

.eko-tag-filter {
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: #f8f5ec;
}

.eko-listing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 28px;
}

.eko-section-title {
    margin: 0;
    color: #103f26;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 600;
}

.eko-result-count {
    color: rgba(42, 58, 45, 0.48);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
}

.eko-sort-wrap {
    justify-content: flex-end;
    gap: 8px;
}

.eko-sort-select {
    min-height: 38px;
    border: 1px solid rgba(42, 58, 45, 0.16);
    background: #f8f5ec;
    color: #263a2d;
    padding: 8px 14px;
    outline: 0;
    box-shadow: none;
}

.eko-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    position: relative;
}

.eko-article-card {
    overflow: hidden;
    border: 1px solid rgba(42, 58, 45, 0.16);
    background: #f7f2e8;
    transition-property: border-color, box-shadow, transform, background-color;
    transition-duration: .25s;
    transition-timing-function: ease;
}

.eko-article-card:hover {
    border-color: #103f26;
}

.eko-article-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}

.eko-article-image-wrap {
    height: 260px;
    overflow: hidden;
    position: relative;
    background: rgba(42, 58, 45, .08);
}

.eko-article-image {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transform: scale(1);
    transition-property: transform;
    transition-duration: .25s;
    transition-timing-function: ease;
}

.eko-article-card:hover .eko-article-image {
    transform: scale(1.02);
}

.eko-article-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 63, 38, .14), rgba(16, 63, 38, .04));
}

.eko-article-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    background: #103f26;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
}

.eko-article-content {
    padding: 28px 28px 24px;
}

.eko-article-title {
    color: #233829;
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 14px;
    transition: color .25s ease;
}

.eko-article-card:hover .eko-article-title {
    color: #103f26;
}

.eko-article-excerpt {
    color: rgba(35, 56, 41, 0.72);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.eko-article-meta {
    justify-content: space-between;
    gap: 12px 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(42, 58, 45, 0.12);
    color: rgba(35, 56, 41, 0.55);
    font-size: 12px;
    text-transform: uppercase;
}

.eko-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.eko-article-meta svg {
    width: 14px;
    height: 14px;
}

.eko-pagination-wrap {
    margin-top: 34px;
}

.eko-article-pagination {
    justify-content: center;
    gap: 8px;
}

.eko-page-btn {
    padding: 10px 14px;
    min-width: 42px;
    min-height: 42px;
    background: #f8f5ec;
    color: #263a2d;
    font-size: 13px;
    font-weight: 700;
}

.eko-page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.eko-page-dots {
    padding: 0 6px;
    color: rgba(35, 56, 41, 0.55);
}

.eko-articles-empty {
    grid-column: 1 / -1;
    padding: 48px 24px;
    text-align: center;
    border: 1px solid rgba(42, 58, 45, 0.14);
    background: #f8f5ec;
}

.eko-articles-empty h3 {
    margin: 0 0 8px;
    color: #233829;
}

.eko-articles-empty p {
    margin: 0;
    color: rgba(35, 56, 41, 0.65);
}

.eko-article-filter-widget.is-loading .eko-articles-grid,
.eko-article-filter-widget.is-loading .eko-pagination-wrap {
    opacity: .45;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .eko-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eko-article-image-wrap {
        height: 230px;
    }
}

@media (max-width: 767px) {
    .eko-filter-top,
    .eko-tags-row {
        display: block;
    }

    .eko-listing-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .eko-section-title {
        font-size: 28px;
    }

    .eko-search-wrap,
    .eko-category-filters,
    .eko-tags-list,
    .eko-sort-wrap {
        width: 100%;
    }

    .eko-category-filters,
    .eko-tags-list,
    .eko-sort-wrap {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .eko-sort-select {
        flex: 1 1 auto;
    }

    .eko-articles-grid {
        grid-template-columns: 1fr;
    }

    .eko-article-image-wrap {
        height: 210px;
    }

    .eko-article-content {
        padding: 22px;
    }
}

/* v01.01.05: frontend sort dropdowns removed and listing title added */
.eko-article-filter-widget .eko-sort-wrap { display: none !important; }

/* Clear filter button - v01.01.06 */
.eko-filter-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}

.eko-filter-bottom .eko-tags-row {
    flex: 1 1 auto;
    margin-top: 0;
}

.eko-clear-filter-btn {
    display: none;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 8px 14px;
    border: 1px solid rgba(42, 58, 45, 0.18);
    background: #f8f5ec;
    color: #103f26;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.eko-clear-filter-btn.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eko-clear-filter-btn:hover {
    background: #103f26;
    border-color: #103f26;
    color: #fff;
}

@media (max-width: 767px) {
    .eko-filter-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .eko-clear-filter-btn {
        width: 100%;
        margin-left: 0;
    }
}
