/* ======= Google font import -poppins ====== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
/* ====== Colors ======= */

:root {
    --red: #A50029;
    --white: #ffff;
    --black: #000;
    --gray: #858585;
    --light-gray: #F2F2F2;
    --main-width: 1500px;
}

body{
    height: 100vh;
    position: relative;
}


.how_to_buy{
    /* width: 1380px;
    margin: 0 auto; */
    padding-top: 80px;
    margin: 0 3%;
    
    h4{
        text-align: center;
        font-size: 30px;
        font-weight: 700;
        margin-top: 2rem;
        color: var(--red);
    }
    .description{
        background-color: var(--red);
        color: #ffff;
        padding: 1rem;
        
        h5{
            text-align: center;
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        p{
            font-size: 16px;
            font-weight: 400;
            padding: 0 3%;
            line-height: 1.7;
        }
    }
    .how_it_works{
        .title{
            margin-top: 1rem;
            color: var(--red);
        }
        ul{
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            grid-auto-rows: 1fr;
            gap: 48px;
            margin: 24px 0 0;
            padding-left: 0rem;
            text-decoration: none;
            list-style: none;
            li{
                position: relative;
                padding: 16px 20px;
                min-height: 148px;
                font-size: 18px;
                line-height: 1.4;
                font-weight: bold;
                background: #fff;
                color: #303030;
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
                border-radius: 12px;
                box-sizing: border-box;
                b{
                    display: block;
                    font-size: 36px;
                    font-weight: bold;
                    color: #c6d0d5ad;
                    line-height: 36px;
                    margin-bottom: 12px;
                }
            }
        }
    }

    .content_grid_how_to_buy{
        padding-bottom: 2rem;
        .title_how_to{
            margin-top: 2rem;
            margin-bottom: 1rem;
            span{
                color: var(--red);
            }
        }
        .grid-wrap {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            column-gap: 5rem;
            .info {
                display: flex;
                align-items: center;
                ul {
                    padding-left: 1rem;
                    li {
                        list-style: disc;
                        list-style-position: outside;
                        padding: 5px 0;
                        color: var(--gray);
                        font-size: 17px;
                    }
                }
            }
            .photo {
                background: #C9C9C9;
                text-align: center;
                width: 100%;
                max-height: 300px;
                img {
                    height: 100%;
                    width: 100%;
                    object-fit: contain;
                }
            }
        }

    }
}
@media (min-width: 1582px ){
    .how_to_buy{
       margin: 0 10%;
    }
}

@media (max-width: 952px ){

    .how_to_buy{
        .how_it_works{
            ul {
                grid-template-columns: repeat(5, 1fr);
                    grid-auto-rows: 1fr;
                gap: 20px;
                li{
                    font-size: 14px;
                    b{
                        font-size: 22px;
                    }
                }
            }
        }
        .content_grid_how_to_buy {
            .grid-wrap {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                column-gap: 3rem;
                .info {
                    ul {
                        li {
                            list-style: disc;
                            list-style-position: outside;
                            padding: 5px 0;
                            color: var(--gray);
                            font-size: 14px;
                        }
                    }
                }
            }
        }
    }

}

@media (max-width: 858px ){

    .how_to_buy{
        .how_it_works{
            ul {
                grid-template-columns: repeat(5, 1fr);
                    grid-auto-rows: 1fr;
                gap: 7px;
            }
        }
        .content_grid_how_to_buy {
            .grid-wrap {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                column-gap: 1rem;
                .info {
                    ul {
                        li {
                            list-style: disc;
                            list-style-position: outside;
                            padding: 5px 0;
                            color: var(--gray);
                            font-size: 12px;
                        }
                    }
                }
            }
        }
        h4 {
            text-align: center;
            font-size: 20px;
            font-weight: 700;
            margin-top: 2rem;
            color: var(--red);
        }
        .description {
            h5 {
                text-align: center;
                font-size: 14px;
                font-weight: 600;
                margin-bottom: 1rem;
            }
            p {
                font-size: 12px;
                font-weight: 400;
                padding: 0 3%;
                line-height: 1.7;
            }
        }
    }

    
}


@media (max-width: 600px){
    .how_to_buy{
        .how_it_works{
            ul {
                grid-template-columns: repeat(4, 1fr);
                    grid-auto-rows: 1fr;
                gap: 7px;
            }
        }
    }

}

@media (max-width: 400px){
.how_to_buy{
        .how_it_works{
            ul {
                grid-template-columns: repeat(3, 1fr);
                    grid-auto-rows: 1fr;
                gap: 7px;
            }
        }
    }
}