/*Home Page Styles--------------------------------------------------------------------*/

/* Keyframes for the image fade-in and fade-out */
@keyframes slideShow {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.landing-gallery {
    width: 100%;
    --landing-height: 600px;
    height: var(--landing-height);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    z-index: 0;
}

.landing-item {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.landing-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.landing-item:first-child {
    opacity: 1;
}

.homepage-intro {
    text-align: center;
    color: white;
    width: min(1600px, 95%);
    margin: 0 auto;
    padding: 0 36px;
    font-size: clamp(1.6rem, calc(1rem + var(--landing-height) * 0.050), 5rem);
    line-height: 1.2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.homepage-intro p {
    font-family: "Blogger", sans-serif;
    margin: 0;
    font-weight: bold;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.65);
}

.homepage-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    list-style: none;
    font-family: "Blogger", sans-serif;
    color: white;
    font-weight: bold;
}

.homepage-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.homepage-row:nth-child(even) {
    grid-template-columns: 0.8fr 1.2fr;
}

.homepage-row:nth-child(even) .homepage-row-text {
    grid-column: 2;
}

.homepage-row:nth-child(even) .homepage-row-img {
    grid-column: 1;
    grid-row: 1;
}

.homepage-row-text {
    background: #133552;
    border: 2px solid rgba(83, 195, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.homepage-row-text:hover {
    transform: scale(1.02);
    border-color: #3e95c4;
}

.homepage-row-img {
    background: #102a41;
    border: 2px solid rgba(83, 195, 255, 0.3);
    border-radius: 20px;
    height: 275px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.homepage-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
}

.homepage-row-img:hover {
    border-color: #3e95c4;
    cursor: pointer;
}

.homepage-row-img:hover img {
    transform: scale(1.08);
    filter: brightness(1.2) contrast(1.1);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 900px) {
    .landing-gallery {
        --landing-height: 350px;
    }

    .homepage-intro {
        position: absolute;
        top: 55%;
        transform: translate(-50%, -50%);
        width: calc(100% - 40px);
    }


    .landing-gallery {
        height: 350px;
    }


    .homepage-row,
    .homepage-row:nth-child(even) {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }


    .homepage-row:nth-child(even) .homepage-row-text,
    .homepage-row:nth-child(even) .homepage-row-img {
        grid-column: auto;
        grid-row: auto;
    }


    .homepage-row-text {
        padding: 25px;
    }

    .homepage-row-img {
        width: 100%;
        height: 220px;
    }
}

/* Countdown styles (centered inside `.homepage-row-img`) */
.homepage-row-img {
    position: relative;
}

.countdown-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    color: white;
    text-align: center;
}

.countdown-wrapper h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.countdown-timer {
    display: flex;
    gap: 10px;
    align-items: baseline;
    justify-content: center;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.countdown-timer span {
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 10px;
    border-radius: 6px;
    min-width: 40px;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.countdown-action {
    margin-top: 6px;
}

.countdown-action .button-large {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    background: #2aa6e0;
    color: white;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 600px) {
    .countdown-timer {
        font-size: 0.95rem;
        gap: 6px;
    }

    .countdown-timer span {
        min-width: 34px;
        padding: 5px 8px;
    }

    .countdown-wrapper h3 {
        font-size: 1.5rem;
    }
}

/* Live-now banner (injected by home.js when API reports isLive === true) */
.live-now-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 20px;
    text-align: center;
}

.live-now-label {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.live-now-btn {
    display: inline-block;
    padding: 16px 40px;
    background-color: #ff5353;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.live-now-btn:hover {
    background-color: #e03333;
    color: #fff;
}