/* homes/index.html 교사 파트 전용 스타일 */
/* ===== teacher-area ===== */
.teacher-area {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url('/static/images/main/main_bg3.png') top center no-repeat;
    background-size: cover;
}

.teacher-area-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, rgba(255,248,235,0.45) 0%, rgba(250,240,210,0.25) 50%, rgba(60,40,10,0.12) 100%);
    pointer-events: none;
    z-index: 0;
}

.teacher-area .page-header {
    background: #FFF8F0 url('/static/images/teacher/bg_main.png') top center no-repeat;
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.teacher-area-inner {
    position: relative;
    z-index: 1;
}

.teacher-title-img {
    height: auto;
}

/* 브랜드 카드 */
.teacher-brand-card .main-box-background {
    /* main-box-background는 기존 클래스 유지, 배경이미지는 인라인으로 개별 지정 */
}

.teacher-brand-logo {
    height: auto;
}

.teacher-brand-btn {
    display: block;
    margin: 8px 0;
    text-align: center;
}

/* 스페셜래스 큰 버튼 */
.teacher-special-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 35px 40px;
    text-align: center;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #333;
}

.teacher-special-icon {
    display: block;
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #F5A623;
}

/* 하단 미니 버튼 4개 */
.teacher-mini-btn {
    display: block;
    padding: 8px 10px;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #333;
}

.teacher-mini-btn.no-margin {
    margin-bottom: 0;
}

.teacher-mini-icon {
    display: block;
    font-size: 1.3em;
    margin-bottom: 5px;
    color: #F5A623;
}

.teacher-mini-label {
    font-size: 0.9em;
}

.teacher-special-wrap {
    margin-bottom: 10px;
}

/* 모바일: 하단 카드와 footer 사이 여백 확보 + 과도한 사이즈 축소 */
@media (max-width: 767px) {
    .teacher-area .page-header {
        padding-bottom: 40px;
    }

    /* 타이틀 이미지: 화면 너비에 맞춰 축소 */
    .teacher-title-img {
        max-width: 90%;
        height: auto;
    }

    /* 브랜드 카드: 모바일에서 1열 → 2열 (col-sm-6이 xs에서 미적용되므로 강제) */
    .teacher-brand-card {
        width: 50%;
        float: left;
        padding: 0 6px;
    }

    /* 스페셜클래스 큰 버튼: 1.8em → 1.25em, 패딩 축소 */
    .teacher-special-btn {
        padding: 20px 18px;
        font-size: 1.25em;
    }
    .teacher-special-icon {
        font-size: 1.2em;
        margin-bottom: 6px;
    }

    /* 하단 미니 버튼: 1.1em → 0.95em, 패딩 축소 */
    .teacher-mini-btn {
        padding: 6px 6px;
        font-size: 0.95em;
    }
    .teacher-mini-icon {
        font-size: 1.1em;
        margin-bottom: 3px;
    }
    .teacher-mini-label {
        font-size: 0.85em;
    }
}

/* 초소형 화면(480px 이하): 카드 1열, 버튼 더 축소 */
@media (max-width: 480px) {
    .teacher-brand-card {
        width: 100%;
        float: none;
        padding: 0;
    }
    .teacher-special-btn {
        font-size: 1.1em;
        padding: 16px 14px;
    }
}
