
@media screen and (max-width:808px) {
    section{
        display: grid; /* Switch to grid for tablet layout */
        grid-template-columns: 40% 60%; /* Two equal columns */
        grid-template-rows: repeat(2, 1fr); /* Two equal rows */
        height: auto;
    }

    .box{
        width: 100%;
    }
    .box1 {
        grid-column: 1; /* Left column */
        grid-row: 1; /* Top row */
    }

    .box2 {
        grid-column: 2; /* Right column */
        grid-row: 1 / span 2; /* Span full height */
    }

    .box3 {
        grid-column: 1; /* Left column */
        grid-row: 2; /* Bottom row */
    }

}




@media screen and (max-width:667px){
    section {
        width: 80%;
        display: flex; /* Use flex for column layout */
        flex-direction: column; /* Stack all boxes vertically */
        height: auto; /* Allow height to adjust automatically */
    }

    .box {
        width: 100%; /* Full width for each box */
    }
    .box2{
        order: -1;
        height: 50vh;
    }

    .box2 .wrap{
        width: 80%;
        height: 90%;
    }

    .box2 .wrap img{
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .box1 h1{
        font-size: 4.8rem;
        text-align: center;
    }

    section .box3{
        justify-content: center;
        background-color: var(--bgColor);
    }

    .box3 h1{
        font-size: 3.8rem;
    }

    .box3 p{
        font-size: 2rem;
    }

    .btn a:nth-child(1){
        border-color: white;
    }

    .box1 , .box3{
        min-height: 330px;
    }



}


@media screen and (max-width:600px) {
    .content{
        flex-direction: column;
        height: auto;
    }

    .content .pack{
        width: 100%;
        height: 50%;
    }

    .pack2{
        padding: 2rem 0;
    }
}


@media screen and (max-width:557px){
    section{
        width: 100%;
    }

}


@media screen and (max-width:508px){
    .book .clip{
        height: 300px;
        flex-direction: column;
        overflow: hidden;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        scrollbar-width: none;
    }

    .clip .clip-content{
        flex-direction: column;
        width: 100%;
        min-width: 200px;
    }

    .clipVideo{
        width: 100%;
    }

    .clipContent{
        width: 100%;
    }

    .carrousel .wrapper{
        width: 100%;
    }
}

