.mew-news-archive {
    --mew-cols: 3;
    --mew-cols-tablet: 2;
    --mew-cols-mobile: 1;
    --mew-gap: 24px;
    font-family: "Tiktok Sans", sans-serif;
}

.mew-news-archive__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--mew-gap);
}

.mew-news-tab {
    appearance: none;
    border: 1px solid #B4C3F5;
    background: #ffffff;
    color: #000057;
    font: inherit;
    font-size: 14px;
    line-height: 20px;
    padding: 13px 24px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease,
        border-color 0.2s ease;
}

.mew-news-tab:hover {
    border-color: #455AF0;
    background-color: #fff;
    color: #455AF0;
}

.mew-news-tab.is-active {
    background-color: #455AF0!important;
    border-color: #455AF0!important;
    color: #ffffff;
}

.mew-news-tab:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.mew-news-archive__items {
    display: grid;
    grid-template-columns: repeat(var(--mew-cols), minmax(0, 1fr));
    gap: var(--mew-gap);
}
.mew-news-archive__title{
    font-size: 36px;
    line-height: 44px;
    font-weight: 600;
    margin-bottom: 32px;
    color:#000057;
    font-family: "Tiktok Sans", sans-serif;
}

@media (max-width: 1024px) {
    .mew-news-archive__items {
        grid-template-columns: repeat(
            var(--mew-cols-tablet),
            minmax(0, 1fr)
        );
    }
}

@media (max-width: 767px) {
    .mew-news-archive__items {
        grid-template-columns: repeat(
            var(--mew-cols-mobile),
            minmax(0, 1fr)
        );
    }
}

.mew-news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
}


.mew-news-card__media {
    display: block;
    overflow: hidden;
    border-radius: 16px;
}

.mew-news-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    border-radius:16px;
}

.mew-news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    margin-top:8px;
}

.mew-news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    color:#616784;
    font-weight: 500;
    letter-spacing: -2%;
}

.mew-news-card__meta > * + * {
    position: relative;
    padding-left: 12px;
}

.mew-news-card__meta > * + *::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    transform: translateY(-50%);
}

.mew-news-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    color:#000057;
    font-weight: 500;
    letter-spacing: -2%;
}
.mew-news-card__category{
    color: #455AF0;
}

.mew-news-card__title a {
    color: inherit;
    text-decoration: none;
}

.mew-news-card__title a:hover {
    text-decoration: underline;
}

.mew-news-card__excerpt {
    flex: 1;
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.mew-news-card__more {
    align-self: flex-start;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.mew-news-card__more:hover {
    opacity: 0.7;
}

.mew-news-archive__more {
    display: flex;
    justify-content: center;
    margin-top: calc(var(--mew-gap) * 1.25);
}

.mew-news-archive__more[hidden],
.mew-news-archive__empty[hidden] {
    display: none;
}

.mew-news-archive__more-button {
    appearance: none;
    border: 0;
    background: #ffffff!important;
    color: #000057!important;
    font: inherit;
    border:1px solid #455AF0!important;
    font-size: 18px!important;
    padding: 14px 28px!important;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mew-news-archive__more-button:hover {
    background-color: #455AF0!important;
    color: #ffffff!important;
}

.mew-news-archive__more-button:disabled {
    cursor: progress;
    opacity: 0.7;
}

.mew-news-archive__empty {
    margin: 0;
    padding: 32px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
}

.mew-news-archive.is-loading .mew-news-archive__items {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mew-news-archive .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
