/* =========================
   NEWS TEXT CONTROL
========================= */

/* SECTION (горе) */

.articles-section .section-title {
    color: #0f172a;
}

.articles-section .info-helper {
    color: #1f2937;
}

/* CARDS (вътре) */

.articles-section .article-content h3 {
    color: #ffffff;
    transition: color 0.2s ease;
}

.articles-section .article-content p {
    color: #cbd5f5;
}

.articles-section .article-date {
    color: #94a3b8;
}

/* hover */

.articles-section .article-card:hover h3 {
    color: #60a5fa;
}

/* =========================
   ARTICLES (LAYOUT ONLY)
========================= */

.articles-section {
    width: calc(100% - 100px);
    margin: 40px auto 0;
}

/* GRID → винаги 4 колони */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* CARD */

.article-card {
    display: flex;
    flex-direction: column;

    text-decoration: none;
    color: inherit;

    background: var(--card-bg);
    border-radius: 16px;

    overflow: hidden;

    border: 1px solid var(--border-color);

    transition: all 0.25s ease;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.03) inset;
}

/* HOVER */

.article-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 20px 45px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.06) inset;
}

/* IMAGE */

.article-image {
    position: relative;

    width: 100%;
    height: 200px;

    background-size: cover;
    background-position: center;
    background-color: #111827;
}

/* overlay */

.article-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
}

/* CONTENT (само spacing, без цветове) */

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-content p {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* DATE */

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

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 500px) {

    .articles-section {
        width: 95%;
    }

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

    .article-image {
        height: 160px;
    }

    .article-content {
        padding: 16px;
    }
}