/* Home page specific styles */

/* Remove shadow from header on home page */
.controller-home header {
    box-shadow: none;
}

/* White background for home page */
.controller-home {
    background-color: #ffffff;
}

/* Hero section positioning for slideshow */
.controller-home .hero {
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .controller-home .hero {
        /* Approximate height of header (70px) + cards/margins (~300px) */
        min-height: calc(100vh - 540px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Slideshow container - fills the hero background */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Individual slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* First slide visible by default */
.hero-slide:first-child {
    opacity: 1;
}

/* Active slide */
.hero-slide.active {
    opacity: 1;
}

/* Overlay to ensure text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 1;
}

/* Hero content above slideshow */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.news-alert {
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-left: 4px solid var(--accent-color);
    max-width: 600px;
    margin: 10px auto 30px auto;
    text-align: left;
    transition: transform 0.3s ease;
}

.news-alert:hover {
    transform: translateY(-2px);
}

.news-alert h2 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: var(--accent-color);
    font-family: Montserrat;
}

.news-alert p {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.hero .btn {
    margin:10px;
}

.home-card {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}