.newsfeed {
    padding: 0 !important;
}
.splide {
    max-width: 1200px;
    margin: auto;
    /* margin-top: 100px; */
}
.splide__track {
    margin: 30px;
}
.slide-image {
    width: 50%;
    height: 300px;
    overflow: hidden;
}
.slide-content {
    display: flex;
    width: 50%;
    flex-direction: column;
    margin-left: 30px;
}
.slide-container {
    display: flex;
    flex-direction: row;
    background-color: white;
    padding: 30px;
}
.newsfeed .slide-date{
    font-family: "Roboto Bold", Sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4em;
    color: var(--e-global-color-4bc841f);
    margin-bottom: 10px;
}
.newsfeed h3 {
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    line-height: var(--e-global-typography-primary-line-height);
    color: var(--e-global-color-primary);
    margin-top: 0px;
}
.newsfeed p {
    color: #000000;
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-size: var(--e-global-typography-accent-font-size);
    font-weight: var(--e-global-typography-accent-font-weight);
    line-height: var(--e-global-typography-accent-line-height);
}
.newsfeed .splide__arrow {
    background: transparent;
}
.newsfeed .splide__arrow svg {
    fill: var(--e-global-color-primary);
    height: 2.2em;
    width: 2.2em;
}

#splide01 {
    width: 100%;
}
#splide01 .splide__slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* Ensure the slider fills its container */
.newsfeed .splide {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Use padding instead of margin on track to avoid layout issues */
.newsfeed .splide__track {
    margin: 0;
    padding: 0 30px;
    box-sizing: border-box;
}

/* Desktop defaults */
.newsfeed .slide-container {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    gap: 30px; /* replace content’s margin-left with a gap */
    padding: 50px;
    padding-bottom: 30px;
}

.newsfeed .slide-image {
    width: 50%;
    height: 300px;
    overflow: hidden;
}

.newsfeed .slide-content {
    width: 50%;
    margin-left: 0; /* replaced by gap above */
    display: flex;
    flex-direction: column;
}

/* Make images responsive and nicely cropped on desktop */
.newsfeed .slide-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* <= 1024px: stack image above text and use full width */
@media (max-width: 1024px) {
    .newsfeed .slide-container {
        flex-direction: column;
    }
    .newsfeed .slide-image,
    .newsfeed .slide-content {
        width: 100%;
    }
    .newsfeed .slide-image {
        height: auto; /* let image decide height */
    }
    .newsfeed .slide-image img {
        height: auto; /* keep aspect ratio */
        object-fit: contain; /* optional: avoid cropping on narrow screens */
    }
}

/* <= 767px: tighten paddings/margins */
@media (max-width: 767px) {
    .newsfeed .splide__track {
        padding: 0 15px;
    }
    .newsfeed .slide-container {
        padding: 20px;
        gap: 20px;
    }
}

/* Accordion base */
.newsfeed .slide-text {
    position: relative;
}

/* Only applied when the text is collapsible */
.newsfeed .slide-text.is-collapsible {
    overflow: hidden;
    transition: max-height 300ms ease;
}

/* Gradient fade when collapsed */
.newsfeed .slide-text.is-collapsible.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

/* Toggle button */
.newsfeed .slide-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--e-global-color-primary);
    cursor: pointer;
    padding: 10px 0 0 0;
    font: inherit;
}

/* Chevron icon */
.newsfeed .slide-toggle .chevron {
    width: 35px;
    height: 35px;
    transition: transform 200ms ease;
    fill: black;
}

/* Rotate chevron when open */
.newsfeed .is-open .slide-toggle .chevron {
    transform: rotate(180deg);
}

.newsfeed .toggle-label {
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-size: var(--e-global-typography-accent-font-size);
    font-weight: var(--e-global-typography-accent-font-weight);
    line-height: var(--e-global-typography-accent-line-height);
    color: black;
}
