/**
 * Article Reviews Block Styles
 */

.articles{
    margin-bottom: 1.3rem;
}

/* ========== SLIDER — Track wrapper & arrows ========== */

.article-slider__track-wrapper {
    position: relative;
}

.article-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    border: none;
    background-color: rgba(30, 33, 77, 1);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.article-slider__arrow:hover {
    background-color: #171a3d;
}

.article-slider__arrow--left {
    left: 0.5rem;
    display: none;
}

.article-slider__arrow--right {
    right: 0.5rem;
}

/* Slider track — drag cursor states + scrollbar hiding */
.articles .articles-slider-block .slider {
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.articles .articles-slider-block .slider::-webkit-scrollbar {
    display: none;
}

.articles .articles-slider-block .slider.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.articles .articles-slider-block .slider.is-dragging * {
    user-select: none;
    -webkit-user-select: none;
}

/* ========== ROOT / LAYOUT ========== */

.articles--card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 1.3rem;
}

/* ========== SLIDER STYLE ========== */

.articles .articles-slider-block {
    border-radius: 12px;
    padding: 16px;
    margin-top: 2rem;
    overflow: hidden;
    width: 100%;
}

.articles .articles-slider-block__header {
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.articles .articles-slider-block__title-wrap {
    flex-wrap: wrap;
    text-wrap: wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    flex-shrink: 1;
    padding-bottom: 16px;
    margin-right: auto;
}

.articles .articles-slider-block__title-wrap p{
    margin: 0!important;
}

.articles .articles-slider-block__title {
    font-size: 20px!important;
    padding: 0!important;
    margin: 0!important;
}

.articles .articles-slider-block__cta-wrap {
    min-width: fit-content;
    text-align: right;
    word-break: keep-all;
    white-space: nowrap;
    height: 30px;
    /*margin-right: 16px;*/
}

.articles .articles-slider-block__cta-link,
.articles .articles-slider-block__cta-link span  {
    line-height: 30px;
    display: block;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #61caff !important;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.articles .articles-slider-block__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px;
}

.articles .article-slide-element {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: block;
    flex-shrink: 0;
    flex-basis: calc(85% - 1rem);
    overflow: hidden;
    border: 0 !important;
    text-decoration: none !important;
    color: inherit !important;
}

.articles .articles-slider-block__card {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 12px;
    min-height: 100%;
    justify-content: space-between;
    overflow: hidden;
}

.articles .articles-slider-block__image-wrap {
    overflow: hidden;
    flex: none;
}

.articles .articles-slider-block__image {
    border-radius: 12px 12px 0 0;
    object-fit: cover;
    object-position: center;
}

.articles .articles-slider-block__image-wrap,
.articles .articles-slider-block__image-wrap .articles-slider-block__image{
    width: 100%;
    height: 120px;
}

.articles .articles-slider-block__content {
    flex-shrink: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 8px;
    min-height: 100%;
}

.articles .articles-slider-block__card-title,
.articles .articles-slider-block__card-title span{
    font-family: 'InterDisplay-ExtraBold', 'Helvetica', sans-serif !important;
    font-size: 14px;
    display: flex;
    gap: 16px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.articles .articles-slider-block__meta {
    font-family: 'InterDisplay-Regular', 'Helvetica', sans-serif !important;
    font-size: 11px;
    display: flex;
    gap: 16px;
    margin-top: 8px;
    overflow-wrap: break-word;
    word-break: break-word;
    opacity: 0.85;
    line-height: 1;
    justify-content: space-between;
}

/* ========== CARD STYLE ========== */

.articles--card .articles-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    border-radius: 8px;
}

.articles--card .articles-card__image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    flex: none;
}

.articles--card .articles-card__image {
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    min-height: 110px;
    width: 100%;
    height: 200px;
}

.articles .articles-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.articles .articles-card__title-row {
    font-family: 'InterDisplay-ExtraBold', 'Helvetica', sans-serif !important;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.articles .articles-card__badge {
    font-size: 11px;
    padding: 5px 8px;
    height: 20px;
    line-height: 1;
    border-radius: 12px;
    background-color: rgb(52, 24, 220);
    color: #ffffff !important;
    text-transform: uppercase;
    word-break: keep-all;
    white-space: nowrap;
}

.articles .articles-card__excerpt-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none !important;
}

.articles .articles-card__excerpt {
    max-height: 120px;
    overflow: hidden;
    text-decoration: none !important;
    overflow-wrap: break-word;
    word-break: break-word;
}

.articles .articles-card__read-more {
    text-transform: capitalize;
    text-decoration: underline;
}

/* ========== LIST STYLE ========== */
.articles--list{
margin-top: 1.3rem;
}

.articles--list .articles-list-item {
    display: flex;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
    gap: 16px;
}

.articles--list .articles-list-item__image-wrap {
    width: 110px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    flex: none;
}

.articles--list .articles-list-item__image-wrap a{
    display: block;
    width: 110px;
    height: 80px;
}

.articles--list .articles-list-item__image {
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}



.articles .articles-list-item__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.articles .articles-list-item__title-row {
    font-family: 'InterDisplay-ExtraBold', 'Helvetica', sans-serif !important;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1;
}

.articles .articles-list-item__title-text {
    font-family: 'InterDisplay-ExtraBold', 'Helvetica', sans-serif !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 13px;
}

.articles .articles-list-item__meta {
    margin-top: 3px;
    overflow-wrap: break-word;
    word-break: break-word;
    opacity: 0.8;
    font-size: 12px;
}

.articles .articles-list-item__author-link {
    text-decoration: underline;
    text-transform: capitalize;
}

.articles .articles-list-item__excerpt-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none !important;
}

.articles .articles-list-item__excerpt {
    max-height: 120px;
    overflow: hidden;
    text-decoration: none !important;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.3;
    font-size: 12px;
}

/* ========== DARK THEME ========== */

.articles--theme-dark .articles-slider-block {
    background-color: #2c2c69;
    color: #fff !important;
    border-radius: 8px;
}

.articles--theme-dark .articles-slider-block__card {
    background-color: #0f1132;
    color: #fff !important;
}

.articles--theme-dark .articles-card {
    background-color: #2c2c69;
    color: #fff !important;
}

.articles--theme-dark .articles-list-item {
    background-color: #2c2c69;
    color: #fff !important;
}

.articles--theme-dark h2,
.articles--theme-dark p,
.articles--theme-dark span,
.articles--theme-dark div {
    color: #fff !important;
}

.articles--theme-dark a {
    text-decoration: none !important;
    color: #fff !important;
}

.articles--theme-dark .articles-slider-block__cta-link,
.articles--theme-dark .articles-slider-block__cta-link span {
    color: #5aed90 !important;
}

.articles--theme-dark .articles-slider-block__title {
    color: #fff !important;
}

/* ========== LIGHT THEME ========== */

.articles--theme-light .articles-slider-block {
    background-color: #e8e8e8;
    color: #0a0a1e !important;
    border-radius: 8px;
}

.articles--theme-light .articles-slider-block__card {
    background-color: #fff;
    color: #0a0a1e !important;
}

.articles--theme-light .articles-card {
    background-color: #e8e8e8;
    color: #0a0a1e !important;
}

.articles--theme-light .articles-list-item {
    background-color: #e8e8e8;
    color: #0a0a1e !important;
}

.articles--theme-light h2,
.articles--theme-light p,
.articles--theme-light span,
.articles--theme-light div {
    color: #0a0a1e !important;
}

.articles--theme-light a {
    text-decoration: none !important;
    color: #0a0a1e !important;
}

.articles--theme-light .articles-slider-block__cta-link,
.articles--theme-light .articles-slider-block__cta-link span{
    color: #1025ff !important;
}

.articles--theme-light .articles-slider-block__title {
    color: #222259 !important;
}

/* Badge stays branded regardless of theme */
.articles .articles-card__badge {
    background-color: rgb(52, 24, 220);
    color: #ffffff !important;
}

/* Light theme arrows */
.articles--theme-light .article-slider__arrow {
    background-color: #f5f5f5;
    color: #1E214D;
}

.articles--theme-light .article-slider__arrow:hover {
    background-color: #e8e8e8;
}


/* Breakpoints below are min-width (mobile-first). Keep them ASCENDING
   (smallest → largest): on wide screens every min-width query matches at once,
   and with equal specificity the LAST one in source order wins — so the largest
   breakpoint must come last to take effect. */

@media (min-width: 576px) {
    .articles .article-slide-element {
        flex-basis: calc(40% - 1rem);
    }
}

@media (min-width: 768px) {
    .articles--card {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles .articles-list-item__title-row{
        line-height: 1.5;
    }

    .articles .articles-list-item__title-text {
        text-decoration: underline;
        text-underline-offset: 6px;
        font-size: 18px;
    }

    .articles--list .articles-list-item {
        padding: 15px;
        gap: 32px;
    }

    .articles .articles-list-item__excerpt{
        line-height: 1.5;
        font-size: 14px;
    }

    .articles .articles-list-item__meta{
        margin-top: 5px;
    }

    .articles--list .articles-list-item__image-wrap,
    .articles--list .articles-list-item__image-wrap a{
        width: 150px;
        height: 100px;
    }

    .articles .articles-slider-block__image-wrap,
    .articles .articles-slider-block__image-wrap .articles-slider-block__image{
        height: 200px;
    }

    .articles .articles-slider-block__content {
        padding: 8px;
    }

    .articles .articles-slider-block__card-title {
        font-size: 16px;
    }

    .articles .articles-slider-block__meta {
        font-size: 13px;
    }

    .articles .article-slide-element {
        flex-basis: calc(45% - 1rem);
    }
}

@media (min-width: 1150px) {
    .articles--card {
        grid-template-columns: repeat(3, 1fr);
    }

    .articles .article-slide-element {
        flex-basis: calc(33.33% - 0.96rem);
    }
}

@media (min-width: 1440px) {
    .articles .articles-slider-block__image-wrap,
    .articles .articles-slider-block__image-wrap .articles-slider-block__image{
        height: 250px;
    }
}