/* News Section - 3-Second Carousel */
.latest-news {
    padding: 0;
    background:
        linear-gradient(135deg, rgba(230, 30, 36, 0.4) 0%, rgba(183, 28, 28, 0.45) 100%),
        url('../../images/stadium_background.webp?v=highres') center/cover no-repeat;
    background-attachment: fixed;
}

.latest-news h2 {
    font-size: 42px;
    color: var(--primary-red);
    padding: 60px 0 30px 0;
    margin: 0 0 30px 0;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--light-gray);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.news-grid {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: 750px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    padding: 0 0 60px 0;
}

/* Animation for 3 cards, 3 seconds each = 9 seconds total */
@keyframes newsCarousel {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    5% {
        opacity: 1;
        transform: scale(1);
    }

    30% {
        opacity: 1;
        transform: scale(1);
    }

    35% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

.news-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    opacity: 0;
    animation: newsCarousel 9s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Stagger the animations - each card starts 3 seconds after the previous */
.news-card:nth-child(1) {
    animation-delay: 0s;
    z-index: 3;
}

.news-card:nth-child(2) {
    animation-delay: 3s;
    z-index: 2;
}

.news-card:nth-child(3) {
    animation-delay: 6s;
    z-index: 1;
}

/* Pause animation on hover */
.news-grid:hover .news-card {
    animation-play-state: paused;
}

.news-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #f0f0f0;
}

.news-card-content {
    padding: 30px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.95) 100%);
}

.news-card h3 {
    color: var(--primary-red);
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.news-card p {
    color: var(--dark-gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    flex: 1;
}

.news-card small {
    display: block;
    color: #999;
    font-size: 14px;
    font-style: italic;
    border-top: 2px solid rgba(224, 224, 224, 0.5);
    padding-top: 15px;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .news-grid {
        height: 650px;
    }

    .news-card img {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .latest-news {
        overflow-x: hidden;
        padding-bottom: 40px;
    }

    .latest-news h2 {
        font-size: 32px;
        letter-spacing: 2px;
        padding: 40px 20px 20px 20px;
        margin: 0 0 20px 0;
        width: 100%;
        left: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .news-grid {
        height: 520px;
        border-radius: 10px;
        margin: 0;
        padding: 0;
    }

    .news-card {
        width: 100%;
        margin: 0;
    }

    .news-card img {
        height: 250px;
    }

    .news-card-content {
        padding: 20px;
    }

    .news-card h3 {
        font-size: 20px;
    }

    .news-card p {
        font-size: 14px;
    }

    .news-card small {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .latest-news {
        padding-bottom: 30px;
    }

    .latest-news h2 {
        font-size: 26px;
        padding: 30px 15px 15px 15px;
        margin: 0 0 15px 0;
    }

    .news-grid {
        height: 500px;
        margin: 0;
        border-radius: 12px;
    }

    .news-card {
        width: 100%;
        margin: 0;
    }

    .news-card img {
        height: 200px;
    }

    .news-card-content {
        padding: 16px 18px;
    }

    .news-card h3 {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .news-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    .news-card small {
        font-size: 11px;
        padding-top: 10px;
    }
}

/* Upcoming Events Section - Stadium Background */
.upcoming-events {
    padding: 60px 0;
    background:
        linear-gradient(135deg, rgba(230, 30, 36, 0.45) 0%, rgba(183, 28, 28, 0.5) 100%),
        url('../../images/stadium_background.webp?v=highres') center/cover no-repeat;
    background-attachment: fixed;
}

.upcoming-events h2 {
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.upcoming-events .events-list {
    position: relative;
    z-index: 2;
}

.upcoming-events .event-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.no-events-message {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 60px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.no-events-message span {
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
}

.no-events-message p {
    font-size: 20px;
    color: var(--dark-gray);
    font-weight: 600;
    margin: 0;
}