/* =========================================================
   ELTO Teacher List - isolated component CSS
   This stylesheet is intentionally scoped under .eltoTeacherArea
   ========================================================= */

.eltoTeacherArea,
.eltoTeacherArea *,
.eltoTeacherArea *::before,
.eltoTeacherArea *::after {
    box-sizing: border-box;
}

.eltoTeacherArea {
    display: block;
    position: relative;
    width: min(1170px, calc(100% - 24px));
    max-width: 1170px;
    margin: 0 auto;
    padding: 0;
    clear: both;
    font-family: "Noto Sans KR", "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #363636;
    text-align: left;
}

.eltoTeacherArea div,
.eltoTeacherArea ul,
.eltoTeacherArea ol,
.eltoTeacherArea li,
.eltoTeacherArea p,
.eltoTeacherArea h1,
.eltoTeacherArea h2,
.eltoTeacherArea h3,
.eltoTeacherArea h4,
.eltoTeacherArea h5,
.eltoTeacherArea h6 {
    margin: 0;
    padding: 0;
}

.eltoTeacherArea ul,
.eltoTeacherArea ol,
.eltoTeacherArea li {
    list-style: none;
}

.eltoTeacherArea a {
    font-family: inherit;
    font-weight: normal;
    text-decoration: none;
    outline: none;
    border: 0;
}

.eltoTeacherArea a:hover,
.eltoTeacherArea a:focus,
.eltoTeacherArea a:active {
    text-decoration: none;
}

.eltoTeacherArea::before,
.eltoTeacherArea::after,
.eltoTeacherArea .eltoTeacherGroup::before,
.eltoTeacherArea .eltoTeacherGroup::after {
    display: table;
    content: "";
}

.eltoTeacherArea::after,
.eltoTeacherArea .eltoTeacherGroup::after {
    clear: both;
}

/* =========================================================
   Main visual header
   ========================================================= */
.eltoTeacherHeader {
    position: relative;
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: end;
    width: 100%;
    min-height: 108px;
    margin: 0 0 30px 0;
    padding: 0 0 18px 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #dfe5ea;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

.eltoTeacherHeader::before {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 150px;
    height: 3px;
    background: #1769aa;
    content: "";
}

.eltoTeacherHeader::after {
    position: absolute;
    right: 0;
    bottom: 7px;
    width: 42%;
    height: 1px;
    background: #edf1f4;
    content: "";
}

.eltoTeacherHeaderLabel {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    height: 100%;
    margin: 0;
    padding: 0 0 2px 0;
    color: #c9e0f2;
    font-family: Arial, sans-serif;
    font-size: 58px;
    font-weight: 800;
    line-height: 58px;
    letter-spacing: -0.07em;
    text-align: left;
}

.eltoTeacherHeaderLabel::after {
    position: absolute;
    left: 67px;
    bottom: 4px;
    width: 1px;
    height: 52px;
    background: #dbe8f1;
    content: "";
}

.eltoTeacherHeaderLabel span {
    display: none;
}

.eltoTeacherMainTitle {
    position: relative;
    display: block;
    width: auto;
    margin: 0 0 0 18px;
    padding: 0;
    color: #202a33;
    font-family: inherit;
    font-size: 32px;
    font-weight: 800;
    line-height: 40px;
    letter-spacing: -0.065em;
    text-align: left;
}

.eltoTeacherMainTitle::before {
    display: none;
}

.eltoTeacherMainTitle::after {
    position: absolute;
    left: 0;
    top: -18px;
    width: 56px;
    height: 3px;
    background: #1769aa;
    content: "";
    transform: none;
}

.eltoTeacherMainSub {
    display: block;
    width: auto;
    margin: 2px 0 0 18px;
    padding: 0;
    color: #8c969f;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: -0.025em;
    text-align: left;
}

@media (max-width: 719px) {
    .eltoTeacherHeader {
        grid-template-columns: 64px 1fr;
        min-height: 94px;
        padding-bottom: 15px;
    }

    .eltoTeacherHeaderLabel {
        font-size: 42px;
        line-height: 44px;
    }

    .eltoTeacherHeaderLabel::after {
        left: 47px;
        height: 42px;
    }

    .eltoTeacherMainTitle {
        margin-left: 14px;
        font-size: 27px;
        line-height: 34px;
    }

    .eltoTeacherMainTitle::after {
        top: -12px;
        width: 46px;
    }

    .eltoTeacherMainSub {
        margin-left: 14px;
        font-size: 11px;
    }
}

@media (max-width: 479px) {
    .eltoTeacherHeader {
        grid-template-columns: 48px 1fr;
        min-height: 82px;
        margin-bottom: 24px;
    }

    .eltoTeacherHeaderLabel {
        font-size: 32px;
        line-height: 36px;
    }

    .eltoTeacherHeaderLabel::after {
        left: 36px;
        height: 34px;
    }

    .eltoTeacherMainTitle {
        margin-left: 10px;
        font-size: 23px;
        line-height: 30px;
    }

    .eltoTeacherMainTitle::after {
        top: -9px;
        width: 38px;
        height: 2px;
    }

    .eltoTeacherMainSub {
        margin-left: 10px;
        font-size: 10px;
        line-height: 16px;
    }

    .eltoTeacherHeader::after {
        display: none;
    }
}

.eltoTeacherGroup {
    display: block;
    width: 100%;
    margin: 0 0 30px 0;
    padding: 50;
}

.eltoTeacherTitle {
    display: block;
    width: 100%;
    margin: 0 0 15px 0;
    padding: 0;
    font-family: inherit;
    font-size: 24px;
    font-weight: 500;
    line-height: 70px;
    color: #333;
    text-align: left;
}

.eltoTeacherGrid {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(5, 226px);
    grid-auto-rows: 226px;
    gap: 10px;
    align-items: start;
    justify-content: start;
}

.eltoTeacherCard {
    position: relative;
    display: block;
    width: 226px;
    height: 226px;
    min-width: 226px;
    min-height: 226px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f4f3f3;
    list-style: none;
    text-align: left;
}

.eltoTeacherWrap {
    position: relative;
    display: block;
    width: 226px;
    height: 226px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #f4f3f3;
}

.eltoTeacherImage {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 226px !important;
    height: 226px !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 226px;
    min-height: 226px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    outline: 0;
    object-fit: cover;
    vertical-align: top;
    z-index: 1;
}

.eltoTeacherName {
    position: absolute;
    top: 30px;
    left: 20px;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    line-height: 24px;
    color: #363636;
    white-space: normal;
    text-align: left;
    z-index: 5;
}

.eltoTeacherName strong {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    color: #1b6db6;
}

.eltoTeacherObj {
    position: absolute;
    top: 25px;
    left: 20px;
    display: block;
    width: 180px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.4;
    color: #fff;
    text-align: left;
    z-index: 2;
}

.eltoTeacherHover {
    position: absolute;
    top: 100%;
    left: 0;
    display: block;
    width: 226px;
    height: 226px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 20;
}

.eltoTeacherHome {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 226px;
    height: 226px;
    margin: 0;
    padding: 0;
    background: rgba(173, 168, 168, 0.8);
    border: 0;
    text-decoration: none;
    z-index: 1;
}

.eltoTeacherButtons {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    width: 100% !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 1px;
}

.eltoTeacherHover .eltoTeacherButtons {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
}

.eltoTeacherButtons li {
    display: block !important;
    flex: 1 1 0 !important;
    width: auto !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.eltoTeacherButton,
.eltoTeacherButton:link,
.eltoTeacherButton:visited,
.eltoTeacherButton:hover,
.eltoTeacherButton:focus,
.eltoTeacherButton:active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    background: rgba(0, 0, 0, .5) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 42px !important;
    text-align: center !important;
    text-decoration: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
}

.eltoTeacherButton:hover,
.eltoTeacherButton:focus {
    background: #2C98F2 !important;
}

.eltoTeacherCard:hover .eltoTeacherHover {
    animation: eltoTeacherSlideUp 0.3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.eltoTeacherCard:hover .eltoTeacherName {
    top: 130px;
    color: #fff !important;
    z-index: 30;
}

.eltoTeacherCard:hover .eltoTeacherName strong {
    color: #fff !important;
}

@keyframes eltoTeacherSlideUp {
    0% { top: 100%; }
    100% { top: 0; }
}

.eltoTeacherNew {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    margin: 0;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0.05rem;
    color: #fff;
    background: linear-gradient(-45deg, #ee8432, #ff606c, #edca35);
    background-size: 400% 400%;
    animation: eltoTeacherColorChange 2s ease infinite;
    z-index: 40;
}

@keyframes eltoTeacherColorChange {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 1199px) {
    .eltoTeacherGrid {
        grid-template-columns: repeat(4, 226px);
        gap: 10px;
    }
}

@media (max-width: 959px) {
    .eltoTeacherGrid {
        grid-template-columns: repeat(3, 226px);
    }
}

@media (max-width: 719px) {
    .eltoTeacherGrid {
        grid-template-columns: repeat(2, 226px);
    }
}

@media (max-width: 479px) {
    .eltoTeacherGrid {
        grid-template-columns: 226px;
    }
}

  /* 강사목록 타이틀 전용 */
  /* [기본 / PC 스타일] */
  .prof-title-box {
    all: unset;
    display: block !important;
    position: relative !important;
    padding-left: 18px !important; /* 세로 바와 텍스트 간격 */
    margin: 30px 0 !important;
    box-sizing: border-box !important;
    text-align: left !important;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
  }

  /* 왼쪽 세로 파란색 바 */
  .prof-title-box::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    bottom: 2px !important;
    width: 4px !important; /* 바 두께 */
    background-color: #0b55a8 !important;
    border-radius: 2px !important;
    box-sizing: border-box !important;
  }

  /* 상단 영문 서브타이틀 */
  .prof-title-box .prof-sub-en {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0b55a8 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }

  /* 메인 타이틀 (임용교수진) */
  .prof-title-box .prof-main-title {
    display: block !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #111111 !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px !important;
    border: none !important;
    background: none !important;
  }

  /* 하단 설명글 */
  .prof-title-box .prof-desc {
    display: block !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #777777 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.3px !important;
    word-break: keep-all !important; /* 모바일에서 단어 단위 줄바꿈 */
  }

  /* ==========================================
     [모바일 최적화 스타일 (해상도 768px 이하)]
     ========================================== */
  @media screen and (max-width: 768px) {
    .prof-title-box {
      padding-left: 12px !important; /* 세로 바 간격 축소 */
      margin: 20px 0 !important;    /* 모바일 바깥 여백 줄임 */
    }

    .prof-title-box::before {
      width: 3px !important; /* 세로 바 두께 살짝 얇게 */
      top: 1px !important;
      bottom: 1px !important;
    }

    .prof-title-box .prof-sub-en {
      font-size: 11px !important; /* 서브 영문 크기 축소 */
      letter-spacing: 1px !important;
      margin-bottom: 2px !important;
    }

    .prof-title-box .prof-main-title {
      font-size: 22px !important; /* 메인 타이틀 크기 축소 (28px -> 22px) */
      margin-bottom: 4px !important;
    }

    .prof-title-box .prof-desc {
      font-size: 12.5px !important; /* 설명글 크기 축소 (14px -> 12.5px) */
      line-height: 1.35 !important;
    }
  }