body {
    font-family: 'Poppins', sans-serif;
    background: url('https://wallpapercave.com/wp/wp5987736.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

.header {
    background-color: #286496;
}

/* Navbar Styles */
.navbar {
    background-color: #286496;
    position: sticky;
    top: 0;
    z-index:9999999;
}	

.navbar-nav .nav-item .nav-link {
    color: white !important;
    font-weight: 500;
}

.navbar-nav .nav-item .nav-link:hover {
    color: #00d4ff !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

a {
    text-decoration:none;
}
/* Hero Section */
.hero {
    background: url('https://lh3.googleusercontent.com/d/1V9BRo2aoF7EiHfyIkRhmXKv4Lu7d_ogo') no-repeat center center;
    background-size: cover;
    height: 60vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-top: 1rem;
    font-weight: 300;
}

/* Modern Search Box */
.search-box {
    width: 70%;
    margin: 2rem auto;
    display: flex;
    position: relative;
}

.search-box input {
    border: none;
    padding: 0.75rem 1rem;
    outline: none;
    flex: 1;
    font-size: 1rem;
    border-radius:0 !important;
}

.search-box button {
    border: none;
    padding: 0.75rem 1rem;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #0056b3;
}

/* Card Layout */
.event-details-main {
    margin-bottom: 10px;
}

    .event-details-main p {
        display: flex;
        align-items: center;
        margin-bottom: 5px;
        font-size: 0.9rem;
    }

    .event-details-main i {
        color: #ff5722; /* Icon color */
        margin-right: 8px;
    }

.event-card {
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
    min-height:418.5px;
    position: relative;
}

/* Position the date in the top-right corner */
.event-date {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden; /* Ensures content stays within rounded corners */
    background-color: white; /* Body background remains white */
    color: black; /* Default text color */
}

/* Header (Month) Styling */
.event-date .month {
    background-color: #f44336; /* Red background for the header */
    color: white; /* White text for contrast */
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    padding: 5px 0;
}

/* Day Styling */
.event-date .day {
    font-size: 20px;
    font-weight: bold;
    color: black; /* Black text for the day */
}

/* Weekday Styling */
.event-date .weekday {
    font-size: 10px;
    font-weight: normal;
    color: black; /* Black text for the weekday */
}

.event-card p {
    font-weight:100;
    font-size: small;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 300px; /* Set a fixed width */
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.event-image img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    object-fit: cover; /* Crop the image to fit the container while preserving aspect ratio */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth zoom effect */
}

.event-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.btn-register {
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-register:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* Gradient Style for Filter Buttons */

.filter-buttons {
    margin: 2rem;
    text-align: center;
}

.filter-buttons button {
    background: linear-gradient(45deg, #007bff, #00d4ff); /* Gradient colors */
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px; /* Rounded corners */
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Subtle shadow */
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
}

.filter-buttons button:hover {
    background: linear-gradient(45deg, #0056b3, #00a3d1); /* Darker gradient on hover */
    transform: translateY(-3px); /* Lift the button */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25); /* Elevated shadow */
}

.filter-buttons button:active {
    transform: translateY(1px); /* Slight press effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Slightly deeper shadow */
}

/* Active State for Selected Filter */
.filter-buttons button.active {
    background: linear-gradient(45deg, #0056b3, #00a3d1); /* Darker gradient for active */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Highlighted shadow */
    transform: translateY(-3px); /* Keep lifted state */
    color: #fff;
}

.form-select {
    margin-top:10px;
    color: #4b4b4b;
    border: none;
    border-radius: 20px; /* Rounded corners */
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Subtle shadow */
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-select :hover {
    background: linear-gradient(45deg, #0056b3, #00a3d1); /* Darker gradient on hover */
    transform: translateY(-3px); /* Lift the button */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25); /* Elevated shadow */
}

.card {
    border-radius: 0 !important;
}

.card img {
    border-radius: 0 !important;
}


.dropdown-menu {
    max-height: 300px;
    overflow-y: auto; /* Add scroll for long lists */
}

/* Loading Spinner */
.spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
}

.spinner-wrapper.active {
    visibility: visible;
    opacity: 1;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.pwa-install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: none; /* Initially hidden */
}

.pwa-install-button button {
    background: linear-gradient(45deg, #f11212, #ab0404); /* Gradient background */
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pwa-install-button button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    text-align: center;
}

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

    .search-box {
        width: 80%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .search-box {
        width: 90%;
    }
}

/* EVENT DETAILS */

/* Hero Events Section */
.hero-events {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 50vh; /* Adjust height as needed */
    color: white;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    padding: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
}

    .hero-events::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7); /* Dark overlay */
        z-index: 1;
    }

    .hero-events h1 {
        margin: 0;
        z-index: 2;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    }

    .hero-events h3 {
        margin: 10px 0 0;
        z-index: 2;
        font-weight: 400;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    }

@media (max-width: 768px) {
    .hero-events {
        height: 40vh;
    }
}

.register-btn {
    margin-top: 10px;
    background: linear-gradient(45deg, #007bff, #00d4ff); /* Gradient colors */
    color: white;
    border: none;
    padding: 1.0rem 1.0rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Subtle shadow */
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-block;
    z-index: 9999;
    text-decoration: none;
}

    .register-btn:hover {
        background: linear-gradient(45deg, #0056b3, #00a3d1); /* Darker gradient on hover */
        transform: translateY(-3px); /* Lift the button */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25); /* Elevated shadow */
    }

.event-head-container {
    background: linear-gradient(45deg, #e90000, #e11717);
    max-width: 100% !important;
    padding: 0px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: small;
}

/* Event Container */
.event-container {
    background: white;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

/* Event Details */
.event-details {
    flex: 1;
    min-width: 300px;
}

    .event-details h2 {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 1rem;
    }

    .event-details p {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .event-details i {
        color: #f44336;
        margin-right: 10px;
    }

/* Responsive */
@media (max-width: 768px) {
    .event-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-events h3{
        font-size: 1rem;
    }

}

.event-info {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(45deg, #e90000, #e11717);
    color: white;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

    .event-info div {
        flex: 1;
        padding: 10px;
        border-right: 2px solid rgba(255, 255, 255, 0.4);
    }

        .event-info div:last-child {
            border-right: none;
        }

    .event-info i {
        margin-right: 8px;
    }

@media (max-width: 768px) {
    .event-info {
        flex-direction: column;
        align-items: center;
    }

        .event-info div {
            border-right: none;
            border-bottom: 2px solid rgba(255, 255, 255, 0.4);
            width: 100%;
            padding-bottom: 15px;
        }

            .event-info div:last-child {
                border-bottom: none;
            }
}

.section {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 130px 20px 50px;
    height: 100%; /* Full screen height */
    z-index: -2;
}

/* Smooth Scroll for the Whole Document */
html {
    scroll-behavior: smooth;
}

/* Modern Buttons */
.scroll-btn {
    background-color: #00bcd4;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

    .scroll-btn:hover {
        background-color: #0199a8;
        transform: translateY(-2px);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    }

    .scroll-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

#race-details {
    background-color: rgba(0, 0, 0, 0.6);
}

#the-route {
    background-color: rgba(0, 0, 0, 0.7);
}

.nav-event-details {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    background: white;
    margin: 0 !important;
    max-height: 60px;
}

.nav-event-details-link {
    text-decoration: none;
    color: #000; /* Black text */
    font-size: 14px;
    font-weight: bold;
    padding: 30px 30px;
    position: relative;
    transition: color 0.3s ease;
}

    .nav-event-details-link:hover {
        font-weight: bolder;
        color: #e90000;
    }


    .nav-event-details-link.active {
        font-weight: bolder;
        color: #e90000;
    }

/* Sticky class applied when scrolling past the navigation */
.sticky-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
}

/* Highlighted Button */
.highlighted {
    background-color: #2c3e50; /* Dark gray background */
    color: #fff; /* White text */
    border-radius: 3px;
    padding: 8px 15px;
}

    .highlighted:hover {
        background-color: #e90000;
    }

/* Two-Column Layout for Medium and Small Screens */
@media (max-width: 768px) {
    .nav-event-details {
        flex-direction: row; /* Ensure row-based alignment */
        justify-content: space-evenly;
        padding: 10px;
    }

    .nav-event-details-link {
        flex: 0 0 calc(50% - 15px); /* Two-column layout, with spacing */
        padding: 10px 10px;
    }
}

#countdown {
    font-size: 2rem;
    color: #ff1800;
    margin: 20px 0;
    font-weight: bold;
    z-index: 999999;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}