/* News Page CSS file */
/* ------------------------------------------------- */

/* Featured Posts Section */
/* ------------------------------------------------- */

section.featured-slider {
    padding: var(--space-11) 0 0;
}

section.featured-slider .heading-2 {
    padding: 0 var(--space-9);
    margin-bottom: var(--space-7);
}

.featured-slider-wrapper.splide {
    position: relative;
    aspect-ratio: 1920 / 1080;
    overflow: hidden;
    background: var(--neutral-950);
}

.featured-slider-wrapper .splide__track {
    height: 100%;
}

.featured-slider-wrapper .splide__list {
    height: 100%;
}

.featured-slide {
    position: relative;
    height: 100%;
}

.featured-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 51.92%, rgba(0, 0, 0, 0.50) 100%);
    background-blend-mode: multiply, normal;
    z-index: 1;
    pointer-events: none;
}

.featured-slide-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.featured-slide-image img {
    width: 110%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: -15%;
    left: -5%;
    will-change: transform;
}

.featured-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: var(--space-9);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    color: var(--neutral-25);
}

.featured-slide-content .heading-3 {
    color: var(--neutral-25);
}

.featured-slide-content .body-medium {
    color: var(--neutral-25);
    opacity: 0.7;
}

.featured-slide-content .button {
    color: var(--neutral-25);
    border-color: var(--neutral-25);
}

.featured-slide-content .button svg path {
    fill: var(--neutral-25);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: var(--space-7);
    padding-top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    right: 0;
    justify-content: flex-end;
}

.featured-bars {
    display: flex;
    gap: var(--space-2);
}

.featured-bar {
    display: block;
    width: 130px;
    height: 2px;
    background: var(--blue-300);
    cursor: pointer;
    transition: background 0.3s ease;
}

.featured-bar.is-active {
    background: var(--neutral-25);
}

.featured-counter {
    color: var(--neutral-25);
}

.featured-next {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.featured-next svg {
    display: block;
}

/* News Posts Section */
/* ------------------------------------------------- */

section.news-posts {
    padding: var(--space-11) 0;
}

section.news-posts .wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.latest-news-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.latest-news-post {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.latest-news-post-image {
    aspect-ratio: 5/3;
    overflow: hidden;
}

.latest-news-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.latest-news-post:hover .latest-news-post-image img {
    transform: scale(1.05);
}

.latest-news-post-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6) 0 0;
}

.latest-news-post-content .body-small {
    color: var(--neutral-300);
}

.latest-news-post-content .heading-5 {
    color: var(--neutral-950);
}

.latest-news-post-content .body-medium {
    color: var(--neutral-500);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-news-post-button {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-14);
    font-weight: 450;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-700);
    margin-top: auto;
    margin-left: auto;
}

/* Media Queries */
/* ------------------------------------------------- */

@media (max-width: 960px) {
    .latest-news-posts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .featured-overlay {
        display: none;
    }
}

@media (max-width: 650px) {
    .featured-bars {
        display: none;
    }

    .featured-slider-wrapper.splide {
        aspect-ratio: 1 / 1;
    }
}
