/* Modern Blog Page Specific Styles */
body {
    background-color: #f8fafc;
    /* Matches light grey theme of the main site */
    margin: 0;
    padding: 0;
}

/* Update header link specifically for blog page */
.header-link {
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
}

.header-link:hover {
    text-decoration: underline;
}

/* Blog Hero Section with Animated Gradient */
.blog-header {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(-45deg, #1e293b, #334155, #0f172a, #1e293b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #ffffff;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.blog-header h1 {
    font-size: 46px;
    margin: 0;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.blog-header p {
    font-size: 18px;
    margin-top: 15px;
    color: #e2e8f0;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* Blog Grid Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* Responsive Grid setup */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Individual Card Design - Default Hidden for GSAP */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    /* slightly more rounded */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(226, 232, 240, 0.8);
    opacity: 0;
    /* for gsap */
    transform: translateY(30px);
    /* for gsap */
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.blog-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid #f1f5f9;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.image-wrapper {
    overflow: hidden;
    width: 100%;
    height: 240px;
}

.blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 24px;
    flex-grow: 1;
}

.blog-read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-read-more:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Responsive adjusting */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 28px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }

    .blog-header {
        padding: 40px 20px;
    }
}