/* news-feed-decoupled.css */
.cdnis-modern-slider-section {
    width: 100%;
    background-color: #ffffff;
    padding: 3rem 0;
    font-family: 'Roboto', Arial, Helvetica, sans-serif; /* Roboto for body */
    position: relative;
}

.cdnis-slider-header {
    text-align: left; /* Left align to match original */
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem; /* Match track alignment */
}

.cdnis-slider-header p {
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #e32b2b; /* Red text */
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.cdnis-red-icon {
    font-size: 0.6rem;
    margin-right: 8px;
}

.cdnis-slider-header h2 {
    font-size: 3.5rem;
    font-family: 'Bebas Neue', 'Oswald', sans-serif; /* Condensed font */
    font-weight: normal;
    text-transform: uppercase;
    color: #222;
    margin: 0;
    line-height: 1;
}

.cdnis-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden; /* Hide horizontal scrollbar, JS will handle slide */
}

.cdnis-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.cdnis-slide {
    flex: 0 0 100%;
    display: flex;
    flex-direction: row;
    background-color: #f7f9f9;
}

.cdnis-slide-image {
    flex: 0 0 50%;
    /* Ensure image takes up full left side */
    width: 50%;
}

.cdnis-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 400px;
}

.cdnis-slide-content {
    flex: 0 0 50%;
    padding: 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.cdnis-slide-date {
    position: absolute;
    top: 3rem;
    right: 0; /* Flush with right side like in screenshot */
    background-color: #12716c; /* Teal */
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.cdnis-slide-title {
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: 3.5rem; /* Large and condensed */
    line-height: 1;
    font-weight: normal;
    color: #222222; /* Black */
    margin-top: 1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    max-width: 90%;
    letter-spacing: 0.5px;
}

.cdnis-slide-summary {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cdnis-slide-read-more {
    display: inline-block;
    color: #d62828;
    background-color: transparent;
    border: 2px solid #d62828;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.cdnis-slide-read-more:hover {
    background-color: #d62828;
    color: #ffffff;
}

/* Arrows */
.cdnis-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    color: #333;
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
}

.cdnis-slider-arrow:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cdnis-slider-arrow.prev {
    left: 0;
}

.cdnis-slider-arrow.next {
    right: 0;
}

/* Dots */
.cdnis-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 10px;
}

.cdnis-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    border: none;
    padding: 0;
}

.cdnis-slider-dot.active {
    background-color: #d62828;
}

/* Responsive */
@media (max-width: 991px) {
    .cdnis-slider-header h2 {
        font-size: 2.2rem;
    }
    .cdnis-slide {
        flex-direction: column;
    }
    .cdnis-slide-image,
    .cdnis-slide-content {
        flex: none; /* Fix the 100% flex-basis bug */
        width: 100%;
    }
    .cdnis-slide-image img {
        min-height: 250px;
        max-height: 350px;
    }
    .cdnis-slide-content {
        padding: 2rem 1.5rem 5rem 1.5rem; /* Extra bottom padding for arrows */
    }
    .cdnis-slide-date {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
        padding: 0.5rem 1rem;
    }
    .cdnis-slide-title {
        font-size: 2.2rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }
    .cdnis-slide-summary {
        font-size: 1rem;
    }
    /* Move arrows to the bottom right on mobile */
    .cdnis-slider-arrow {
        top: auto;
        bottom: 1.5rem;
        transform: none;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .cdnis-slider-arrow.prev {
        left: auto;
        right: 4rem;
    }
    .cdnis-slider-arrow.next {
        right: 1.5rem;
    }
}
