/* ===================
   POPULAR ARTICLES
   =================== */
.popular-articles {
    padding: 55px 0;
    background: #F5F8FF;
    overflow: hidden;
}

.popular-articles__container {
    margin-bottom: 0;
}

.popular-articles__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.popular-articles__title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 36px;
    font-weight: 700;
    color: #2A4F7C;
    margin: 0;
}

.popular-articles__title svg {
    width: 21px;
    height: 20px;
}

.popular-articles__star {
    flex-shrink: 0;
}

/* Навигация */
.popular-articles__nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.popular-articles__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #7A92AF;
    cursor: pointer;
    transition: color 0.3s;
}

.popular-articles__arrow:active {
    color: #6C98CD !important;
}

.popular-articles__arrow:hover {
    color: #2A4F7C;
}

.popular-articles__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.popular-articles__dots {
    display: flex;
    gap: 8px;
}

.popular-articles__dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d3dbe4;
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s;
    cursor: pointer;
}

.popular-articles__dots .swiper-pagination-bullet-active {
    background: #79A4FF;
    border-radius: 8px;
}

.popular-articles__slider {
    overflow: hidden;
    padding: 10px;
    margin: -10px;
}

.popular-articles__list {
    display: flex;
}

.popular-articles__item {
    width: calc(25% - 18px);
    flex-shrink: 0;
}

.popular-articles__link {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
    height: 205px;
}

.popular-articles__link:hover {
    box-shadow: 0 4px 24px -6px rgba(42, 79, 124, 0.12);
}

.popular-articles__link:active {
    border: 2px solid #D7E9FF !important;
}

.popular-articles__category {
    font-size: 12px;
    font-weight: 500;
    color: #6391F4;
    margin-bottom: 12px;
}

.popular-articles__item-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #2A4F7C;
    margin: 0 0 auto;
    padding-bottom: 16px;
}

.popular-articles__meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
}

.delimiter {
    border: 1px solid #E8EEF5;
    height: 8px;
}

.popular-articles__views,
.popular-articles__time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #7A92AF;
}

.popular-articles__views svg,
.popular-articles__time svg {
    flex-shrink: 0;
    color: #7A92AF;
}

@media (max-width: 1199px) {
    .popular-articles__item {
        width: calc(33.333% - 14px);
    }

    .popular-articles__title {
        font-size: 28px;
    }
}

@media (max-width: 1140px) {
    .popular-articles__link {
        height: 180px;
    }
}

@media (max-width: 991px) {
    .popular-articles__title {
        font-size: 20px;
    }

    .popular-articles__dots .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
    }

    .article_views {
        display: none;
    }

    .popular-articles__title svg {
        width: 16px;
        height: 16px;
    }

    .popular-articles__link {
        height: 148px;
        padding: 16px;
    }

    .popular-articles__item-title {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .popular-articles__item {
        width: calc(50% - 8px);
    }

    .popular-articles {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .popular-articles__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .popular-articles {
        padding: 24px 0;
    }

    .popular-articles__title {
        font-size: 20px;
    }

    .popular-articles__item {
        width: 100%;
    }

    .popular-articles__link {
        padding: 16px;
    }

    .popular-articles__item-title {
        font-size: 14px;
    }

    .popular-articles__meta {
        gap: 12px;
    }

    .popular-articles__views,
    .popular-articles__time {
        font-size: 11px;
    }

    .popular-articles__container {
        position: relative;
        padding-bottom: 60px;
    }

    .popular-articles__nav {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .container__groupedArticles {
        margin-top: 26px;
    }

    .article_views {
        display: none;
    }

    .popular-articles__title {
        gap: 4px;
    }
}