.related-posts-by-category {
    border: 1.5px solid #ffd500;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    margin: 20px 0;
}

.related-box-title {
    padding: 18px 18px 16px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
    border-bottom: 1px solid #ffd500;
    line-height: 1.2;
}

.related-posts-list {
    padding: 0;
}

.related-post-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #ececec;
}

.related-post-item:last-child {
    border-bottom: none;
}

.related-post-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    background: #ffd500;
    color: #111;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.related-post-thumb {
    width: 60px;
    min-width: 60px;
    height: 60px;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 0;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-post-content {
    flex: 1;
    min-width: 0;
}

.related-post-title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.related-post-title a {
    color: #111;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-title a:hover {
    color: #caa800;
}

.related-post-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #8a8a8a;
    line-height: 1.4;
    flex-wrap: wrap;
}

.related-post-cat {
    color: #8a8a8a;
    font-weight: 500;
}

.related-post-dot {
    color: #b0b0b0;
}

.related-post-date {
    color: #8a8a8a;
    font-weight: 600;
}

@media (max-width: 767px) {
    .related-box-title {
        font-size: 16px;
        padding: 16px;
    }

    .related-post-item {
        gap: 10px;
        padding: 12px 14px;
    }

    .related-post-thumb {
        width: 56px;
        min-width: 56px;
        height: 56px;
    }

    .related-post-title {
        font-size: 15px;
    }

    .related-post-meta {
        font-size: 13px;
    }

    .related-post-number {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}