
:root {
    --articles-navy: #17375e;
    --articles-navy-dark: #102b4e;
    --articles-blue: #1f73b7;
    --articles-blue-soft: #eaf2f9;
    --articles-bg: #f4f7fb;
    --articles-white: #ffffff;
    --articles-text: #122033;
    --articles-muted: #63758a;
    --articles-line: #d8e2ec;
    --articles-shadow: 0 10px 30px rgba(23, 55, 94, .08);
}

.articles-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.articles-hero {
    padding: 64px 0 44px;
    background:
        radial-gradient(circle at top left, rgba(31,115,183,.08), transparent 34%),
        linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    text-align: center;
}

.articles-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--articles-blue-soft);
    color: var(--articles-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    margin-bottom: 16px;
}

.articles-hero h1 {
    max-width: 820px;
    margin: 0 auto 14px;
    color: var(--articles-navy);
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1px;
}

.articles-hero p {
    max-width: 820px;
    margin: 0 auto;
    color: var(--articles-muted);
    font-size: 17px;
    line-height: 1.8;
}

.articles-section {
    padding: 24px 0 70px;
    background: var(--articles-bg);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--articles-white);
    border: 1px solid var(--articles-line);
    border-radius: 16px;
    box-shadow: var(--articles-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(23, 55, 94, .13);
}

.article-image {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #e9eef4;
}

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

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

.article-number {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--articles-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(16,43,78,.22);
}

html[dir="rtl"] .article-number {
    left: auto;
    right: 12px;
}

.article-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.article-content h2 {
    margin: 0 0 11px;
    color: var(--articles-navy);
    font-size: 19px;
    line-height: 1.38;
}

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

.article-content h2 a:hover {
    color: var(--articles-blue);
}

.article-content p {
    margin: 0;
    color: var(--articles-muted);
    font-size: 14px;
    line-height: 1.75;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 17px 0;
}

.article-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 10px;
    border: 1px solid #d5e5f2;
    border-radius: 999px;
    background: var(--articles-blue-soft);
    color: var(--articles-navy);
    font-size: 12px;
    font-weight: 700;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #edf1f5;
    color: var(--articles-muted);
    font-size: 13px;
}

.article-read {
    color: var(--articles-blue);
    font-weight: 800;
    text-decoration: none;
}

.article-read:hover {
    color: var(--articles-navy);
}

.articles-cta {
    padding: 0 0 72px;
    background: var(--articles-bg);
}

.articles-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px 32px;
    border: 1px solid var(--articles-line);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(234,242,249,.96), rgba(255,255,255,.98));
    box-shadow: 0 10px 28px rgba(23,55,94,.06);
}

.articles-cta-card > div > span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--articles-blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.articles-cta-card h2 {
    margin: 0 0 8px;
    color: var(--articles-navy);
    font-size: 26px;
    line-height: 1.25;
}

.articles-cta-card p {
    max-width: 720px;
    margin: 0;
    color: var(--articles-muted);
    line-height: 1.7;
}

.articles-cta-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 9px;
    background: var(--articles-navy);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.articles-cta-button:hover {
    background: var(--articles-navy-dark);
    transform: translateY(-1px);
}

html[dir="rtl"] .articles-hero,
html[dir="rtl"] .article-content,
html[dir="rtl"] .articles-cta-card {
    direction: rtl;
}

html[dir="rtl"] .article-footer {
    flex-direction: row-reverse;
}

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

    .articles-cta-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .articles-container {
        width: min(100% - 24px, 1180px);
    }

    .articles-hero {
        padding: 42px 0 30px;
    }

    .articles-hero h1 {
        font-size: 36px;
    }

    .articles-hero p {
        font-size: 15px;
        line-height: 1.7;
    }

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

    .article-content {
        padding: 17px;
    }

    .article-content h2 {
        font-size: 18px;
    }

    .articles-cta-card {
        padding: 24px 20px;
    }

    .articles-cta-button {
        width: 100%;
    }
}
