/* Blog Section - Creative Minimalist White Theme */
.blog-section {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.blog-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: #f4f6f9;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.blog-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.blog-subtitle {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Minimalist Framed Card Strategy */
.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    position: relative;
    height: 240px;
    padding: 1rem 1rem 0 1rem;
    /* The creative frame effect */
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 1.5rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-meta-icon {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* removed title color change on card hover */

.blog-card-excerpt {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: auto;
}


.blog-card:hover .blog-read-more {
    color: #e13732;
    transform: translateX(5px);
    font-size: calc(0.95rem + 1.5px);
}


.blog-footer-link {
    text-align: center;
    padding-bottom: 2rem;
}

/* Minimalist Button Variant */
.view-all-blogs {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: #ffffff;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    font-size: 1rem;
}

.view-all-blogs:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 55, 50, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 4rem 0;
    }

    .blog-header h2 {
        font-size: 2.25rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-card-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .blog-header h2 {
        font-size: 2rem;
    }

    .blog-card-content {
        padding: 1.5rem;
    }

    .blog-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
}