html, body {
    overflow-x: hidden;
}

.header {
    width: 100%;
    padding: 1rem;
}

.header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-logo {
    position: relative;
    z-index: 1000;
}

.header-top-start {
    display: flex;
    align-items: center;
}

.header-top-end {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-top-search {
    color: white;
    font-size: 1.5em;
    text-decoration: none;
}

#header-img {
    position: absolute;
    top: 0;
    width: 100%;
    object-fit: cover;
    z-index: -2;
    height: 450px;
}

#header-text {
    position: relative;
    z-index: 1;
    text-align: left;
    padding-top: 160px;
}

#header-text h1 {
    color: white;
    font-size: 3em;
    font-weight: bold;
}

#banner {
    height: 400px;
    position: relative;
    margin-top: -86px;
    margin-bottom: 120px;
}

#blue-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px;
    background: #485cad40;
    z-index: -1;
}

.container h1 {
    font-size: 2.6em;
    font-weight: bold;
    margin-bottom: 30px;
}

.card-img-top {
    object-fit: cover;
}

.card-title, .card-subtitle {
    display: block;
    height: 50px;
}

#card-top {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.card {
    border-color: #fafafa !important;
    background-color: #fafafa !important;
    border-bottom-left-radius: 15px;
    min-width: 230px !important;
}

.card-body {
    background-color: #fafafa !important;
    border-color: #fafafa !important;
    --bs-card-border-color: #fafafa !important;
    border-bottom-left-radius: 15px;
    text-align: center;
}

.card-btn .btn {
    background-color: white;
    border-color: var(--event-color);
    font-weight: bold;
    font-size: 14px;
    border-width: 3px;
    color: var(--event-color);
}

.card-btn .btn:hover {
    background-color: var(--event-color);
    color: white;
}

.btn {
    border-radius: 20px;
}

.card-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.card-img-header {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-blue-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(72, 92, 173, 0.403);
    z-index: 1;
}

.card-date {
    font-size: .8em;
    white-space: nowrap;
    text-transform: none;
    position: absolute;
    top: 51.5%;
    left: 50%;
    transform: translate(-50%,-50%);
    min-width: 50%;
    padding: 8px 10px;
    border-radius: 100px;
    font-weight: 600;
    z-index: 3;
    background-color: black;
    color: white;
}

@media (max-width: 576px) {
    .card {
        width: 92vw;
    }

    #incoming-races-slider {
        margin-bottom: 0px;
        padding-bottom: 0px;
        position: relative;
        width: 100vw !important;
        left: 50%;
        right: 50%;
        margin-left: 0vw;
        margin-right: 0vw;
    }

    #incoming-races-slider::after {
        background: unset !important;
    }

    #incoming-races-slider::before {
        background: unset !important;
    }

    .arrow--left {
        left: 4px !important;
    }

    .arrow--right {
        right: 4px !important;
    }

    .container h1 {
        font-size: 2em !important;
        font-weight: bold;
        margin-bottom: 30px;
    }

    #header-img {
        height: 350px;
    }

    #blue-filter {
        height: 350px;
    }

    #banner {
        margin-bottom: 0px;
    }
}

#incoming-races-slider {
    margin-bottom: 50px;
    padding-bottom: 50px;
    position: relative;
    width: 100vw !important;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    visibility: hidden; /* Hide slider initially */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.container h1 + #incoming-races-slider {
    padding-left: 15px;
    padding-right: 15px;
}

#incoming-races-slider::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    z-index: 1;
}

#incoming-races-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    z-index: 1;
}

.keen-slider__slide {
    transition: box-shadow 0.3s ease-in-out;
    border-radius: 15px;
    cursor: pointer;
}

.keen-slider__slide:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.keen-slider__slide .card img[alt="imgHeader"] {
    transition: transform 0.3s ease-in-out;
}

.keen-slider__slide .card:hover img[alt="imgHeader"] {
    transform: scale(1.1);
}

#languageSelect {
    position: relative;
    z-index: 1000;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    appearance: none;
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

#languageSelect option {
    background-color: #E0E0E6 !important;
    color: black !important;
}

#languageSelect:focus {
    border-color: #E0E0E6;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navigation-wrapper {
    position: relative;
}

.arrow {
    background: #4dd9b2;
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.arrow--left {
    left: 20px;
}

.arrow--right {
    right: 20px;
}

.arrow i {
    font-size: 38px;
}

.arrow--disabled {
    display: none;
}

.copyright-text {
    font-size: 11px;
    color: #717171;
}