﻿.blogs-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9fafc 0%, #f5f7fa 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Blog Cards */
.blogs-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    height: 100%;
    position: relative;
}

    .blogs-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    }

    .blogs-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #57b33e, #ff8c42);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .blogs-card:hover::before {
        opacity: 1;
    }

/* Image Container */
.blog-image-container {
    position: relative;
    overflow: hidden;
    height: 240px;
}

    .blog-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.7s ease;
    }

.blogs-card:hover .blog-image-container img {
    transform: scale(1.08);
}

/* Date Badge */
.date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.15);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.date-day {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #57b33e;
    line-height: 1;
    margin-bottom: 4px;
}

.date-month {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-year {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-top: 2px;
}

/* Blog Content */
.blog-content {
    padding: 28px;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

    .blog-title a {
        color: inherit;
        text-decoration: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

        .blog-title a:hover {
            color: #57b33e;
        }

.blog-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 22px;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Link */
.read-more {
    display: inline-flex;
    align-items: center;
    color: #57b33e;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

    .read-more::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 0;
        width: 0;
        height: 2px;
        background: #57b33e;
        transition: width 0.3s ease;
    }

    .read-more:hover {
        padding-left: 10px;
        color: #57b33e;
    }

        .read-more:hover::after {
            width: 100%;
        }

    .read-more i {
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .read-more:hover i {
        transform: translateX(4px);
    }

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, #57b33e, #57b33);
        border-radius: 2px;
    }

.section-subtitle {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 991px) {
    .blogs-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 40px auto 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
        padding: 0 20px;
    }

    .blog-content {
        padding: 24px;
    }
}

@media (max-width: 575px) {
    .blogs-section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .blog-image-container {
        height: 220px;
    }
}
