@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{
    .testimonials-section{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 50px;
        margin: 0 auto;
        margin-bottom: 150px;
        height: 100vh;
        width: 100%;

        h4{
            font-size: 2.5rem;
            font-family: var(--text-bold);
        }

        .desktop-testimonial-grid{
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            width: 70%;
            height: 85%;

            .container-1, .container-2, .container-3{
                width: 33%;

                .testimonial{
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    margin-bottom: 8px;
                    padding: 15px;
                    width: 90%;
                    font-family: var(--text-regular1);
                    background: rgba(87, 94, 85, .1);
                    backdrop-filter: blur(38px);
                    border-radius: 20px;
                    border: 1px solid rgba(255, 255, 255, 0.5);
                    cursor: pointer;
                    
                    .message {
                        color: var(--background-fourth);
                        font-size: 16px;
                        line-height: 1.3;
                        margin: 0;
                    }

                    .author {
                        align-self: flex-end;
                        color: var(--background-fourth);
                        font-size: 14px;
                        font-weight: 600;
                    }
                }
            }
            .container-1{
                height: 75%;
                .card-1{
                    height: 35%;
                }
                .card-2{
                    height: 55%;
                }
            }
            .container-2{
                height: 100%;
                .card-3{
                    height: 50%;
                }
                .card-4{
                    height: 40%;
                }
            }
            .container-3{
                height: 65%;
                .card-5{
                    height: 60%;
                }
                .card-6{
                    height: 25%;
                }
            }
        }

        .mobile-testimonial-grid{
            display: none;
        }
    }
}

@media (max-width: 850px) {
    main{
        .testimonials-section{
            margin-bottom: 90px;
            padding: 30px 0px;
            padding-top: 0;
            height: auto;

            .desktop-testimonial-grid{
                display: none;
            }
            .mobile-testimonial-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                grid-auto-rows: 180px;
                gap: 8px;
                row-gap: 12px;

                .testimonial {
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    padding: 15px;
                    width: 150px;
                    font-family: var(--text-regular1);
                    background: rgba(87, 94, 85, .1);
                    backdrop-filter: blur(38px);
                    border-radius: 20px;
                    border: 1px solid rgba(255, 255, 255, 0.5);
                    cursor: pointer;
                    
                    .message {
                        color: var(--background-fourth);
                        font-size: 16px;
                        line-height: 1.3;
                        margin: 0;
                    }

                    .author {
                        align-self: flex-end;
                        color: var(--background-fourth);
                        font-size: 14px;
                        font-weight: 600;
                    }
                }
                .card-1 {
                    grid-row: span 1;
                }
                .card-2 {
                    grid-row: span 2;
                }
                .card-3 {
                    grid-row: span 1;
                }
                .card-4 {
                    grid-row: span 2;
                }
                .card-5 {
                    grid-row: span 1;
                }
                .card-6 {
                    grid-row: span 1;
                }
            }
        }
    }
}