.hero {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    height: 60vh;
    background-image: url("/assets/img/hero-img.webp");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .hero {
        background-image: url("/assets/img/hero-img-mob.webp");
        background-position: center;
        height: calc(100vh - 112px);
    }
}

.hero__container__box {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background-color: var(--dark-color);
    clip-path: polygon(0 0, 80% 0%, 100% 100%, 0% 100%);
    opacity: .7;
}

@media (max-width: 768px) {
    .hero__container__box {
        width: 100%;
        clip-path: unset;
    }
}

.hero__container {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    font-size: 4rem;
    color: white;
    position: relative;
}

@media (max-width: 768px) {
    .hero__container {
        width: 90%;
    }
}

.hero__container p {
    font-size: 3rem;
}

.hero__container h1 {
    color: var(--navigation-btn-color);
}

@media (max-width: 768px) {
    .hero__container h1 {
        line-height: 1;
    }
}

.hero__container__link {
    background: var(--navigation-btn-color);
    padding: 1rem 2rem;
    color: var(--text-color);
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 2rem;
    margin-top: var(--spacing-lg);
}

.hero__container__link:hover {
    background-color: var(--navigation-btn-color-hover);
}

.games {
    position: relative;
    bottom: 5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

.games__container, .games__container-lg {
    width: 80%;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    border-radius: 5px;
    z-index: 100;
    background-color: white;
}

.games__container-lg {
    display: flex;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.games__container-lg:nth-of-type(1) {
    background-image: url("../img/live_betting.webp");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    height: 400px;
}

.games__container__list {
    display: grid;
    width: 80%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.games__container-lg.visible,
.games__container__list.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .games__container {
        grid-template-columns: repeat(1, 1fr);
        text-align: center;
    }
}

@media (max-width: 768px) {
    .games__container {
        width: 90%;
    }

    .games__container-lg:nth-of-type(1) {
        height: auto;
    }
}

/* Game card styles */
.game-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 1px solid #ccc;
    padding: 1rem 1rem;
    border-radius: 5px;
}

@media (max-width: 500px) {
    .game-card {
        flex-direction: column;
    }
}

.game-card-sm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.game-card-sm:hover {
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.5);
}

.game-card-sm img {
    width: 100%;
    aspect-ratio: 2 / 1; /* keeps 2:1 ratio */
    object-fit: cover;
    border-radius: 5px;
}

.game-card-sm .game-card__buttons {
    flex-direction: column;
    width: 100% !important;
}

.game-card__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.game-card__info p {
    text-align: center;
}

.game-card__info img {
    width: 400px;
    height: 230px;
    object-fit: cover;
    border-radius: 5px;
}

.games-card-game-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 5px;
    overflow: hidden;
}

/* First gradient ray */
.games-card-game-wrapper::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 20%;
    height: 200%;
    background: linear-gradient(
            to bottom,
            rgba(255, 215, 0, 0.6) 0%, /* strong gold at top */ rgba(255, 215, 0, 0) 65%, /* fully transparent at halfway */ rgba(255, 215, 0, 0) 100% /* remains invisible */
    );
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 1;
}

/* Second gradient ray — fades out halfway */
.games-card-game-wrapper::after {
    content: "";
    position: absolute;
    top: -50%;
    right: 25%;
    width: 20%;
    height: 200%;
    background: linear-gradient(
            to bottom,
            rgba(255, 215, 0, 0.6) 0%, /* solid at top */ rgba(255, 215, 0, 0) 100% /* fully transparent at bottom */
    );
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 500px) {
    .game-card__info img {
        width: 100%;
    }
}

.game-card__buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
}

@media (max-width: 1200px) {
    .game-card__buttons {
        width: 50%;
    }
}

@media (max-width: 600px) {
    .game-card__buttons {
        width: 100%;
    }
}

.game-card__buttons a {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 1rem 1rem;
    text-decoration: none;
    background-color: #4c61ee;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.game-card__buttons a:hover {
    background-color: #2a48ec;
}

.game-card__buttons .btn--play {
    background-color: var(--game-card-play-btn-color);
}

.game-card__buttons .btn--play:hover {
    background-color: var(--game-card-play-btn-color-hover);
}

.game-card-live-betting {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
}

@media (max-width: 1200px) {
    .game-card-live-betting {
        align-items: center;
    }
}

.game-card-live-betting h2 {
    font-size: 6rem;
    text-shadow: 2px 2px 2px #ff0000;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.game-card-live-betting h2 img {
    width: 6rem
}

.heading-2 {
    font-size: 3rem;
}

@media (max-width: 1200px) {
    .game-card-live-betting h2, .game-card-live-betting h2 img {
        font-size: 5rem;
    }

    .game-card-live-betting p {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .game-card-live-betting h2 {
        font-size: 4rem;
        text-align: center;
    }

    .game-card-live-betting h2 img {
        display: none;
    }

    .game-card-live-betting h2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

.game-card-live-betting p {
    background-color: #ffffff;
    width: 65%;
    font-size: 2rem;
    padding: 1rem 2rem;
    border-radius: 5px;
    color: var(--text-color);
}

.game-card-live-betting .game-card__buttons {
    width: 65%;
}

@media (max-width: 1200px) {
    .game-card-live-betting p, .game-card-live-betting .game-card__buttons {
        width: 100%;
    }

    .game-card-live-betting p {
        font-size: 1.6rem;
    }
}
