body {
    font-family: 'Arial', sans-serif;
}
.hero-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/heroImage.jpg');
    background-size: cover;
    background-position: center;
}
.gallery-img {
    transition: transform 0.3s ease;
}
.countdown-box {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); /* Cherry red gradient */
    border-radius: 1.5rem;
    padding: 1.5rem;
    padding-top: 2.5rem; /* Extra padding at the top for the label */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem; /* Smaller gap for mobile */
    max-width: 700px;
    margin: 0 auto;
    margin-top: 2rem; /* Add margin to accommodate the label */
    position: relative;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}
.countdown-item {
    text-align: center;
    color: #fef3c7; /* Light yellow text */
    font-weight: bold;
    position: relative;
    z-index: 1;
    flex: 0 0 auto; /* Prevent items from shrinking */
    min-width: 60px; /* Minimum width for each item */
}
.countdown-item span {
    font-size: 1.8rem; /* Smaller font size for mobile */
    line-height: 1;
    display: block;
    background: #ffffff;
    color: #dc2626; /* Cherry red numbers */
    padding: 0.5rem 0.75rem; /* Smaller padding for mobile */
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 5px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Courier New', monospace; /* Digital clock style */
}
.countdown-item span:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(220, 38, 38, 0.5); /* Glowing effect */
}
.countdown-item p {
    font-size: 1rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff; /* White labels */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.countdown-box::after {
    content: var(--countdown-label, 'First Event, First Thrill – Begins In');
    position: absolute;
    top: 0.5rem; /* Position from the top instead of negative value */
    left: 50%;
    transform: translateX(-50%);
    background: #fef3c7;
    color: #dc2626;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
    white-space: nowrap; /* Prevent wrapping */
    z-index: 2; /* Ensure it's above other elements */
}
@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Video container for responsive embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .countdown-box {
        padding: 1.75rem;
        gap: 1.5rem;
        overflow-x: visible; /* Disable horizontal scrolling on larger screens */
    }
    .countdown-item {
        min-width: auto; /* Reset min-width */
    }
    .countdown-item span {
        font-size: 3rem;
        padding: 0.9rem 1.2rem;
    }
    .countdown-item p {
        font-size: 1.1rem;
    }
    .countdown-box::after {
        font-size: 1rem;
        top: -1.4rem;
    }
}

@media (min-width: 768px) {
    .countdown-box {
        padding: 2rem;
        gap: 2rem;
    }
    .countdown-item span {
        font-size: 3.5rem;
        padding: 1rem 1.5rem;
    }
    .countdown-item p {
        font-size: 1.2rem;
        margin-top: 0.75rem;
    }
    .countdown-box::after {
        font-size: 1rem;
        top: -1.5rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 640px) {
    .countdown-box {
        flex-wrap: nowrap; /* Prevent wrapping */
        justify-content: center;
        padding-top: 3rem; /* More padding on mobile for the label */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        width: 90%; /* Limit width to allow for proper centering */
    }
    .countdown-item p {
        font-size: 0.7rem; /* Smaller label text */
        margin-top: 0.3rem;
        letter-spacing: 0; /* Remove letter spacing on mobile */
    }
    .countdown-box::after {
        width: auto; /* Auto width */
        white-space: nowrap; /* Prevent wrapping */
        text-align: center;
        font-size: 0.8rem;
    }
    /* Hide scrollbar for cleaner look */
    .countdown-box::-webkit-scrollbar {
        display: none;
    }
    .countdown-box {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
}