/* ========================================
   Featured Category Shortcode
   [bongdako_featured_category]
   ======================================== */

.dbk-featcat {
    background: #052d22;
    padding: 20px;
    color: #fff;
}

/* ---------- Header ---------- */
.dbk-featcat__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.dbk-featcat__icon {
    line-height: 1;
    flex-shrink: 0;
}

.dbk-featcat__icon img {
    display: block;
}

.dbk-featcat__heading {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.02em;
}

.dbk-featcat__heading a {
    color: inherit;
    text-decoration: none;
}

.dbk-featcat__heading a:hover {
    color: #f5891f;
}

/* ---------- Grid: left featured + right list ---------- */
.dbk-featcat__grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 20px;
    align-items: start;
}

/* ---------- Left: featured post ---------- */
.dbk-featcat__left {
    min-width: 0;
}

.dbk-featcat__featured {
    display: block;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s ease;
}

.dbk-featcat__featured:hover {
    opacity: 0.85;
}

.dbk-featcat__featured-img {
    width: 100%;
    aspect-ratio: 670 / 377;
    object-fit: cover;
    display: block;
}

.dbk-featcat__featured-body {
    padding: 12px 0 0;
}

.dbk-featcat__featured-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dbk-featcat__featured-date {
    font-size: 12px;
    color: #a0b5ac;
    margin-bottom: 8px;
}

.dbk-featcat__featured-excerpt {
    font-size: 13px;
    color: #c3d0cb;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Right: numbered scrollable list ---------- */
.dbk-featcat__right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 470px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

/* Custom scrollbar */
.dbk-featcat__right::-webkit-scrollbar {
    width: 4px;
}

.dbk-featcat__right::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.dbk-featcat__right::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.dbk-featcat__right::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ---------- Right item ---------- */
.dbk-featcat__item {
    display: grid;
    grid-template-columns: 32px 183px 1fr;
    gap: 10px;
    align-items: start;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s ease;
}

.dbk-featcat__item:hover {
    opacity: 0.8;
}

/* Number badge */
.dbk-featcat__item-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #c3d0cb;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Thumbnail */
.dbk-featcat__item-img {
    width: 183px;
    height: 103px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.dbk-featcat__item-body {
    min-width: 0;
    padding-top: 2px;
}

.dbk-featcat__item-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dbk-featcat__item-date {
    font-size: 11px;
    color: #a0b5ac;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .dbk-featcat__grid {
        grid-template-columns: 1fr;
    }

    .dbk-featcat__right {
        max-height: 400px;
    }

    .dbk-featcat__item {
        grid-template-columns: 28px 120px 1fr;
    }

    .dbk-featcat__item-img {
        width: 120px;
        height: 68px;
    }
}
