/* Base Styles */
:root {
}

/* Hero Section */
.news-events-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 15rem 0 6rem;
    color: white;
    text-align: center;
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
}

/* Tab Switcher */
.tab-switcher {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    margin-top: -1.5rem;
}

.tab-button {
    background: var(--bg-color);
    color: var(--text-light);
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    position: relative;
}

.tab-button:first-child {
    border-radius: 30px 0 0 30px;
}

.tab-button:last-child {
    border-radius: 0 30px 30px 0;
}

.tab-button.active {
    background: var(--primary-red);
    color: white;
}

.tab-button:not(.active):hover {
    background: #f5f5f5;
}

/* Content Carousel */
.content-carousel {
    padding: 3rem 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.carousel-container {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 3rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
    margin: 0 -1rem;
    scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-card {
    scroll-snap-align: start;
    flex: 0 0 calc(100% - 2rem);
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-media {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-content {
    display: block;
    padding: 1.5rem;
    color: inherit;
    text-decoration: none;
}

.event-card-content {
    display: block;
    /* padding: 1.5rem; */
    color: inherit;
    text-decoration: none;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.card-excerpt {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    align-items: center;
    color: var(--light-text);
    font-size: 1.3rem;
}

.event-card-meta {
    display: flex;
    padding: 1.5rem;
    align-items: center;
    color: var(--light-text);
    font-size: 1.3rem;
}

.event-card-meta-wrapper {
    display: flex;
    flex-direction: column;
}

.meta-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    fill: currentColor;
}

/* Media Carousel (for news with multiple images) */
.media-carousel {
    position: relative;
    height: 100%;
    width: 100%;
}

.media-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.media-slide.active {
    opacity: 1;
}

.media-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.media-prev,
.media-next {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.media-prev:hover,
.media-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.media-prev svg,
.media-next svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.carousel-nav.prev {
    left: -20px;
}

.carousel-nav.next {
    right: 0px;
}

.carousel-nav:hover {
    background: var(--primary-red);
    color: white;
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
}

/* View All Button */
.view-all {
    text-align: center;
    margin-top: 8rem;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    background: var(--primary-red);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-button:hover {
    background: var(--primary-yellow);
    transform: translateY(-2px);
}

.view-all-button svg {
    width: 18px;
    height: 18px;
    margin-left: 0.5rem;
    fill: currentColor;
}

/* Responsive Styles */
@media (min-width: 576px) {
    .carousel-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .carousel-card {
        flex: 0 0 calc(33.333% - 1.5rem);
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .carousel-card {
        flex: 0 0 calc(25% - 1.5rem);
    }

    .carousel-nav {
        width: 50px;
        height: 50px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tab-content {
    animation: fadeIn 0.5s ease;
}

/* Hover Effects */
.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.carousel-card:hover .card-media img {
    transform: scale(1.05);
}
