.blog-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Cambia a #000 si tu fondo es negro */
    font-family: "Inter", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container-blog-section {
    width: 1054px;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.subtitle {
    font-family: "Handlee", cursive;
    color: #4a5d4e;
    font-size: 1.2rem;
    margin: 0;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-top: 5px;
}

.view-all-btn {
    padding: 12px 25px;
    border: 1px solid #4a5d4e;
    color: #4a5d4e;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 500ms ease;
}

.view-all-btn:hover {
    color: #fff;
    background-color: #4a5d4e;
}

.blog-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    margin: 25px 0px;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 330px;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image {
    position: relative;
    height: 400px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.date-badge {
    width: 52px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    position: absolute;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: "Inter", sans-serif;
    top: 30px;
    left: 30px;
    z-index: 2;
}

.date-badge .day {
    background-color: #72b043;
    color: white;
    width: 100%;
    text-align: center;
    padding: 5px 0;
    font-weight: 800;
    font-size: 0.75rem;
}

.date-badge .month {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content {
    padding: 25px;
    margin-top: -50px;
    background: white;
    margin-left: 23px;
    margin-bottom: 5px;
    border-radius: 20px 0 0 20px;
    bottom: 20px;
    position: absolute;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0px;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Cambia a 1 si solo quieres una línea */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #777;
}

.post-meta i {
    color: #72b043;
}

@media (max-width: 1280px) {
    .container-blog-section {
        width: 1052px;
    }
}

@media (max-width: 1080px) {
    .container-blog-section {
        width: 692px;
    }
}

@media (max-width: 768px) {
    .container-blog-section {
        width: 90%;
    }
    .blog-carousel {
        margin: auto;
        width: 343px !important;
    }
    .blog-header {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 27px;
        flex-wrap: wrap;
        gap: 30px;
    }
}
