/* ── Container ── */
.dc-bcg {
    --dc-bcg-cols: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
}

/* ── Filter Bar ── */
.dc-bcg .dc-bcg__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}
.dc-bcg .dc-bcg__filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 22px;
    border-radius: 50px;
    border: 1px solid #e2ddd8;
    background: #fff;
    color: #505059;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    white-space: nowrap;
}
.dc-bcg .dc-bcg__filter-pill:hover {
    border-color: #A78278;
    color: #A78278;
    background: rgba(167, 130, 120, 0.04);
}
.dc-bcg .dc-bcg__filter-pill.active {
    background: #A78278;
    color: #fff;
    border-color: #A78278;
}

/* ── Grid ── */
.dc-bcg .dc-bcg__grid {
    display: grid;
    grid-template-columns: repeat(var(--dc-bcg-cols), 1fr);
    gap: 28px;
}

/* ── Card ── */
.dc-bcg .dc-bcg__card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(26, 26, 46, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.dc-bcg .dc-bcg__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26, 26, 46, 0.12);
}

.dc-bcg--minimal .dc-bcg__card {
    box-shadow: none;
    border: 1px solid #f0ebe6;
}
.dc-bcg--minimal .dc-bcg__card:hover {
    box-shadow: 0 8px 32px rgba(26, 26, 46, 0.08);
    border-color: transparent;
}

/* ── Card Image ── */
.dc-bcg .dc-bcg__card-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}
.dc-bcg .dc-bcg__card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.dc-bcg .dc-bcg__card:hover .dc-bcg__card-img {
    transform: scale(1.05);
}

/* ── Category Badge ── */
.dc-bcg .dc-bcg__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #A78278;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    line-height: 1.2;
    z-index: 2;
}

/* ── Card Content ── */
.dc-bcg .dc-bcg__card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.dc-bcg .dc-bcg__date {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.dc-bcg .dc-bcg__title {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.45;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-bcg .dc-bcg__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.dc-bcg .dc-bcg__title a:hover {
    color: #A78278;
}
.dc-bcg .dc-bcg__excerpt {
    font-size: 13px;
    color: #505059;
    line-height: 1.65;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.dc-bcg .dc-bcg__readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #A78278;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: auto;
}
.dc-bcg .dc-bcg__readmore:hover {
    gap: 12px;
    color: #8c6b62;
}
.dc-bcg .dc-bcg__readmore svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.dc-bcg .dc-bcg__readmore:hover svg {
    transform: translateX(2px);
}

/* ── No Results ── */
.dc-bcg .dc-bcg__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 15px;
}

.dc-bcg .dc-bcg__card-img-placeholder {
    background: #f0ebe6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b5ab;
}

/* ── Pagination ── */
.dc-bcg .dc-bcg__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 52px;
}
.dc-bcg .dc-bcg__pagination a,
.dc-bcg .dc-bcg__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #505059;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.dc-bcg .dc-bcg__pagination a:hover {
    background: rgba(167, 130, 120, 0.08);
    color: #A78278;
    border-color: rgba(167, 130, 120, 0.2);
}
.dc-bcg .dc-bcg__pagination span.current {
    background: #A78278;
    color: #fff;
    border-color: #A78278;
}
.dc-bcg .dc-bcg__pagination .dots {
    color: #94a3b8;
    border: none;
    background: none;
}
.dc-bcg .dc-bcg__pagination .prev,
.dc-bcg .dc-bcg__pagination .next {
    font-size: 18px;
}

/* ── Animation ── */
.dc-bcg--anim .dc-bcg__card {
    opacity: 0;
    transform: translateY(30px);
}
.dc-bcg--anim .dc-bcg__card.dc-bcg--visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.dc-bcg--anim .dc-bcg__card.dc-bcg--visible:hover {
    transform: translateY(-6px);
}
.dc-bcg--anim .dc-bcg__filter-pill {
    opacity: 0;
    transform: translateY(15px);
}
.dc-bcg--anim .dc-bcg__filter-pill.dc-bcg--visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ── Hidden by filter ── */
.dc-bcg .dc-bcg__card.dc-bcg--hidden {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .dc-bcg .dc-bcg__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 600px) {
    .dc-bcg {
        padding: 48px 16px;
    }
    .dc-bcg .dc-bcg__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .dc-bcg .dc-bcg__filter {
        gap: 8px;
        margin-bottom: 32px;
    }
    .dc-bcg .dc-bcg__filter-pill {
        padding: 7px 16px;
        font-size: 12px;
    }
    .dc-bcg .dc-bcg__card-body {
        padding: 18px 18px 22px;
    }
    .dc-bcg .dc-bcg__title {
        font-size: 16px;
    }
    .dc-bcg .dc-bcg__pagination {
        margin-top: 36px;
    }
}
