/* ===== HERO SECTION ===== */
.articles-hero {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* ===== ARTICLES SECTION ===== */
.articles-section {
    padding: 60px 0;
    background-color: #fafafa;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* ===== ARTICLE CARD ===== */
.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* Article Image */
.article-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #e9ecef;
}

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

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

.article-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.article-card:hover .article-overlay {
    background: rgba(0, 0, 0, 0.1);
}

/* Article Content */
.article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-link:hover .article-title {
    color: #007bff;
}

.article-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #999;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Read More Link */
.read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.read-more:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

/* ===== NO ARTICLES ===== */
.no-articles {
    text-align: center;
    padding: 80px 20px;
}

.no-articles h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 12px;
}

.no-articles p {
    font-size: 16px;
    color: #666;
}

/* ===== PAGINATION ===== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    gap: 5px;
}

.pagination .page-link {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #f0f0f0;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .articles-hero {
        height: 220px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: 1px;
    }

    .articles-section {
        padding: 40px 0;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

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

    .article-content {
        padding: 18px;
    }

    .article-title {
        font-size: 18px;
    }

    .article-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .articles-hero {
        height: 180px;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: 0.5px;
    }

    .articles-section {
        padding: 30px 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .article-content {
        padding: 16px;
    }

    .article-title {
        font-size: 16px;
    }

    .article-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .article-meta {
        font-size: 12px;
    }
}