/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem 2rem 1.5rem;
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
}

.blog-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 2rem;
    border-bottom: 3px solid #1D4B92;
    padding-bottom: 1rem;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Article Card */
.article-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Article Image */
.article-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.article-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}

/* Article Content */
.article-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.article-card-readmore {
    font-size: 0.95rem;
    font-weight: 600;
    color: #667eea;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: all 0.3s ease;
}

.article-card:hover .article-card-readmore {
    color: #764ba2;
    gap: 0.75rem;
}

/* Tablet Layout (2 columns) */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .blog-title {
        font-size: 1.75rem;
    }

    .blog-subtitle {
        font-size: 1.1rem;
    }
}

/* Mobile Layout (1 column) */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-container {
        padding: 1.5rem 1rem;
    }

    .blog-header {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .article-card-image {
        height: 200px;
    }

    .article-card-title {
        font-size: 1.15rem;
    }

    .article-card-description {
        font-size: 0.9rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .blog-title {
        font-size: 1.5rem;
    }

    .article-card-content {
        padding: 1.25rem;
    }

    .article-card-image {
        height: 180px;
    }
}
