/* 
 * Deployed Site Fix
 * This CSS file is designed to fix display issues on the deployed site
 */

/* Reset the hero section styling */
.hero {
    height: 100vh; /* Fallback for browsers that do not support custom properties */
    height: calc(var(--vh, 1vh) * 100);
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    overflow: hidden;
    background-color: var(--primary-color);
}

/* Ensure the image background is visible */
.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.image-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(62, 85, 74, 0.8), rgba(62, 85, 74, 0.6));
    z-index: 1;
    pointer-events: none;
}

/* Ensure hero images are properly displayed */
.hero-image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    z-index: 0;
}

.hero-image-container.active {
    opacity: 1;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 3s ease-in-out;
}

.hero-image-container.active img {
    transform: scale(1);
}

/* Set specific object positions for each image */
.hero-image-container:nth-child(1) img {
    object-position: 50% 35%;
}

.hero-image-container:nth-child(2) img {
    object-position: 50% 30%;
}

.hero-image-container:nth-child(3) img {
    object-position: 50% 40%;
}

.hero-image-container:nth-child(4) img {
    object-position: 50% 40%;
}

/* Ensure text is properly displayed */
.hero h1 {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: white;
    position: relative;
    z-index: 10;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    color: var(--secondary-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.hero .date, .hero .location {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    position: relative;
    z-index: 10;
}

.hero .container {
    position: relative;
    z-index: 10;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }
}