/* ===== Article Grid ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Article Card */
.article-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

/* Icon or Image */
.article-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2b2b2b;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #ff6f61;
}

.article-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Article Body */
.article-body {
    text-align: center;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.article-title a {
    color: inherit;
    text-decoration: none;
}

.article-title a:hover {
    color: #ff6f61;
}

.article-summary {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.4;
}

/* Scroll animation */
.sketchy-appear {
    opacity: 0;
    transform: translateY(20px) rotate(0.5deg);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.sketchy-visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* Responsive */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-icon {
        width: 50px;
        height: 50px;
    }
}
