@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Leckerli+One&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&family=Send+Flowers&display=swap');

:root{
    --background-main: #faf9f6;
    --background-sec: #F0F2F5;
    --background-third: #F7F6F3;
    --background-fourth: #121212;
    --accent-gold: #CCac00;
    --box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);

    --text-regular1: Roboto;
    --text-regular2: Open Sans;
    --text-bold: Cal Sans;          
    --text-stylish: Leckerli One;
}

main{
    .package-offers{
        height: 90vh;
        overflow: hidden;

        .swiper{
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            height: 100%;

            .swiper-wrapper{
                position: relative;
                display: flex;
                width: 100%;
                height: 90%;

                .package{
                    display: flex;
                    flex-direction: column;
                    width:100%;
                    height: 100%;
                    transition: transform 0.5s ease;
                    
                    .heading{
                        margin-top: 10px;
                        margin-left: 10px;
                        justify-self: flex-start;
                        color: var(--background-fourth);
                        font-size: 3rem;
                        font-family: var(--text-bold);
                    }

                    .content{
                        position: relative;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        justify-content: flex-end;
                        align-self: center;
                        gap: 20px;
                        margin-top: 2%;
                        padding: 30px;
                        width: 70%;
                        height: 90%;
                        border-radius: 40px;
                        cursor: pointer;
                        box-shadow: var(--box-shadow);

                        background-size: cover;
                        background-position: center;
                        background-repeat: no-repeat;
                        overflow: hidden;


                        .package-description{
                            color: var(--background-third);
                            font-size: 1.6rem;
                            font-family: var(--text-regular2);
                            text-align: center;
                            z-index: 20;
                        }

                        button{
                            padding: 12px 25px;
                            color: var(--background-main);
                            font-weight: bold;
                            background: var(--background-fourth);
                            box-shadow: var(--box-shadow);
                            border-radius: 30px;
                            border: none;
                            cursor: pointer;
                            z-index: 20;
                        }

                        &::after{
                            content: '';
                            position: absolute;
                            bottom: 0;
                            left: 0;
                            width: 100%;
                            height: 50%;
                            backdrop-filter: blur(100px);
                            background: linear-gradient(to top, rgba(0, 0, 0, .5),  transparent);
                            mask-image: linear-gradient(to top, black, transparent);
                            -webkit-mask-image: linear-gradient(to top, black, transparent);
                            z-index: 10;
                        }
                    }
                }
            }

            .swiper-pagination {
                display: flex;
                justify-content: center;

                .swiper-pagination-bullet {
                    width: 8px;
                    height: 8px;
                    border-radius: 4px;
                    background: var(--background-fourth);
                    transition: all 0.3s ease;
                    cursor: pointer;
                }
                .swiper-pagination-bullet-active{
                    width: 24px;
                }
            }
        }
    }
}

@media(max-width: 500px){
    main{
        .package-offers{
            .swiper{
                .swiper-wrapper{
                    .package{
                        .heading{
                            margin-top: 5px;
                            margin-left: 5px;
                            font-size: 2.5rem;
                        }
                        .content{
                            padding: 10px;
                            padding-bottom: 15px;
                            width: 85%;

                            .package-description{
                                font-size: 1.5rem;
                            }

                            &::after{
                                height: 50%;
                            }
                        }
                    }
                }
            }
        }
    }
}