.Custom-Post-wrap {
    width: 100%;
    --cp-cols-desktop: 4;
    --cp-cols-tablet: 2;
    --cp-cols-phone: 1;
    --cp-gap-desktop: 16px;
    --cp-gap-tablet: 16px;
    --cp-gap-phone: 16px;
}

.Custom-Post-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.Custom-Post-section-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
}

.Custom-Post-grid {
    display: grid;
    grid-template-columns: repeat(var(--cp-cols-desktop), minmax(0, 1fr));
    gap: var(--cp-gap-desktop);
}

.Custom-Post-card {
    display: flex;
    flex-direction: column;
    min-height: 178px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.Custom-Post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.12);
}

.Custom-Post-image-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e8f0;
}

.Custom-Post-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.Custom-Post-card:hover .Custom-Post-image {
    transform: scale(1.03);
}

.Custom-Post-card-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 18px;
}

.Custom-Post-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 22px;
}

.Custom-Post-category {
    margin: 0;
    color: #0f6fec;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.Custom-Post-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.Custom-Post-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.Custom-Post-title a {
    color: #0f172a;
    text-decoration: none;
}

.Custom-Post-title a:hover {
    color: #0f6fec;
}

.Custom-Post-excerpt {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.Custom-Post-meta {
    margin-top: auto;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.Custom-Post-empty {
    padding: 16px;
    background: #ffffff;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 10px;
    color: #64748b;
}

@media (max-width: 980px) {
    .Custom-Post-grid {
        grid-template-columns: repeat(var(--cp-cols-tablet), minmax(0, 1fr));
        gap: var(--cp-gap-tablet);
    }
}

@media (max-width: 767px) {
    .Custom-Post-grid {
        grid-template-columns: repeat(var(--cp-cols-phone), minmax(0, 1fr));
        gap: var(--cp-gap-phone);
    }

    .Custom-Post-card-inner {
        padding: 16px;
    }

    .Custom-Post-section-title {
        font-size: 22px;
    }
}


.Custom-Post-card {
    position: relative;
    cursor: pointer;
}
.Custom-Post-category {
    text-decoration: none;
}
.Custom-Post-category:hover {
    color: #0b5ed7;
}
