/* Blog Section Compact Spacing Fix */
.blog-section-homepage {
    padding: 0.25rem 0 0.75rem 0 !important; /* ลด padding-top ให้น้อยที่สุด */
    background: #f8f9fa !important;
    margin: 0.25rem 0 !important; /* ลด margin */
}

.blog-section-header {
    margin-bottom: 0 !important; /* ลบ margin-bottom ทั้งหมด */
    padding-bottom: 0 !important;
}

.section-title-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0 !important; /* ลบ margin-bottom ทั้งหมด */
    padding-bottom: 0 !important;
}

.section-title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin: 0 !important; /* ลบ margin ทั้งหมด */
    padding: 0 !important;
}

.blog-cards-grid-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.blog-cards-grid-5col {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    column-gap: 0.5rem !important; /* ระยะห่างระหว่างคอลัมน์ */
    row-gap: 1.8rem !important; /* ระยะห่างระหว่างแถว - เพิ่มขึ้น */
    margin: 0 !important;
    padding-top: 0 !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .blog-cards-grid-5col {
        grid-template-columns: repeat(4, 1fr) !important;
        column-gap: 0.5rem !important;
        row-gap: 1.6rem !important;
    }
}

@media (max-width: 992px) {
    .blog-cards-grid-5col {
        grid-template-columns: repeat(3, 1fr) !important;
        column-gap: 0.5rem !important;
        row-gap: 1.4rem !important;
    }
    
    .blog-section-homepage {
        padding: 0.25rem 0 0.5rem 0 !important;
    }
    
    .blog-section-header {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 768px) {
    .blog-cards-grid-5col {
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 0.5rem !important;
        row-gap: 1.3rem !important;
    }
    
    .section-title-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }
}

@media (max-width: 480px) {
    .blog-cards-grid-5col {
        grid-template-columns: 1fr !important;
        column-gap: 0.5rem !important;
        row-gap: 1.2rem !important;
    }
    
    .blog-section-homepage {
        padding: 0.25rem 0 0.5rem 0 !important;
    }
} 