
/* Main Carousel Container */
.swiper-container {
    width: 100%;
    padding: 15px 0;
    --ngc-image-height: 180px;
    --excerpt-line-height: 1.35;
}

/* Slide Structure */
.swiper-slide {
    background: #424242;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image Container */
.ngc-image-container {
    width: 100%;
    height: var(--ngc-image-height);
    overflow: hidden;
}

.ngc-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ngc-placeholder {
    width: 100%;
    height: 100%;
    background: #333;
}

/* Content Area */
.ngc-content {
    padding: 12px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.swiper-slide h3 {
    color: #fff !important;
    font-size: 16px;
    margin: 0 0 6px 0;
    line-height: 1.2;
    font-weight: 600;
}

/* Excerpt - Perfectly Consistent 2 Lines */
.ngc-excerpt {
    color: #e0e0e0;
    font-size: 13px;
    line-height: var(--excerpt-line-height);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(2 * var(--excerpt-line-height) * 1em);
    min-height: calc(2 * var(--excerpt-line-height) * 1em);
}

.ngc-readmore.qt-btn.qt-btn-s {
    background-color: #8f1d22 !important; /* Override global red with specific red */
    color: white !important; /* Ensure text is white for readability */
    font-size: 13px;
    text-decoration: none;
    margin-top: auto;
    padding: 8px 12px; /* Add padding to make it look like a button */
    border-radius: 4px; /* Match the button style */
    transition: all 0.2s ease; /* Smooth transition for hover */
}

.ngc-readmore.qt-btn.qt-btn-s:hover {
    background-color: #75181c !important; /* Slightly darker shade of #8f1d22 on hover */
    color: white !important; /* Maintain white text on hover */
    text-decoration: none;
}

/* Navigation */
.swiper-button-next, 
.swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .swiper-container {
        --ngc-image-height: 160px;
    }
    .ngc-content {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .swiper-container {
        --ngc-image-height: 140px;
    }
    .ngc-excerpt {
        font-size: 12px;
    }
}