.ReferansMain {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}

/* Video Player Container */
.video-container-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    width: auto;
}

.video-player-box {
    position: relative;
    height: 463px;
    aspect-ratio: 9 / 16;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
}

.video-player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the entire area without distortion */
    display: block;
}

.nav-button {
    background-color: rgba(82, 216, 244, 0.7);
    /* Semi-transparent blue */
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 5px;
    /* Space between button and video box */
    flex-shrink: 0;
    /* Prevent buttons from shrinking */
}

.nav-button:hover {
    background-color: #52d8f4;
}


@media screen and (max-width: 1118px) {
    .Referans.Title {
        display: inline-flex;
        align-items: center;
        border-top-right-radius: 25px;
        border-bottom-right-radius: 25px;
        width: 380px;
        height: 50px;
        background: #52d8f4;
        color: white;
        padding-left: 8px;
        font-size: 11px;
    }

    .miniTitle {
        margin-left: 10px;
        margin-top: 10px;
        color: white;
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .RefList {
        color: white;
        margin-left: 10px;
        margin-right: 10px;
        list-style: disc;
        padding-left: 20px;
    }

    .RefList li {
        margin-bottom: 10px;
        line-height: 1.4;
    }


    .Cont {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }

    .RefeBox {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(auto-fit, 150px);
        gap: 15px;
        justify-content: center;
        padding: 10px;
    }

    .Refe {
        background: white;
        height: 150px;
        width: 150px;
        border-radius: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    .Refe img {
        width: 100%;
        /* Ensure image fills the box */
        object-fit: cover;
    }

    .video-container-wrapper {
        flex-direction: row;
        margin: 10px;
    }

    .nav-button {
        font-size: 20px;
        padding: 8px 12px;
    }
}

@media screen and (min-width: 1118px) {

    .Referans.Title {
        display: inline-flex;
        align-items: center;
        border-top-right-radius: 25px;
        border-bottom-right-radius: 25px;
        width: 360px;
        height: 50px;
        background: #52d8f4;
        color: white;
        padding-left: 8px;
        font-size: 12px;
    }

    .miniTitle {
        margin-left: 10px;
        margin-top: 10px;
        color: white;
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .RefList {
        color: white;
        margin-left: 10px;
        margin-right: 10px;
        list-style: disc;
        padding-left: 20px;
    }

    .RefList li {
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .Cont {
        flex: 1;
        display: flex;
        justify-content: space-around;
    }

    .RefeBox {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(auto-fit, 150px);
        gap: 15px;
        padding: 10px;
    }

    .Refe {
        background: white;
        height: 150px;
        width: 150px;
        border-radius: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    .Refe img {
        width: 100%;
        /* Ensure image fills the box */
        object-fit: cover;
    }

    /* Video container for larger screens */
    .video-container-wrapper {
        margin: 40px auto;
    }

    .nav-button {
        font-size: 24px;
        padding: 10px 15px;
    }
}