/* =============================================
   BLACKVIDEO - Front Page Styles (Full Width Fix)
   ============================================= */

.content-block {
    margin-bottom: 55px;
}

.section-heading h3 {
    border-left: 4px solid #0abf53;
    padding-left: 14px;
    font-size: 1.45em;
    margin-bottom: 22px;
    color: #fff;
    font-weight: 600;
}

/* ====================== GRID FIX ====================== */
.content-loop.homepage-grid {
    display: grid !important;
    gap: 20px 16px;
    margin: 0 -8px !important;
    width: 100% !important;
}

/* Force full width on every post item */
.content-loop.homepage-grid .hentry,
.content-loop.homepage-grid .ht_grid_1_4,
.content-loop.homepage-grid .box-effect {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 8px;
    box-sizing: border-box;
    float: none !important;
}

/* Thumbnail full width */
.content-loop.homepage-grid .thumbnail-link,
.content-loop.homepage-grid .thumbnail-wrap,
.content-loop.homepage-grid .thumbnail-wrap img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Title styling */
.content-loop.homepage-grid .entry-title {
    font-size: 1.05em;
    line-height: 1.35;
    margin: 12px 0 6px 0;
}

/* Grid Layouts */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Responsive */
@media (max-width: 1199px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Hover Effect */
.content-loop.homepage-grid .hentry {
    transition: all 0.25s ease;
}

.content-loop.homepage-grid .hentry:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}