/* @font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
} */
@font-face {
    font-family: 'Cafe24Ohsquare';
    src: url('https://cdn.jsdelivr.net/npm/@noonnu/cafe24-ohsquare@0.1.0/fonts/cafe24ohsquare-normal.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.class03-study {
    background: #f4f5f7;
    border-radius: 12px;
    padding: 40px 22px 18px;
    max-width: 1148px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
}

.class03-study-title {
    margin: 0;
    text-align: center;
    font-size: 50px;
    line-height: 1.08;
    font-family: 'Cafe24Ohsquare', 'Pretendard', sans-serif;
    font-weight: 400;
    letter-spacing: -2.2px;
    color: #1f2937;
}

.class03-study-title span {
    color: #287ff0;
}

.class03-study-subtitle {
    margin: 14px 0 30px;
    text-align: center;
    font-size: 16px;
    color: #636e82;
    font-weight: 500;
}

.class03-study-subtitle::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    border-radius: 2px;
    background: #2b82f0;
    margin: 0 auto 14px;
}

.class03-study-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    position: relative;
}

.class03-study-card {
    width: 258px;
    min-height: 330px;
    background: #fdfdfd;
    border-radius: 12px;
    border: 1px solid #e4e8ef;
    text-align: center;
    position: relative;
    padding: 34px 18px 18px;
    box-sizing: border-box;
}

.class03-study-step {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 59px;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    background: #2b76ea;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0;
    text-align: center;
}

.class03-study-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e8f0fb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.class03-study-icon .material-symbols-outlined {
    font-size: 48px;
    color: #317cf0;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    transform-origin: center bottom;
    transform: translateY(0);
    transition: transform 0.2s ease;
}

.class03-study-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 46px;
    height: 14px;
    border-radius: 50%;
    background: rgba(20, 33, 61, 0.2);
    transform: translateX(-50%) scale(0.8);
    filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.class03-study-card:hover .class03-study-icon .material-symbols-outlined {
    transform: translateY(-6px);
}

.class03-study-card:hover .class03-study-icon::after {
    opacity: 0.38;
    transform: translateX(-50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .class03-study-icon .material-symbols-outlined,
    .class03-study-card:hover .class03-study-icon .material-symbols-outlined,
    .class03-study-icon::after,
    .class03-study-card:hover .class03-study-icon::after {
        transition: none;
        animation: none;
    }
}

.class03-study-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.22;
    font-family: 'Pretendard', sans-serif;
    letter-spacing: -1px;
    font-weight: 700;
    color: #1e2738;
    word-break: keep-all;
}

.class03-study-card h3::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: #287ff0;
    margin: 12px auto;
}

.class03-study-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 500;
    color: #5f6878;
    letter-spacing: -0.3px;
    word-break: keep-all;
}

.class03-study-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #286de9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 0 -15px;
    flex: 0 0 30px;
    position: relative;
    z-index: 2;
}

.class03-study-arrow .material-symbols-outlined {
    font-size: 22px;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.class03-study-point {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid #dfe7f5;
    background: linear-gradient(180deg, #f9fbff 0%, #f2f6ff 100%);
    text-align: center;
}

.class03-study-point-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1f5fe7;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.class03-study-point-title .material-symbols-outlined {
    font-size: 20px;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.class03-study-point p {
    margin: 0;
    color: #4b5568;
    font-size: 20px;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: -0.2px;
    word-break: keep-all;
}

.class03-study-point p b{
    font-weight: 700;
}

.class03-books {
    margin: 20px auto 0;
    max-width: 1148px;
}

.class03-books-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.class03-books-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.class03-book-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.class03-book-thumb {
    width: 72px;
    height: 96px;
    flex: 0 0 72px;
    border-radius: 4px;
    overflow: hidden;
    background: #eef2f7;
    border: 1px solid #dde4ef;
}

.class03-book-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.class03-book-info {
    flex: 1;
    min-width: 0;
}

.class03-book-info h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #263244;
}

.class03-book-author {
    margin: 6px 0 4px;
    font-size: 15px;
    color: #5d697d;
}

.class03-book-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6c7a90;
    word-break: keep-all;
}

.class03-book-action {
    width: 210px;
    flex: 0 0 210px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: center;
    padding: 14px 12px;
}

.class03-book-action-label {
    font-size: 14px;
    color: #5f6f85;
    margin-bottom: 6px;
}

.class03-book-download {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    color: #1e67e7;
    text-decoration: none;
}

.class03-study-foot {
    margin-top: 14px;
    border: 1px solid #e3e8f2;
    background: #f7f9fd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.class03-study-foot-title,
.class03-study-foot-item {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.4;
    color: #5e6878;
}

.class03-study-foot-title {
    width: 33%;
    font-weight: 700;
    color: #1f5fe7;
}

.class03-study-foot-item {
    width: 22.33%;
    font-weight: 500;
}

.class03-study-foot-item + .class03-study-foot-item,
.class03-study-foot-title + .class03-study-foot-item {
    border-left: 1px solid #e3e8f2;
}

.class03-study-foot-title .material-symbols-outlined,
.class03-study-foot-item .material-symbols-outlined {
    margin-right: 6px;
    color: #2b76ea;
}

.class03-study-foot-title .material-symbols-outlined {
    font-size: 22px;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.class03-study-foot-item .material-symbols-outlined {
    font-size: 17px;
    align-self: flex-start;
    margin-top: 1px;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

@media (max-width: 1280px) {
    .class03-study-title {
        font-size: 52px;
    }
    .class03-study-subtitle {
        font-size: 17px;
    }
    /* 반응형에서 '올바른' 다음 줄로 강제 줄바꿈 */
    .class03-study-title > span {
        display: block;
    }
    .class03-study-grid {
        flex-wrap: wrap;
        gap: 16px;
    }
    .class03-study-card {
        min-height: auto;
        width: calc(50% - 12px);
    }
    .class03-study-card h3 {
        font-size: 16px;
    }
    .class03-study-card p {
        font-size: 13px;
    }
    .class03-study-arrow {
        display: none;
    }
    .class03-study-point p {
        font-size: 15px;
    }
    .class03-book-item {
        flex-wrap: wrap;
    }
    .class03-book-action {
        width: 100%;
        flex: 0 0 100%;
    }
    .class03-study-foot {
        flex-wrap: wrap;
    }
    .class03-study-foot-title,
    .class03-study-foot-item {
        width: 50%;
    }
    .class03-study-foot-title {
        width: 100%;
        border-bottom: 1px solid #e3e8f2;
    }
}

/* 모바일(더 작은 화면)에서 STEP 카드/타이틀 크기 보정 */
@media (max-width: 834px) {
    .class03-study {
        padding: 28px 14px 14px;
        border-radius: 10px;
    }

    .class03-study-title {
        font-size: 40px;
        line-height: 1.12;
        letter-spacing: -1.4px;
    }

    .class03-study-subtitle {
        margin: 10px 0 20px;
        font-size: 14px;
    }

    .class03-study-subtitle::before {
        width: 34px;
        margin: 0 auto 10px;
    }

    .class03-study-grid {
        gap: 12px;
    }

    .class03-study-card {
        width: calc(50% - 6px);
        padding: 28px 14px 14px;
    }

    .class03-study-card h3 {
        font-size: 16px;
        line-height: 1.2;
    }

    .class03-study-card p {
        font-size: 13px;
        line-height: 1.45;
    }

    .class03-study-step {
        top: 10px;
        left: 10px;
        min-width: 52px;
        height: 20px;
        padding: 0 8px;
        font-size: 10px;
        line-height: 20px;
    }

    .class03-study-icon {
        width: 86px;
        height: 86px;
        margin: 0 auto 16px;
    }

    .class03-study-icon .material-symbols-outlined {
        font-size: 42px;
    }

    .class03-study-point {
        margin-top: 14px;
        padding: 14px 14px;
        border-radius: 10px;
    }

    .class03-study-point p {
        font-size: 14px;
        line-height: 1.55;
    }
}

/* 강좌 상세/샘플 페이지 상단 여백 전용 (값만 수정해서 사용) */
#sub-container .course-detail-wrap {
    padding-top: 20px;
}
.detail-center, .detail-bottom {
    padding: 0;
}
#prof-view img{
    border: none;
}
#prof-view .prof-intro-table { width: 100%; border-collapse: collapse; }
#prof-view figure {
    border-top: 1px solid #fff !important;
    margin-top: 30px;
}
#prof-view figure table td:nth-child(1){
    width: 280px;
    vertical-align: top;
}
#prof-view td:nth-child(1) a{
    background: #f4fcff;
    padding: 20px 20px 0 30px;
    display: block;
    border-radius: 12px;
}
#prof-view figure table td:nth-child(3){
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#prof-view figure table td:nth-child(3) p:nth-child(1){
    font-weight: 500;
    color: #4d4d4d;
    font-size: 22px;
    padding-bottom: 10px;
}
#prof-view figure table td:nth-child(3) p:nth-child(2) span:nth-child(1){
    font-weight: 500;
    color: #f69749 !important;
    font-size: 14px;
    /* padding-bottom: 10px; */
    background-color: #fff7ed !important;
    padding: 6px 20px;
    border-radius: 50px;
}
#prof-view figure table td:nth-child(3) p:nth-child(2) span:nth-child(2){
    font-weight: 500;
    color: #f69749 !important;
    font-size: 14px;
    /* padding-bottom: 10px; */
    background-color: #fff7ed !important;
    padding: 6px 20px;
    border-radius: 50px;
}

#prof-view figure table td ul{
    margin-top: 20px;
}
#prof-view figure table td ul li{
    padding-bottom: 10px;
    line-height: 14px;
}

#prof-view figure table td ul li strong{
    display: block;
    font-size: 14px;
    color: #5b5b5b;
    margin-bottom: 14px;
    margin-top: 10px;
}

/* 교수소개 경력 더보기 토글 (실제 관리자 DOM 기준) */
#prof-view figure.table table td:last-child p:last-of-type {
    margin-top: 10px;
    margin-bottom: 0;
    font-weight: 700;
    color: #1f4ea3;
    cursor: pointer;
}
#prof-view figure.table table td:last-child p:last-of-type a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* 경력 상세(마지막 ul) 기본 숨김 */
#prof-view figure.table table td:last-child p:last-of-type + ul {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
}

/* JS 토글 클래스가 붙으면 펼침 */
#prof-view figure.table table td:last-child p:last-of-type + ul.is-open {
    max-height: 620px;
    opacity: 1;
    transform: translateY(0);
}

/* 교수소개 테이블 모바일: 이미지/내용을 세로로 쌓기 */
@media (max-width: 834px) {
    #prof-view figure.table table {
        display: block;
        width: 100%;
    }

    #prof-view figure.table tr {
        display: block;
    }

    #prof-view figure.table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* 가운데 비어있는 td(&nbsp;)가 있으면 숨김 */
    #prof-view figure.table td:nth-child(2) {
        display: none;
    }

    /* 이미지 */
    #prof-view figure.table td:nth-child(1) {
        width: 100%;
    }

    #prof-view figure.table td:nth-child(1) a {
        padding: 14px 0 10px 0;
        text-align: center;
    }

    #prof-view figure.table td:nth-child(1) img {
        max-width: 60%;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    /* 텍스트 영역 */
    #prof-view figure.table td:nth-child(3) {
        padding-left: 0;
        margin-top: 6px;
        display: flex;
        flex-direction: column;
    }

    #prof-view figure.table td:nth-child(3) p:nth-child(1) {
        font-size: 18px;
        padding-bottom: 8px;
    }

    #prof-view figure.table td ul li {
        padding-bottom: 8px;
        line-height: 1.35;
    }
}

/* 교재안내 테이블(관리자 입력) 반응형/더보기 토글 */
#book-view img{
    border: none;
}
#book-view .book-intro-table { width: 100%; border-collapse: collapse; }
/* #book-view figure {
    border-top: 1px solid #fff !important;
} */
#book-view figure table td:nth-child(1){
    width: 150px;
    vertical-align: top;
    padding: 20px 20px 20px 30px;
}
#book-view td:nth-child(1) a{
    background: #f4fcff;
    padding: 20px 20px 0 30px;
    display: block;
}

#book-view figure table td:nth-child(3){
    align-content: center;
    align-items: center;
    padding: 0 0px 0 0;
    border-left: 1px solid #ddd;
}

#book-view figure table td:nth-child(3) p:nth-child(1){
    font-weight: 500;
    color: #4d4d4d;
    font-size: 22px;
    padding-bottom: 10px;
}
#book-view figure table td:nth-child(3) ul{
    /* border: 1px solid #dfdfdf;
    border-radius: 10px;
    display: inline-block;
    margin-right: -20px; */
}
#book-view figure table td:nth-child(3) ul li{
    text-align: center;
    padding: 7px 0px;
}
#book-view figure table td:nth-child(3) ul li:first-child{
    font-size: 15px;
    color: #285283;
    font-weight: 500;
}
#book-view figure table td:nth-child(3) ul li:last-child{
    
}
#book-view figure table td:nth-child(3) ul li:last-child a{
    border: 1px solid #dee9f3;
    color: #008eff !important;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 6px;
    background: aliceblue;
}
#book-view figure table td:nth-child(3) p:nth-child(2) span:nth-child(1){
    font-weight: 500;
    color: #f69749 !important;
    font-size: 14px;
    background-color: #fff7ed !important;
    padding: 6px 20px;
    border-radius: 50px;
}
#book-view figure table td:nth-child(3) p:nth-child(2) span:nth-child(2){
    font-weight: 500;
    color: #f69749 !important;
    font-size: 14px;
    background-color: #fff7ed !important;
    padding: 6px 20px;
    border-radius: 50px;
}

#book-view figure table td:nth-child(2){
    padding: 18px 0 0 0;
    vertical-align: top;
}
#book-view figure table td:nth-child(2) P{
    color: #2b2b2b;
    font-size: 18px;
}

#book-view figure table td:nth-child(2) ul li{
    line-height: 19px;
}

#book-view figure table td:nth-child(2) ul li:first-child{
    font-weight: 500;
    padding: 3px 0 15px;
    color: #676767;
}

#book-view figure table td:nth-child(2) ul li:nth-child(3){
    padding-top: 10px;
    padding-bottom: 10px;
}

#book-view figure table td:nth-child(2) ul li strong{
    display: block;
    font-size: 14px;
    color: #5b5b5b;
    margin-bottom: 14px;
    margin-top: 10px;
}

#book-view figure table td:nth-child(2) ul li b{
    display: block;
    font-size: 15px;
    color: #5b5b5b;
    margin-bottom: 18px;
    margin-top: -9px;
}

/* 교재안내: 행 사이 가로 구분선 (테이블 레이아웃) */
#book-view figure.table table {
    width: 100%;
    border-collapse: collapse;
}
#book-view figure.table tbody tr:not(:first-child) td {
    border-top: 1px solid #ddd;
}

/* 교재안내 테이블 모바일: 이미지/내용을 세로로 쌓기 */
@media (max-width: 834px) {
    #book-view figure.table table {
        display: block;
        width: 100%;
    }

    #book-view figure.table tr {
        display: block;
    }

    /* 모바일: td마다 border-top이 겹치지 않도록 행 단위 구분선 */
    #book-view figure.table tbody tr:not(:first-child) td {
        border-top: none;
    }
    #book-view figure.table tbody tr:not(:first-child) {
        border-top: 1px solid #ddd;
    }

    #book-view figure.table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* 가운데 비어있는 td(&nbsp;)가 있으면 숨김 */
    #book-view figure.table td:nth-child(2) {
        display: none;
    }

    /* 이미지 */
    #book-view figure.table td:nth-child(1) {
        width: 100%;
    }

    #book-view figure.table td:nth-child(1) a {
        padding: 14px 0 10px 0;
        text-align: center;
    }

    #book-view figure.table td:nth-child(1) img {
        max-width: 60%;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    /* 텍스트 영역 */
    #book-view figure.table td:nth-child(3) {
        padding-left: 0;
        margin-top: 6px;
        display: flex;
        flex-direction: column;
    }

    #book-view figure.table td:nth-child(3) p:nth-child(1) {
        font-size: 18px;
        padding-bottom: 8px;
    }

    #book-view figure.table td ul li {
        padding-bottom: 8px;
        line-height: 1.35;
    }
}


#book-view figure{
    border: 1px solid #ddd;
    border-radius: 10px;
}

#detail-view figure {
    border: 1px solid #ddd;
    border-radius: 10px;
}
#detail-view figure table td:nth-child(1){
    width: 60%;
    vertical-align: top;
    padding: 20px 20px 20px 30px;
}

#detail-view figure table td:nth-child(1) strong{
    display: block;
    color: #333333;
    font-size: 19px;
}

#detail-view figure table td:nth-child(2){
    width: 40px;
    border-left:1px solid #ddd;
    padding-left: 30px;
}
