﻿/* =========================================================
   Articles Page
   ========================================================= */

.asoft-articles-page {
    overflow: hidden;
}

/* HERO */
.asoft-articles-hero {
    position: relative;
    padding: 72px 0 34px;
}

    .asoft-articles-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 85% 18%, rgba(37, 99, 235, 0.09), transparent 26%), radial-gradient(circle at 15% 70%, rgba(14, 165, 233, 0.08), transparent 26%);
        pointer-events: none;
    }

.asoft-articles-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 28px;
    align-items: stretch;
    padding: 44px;
    border: 1px solid var(--asoft-border-soft);
    border-radius: var(--asoft-radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.92));
    box-shadow: var(--asoft-shadow-soft);
}

.asoft-articles-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--asoft-accent-soft);
    color: var(--asoft-accent);
    font-weight: 900;
    font-size: 0.95rem;
}

.asoft-articles-hero-content h1 {
    margin: 0 0 18px;
    color: var(--asoft-primary);
    font-size: clamp(2.1rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.asoft-articles-hero-content p {
    max-width: 780px;
    margin: 0;
    color: var(--asoft-text-soft);
    font-size: 1.18rem;
    line-height: 1.9;
}

.asoft-articles-hero-points {
    display: grid;
    gap: 12px;
    align-content: center;
}

    .asoft-articles-hero-points span {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 54px;
        padding: 0 18px;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid var(--asoft-border-soft);
        color: var(--asoft-primary);
        font-weight: 900;
        box-shadow: var(--asoft-shadow-xs);
    }

        .asoft-articles-hero-points span::before {
            content: "";
            width: 10px;
            height: 10px;
            margin-left: 10px;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--asoft-accent), var(--asoft-accent-strong));
            flex: 0 0 auto;
        }

/* LIST */
.asoft-articles-list-section {
    padding: 36px 0 72px;
}

.asoft-articles-section-heading {
    max-width: 820px;
    margin-bottom: 28px;
}

    .asoft-articles-section-heading h2 {
        margin: 0 0 12px;
        color: var(--asoft-primary);
        font-size: clamp(1.7rem, 3vw, 2.5rem);
        font-weight: 900;
        letter-spacing: -0.02em;
    }

    .asoft-articles-section-heading p {
        margin: 0;
        color: var(--asoft-text-soft);
        font-size: 1.05rem;
        line-height: 1.9;
    }

.asoft-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}

.asoft-article-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--asoft-border-soft);
    border-radius: var(--asoft-radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--asoft-shadow-soft);
    overflow: hidden;
}

.asoft-article-image-wrap {
    position: relative;
    overflow: hidden;
    background: var(--asoft-bg-soft);
    border-bottom: 1px solid var(--asoft-border-soft);
}

.asoft-article-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.2;
    object-fit: cover;
}

.asoft-article-body {
    padding: 26px 26px 24px;
}

.asoft-article-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--asoft-accent-soft-2);
    color: var(--asoft-accent);
    font-size: 0.9rem;
    font-weight: 900;
}

.asoft-article-body h3 {
    margin: 0 0 14px;
    color: var(--asoft-primary);
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: -0.015em;
}

.asoft-article-body p {
    margin: 0 0 20px;
    color: var(--asoft-text-soft);
    font-size: 1rem;
    line-height: 1.9;
}

.asoft-article-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #0ea5e9 100%);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

    .asoft-article-read-more:hover,
    .asoft-article-read-more:focus {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
    }

    .asoft-article-read-more.is-open {
        background: linear-gradient(135deg, #334155 0%, #475569 100%);
    }

.asoft-article-full {
    margin: 0 26px 26px;
    padding: 24px;
    border: 1px solid var(--asoft-border-soft);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

    .asoft-article-full h4 {
        margin: 0 0 16px;
        color: var(--asoft-primary);
        font-size: 1.3rem;
        font-weight: 900;
        line-height: 1.5;
    }

    .asoft-article-full p {
        margin: 0 0 14px;
        color: var(--asoft-text-soft);
        font-size: 1rem;
        line-height: 1.95;
    }

        .asoft-article-full p:last-child {
            margin-bottom: 0;
        }

/* CTA */
.asoft-articles-cta-section {
    padding: 0 0 84px;
}

.asoft-articles-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    border-radius: var(--asoft-radius-xl);
    background: radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.16), transparent 28%), linear-gradient(135deg, #081225 0%, #13284b 58%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: var(--asoft-shadow);
}

    .asoft-articles-cta h2 {
        margin: 0 0 10px;
        font-size: clamp(1.45rem, 3vw, 2.2rem);
        font-weight: 900;
        line-height: 1.35;
    }

    .asoft-articles-cta p {
        max-width: 760px;
        margin: 0;
        color: rgba(255, 255, 255, 0.82);
        font-size: 1.05rem;
        line-height: 1.8;
    }

.asoft-articles-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 15px;
    background: #ffffff;
    color: var(--asoft-primary);
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

    .asoft-articles-cta-button:hover,
    .asoft-articles-cta-button:focus {
        color: var(--asoft-primary);
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 20px 36px rgba(15, 23, 42, 0.28);
    }

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .asoft-articles-hero {
        padding-top: 46px;
    }

    .asoft-articles-hero-inner {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .asoft-articles-grid {
        grid-template-columns: 1fr;
    }

    .asoft-articles-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .asoft-articles-hero {
        padding: 30px 0 22px;
    }

    .asoft-articles-hero-inner {
        padding: 24px;
        border-radius: 24px;
    }

    .asoft-articles-hero-content p,
    .asoft-articles-section-heading p,
    .asoft-article-body p,
    .asoft-article-full p {
        font-size: 0.98rem;
    }

    .asoft-article-body {
        padding: 22px;
    }

    .asoft-article-full {
        margin: 0 22px 22px;
        padding: 20px;
    }

    .asoft-articles-cta {
        padding: 26px;
        border-radius: 24px;
    }

    .asoft-articles-cta-button {
        width: 100%;
    }
}
