/* ------------------------------------------------------
                    Global Styles
------------------------------------------------------ */

nav a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s, background-color 0.3s;
}

    nav a:hover {
        color: #3498db;
        background-color: #ecf0f1;
        border-radius: 4px;
    }

/* ------------------------------------------------------
                    Layout and Containers
------------------------------------------------------ */


.row {
    display: flex;
    justify-content: space-around;
    padding: 32px;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 10px;
}

.competition-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    scroll-snap-type: x mandatory;
}

.competition-card {
    min-width: 1080px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 16px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.register-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
}

    .register-button:hover {
        background-color: #2c80b4;
    }

/* ------------------------------------------------------
                   Competition  Styles
------------------------------------------------------ */

.competition-card img.competition-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}


/* ------------------------------------------------------
                    Logo Styles
------------------------------------------------------ */

.logo-container {
    display: flex;
    align-items: center;
}

    .logo-container img {
        height: 120px;
        margin-right: 20px;
    }

.tournament-logo img {
    height: 120px;
}

/* ------------------------------------------------------
                    Two Column Links
------------------------------------------------------ */

.links-heading-container {
    width: 100%;
    text-align: center;
}

.links-heading {
    margin-bottom: 20px;
}

.two-column-links {
    padding: 32px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}

.links-column {
    width: 45%;
    display: flex;
    flex-direction: column;
}

/* ------------------------------------------------------
                    Carousel
------------------------------------------------------ */

.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    height: 500px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.carousel-card {
    flex: 0 0 380px;
    height: 100%;
    width: 200px;
    border-radius: 0.5rem;
    box-shadow: 1px 5px 15px #1e0e3e;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    background-size: cover;
    background-position: center;
    scroll-snap-align: start;
}

    .carousel-card:hover {
        flex: 0 0 540px;
        transform: translateY(-20px);
        box-shadow: 1px 5px 10px #3E5F8A;
    }

.carousel-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.carousel-card:hover .carousel-content {
    transform: translateY(0);
    opacity: 1;
}

.carousel-content h2 {
    margin: 0;
    font-size: 1.4rem;
}

.carousel-content span {
    display: block;
    font-size: 1rem;
    margin-top: 5px;
}

.carousel-content p {
    font-size: 0.9rem;
    margin: 5px 0;
}

.carousel-content .register-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
}

    .carousel-content .register-button:hover {
        background-color: #2c80b4;
    }


/* ------------------------------------------------------
                    Tournament Info Styles
------------------------------------------------------ */

.tournament-info {
    display: flex;
    justify-content: space-around;
    width: 700px;
    margin-top: 29px;
    margin-left: 15px;
    flex-wrap: wrap;
}


.box-item {
    width: 250px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 0 10px;
}

.tournament-info .box-item h4,
.tournament-info .box-item2 h4 {
    margin: 0;
    font-size: 18px;
    flex-grow: 1;
    text-align: center;
}

.tournament-info .box-item,
.tournament-info .box-item2 h4 {
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.07);
    padding: 10px 30px;
    background-color: #fff;
    border-radius: 40px;
    margin-bottom: 30px;
}

    .tournament-info .box-item h4 a,
    .tournament-info .box-item2 h4 a{
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        text-decoration: none;
        color: inherit;
    }

        .tournament-info .box-item h4 a i.download-icon {
            margin-left: 10px;
            margin-right: 0;
        }

    .tournament-info .box-item:hover h4 a,
    .tournament-info .box-item2:hover h4 a {
        color: #4b8ef1;
    }

.tournament-info .gradient-button {
    margin-top: 30px;
    margin-bottom: 10px;
}

.features-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    padding: 60px 20px;
    flex-wrap: wrap;
    background-color: #ffffffcc;
}

.feature-item {
    flex: 1 1 250px;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

    .feature-item i {
        font-size: 40px;
        color: #3498db;
        margin-bottom: 10px;
    }

.about-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 12px;
    margin-top: 40px;
}

    .about-section h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

@media (max-width: 768px) {
    .carousel-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
        gap: 24px;
        padding: 20px;
        height: 100%;
    }

    .carousel-card {
        width: 100%;
        max-width: 420px;
        min-width: unset;
        height: auto;
        border-radius: 12px;
        transition: none;
        box-shadow: 1px 5px 15px #1e0e3e;
        transform: none;
        cursor: default;
    }

    .carousel-content {
        color: #fff;
        padding: 16px;
        opacity: 1;
        transform: none;
        justify-content: normal;
    }

    .carousel-card:hover {
        flex: 0 0 380px;
        transform: none;
        box-shadow: 1px 5px 15px #1e0e3e;
    }

        .carousel-card:hover .carousel-content {
            transform: none;
            opacity: 1;
        }
}
