﻿section {
    width: 75% !important;
    margin: 50px auto;
    line-height: 30px;
}

/*--------------------------- titles ------------------------------*/

main .text h1,
main .text h2,
main .text h3,
main .text h4,
main .text h5,
main .text h6 {
    color: var(--second-color) !important;
    border-bottom: 2px var(--first-color) solid !important;
    padding-bottom: 7px !important;
    margin-bottom: 15px !important;
    width: fit-content !important;
    font-family: vazir, system-ui !important;
    line-height: 30px !important;
}

main .text p {
    font-family: vazir, system-ui !important;
    line-height: 30px !important;
}

main .text ul, main .text ol {
    padding: 0;
    font-family: vazir, system-ui !important;
    list-style-type: none;
    line-height: 30px !important;
}

main .text li {
    font-family: vazir, system-ui !important;
}

main .text ul li::before {
    font-family: "Font Awesome 6 Free" !important;
    content: "\f104" !important;
    font-weight: 900 !important;
    margin-left: 0.5rem !important;
    color: var(--second-color) !important;
}

/*--------------------------- know more ------------------------------*/

main .know-more {
    display: flex;
    align-items: center;
    gap: 20px;
}

    main .know-more .content {
        width: 40%;
    }

        main .know-more .content .text {
            width: 85%;
            text-align: justify;
        }

            main .know-more .content .text :last-child {
                font-size: 13px;
            }

    main .know-more .img {
        width: 60%;
        height: 450px;
    }

        main .know-more .img img {
            width: 100%;
            height: 100%;
            border-radius: 7px;
            object-fit: cover;
        }

/*--------------------------- options ------------------------------*/

main .options {
    display: flex;
    align-items: center;
    gap: 20px;
}

    main .options .img {
        width: 40%;
        height: 350px;
    }

        main .options .img img {
            width: 100%;
            height: 100%;
            border-radius: 7px;
            object-fit: cover;
        }

    main .options .content {
        width: 60%;
    }

        main .options .content .text {
            width: 60%;
            margin: auto;
        }

            main .options .content .text .items {
                display: flex;
                flex-direction: column;
                row-gap: 12px;
                margin: 20px 0px;
            }

            main .options .content .text .item {
                display: flex;
                gap: 7px;
                align-items: center;
            }

                main .options .content .text .item .icon {
                    color: var(--second-color);
                }


/*--------------------------- certificates ------------------------------*/

main .certificates {
    display: flex;
    align-items: center;
    gap: 20px;
}

    main .certificates .content {
        width: 40%;
    }

        main .certificates .content .text {
            width: 85%;
        }

            main .certificates .content .text .other {
                display: flex;
                gap: 10px;
                flex-wrap: wrap;
                align-items: center;
                justify-content: left;
                aspect-ratio: 1/0.33;
            }

                main .certificates .content .text .other .cert-pic {
                    width: 43%;
                    height: 100%;
                    cursor: pointer;
                }

                main .certificates .content .text .other img {
                    width: 100%;
                    height: 100%;
                    border-radius: 7px;
                }

    main .certificates .img {
        width: 60%;
        aspect-ratio: 1/0.67;
    }

        main .certificates .img img {
            width: 100%;
            height: 100%;
            border-radius: 7px;
            object-fit: cover;
        }


@media screen and (max-width: 1280px) {
    section {
        width: 95% !important;
    }
}


@media screen and (max-width: 500px) {
    /*============ responsive styles ==============*/

    main .know-more,
    main .certificates {
        flex-direction: column;
    }

    main .options {
        flex-direction: column-reverse;
    }

    main :is(.know-more, .options, .certificates) .img,
    main :is(.know-more, .options, .certificates) .content,
    main :is(.know-more, .options, .certificates) .content .text {
        width: 100% !important;
    }

        main :is(.know-more, .options, .certificates) .content .text {
            padding: 0px 5px;
        }

    main :is(.know-more, .options, .certificates) .img {
        height: 200px;
    }

    main .certificates .content .text .other {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 10px auto;
    }

        main .certificates .content .text .other a img {
            width: 100%;
        }
}
