.custom-news-slider-wrapper-312f9f3b {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 500px;
}

.cns-swiper-container {
    width: 100%;
    height: 100%;
}

.cns-slide {
    position: relative;
    min-height: 500px;
    height: 500px; /* Default height, overriden by Elementor controls */
    display: flex;
    justify-content: flex-end; /* Align content to right */
}

/* Background image taking full width */
.cns-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ddd; /* fallback */
    z-index: 1;
}

.cns-content-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
}

/* Sidebar overlaid on right */
.cns-sidebar-wrap {
    width: 45%; /* Slightly wider to match design better */
    min-width: 450px;
    background-color: rgba(41, 67, 112, 0.95); /* Default dark blue with slight opacity */
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.cns-sidebar {
    color: #fff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    padding-bottom: 80px; /* space for nav */
}

.cns-sidebar-inner {
    max-width: 100%;
}

.cns-cat-badge {
    display: inline-block;
    background-color: #e99a38;
    padding: 4px 8px;
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cns-cat-badge a {
    color: #fff;
    text-decoration: none;
}

.cns-title {
    margin: 0 0 20px 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.cns-title a {
    color: #fff;
    text-decoration: none;
}

.cns-excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #fff;
}

.cns-read-more {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cns-read-more-line {
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    margin-right: 15px;
}

.cns-nav-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; 
    display: flex;
    background-color: rgba(0, 0, 0, 0.15); 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    height: 60px; /* Slightly taller nav buttons */
}

.cns-nav-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.cns-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cns-nav-prev {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 991px) {
    .cns-slide {
        height: auto !important; /* Reset height on mobile */
        min-height: 600px !important;
    }
    .cns-content-container {
        align-items: flex-end; /* Push content to bottom on mobile */
    }
    
    .cns-sidebar-wrap {
        width: 100%;
        min-width: 100%;
        height: auto;
        /* Add some padding at top so image is visible above sidebar */
        margin-top: 250px; 
    }
}