html, body {
    margin: 0;
}
* {
    font-family: "Press Start 2P", system-ui;

}

:root {
    --btn-blue: "0A36C5";
    --bg: "#0A0B15";
    --roboto: "Roboto Condensed";
}

.roboto {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: normal;
}

body {
    background-color: #0A0B15;
    color: white;
    font-size: 25px;
    line-height: 130%;
}

.photo-holder > img {
    height: 525px;
    width: 525px;
}

.btn-sub {
    background: #0A36C5;
    color: white;
    height: 80px;
    width: 295px;
    font-size: 20px;
    line-height: 180%;
    border: 0;
    /*border-radius: calc(infinity * 1px);*/
    cursor: pointer;

}

.text-holder > .sub-title {
    margin-bottom: 70px;
}

.sub-title {
    font-size: 35px;

}

.info {
    margin-bottom: 97px;
}

.teachers-overall {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 100px;

}

.container {
    margin: auto 102px;
}



/*.select > img {*/
/*    height: 42px;*/
/*    width: 42px;*/
/*}*/

.skrew {
    position: relative;
    display: inline-block;
    /*padding: 14px 36px;*/
    padding: 0;
    background-color: #0047ff;
    color: white;
    font-family: 'Press Start 2P', monospace;
    /*font-size: 14px;*/
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s;
    clip-path: polygon(
            0 0,
            calc(100% - 20px) 0,
            100% 20px,
            100% 100%,
            20px 100%,
            0 calc(100% - 20px)
    );
}

.skrew::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
            120deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent
    );
    transform: skewX(-25deg);
}

@keyframes shine {
    from {
        left:-75%;
    }
    to {
        left:128%;
    }
}

.skrew:hover::before {
    animation: shine 0.8s forwards;
}

.skrew:hover {
    background-color: #2563ff;
}


.teachers-info {
    margin-top: 175px;
}

.title-teachers-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 70px;
}

.select {
    display: flex;
    gap: 63px;
}

.cards-info {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
}

.cards-info > div {
    word-break: break-word;
    max-width: 295px;
}

.cards-info > div > h3 {
    font-size: 24px;
    line-height: 150%;
    margin-bottom: 0;
}

.cards-info > div > img {
    background: white;
    width: 295px;
    height: 295px;
}

.cards-info > div > p {
    margin: 0;
    font-size: 22px;
    font-family: var(--roboto), sans-serif;

}

.questions-sec {
    margin-top: 170px
}

.questions-sec > h3 {
    margin-bottom: 60px;
}

.questions > li {
    font-size: 20px;
    border-bottom: 1px solid;
    padding: 0 50px 30px 0;
    background: url("./imgs/assets/arrow-in.png") no-repeat right top;
    background-size: 30px;
    cursor: pointer;
    transition: all 100ms ease-in-out;
}
.toggle-arrow {
    background: url("./imgs/assets/arrow-out.png") no-repeat right top;
}

.questions > li > p {
    padding-left: 84px;
}

.questions li::marker {
    color: blue;
    display: inline;
}

.questions{
    list-style: decimal-leading-zero inside;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 0;
}

.questions > li > p {
    padding-left: 84px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
    transform: translateY(-10px);
}


@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        margin-top: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        margin-top: 20px;
    }
}

@keyframes slideUp {
    from {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        margin-top: 20px;
    }
    to {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        margin-top: 0;
    }
}

/*@keyframes rotate {*/
/*    from {*/
/*        transform: rotateX(0);*/
/*    }*/
/*    to {*/
/*        transform: rotateX(10px);*/
/*    }*/

/*}*/

.questions > li > p:not(.hidden) {
    animation: slideDown 0.4s ease-in-out forwards;
}
.questions > li > p.hidden {
    animation: slideUp 0.3s ease-in-out forwards;
}

@media (max-width: 768px) {
    .container{
        margin: auto 20px;
    }
    body {
        font-size: 18px;
    }
    .cards-info {
        flex-direction: column;

    }
    .title-teachers-info {
        flex-direction: column;
    }
    .teachers-overall {
        flex-direction: column;
        gap: 40px
    }
    .photo-holder > img {
        width: 100%;
        height: auto;
    }

    .questions {
        gap: 40px
    }
    .questions>li {
        font-size: 16px;
    }

    .teachers-info {
        justify-content: center;
        justify-items: center;
    }

    .sub-title {
        font-size: 20px;
    }
    .cards-info > div > p {
        font-size: 18px;
    }
    .cards-info > div > h3 {
        font-size: 20px;
    }
    .cards-info > div > img {
        width: 100%;
        height: auto;
    }

    .cards-info > div {
        justify-items: center;
        justify-content: center;

    }
    .cards-info {
        justify-content: center;
        text-align: center;
    }

    .btn-sub {
        width: 100%;
    }
    .sub-title {
        text-align: center;
    }
    section {
        margin-bottom: 200px;
    }
    .questions > li > p {
        padding-left: 64px;
    }
}