/* artikkelit.css - Artikkelien tyylit */

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid rgba(145, 131, 109, 0.35);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: 0.3s ease;
}

/* Desktop: Vaakasuuntaiset artikkelit */
@media (min-width: 768px) {
    .article-card {
        flex-direction: row;
        align-items: stretch; /* Venyttää koko kortin korkeuden mukaan */
    }

    .article-card img {
        width: 300px;
        height: 200px; /* Lukitaan korkeus */
        object-fit: contain; /* NÄYTTÄÄ KOKO KUVAN */
        background-color: #1a1a1a; /* Taustaväri jos kuva ei täytä aluetta */
        flex-shrink: 0;
    }
    
    .article-content {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Teksti pystysuunnassa keskelle */
        flex: 1; /* Ottaa loput tilasta */
    }
}

.article-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #91836d;
}

.article-card p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.5;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}