.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 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 0;
}

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

.teacher-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.teacher-info div:nth-child(2n+1) {
    color: var(--gray-text-color);
    font-weight: 500;
}

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

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

.course-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

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

.course-table > div {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 40px 32px 19px 15px;
    gap: 10px;
}

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

.course-table a.course-name {
    font-weight: 500;
    font-size: 22px;
    color: var(--orange-text-color);
    text-decoration: none;
    min-height: 55px;
}

.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 {
        grid-template-columns: repeat(1, 1fr);
    }

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