/* news-slider.css */

.ns-widget-wrapper {
    width: 100%;
    position: relative;
    padding: 20px 0;
}

/* Header Area */
.ns-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 40px;
    /* Space for the arrows later if needed */
}

.ns-header-left,
.ns-header-right {
    flex: 1;
}

.ns-header-center {
    flex: 2;
    text-align: center;
}

.ns-title {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    color: #000;
}

/* Dots Indicator (Swiper Pagination) */
.ns-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    display: flex;
    gap: 8px;
    align-items: center;
}

.ns-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #e0e0e0;
    opacity: 1;
    margin: 0 !important;
    border: 2px solid transparent;
}

.ns-pagination .swiper-pagination-bullet-active {
    background-color: transparent;
    border: 2px solid #bea150;
    /* Orange color */
}

/* More Link */
.ns-header-right {
    display: flex;
    justify-content: flex-end;
}

.ns-more-link {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
}

.ns-more-link:hover {
    color: #bea150;
}

.ns-more-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: #bea150;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.ns-more-link:hover .ns-more-icon {
    background-color: #bea150;
}

/* Slider Layout */
.ns-slider-container {
    position: relative;
    display: flex;
    align-items: center;
}

.news-swiper {
    width: 100%;
    /* Take full width of the container */
    margin: 0 auto;
    overflow: hidden;
}

/* The Cards */
.ns-card {
    border: 1px solid #eaeaea;
    padding: 30px;
    background-color: #fff;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.ns-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ns-card-category {
    color: #bea150;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.ns-card-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 0 15px 0;
    color: #000;
}

.ns-card-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.ns-card-title a:hover {
    color: #bea150;
}

.ns-card-excerpt {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-bottom: auto;
    /* Push footer to bottom */
    padding-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Footer */
.ns-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;
    padding-top: 15px;
    margin-top: auto;
}

.ns-card-date {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #a0a0a0;
    gap: 5px;
}

.ns-card-link-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.ns-card-link-icon:hover {
    background-color: #bea150;
}

/* External Arrows (Outside Swiper Container) */
.ns-swiper-button-prev,
.ns-swiper-button-next {
    width: 80px;
    height: 100%;
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #000;
    transition: opacity 0.3s ease;
}

.ns-swiper-button-prev {
    left: -70px;
}

.ns-swiper-button-next {
    right: -70px;
}

.ns-swiper-button-prev:hover,
.ns-swiper-button-next:hover {
    opacity: 0.7;
}

.ns-swiper-button-prev.swiper-button-disabled,
.ns-swiper-button-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive specific */
@media (max-width: 768px) {
    .ns-header {
        flex-direction: column;
        gap: 15px;
    }

    .news-swiper {
        width: 100%;
        /* Take full width on mobile */
        padding: 0 10px;
    }

    .ns-swiper-button-prev,
    .ns-swiper-button-next {
        display: none;
        /* Hide custom outside arrows on small screens */
    }
}