.teacher-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.teacher-block {
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: white;
    padding: 30px;
}

.teacher-header {
    display: flex;
    gap: 25px;
    align-items: center;
}

.teacher-header img {
    width: 220px;
}

.teacher-title {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.teacher-title h1 {
    margin-bottom: 0;
}

.teacher-title a {
    font-size: 22px;
    font-weight: 500;
    color: var(--orange-text-color);
}

.teacher-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.teacher-info section {
    display: flex;
    gap: 20px;
}

.teacher-info section h2 {
    color: var(--gray-text-color);
    font-weight: 500;
    font-size: 16px;
    flex: 1;
}

.teacher-info.no-all section:nth-child(n+6) {
    display: none;
}

.show-all {
    color: var(--orange-text-color);
    text-decoration: underline;
    font-weight: 500;
    margin: auto;
    cursor: pointer;
}

.course-table {
    margin-top: 40px;
    display: grid;
    gap: 20px;
}

.course-table .info {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.course-table .timing-block {
    display: flex;
    text-transform: uppercase;
    color: var(--gray2-text-color);
}

.course-table .timing-block span {
    margin-left: 10px;
    color: black;
}

.course-label-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-table .course-label-block {
    position: absolute;
    top: 0;
    left: 15px;
}

.course-table article {
    background: white;
    padding: 50px 27px 30px 27px;
}

.course-table article .course {
    display: flex;
    flex-direction: column;
}

.course-table a.course-section {
    font-size: 17px;
    font-weight: 500;
    color: var(--violet-text-color);
    text-decoration: underline;
}

.course-table h3 {
    color: var(--orange-text-color);
    text-decoration: none;
    margin-bottom: 0;
}

.course-table .anons {
    color: var(--gray4-text-color);
}

.course-label {
    display: flex;
    align-items: center;
    font-size: 16px;
    text-transform: uppercase;
    height: 34px;
    width: max-content;
    color: var(--white-text-color);
    padding: 0 10px;
}

.course-label.hit,
.course-label.free,
.course-label.author {
    background: var(--orange-color);
}

.course-label.open {
    background: var(--violet-color);
}

@media (max-width: 780px) {
    .teacher-block {
        padding: 10px;
    }

    .teacher-page {
        gap: 25px;
    }

    .teacher-page h2 {
        font-size: 30px;
    }

    .teacher-header {
        flex-direction: column;
    }

    .teacher-info section {
        flex-direction: column;
    }

    .course-table {
        grid-template-columns: repeat(1, 1fr);
    }

    .course-table .info {
        flex-direction: column;
        align-items: start;
        gap: 5px;
    }

    .course-table article {
        background: white;
        padding: 40px 10px 10px 10px;
    }
}
