
.news-section {
    position: relative;
    /* z-index: 4; */
    /* isolation: isolate; */
    height: 400vh;
    background: #f8fafc;
    overflow:visible;
}

.news-sticky {
    position: sticky;
    top: 0;
    z-index: 5;
    height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 5%;
    padding: 70px 8%;
    overflow: visible;
    box-sizing: border-box;
    
}

/* LEFT TITLE AREA */
.news-intro {
    max-width: 500px;
    position: relative;
    z-index: 6;
}

.news-eyebrow span {
    width: 30px;
    height: 2px;

    background: #0056da;

    display: inline-block;
}

.news-intro h2 span {
    color: #5d9cff;
}

.news-intro p {
    max-width: 410px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.news-intro-line {
    width: 65px;
    height: 3px;
    background: #b58b36;
    margin: 35px 0 20px;
}

.news-caption {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #87919c;
}

/* RIGHT CARDS AREA */
.news-right {
    position: relative;
    z-index: 6;
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-stack {
    position: relative;
    width: min(100%, 430px);
    height: min(570px, 72vh);
    flex-shrink: 0;
}

.news-card {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14);
    will-change: transform, opacity;
}

.card-1 {
    z-index: 1;
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

.card-2 {
    z-index: 2;
    transform: translateY(100vh) rotate(8deg);
    opacity: 0;
}

.card-3 {
    z-index: 3;
    transform: translateY(100vh) rotate(-7deg);
    opacity: 0;
}

.card-image {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 25px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #bbb transparent;
}

.card-content h2 {
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.2;
    margin: 0 0 15px;
    color: #152536;
}

.card-content span{
    color: #66717d;
    font-size: 13px;
}

.card-content p {
    color: #000;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
}

/* VIEW ALL NEWS */
.all-news {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 35px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 20;
    pointer-events: none;
}

.all-news.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.all-news a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 25px;
    border: 1px solid #152536;
    border-radius: 50px;
    background: #fff;
    color: #152536;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s ease;
}

.all-news a:hover {
    background: #152536;
    color: #fff;
    transform: translateY(-3px);
}

/* TABLETS */
@media (max-width: 900px) {
    .news-sticky {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 4%;
        padding: 45px 5%;
    }

    .news-intro p {
        font-size: 14px;
    }

    .card-stack {
        height: min(540px, 70vh);
    }

    .card-image {
        height: 170px;
    }

    .card-content {
        padding: 20px;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .news-section {
        height: 350vh;
    }

    .news-sticky {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 20px;
        padding: 35px 6% 20px;
    }

    .news-intro {
        width: 100%;
        max-width: none;
        flex-shrink: 0;
    }

    .news-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .news-intro p {
        font-size: 13px;
        line-height: 1.6;
    }

    .news-intro-line,
    .news-caption {
        display: none;
    }

    .news-right {
        width: 100%;
        flex: 1;
        min-height: 0;
    }

    .card-stack {
        width: 100%;
        max-width: 400px;
        height: 100%;
        max-height: 510px;
    }

    .card-image {
        height: 145px;
    }

    .card-content {
        padding: 18px;
    }

    .card-content h2 {
        font-size: 21px;
    }

    .card-content p {
        font-size: 13px;
    }

    .all-news {
        bottom: 0;
    }
}
