/* WIDGETS */

widget {
    display: block;
    width: 100%;
    text-align: center;
}

/* Widget All articles */

.all-articles-widget {
    width: 100%;
    padding: 10px 0 30px;
}

.all-articles-widget-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    align-items: stretch;
}

.all-articles-widget-item {
    display: flex;
    min-width: 0;
}

.all-articles-widget-link {
    display: flex;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: inherit;
}

.all-articles-widget-preview {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #F4F7FA;
    border: 1px solid #E8EDF2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(7, 21, 33, 0.06), 0 1px 1px rgba(7, 21, 33, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.all-articles-widget-link:hover .all-articles-widget-preview {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(7, 21, 33, 0.08);
    border-color: #9DE8CC;
}

.all-articles-widget-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #E8EDF2;
    border-bottom: 1px solid #E8EDF2;
}

.all-articles-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.all-articles-widget-link:hover .all-articles-widget-image img {
    transform: scale(1.04);
}

.all-articles-widget-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.all-articles-widget-date {
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #23B982;
    margin-bottom: 10px;
    font-family: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.all-articles-widget-title {
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    font-family: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #0F1B2D;
    margin: 0 0 14px;
    transition: color 0.25s ease;
    display: block;
}

.all-articles-widget-link:hover .all-articles-widget-title {
    color: #23B982;
}

.all-articles-widget-text {
    font-size: 15px;
    line-height: 1.7;
    color: #6D7885;
    margin-top: auto;
}

.all-articles-widget-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding: 0 20px 10px;
    box-sizing: border-box;
}

.all-articles-widget-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #2FD39A;
    color: #071521;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(47, 211, 154, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.all-articles-widget-more:hover {
    transform: translateY(-2px);
    background: #23B982;
    box-shadow: 0 16px 34px rgba(47, 211, 154, 0.28);
}

.all-articles-widget-more[hidden] {
    display: none !important;
}

.all-articles-widget-item.is-hidden {
    display: none;
}

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

@media (max-width: 768px) {
    .all-articles-widget {
        padding-bottom: 20px;
    }

    .all-articles-widget-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 14px 16px;
    }

    .all-articles-widget-content {
        padding: 18px;
    }

    .all-articles-widget-title {
        font-size: 22px;
    }

    .all-articles-widget-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .all-articles-widget-footer {
        padding: 0 14px 10px;
    }

    .all-articles-widget-more {
        width: 100%;
    }
}
