@import url(../components/breadcrumb.css);

.news-promos-page {
    min-height: 100vh;
    color: var(--color-dark);
    background: var(--color-page-bg);
    font-family: var(--font-primary);
}

.news-promos-section {
    padding: 0 0 34px;
}

.news-promos-section > .container-fluid {
    padding-top: 0;
}

.news-promos-page .site-breadcrumb {
    margin-bottom: 26px;
}

.news-promos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.news-promos-header h1 {
    margin: 0;
    color: var(--color-dark);
    font-size: var(--font-size-32);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

.news-promos-arrows {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.news-promos-arrows[hidden] {
    display: none !important;
}

.news-promos-arrow {
    position: relative;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(28, 165, 247, 0.24);
    cursor: pointer;
}

.news-promos-arrow:not(:disabled) {
    background: var(--gradient-blue);
}

.news-promos-arrow:disabled {
    background: rgba(28, 165, 247, 0.24);
    cursor: default;
}

.news-promos-arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 8px;
    height: 8px;
    margin: auto;
    border-top: 2px solid var(--color-white);
    border-right: 2px solid var(--color-white);
}

.news-promos-arrow--prev::before {
    transform: translateX(2px) rotate(-135deg);
}

.news-promos-arrow--next::before {
    transform: translateX(-2px) rotate(45deg);
}

.news-promos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
}

.news-promos-grid > [hidden],
.news-promos-grid .blog-list > [hidden] {
    display: none !important;
}

.news-promo-card,
.news-promos-grid--dynamic > div,
.news-promos-grid--dynamic .blog-list > li,
.news-promos-list > li {
    display: flex;
    min-width: 0;
    min-height: 0;
    padding: 20px;
    border: 1px solid rgba(213, 233, 241, 0.92);
    border-radius: 20px;
    background: var(--color-white);
    box-shadow: 0 10px 24px rgba(28, 165, 247, 0.05);
    color: var(--color-dark);
    flex-direction: column;
    text-decoration: none;
}

.news-promo-card:hover,
.news-promo-card:focus {
    color: var(--color-dark);
    text-decoration: none;
}

.news-promo-card-link {
    cursor: pointer;
}

.news-promo-card-link:focus {
    outline: 2px solid rgba(28, 165, 247, 0.7);
    outline-offset: 3px;
}

.news-promo-card img,
.news-promos-grid--dynamic > div > img,
.news-promos-grid--dynamic .blog-list > li > img,
.news-promos-list > li > img {
    display: block;
    width: 100%;
    /* max-height: 194px; */
    aspect-ratio: 9/3;
    border-radius: 10px;
    object-fit: fill;
    object-position: top center;
}

.news-promo-card:first-child img {
    object-position: center;
}

.news-promo-card:nth-child(2) img,
.news-promo-card:nth-child(3) img {
    image-rendering: auto;
}

.news-promo-card__body,
.news-promos-grid--dynamic .content,
.news-promos-list .content {
    display: grid;
    gap: 3px;
    padding-top: 14px;
}

.news-promo-card__body strong,
.news-promo-card__body h3,
.news-promos-grid--dynamic h3,
.news-promos-list h3 {
    margin: 0;
    color: var(--color-dark);
    font-size: var(--font-size-20);
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
}

.news-promo-card__body span,
.news-promo-card__body p,
.news-promos-grid--dynamic p,
.news-promos-list p {
    margin: 0;
    color: var(--color-muted);
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-medium);
    line-height: 1.35;
}

.news-promo-card__bullets {
    margin: 2px 0 0;
    padding-left: 20px;
    color: var(--color-muted);
    font-size: var(--font-size-14);
    font-weight: var(--font-weight-medium);
    line-height: 1.45;
    list-style: disc;
}

.news-promo-card__bullets li {
    display: list-item;
    margin: 0 0 3px;
    list-style-type: disc;
}

.news-promo-card__bullets li::marker {
    color: var(--color-primary-blue);
}

.news-promos-grid--dynamic .blog-list,
.news-promos-list {
    display: contents;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-promos-list .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-width: 92px;
    height: 30px;
    margin-top: 4px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--gradient-blue);
    color: var(--color-white);
    font-size: var(--font-size-12);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    text-decoration: none;
}

.news-promos-list .btn:hover,
.news-promos-list .btn:focus {
    color: var(--color-white);
    text-decoration: none;
}

.news-promos-grid--dynamic .btn,
.news-promos-grid--dynamic hr {
    display: none;
}

@media (max-width: 991.98px) {
    .news-promos-grid {
        grid-template-columns: 1fr;
    }

    .news-promo-card img,
    .news-promos-grid--dynamic > div > img,
    .news-promos-grid--dynamic .blog-list > li > img,
    .news-promos-list > li > img {
        height: clamp(180px, 44vw, 280px);
    }
}

@media (max-width: 575.98px) {
    .news-promos-page .site-breadcrumb {
        margin-bottom: 18px;
    }

    .news-promos-header {
        margin-bottom: 14px;
    }

    .news-promos-header h1 {
        font-size: var(--font-size-24);
    }

    .news-promo-card,
    .news-promos-grid--dynamic > div,
    .news-promos-grid--dynamic .blog-list > li,
    .news-promos-list > li {
        padding: 12px;
        border-radius: 14px;
    }

    .news-promo-card img,
    .news-promos-grid--dynamic > div > img,
    .news-promos-grid--dynamic .blog-list > li > img,
    .news-promos-list > li > img {
        height: 180px;
        border-radius: 12px;
    }
}
