.trending-posts-section.bb-featured-grid--3 {
    width: 100%;
    max-width: 860px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
    clear: both;
}

.trending-posts-section.bb-featured-grid--3 .trending-posts-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
    position: relative;
}

.trending-posts-section.bb-featured-grid--3 .trending-posts-title:after {
    content: '';
    height: 3px;
    background: #e60000;
    flex-grow: 1;
    margin-left: 10px;
}

.bb-featured-grid--3 .trending-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bb-featured-grid--3 .trending-posts-featured {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: nowrap;
}

.bb-featured-grid--3 .trending-posts-featured-image {
    flex: 0 0 384px;
    max-width: 384px;
}

.bb-featured-grid--3 .trending-posts-featured-image img {
    display: block;
    width: 100%;
    height: 222px;
    object-fit: cover;
    border-radius: 5px;
}

.bb-featured-grid--3 .trending-posts-featured-content {
    flex: 1;
    min-width: 0;
}

.bb-featured-grid--3 .trending-posts-featured-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.bb-featured-grid--3 .trending-posts-featured-title a {
    color: #333;
    text-decoration: none;
}

.bb-featured-grid--3 .trending-posts-featured-title a:hover {
    color: #ff5722;
}

.bb-featured-grid--3 .trending-posts-featured-excerpt {
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.bb-featured-grid--3 .trending-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bb-featured-grid--3 .trending-posts-grid-item {
    width: 100%;
}

.bb-featured-grid--3 .trending-posts-grid-image {
    margin-bottom: 8px;
    border-radius: 5px;
    overflow: hidden;
}

.bb-featured-grid--3 .trending-posts-grid-image img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bb-featured-grid--3 .trending-posts-grid-image:hover img {
    transform: scale(1.05);
}

.bb-featured-grid--3 .trending-posts-grid-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.bb-featured-grid--3 .trending-posts-grid-title a {
    display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
    color: #333;
    text-decoration: none;
}

.bb-featured-grid--3 .trending-posts-grid-title a:hover {
    color: #ff5722;
}

.trending-posts-section.bb-featured-grid--3 .trending-posts-read-more-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.trending-posts-section.bb-featured-grid--3 .trending-posts-read-more-button {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    padding: 12px 0;
    color: #333;
    text-align: center;
    font-weight: 600;
    border: 1px solid #ff0000;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    background-color: #fff;
}

.trending-posts-section.bb-featured-grid--3 .trending-posts-read-more-button:hover {
    background-color: #ff0000;
    color: #fff;
}

@media only screen and (max-width: 1024px) and (min-width: 768px) {
    .trending-posts-section.bb-featured-grid--3 {
        max-width: 100%;
        padding: 0 20px;

    }

    .bb-featured-grid--3 .trending-posts-featured-image {
        flex: 0 0 300px;
        max-width: 300px;

    }

    .bb-featured-grid--3 .trending-posts-featured-image img {
        height: 180px;

    }

    .bb-featured-grid--3 .trending-posts-featured-title {
        font-size: 28px;

    }

    .bb-featured-grid--3 .trending-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;

    }

    .bb-featured-grid--3 .trending-posts-grid-image img {
        height: 140px;

    }
}

@media only screen and (max-width: 767px) {
    .trending-posts-section.bb-featured-grid--3 {
        margin: 10px auto;
        padding: 0 10px;

    }

    .trending-posts-section.bb-featured-grid--3 .trending-posts-title {
        font-size: 20px;
        margin-bottom: 15px;

    }

    .bb-featured-grid--3 .trending-posts-container {
        gap: 15px;

    }

    .bb-featured-grid--3 .trending-posts-featured {
        flex-direction: column;
        gap: 10px;

    }

    .bb-featured-grid--3 .trending-posts-featured-image {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;

    }

    .bb-featured-grid--3 .trending-posts-featured-image img {
        width: 100%;
        height: auto;
        max-height: 220px;
        border-radius: 7px;

    }

    .bb-featured-grid--3 .trending-posts-featured-content {
        max-width: 100%;

    }

    .bb-featured-grid--3 .trending-posts-featured-title {
        font-size: 18px;
        margin-bottom: 5px;

    }

    .bb-featured-grid--3 .trending-posts-featured-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 3;

    }

    .bb-featured-grid--3 .trending-posts-grid {
        display: block;
        grid-template-columns: none;

    }

    .bb-featured-grid--3 .trending-posts-grid-item {
        width: 100%;
        display: flex;
        align-items: flex-start;
        margin-bottom: 15px;
        gap: 10px;

    }

    .bb-featured-grid--3 .trending-posts-grid-image {
        width: 120px;
        flex: 0 0 120px;
        margin-right: 0;
        margin-bottom: 0;

    }

    .bb-featured-grid--3 .trending-posts-grid-image img {
        border-radius: 5px;
        width: 120px;
        height: 72px;

    }

    .bb-featured-grid--3 .trending-posts-grid-title {
        flex: 1;
        font-size: 14px;
        font-weight: 600;
        margin: 0;
        line-height: 1.3;

    }

    .trending-posts-section.bb-featured-grid--3 .trending-posts-read-more-button {
        padding: 10px 0;
        font-size: 14px;

    }
}

@media only screen and (max-width: 480px) {
    .trending-posts-section.bb-featured-grid--3 {
        padding: 0 5px;

    }

    .trending-posts-section.bb-featured-grid--3 .trending-posts-title {
        margin-top: 50px;
        font-size: 18px;

    }

    .bb-featured-grid--3 .trending-posts-featured-title {
        font-size: 22px;

    }

    .bb-featured-grid--3 .trending-posts-featured-excerpt {
        font-size: 12px;

    }

    .bb-featured-grid--3 .trending-posts-grid-image img {
        height: 72px;

    }

    .bb-featured-grid--3 .trending-posts-grid-title {
        font-size: 14px;

    }
}
