.jb-blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 20px;
}

.jb-blog-grid .blog-card:first-child {
    grid-row: span 2;
}

.jb-blog-grid .blog-card:nth-child(4) {
    grid-column: span 2;
}

.blog-card {
    text-decoration: none;
    display: block;
    height: 100%;
    min-height: 250px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.blog-container {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-container {
    transform: scale(1.02);
}

.blog-categoria {
    background: rgba(255, 255, 255, 0.9);
    color: #0066cc;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    align-self: flex-start;
}

.blog-content {
    color: #fff;
}

.blog-title {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 600;
    color: #ffffff !important;
}

.jb-blog-grid .blog-card:first-child .blog-title {
    font-size: 1.8rem;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-fecha {
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.9;
}

.blog-arrow {
    background: #006ebc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.blog-arrow svg {
    width: 20px;
}


@media (max-width: 1024px) {
    .jb-blog-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .jb-blog-grid .blog-card:first-child,
    .jb-blog-grid .blog-card:nth-child(4) {
        grid-row: auto;
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .jb-blog-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 15px;
    }

    .jb-blog-grid .blog-card {
        grid-column: span 1 !important;
        grid-row: auto !important;
        height: 259px; 
    }

    .jb-blog-grid .blog-title {
		font-size: 22px !important;
		line-height: 28px;
		margin: 0;
	}
}