.p_maktab_title {
    font-family: Bebas Neue;
    font-size: 40px;
    font-weight: 400;
    line-height: 60px;
    text-align: center;
    color: #2D487D;
}

.p_maktab_title span {
    color: #F75929;
}

.p_maktab_text {
    font-family: Montserrat;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    text-align: center;
    color: #2D487D;
    max-width: 745px;
    margin: 0 auto;
}

.p_maktab_box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 60px 0;
}

.p_maktab_card {
    max-width: 360px;
    width: 100%;
    height: 180px;
    padding: 24px;
    border-radius: 12px;
    position: relative;
    background-image: url(../image/p_maktab/card.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: .3s;
}

.p_maktab_card:hover{
    background-image: url(../image/p_maktab/Subtract.svg);
}

.p_maktab_card:hover .p_maktab_card_text p, .p_maktab_card:hover .p_maktab_card_num{
    color: white;
}

.p_maktab_card:hover .p_maktab_card_icon1{
    content: url(../image/p_maktab/talim.svg);
}

.p_maktab_card:hover .p_maktab_card_icon2 {
    content: url(../image/p_maktab/talim.svg);
}

.p_maktab_card:hover .p_maktab_card_icon3 {
    content: url(../image/p_maktab/kutbxona.svg);
}

.p_maktab_card:hover .p_maktab_card_icon4 {
    content: url(../image/p_maktab/university.svg);
}

.p_maktab_card:hover .p_maktab_card_icon5 {
    content: url(../image/p_maktab/kurslar.svg);
}

.p_maktab_card:hover .p_maktab_card_icon6 {
    content: url(../image/p_maktab/yotoqxona.svg);
}


.p_maktab_card_text {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}


.p_maktab_card_text p {
    font-family: Bebas Neue;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    text-align: left;
    color: #2D487D;
}

.p_maktab_card_num {
    font-family: Bebas Neue;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    text-align: center;
    color: #2D487D40;

}

.p_maktab_btns {
    display: grid;
    justify-content: center;
}

.p_maktab_btns>div {
    margin-bottom: 16px;
}

.p_maktab_btn {
    padding: 21px 73px;
    font-family: Montserrat;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    text-align: left;
}

.p_maktab_btns>a {
    font-family: Montserrat;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    color: #2D487D;
    text-decoration: none;
    max-width: 313px;
}



@media (max-width:1215px) {
    .p_maktab_box {
        gap: 20px;
    }

    .p_maktab_card_text p {
        font-size: 20px;
    }

}

@media (max-width:1060px) {
    .p_maktab_box {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }

    .p_maktab_card {
        width: 360px;
    }
}



@media (max-width:900px) {
    .p_maktab_title {
        font-size: 35px;
        line-height: 40px;
    }

    .p_maktab_text {
        font-size: 18px;
        line-height: 30px;
    }


}


@media (max-width:800px) {
    .p_maktab_card {
        width: 310px;
        height: 160px;
    }

    .p_maktab_card_text p {
        font-size: 18px;
        line-height: 25px;
    }

    .p_maktab_btn {
        font-size: 18px;
        padding: 18px 10px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width:700px) {

    .p_maktab_title {
        font-size: 30px;
        line-height: 40px;
    }

    .p_maktab_box {
        grid-template-columns: none;
        justify-content: center;
    }

    .p_maktab_card {
        width: 310px;
        height: 160px;
    }

    .p_maktab_card_text p {
        font-size: 18px;
        line-height: 25px;
    }

    .p_maktab_btn {
        font-size: 16px;
        padding: 15px 10px;
        width: 100%;
        text-align: center;
    }
}