/* News & Events Carousel Styles */
.news-events-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px 0px 20px;
}

.news-events-carousel-container {
    position: relative;
    padding: 0 50px;
}

.news-events-carousel {
    overflow: hidden;
    padding: 10px 0 50px;
}

.news-events-carousel .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.news-events-carousel .swiper-slide {
    height: auto;
    display: flex;
}

/* Card Styles */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-card-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    height: 200px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-category {
    display: inline-block;
    background: #2C3F79;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.news-title {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    line-height: 1.4;
}

.news-title a {
    color: #2C3F79;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: #DDB638;
}

.news-excerpt {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}

.news-read-more {
    color: #2C3F79;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.news-read-more:hover {
    color: #DDB638;
}

/* Navigation — buttons sit in .news-events-carousel-container, outside the
   swiper element, so they are never clipped by the track's overflow:hidden. */
.news-events-carousel-container .swiper-button-next,
.news-events-carousel-container .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    margin-top: 0; /* reset Swiper's default margin-top */
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: #2C3F79;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.news-events-carousel-container .swiper-button-next:after,
.news-events-carousel-container .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.news-events-carousel-container .swiper-button-prev {
    left: 0;
}

.news-events-carousel-container .swiper-button-next {
    right: 0;
}

.news-events-carousel-container .swiper-button-next:hover,
.news-events-carousel-container .swiper-button-prev:hover {
    background: #DDB638;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.news-events-carousel-container .swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Pagination */
.news-events-carousel .swiper-pagination {
    bottom: 10px;
}

.news-events-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #2C3F79;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.news-events-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    background: #DDB638;
    width: 24px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 1199px) {
    .news-events-carousel-container {
        padding: 0 45px;
    }
}

@media (max-width: 768px) {
    .news-events-section {
        padding: 30px 15px 0px 15px;
    }
    
    .news-events-carousel-container {
        padding: 0 40px;
    }
    
    .news-card-content {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .news-events-carousel-container {
        padding: 0 10px;
    }
    
    .news-events-carousel-container .swiper-button-next,
    .news-events-carousel-container .swiper-button-prev {
        display: none;
    }
}