/* 수중 환경 연출 요소 (빛내림 & 물방울) */
.underwater-environment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.light-ray {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, transparent 80%);
    transform-origin: top center;
    filter: blur(40px);
}

.ray-1 { transform: rotate(-25deg); animation: rayRotate 8s infinite ease-in-out; }
.ray-2 { transform: rotate(10deg); animation: rayRotate 12s infinite ease-in-out reverse; }
.ray-3 { transform: rotate(40deg); animation: rayRotate 15s infinite ease-in-out; }

@keyframes rayRotate {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) rotate(-30deg); }
    50% { opacity: 0.6; transform: translateX(-50%) rotate(30deg); }
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    bottom: -100px;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.5);
    animation: riseBubble 10s infinite ease-in;
}

.bubble::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 25%;
    height: 25%;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
}

.bubble-1 { width: 40px; height: 40px; left: 10%; animation-duration: 8s; animation-delay: 0s; }
.bubble-2 { width: 20px; height: 20px; left: 25%; animation-duration: 12s; animation-delay: 2s; }
.bubble-3 { width: 60px; height: 60px; left: 45%; animation-duration: 15s; animation-delay: 1s; }
.bubble-4 { width: 30px; height: 30px; left: 70%; animation-duration: 10s; animation-delay: 4s; }
.bubble-5 { width: 50px; height: 50px; left: 85%; animation-duration: 18s; animation-delay: 2s; }
.bubble-6 { width: 15px; height: 15px; left: 95%; animation-duration: 9s; animation-delay: 5s; }

@keyframes riseBubble {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.4; transform: translateY(-80vh) scale(1) translateX(20px); }
    100% { transform: translateY(-100vh) scale(1.5) translateX(-20px); opacity: 0; }
}

/* 강사진 소개 히어로 섹션 - 프로페셔널 & 아티스틱 느낌 연출 */
.instructors-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, #10222A 0%, #0D2E3D 50%, #084A5C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.instructors-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1513364776144-60967b0f800f?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mix-blend-mode: luminosity;
}

.instructors-hero .hero-content {
    position: relative;
    z-index: 2;
}

.instructors-hero .sub-title-en {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.instructors-hero .main-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.3;
    font-weight: 800;
    animation: floatingTitle 3s ease-in-out infinite;
}

.instructors-hero .main-title span {
    color: var(--point-blue);
    text-shadow: 0 0 20px rgba(0, 204, 198, 0.5);
}

@keyframes floatingTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 탭 컨트롤 */
.instructors-tabs-section {
    padding: 80px 0;
    background-color: #F5FDFD;
}

.tab-control {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 15px 40px;
    border-radius: 50px;
    border: 2px solid var(--point-blue);
    background: transparent;
    color: var(--point-blue);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tab-btn.active {
    background: var(--point-blue);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 204, 198, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 204, 198, 0.1);
    color: var(--point-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 204, 198, 0.15);
}

.tab-btn:active {
    transform: scale(0.95);
}

/* 강사 그리드 */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.instructor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 강사 카드 디자인 */
.instructor-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.instructor-card .image-box {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.instructor-card .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.instructor-card:hover .image-box img {
    transform: scale(1.05);
}

.instructor-card .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 89, 179, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instructor-card:hover .image-overlay {
    opacity: 1;
}

.view-profile {
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

.instructor-card .info-box {
    padding: 30px;
    text-align: center;
}

.instructor-card .position {
    font-size: 0.85rem;
    color: var(--point-blue);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.instructor-card .name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.instructor-card .desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    word-break: keep-all;
}

.instructor-card .tags {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.instructor-card .tags span {
    font-size: 0.8rem;
    background: #EEF8F7;
    color: #667085;
    padding: 4px 12px;
    border-radius: 12px;
}

/* 반응형 처리 */
@media (max-width: 1024px) {
    .instructor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .instructor-grid {
        grid-template-columns: 1fr;
    }
    .instructors-hero {
        height: 50vh;
    }
    .tab-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* 강사 프로필 모달 (Facebook 스타일) */
.instructor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instructor-modal.show {
    display: flex;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.instructor-modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.btn-close-modal:hover {
    background: rgba(0,0,0,0.6);
}

.modal-content {
    overflow-y: auto;
    /* 스크롤바 디자인 */
    scrollbar-width: thin;
    scrollbar-color: var(--point-blue) #f0f0f0;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--point-blue);
    border-radius: 10px;
}

/* 프로필 상단 (Facebook 스타일) */
.profile-cover {
    height: 200px;
    width: 100%;
    overflow: hidden;
    background-color: #e9edf1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.profile-info-section {
    padding: 0 30px 30px;
    position: relative;
    text-align: center;
    border-bottom: 1px solid var(--line-color);
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid #fff;
    overflow: hidden;
    margin: -70px auto 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details .modal-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.profile-details .modal-position {
    font-size: 1rem;
    font-weight: 600;
    color: var(--point-blue);
    margin-bottom: 15px;
}

.profile-details .modal-desc {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 20px;
    word-break: keep-all;
}

.profile-details .modal-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-details .modal-tags span {
    font-size: 0.85rem;
    background: #EEF8F7;
    color: #667085;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
}

/* 강사 연구작 리스트 */
.modal-portfolio-section {
    padding: 30px;
    background: #fdfdfd;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.portfolio-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.portfolio-header .btn-more {
    font-size: 0.9rem;
    color: var(--point-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.portfolio-item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid var(--line-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    border-color: var(--point-blue);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.portfolio-img {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.portfolio-info .date {
    font-size: 0.85rem;
    color: #999;
}

@media (max-width: 640px) {
    .profile-cover {
        height: 150px;
    }
    .profile-avatar {
        width: 110px;
        height: 110px;
        margin-top: -55px;
    }
    .portfolio-item {
        flex-direction: column;
    }
    .portfolio-img {
        width: 100%;
        height: 150px;
    }
}

/* Next Content Section (강사진 소개 하단) */
.next-content-section {
    padding: 100px 0 140px;
    background: #fff;
}

.next-content-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    padding: 100px 60px;
    background: linear-gradient(-45deg, #00CCC6, #067FFF, #2EE6E0, #0559B3);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    display: flex;
    justify-content: center;
    text-align: center;
}

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

.next-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1497015289639-546bb1ba0462?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mix-blend-mode: overlay;
    transition: transform 1s ease;
}

.next-content-card:hover .next-bg-image {
    transform: scale(1.1);
}

.next-content-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.next-content-inner .label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #fff;
    background: rgba(255,255,255,0.15);
    padding: 5px 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.next-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 800;
}

.next-title span {
    color: #7DF5EF;
    text-shadow: 0 0 20px rgba(125, 245, 239, 0.4);
}

.next-desc {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 40px;
    word-break: keep-all;
}

.btn-next-page {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: #fff;
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.btn-next-page:hover {
    transform: translateY(-5px);
    background: var(--point-blue);
    color: #fff;
    box-shadow: 0 15px 40px rgba(0, 204, 198, 0.4);
}

.btn-next-page i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-next-page:hover i {
    transform: translateX(5px);
}

@media screen and (max-width: 768px) {
    .next-content-card {
        padding: 60px 30px;
        border-radius: 30px;
    }
    
    .next-content-section {
        padding: 60px 0 100px;
    }
}

/* 모달 아바타를 로고로 대체할 때 — 원본 로고가 그대로 튀지 않게 연하게 깔고 여백을 준다 */
.instructor-modal .profile-avatar img.is-fallback {
    object-fit: contain;
    padding: 18px;
    background: #fff;
    opacity: .35;
}

/* 연구작이 없을 때 */
.instructor-modal .portfolio-empty {
    padding: 28px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 사진이 없는 강사 — 사이트 로고를 연하게 깔아 자리를 채운다.
   배경 이미지는 마크업에서 --logo 로 넘어오고, 투명도는 가상요소로만 준다
   (요소 자체에 opacity 를 주면 나중에 얹는 오버레이까지 흐려진다) */
.instructor-card .image-box .no-photo {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f5fafa;
}

.instructor-card .image-box .no-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--logo, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 55% auto;
    opacity: .18;
}

/* 태그가 많아도 카드가 깨지지 않게 — 한 줄로 고정하고 넘치면 잘라 낸다 */
.instructor-card .info-box .tags {
    flex-wrap: nowrap;
    overflow: hidden;
}

.instructor-card .info-box .tags > span {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* 접힌 개수 표시 */
.instructor-card .info-box .tags .tag-more {
    background: transparent;
    color: #9aa3ac;
    font-weight: 700;
}

/* 커버 이미지가 없을 때 — 빈 사각형 대신 브랜드 배경 */
.instructor-modal .profile-cover.is-empty {
    background: var(--water-gradient);
}

.instructor-modal .profile-cover.is-empty img {
    display: none;
}

/* ==================================================================
   강사진 페이지 — 폭 제한 없이 화면을 그대로 쓴다.
   카드와 모달은 기존 규칙을 그대로 두고 바깥 틀만 새로 잡는다.
   ================================================================== */
.in-wrap {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 히어로 */
.in-hero {
    position: relative;
    padding: 200px 0 110px;
    background: #0b1622;
    background-image: radial-gradient(1000px 560px at 14% 6%, rgba(0, 204, 198, .22), transparent 60%),
        radial-gradient(900px 620px at 86% 40%, rgba(6, 127, 255, .2), transparent 62%),
        linear-gradient(170deg, #0b1622 0%, #10263a 55%, #0b1622 100%);
    overflow: hidden;
}

.in-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: inZoom 26s ease-in-out infinite alternate;
}

@keyframes inZoom {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

.in-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(11, 22, 34, .93) 0%, rgba(6, 60, 92, .86) 45%, rgba(11, 22, 34, .95) 100%);
}

.in-hero .in-wrap { position: relative; z-index: 3; }

.in-eyebrow {
    display: inline-block;
    margin: 0 0 20px;
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
}

.in-hero-title {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.04em;
    color: #fff;
    word-break: keep-all;
}

.in-hero-title span { color: var(--point-mint); }

.in-hero-lead {
    margin: 22px 0 0;
    max-width: 640px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .66);
    word-break: keep-all;
}

.in-figures {
    display: flex;
    flex-wrap: wrap;
    gap: 46px;
    margin-top: 50px;
    padding-top: 38px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.in-fig { display: flex; align-items: baseline; gap: 8px; }

.in-fig strong {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
    color: #fff;
}

.in-fig span {
    font-size: .95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .5);
}

/* 본문 */
.in-section {
    padding: 0 0 130px;
    background: #f4f8fa;
}

/* 지점 탭 — 스크롤을 내려도 따라온다 */
.in-section .tab-control {
    position: sticky;
    top: 80px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 40px;
    padding: 26px 0 18px;
    background: linear-gradient(180deg, #f4f8fa 70%, rgba(244, 248, 250, 0));
    border: 0;
}

.in-section .tab-control .tab-btn {
    padding: 12px 26px;
    border: 1px solid #dbe4e8;
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    color: #55636b;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}

.in-section .tab-control .tab-btn:hover {
    border-color: var(--point-mint);
    color: var(--point-mint-deep);
}

.in-section .tab-control .tab-btn.active {
    border-color: var(--point-mint);
    background: var(--point-mint);
    color: #05221f;
}

/* 카드 격자 — 폭을 꽉 채운다 */
.in-section .instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.in-section .instructor-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1);
}

.animate-on-scroll.is-visible .instructor-card {
    opacity: 1;
    transform: none;
}

.in-section .instructor-card:nth-child(2) { transition-delay: .06s; }
.in-section .instructor-card:nth-child(3) { transition-delay: .12s; }
.in-section .instructor-card:nth-child(4) { transition-delay: .18s; }
.in-section .instructor-card:nth-child(5) { transition-delay: .24s; }
.in-section .instructor-card:nth-child(6) { transition-delay: .3s; }
.in-section .instructor-card:nth-child(7) { transition-delay: .36s; }
.in-section .instructor-card:nth-child(8) { transition-delay: .42s; }

.in-section .instructors-empty {
    padding: 90px 0;
    text-align: center;
    color: var(--text-gray);
}

@media (max-width: 1080px) {
    .in-wrap { padding: 0 24px; }
    .in-hero { padding: 160px 0 80px; }
}

@media (max-width: 640px) {
    .in-wrap { padding: 0 16px; }
    .in-hero { padding: 140px 0 60px; }
    .in-figures { gap: 26px; margin-top: 34px; padding-top: 26px; }
    .in-fig strong { font-size: 1.9rem; }
    .in-section { padding-bottom: 80px; }
    .in-section .tab-control { top: 66px; padding: 18px 0 14px; margin-bottom: 26px; }
    .in-section .instructor-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ==================================================================
   카드 — 사진을 앞세우고 이름을 사진 위에 얹는다.
   구조는 그대로 두고(스크립트가 클래스를 쓴다) 보이는 것만 새로 잡는다.
   ================================================================== */
.in-section .instructor-card .card-inner {
    position: relative;
    display: block;
    height: 100%;
    border: 0;
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 40, 55, .06);
    transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s;
}

.in-section .instructor-card:hover .card-inner {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(15, 40, 55, .16);
}

/* 사진 */
.in-section .instructor-card .image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: #e8f1f4;
}

.in-section .instructor-card .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .8, .3, 1);
}

.in-section .instructor-card:hover .image-box img { transform: scale(1.05); }

/* 사진 아래쪽을 어둡게 깔아 이름이 읽히게 한다 */
.in-section .instructor-card .image-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(5, 18, 28, .82));
}


/* 롤오버 문구는 알약으로 */
.in-section .instructor-card .image-overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 20px;
    background: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s;
    z-index: 3;
}

.in-section .instructor-card:hover .image-overlay {
    opacity: 1;
    transform: none;
}

.in-section .instructor-card .view-profile {
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--point-mint);
    font-size: .8rem;
    font-weight: 800;
    color: #05221f;
}

/* 이름과 직함을 사진 위에 얹는다 */
.in-section .instructor-card .info-box {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 22px 20px;
    text-align: left;
    background: none;
}

.in-section .instructor-card .position {
    display: inline-block;
    margin-bottom: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 204, 198, .9);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #05221f;
}

.in-section .instructor-card .name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -.03em;
    color: #fff;
}



/* 사진이 없는 강사가 많다. 로고를 작게 넣고 바탕만 브랜드 색으로 둔다 */

/* 소개글은 카드에서 빼고 모달에서 읽게 한다 */
.in-section .instructor-card .desc { display: none; }

/* 직함 → 이름 → 태그 순으로 쌓는다 */
.in-section .instructor-card .info-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 20px 18px;
}

.in-section .instructor-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 2px 0 0;
}

.in-section .instructor-card .tags span {
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: .7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}

.in-section .instructor-card .tag-more {
    border-color: rgba(0, 204, 198, .55) !important;
    background: rgba(0, 204, 198, .25) !important;
    color: #c9fdfa !important;
}

/* 롤오버 문구는 사진 가운데로 */
.in-section .instructor-card .image-overlay {
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ==================================================================
   강사 프로필 페이지 — 팝업 대신 한 화면을 통째로 쓴다
   ================================================================== */
.pf-hero {
    position: relative;
    padding: 170px 0 60px;
    background: #0b1622;
    overflow: hidden;
}

.pf-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    transform: scale(1.06);
}

.pf-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 22, 34, .88), rgba(11, 22, 34, .96));
}

.pf-hero-inner { position: relative; z-index: 3; }

.pf-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.pf-back::before {
    content: '';
    width: 6px;
    height: 6px;
    border-left: 2px solid var(--point-mint);
    border-bottom: 2px solid var(--point-mint);
    transform: rotate(45deg);
}

.pf-back:hover { border-color: var(--point-mint); background: rgba(0, 204, 198, .14); }

.pf-head {
    display: flex;
    align-items: flex-end;
    gap: 34px;
}

.pf-photo {
    flex: 0 0 auto;
    width: 200px;
    height: 240px;
    border-radius: 26px;
    overflow: hidden;
    background: #12283a;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .34);
}

.pf-photo img { width: 100%; height: 100%; object-fit: cover; }

.pf-photo-empty {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(140deg, rgba(0, 204, 198, .22), rgba(6, 127, 255, .14));
    background-image: var(--logo);
    background-size: 92px auto;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .75;
}

.pf-position {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(0, 204, 198, .2);
    font-size: .84rem;
    font-weight: 800;
    color: var(--point-mint);
}

.pf-name {
    margin: 0;
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -.04em;
    color: #fff;
}

.pf-branch {
    margin: 10px 0 0;
    font-size: .98rem;
    color: rgba(255, 255, 255, .55);
}

.pf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.pf-tags span {
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: .84rem;
    color: rgba(255, 255, 255, .8);
}

/* 본문 */
.pf-body {
    padding: 80px 0;
    background: #fff;
}

.pf-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 60px;
    align-items: start;
}

.pf-block + .pf-block { margin-top: 44px; }

.pf-block h2 {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--text-dark);
}

.pf-block p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text-gray);
    word-break: keep-all;
}

.pf-side {
    display: grid;
    gap: 10px;
    position: sticky;
    top: 110px;
}

.pf-side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 22px;
    border: 1px solid #e2eaee;
    border-radius: 16px;
    background: #f8fbfc;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s;
}

.pf-side-link::after {
    content: '';
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--point-mint-deep);
    border-right: 2px solid var(--point-mint-deep);
    transform: rotate(45deg);
}

.pf-side-link:hover {
    border-color: var(--point-mint);
    background: #f0fdfc;
    transform: translateX(3px);
}

/* 연구작 */
.pf-works {
    padding: 0 0 110px;
    background: #fff;
}

.pf-works-title {
    margin: 0 0 26px;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--text-dark);
}

.pf-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.pf-work {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: #eef4f6;
    text-decoration: none;
}

.pf-work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}

.pf-work:hover img { transform: scale(1.06); }

.pf-work-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 34px 16px 14px;
    background: linear-gradient(180deg, transparent, rgba(5, 18, 28, .85));
}

.pf-work-info b { font-size: .95rem; font-weight: 800; color: #fff; }
.pf-work-info i { font-style: normal; font-size: .8rem; color: rgba(255, 255, 255, .6); }

@media (max-width: 900px) {
    .pf-hero { padding: 140px 0 44px; }
    .pf-head { flex-direction: column; align-items: flex-start; gap: 22px; }
    .pf-photo { width: 150px; height: 180px; border-radius: 20px; }
    .pf-body { padding: 54px 0; }
    .pf-body-grid { grid-template-columns: 1fr; gap: 34px; }
    .pf-side { position: static; }
    .pf-works { padding-bottom: 70px; }
}

/* 사진이 없을 때 — 배경과 로고를 한 요소에 겹치면 두 겹으로 보인다.
   바탕만 여기서 칠하고 로고는 가상요소로 한 번만 그린다 */
.in-section .instructor-card .no-photo {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, #eaf6f7 0%, #dcecf1 100%);
}

.in-section .instructor-card .no-photo::before {
    content: '';
    position: absolute;
    top: 42%;
    left: 50%;
    width: 96px;
    height: 88px;
    transform: translate(-50%, -50%);
    background-image: var(--logo);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .45;
}

/* 롤오버 — 알약 문구가 사진을 가려 답답하다.
   문구는 빼고 아래 어둠이 살짝 짙어지며 이름만 올라오게 둔다 */
.in-section .instructor-card .image-overlay { display: none; }

.in-section .instructor-card .image-box::after {
    transition: opacity .35s;
}

.in-section .instructor-card:hover .image-box::after { opacity: .78; }

.in-section .instructor-card .info-box {
    transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}

.in-section .instructor-card:hover .info-box { transform: translateY(-4px); }

/* 연구작은 배경처럼 은은하게 두고, 짚어 볼 때만 또렷해진다 */

/* 히어로 배경 — 최근 연구작을 옅게 깔아 사람 뒤에 작업이 비치게 한다 */
.pf-hero-strip {
    position: absolute;
    inset: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    /* 베일이 거의 불투명해서 그 아래 두면 안 보인다. 위에 얹고 옅게만 */
    z-index: 2;
}

.pf-hero-strip span {
    display: block;
    background-size: cover;
    background-position: center;
    opacity: .16;
    filter: grayscale(.35);
}

/* 좌측은 글이 앉는 자리라 더 죽인다 */
.pf-hero-strip span:first-child { opacity: .07; }

@media (max-width: 900px) {
    .pf-hero-strip span:nth-child(n+4) { display: none; }
}

/* 지점 탭 — 옛 규칙의 translateY(-5px) 가 남아 있어 훅 튀어오르고,
   버튼이 커서 밑에서 빠져나가며 hover 가 껐다 켜져 떨렸다. 이동은 없앤다 */
.in-section .tab-control .tab-btn:hover:not(.active),
.in-section .tab-control .tab-btn:active {
    transform: none;
}

.in-section .tab-control .tab-btn:hover:not(.active) {
    background: #f2fbfb;
    box-shadow: none;
}
