/**
 * 교육과정 — 좌측 과정 목록 + 우측 상세.
 * 구조는 종전과 같고 겉모습만 새로 짰다.
 * 브랜드 색(민트 #00CCC6 / 블루 #067FFF)과 심해 톤(#0b1622)을 그대로 쓴다.
 */

.pg-wrap {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── 히어로 ───────────────────────────────── */
.pg-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 84vh;
    padding: 170px 0 92px;
    background: #0b1622;
    overflow: hidden;
}

.pg-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 80% 15%, rgba(6, 127, 255, .4), transparent 62%),
                radial-gradient(90% 80% at 10% 95%, rgba(0, 204, 198, .28), transparent 60%);
}

/* 실제 과목·공간 사진을 옅게 깐다 */
.pg-hero-strip {
    position: absolute;
    inset: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    opacity: .3;
}

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

.pg-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(11, 22, 34, .94) 26%, rgba(11, 22, 34, .55) 72%, rgba(11, 22, 34, .8)),
                linear-gradient(180deg, rgba(11, 22, 34, .6), rgba(11, 22, 34, .15) 42%, rgba(11, 22, 34, .9));
}

.pg-hero .underwater-environment {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pg-hero .bubble {
    position: absolute;
    bottom: -80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, .3);
    animation: pgRise 15s infinite ease-in;
}

.pg-hero .bubble-1 { width: 30px; height: 30px; left: 16%; animation-duration: 13s; }
.pg-hero .bubble-3 { width: 52px; height: 52px; left: 54%; animation-duration: 19s; animation-delay: 3s; }
.pg-hero .bubble-5 { width: 20px; height: 20px; left: 84%; animation-duration: 11s; animation-delay: 6s; }

@keyframes pgRise {
    0% { transform: translateY(0) scale(.6); opacity: 0; }
    20% { opacity: .5; }
    100% { transform: translateY(-92vh) scale(1.3); opacity: 0; }
}

.pg-hero-inner { position: relative; z-index: 2; }

.pg-eyebrow {
    margin: 0 0 18px;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--point-mint);
}

.pg-hero-title {
    margin: 0;
    font-size: clamp(2.4rem, 5.8vw, 5rem);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -.045em;
    color: #fff;
}

.pg-hero-title span {
    background: linear-gradient(96deg, var(--point-mint), #7fe6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pg-hero-lead {
    max-width: 660px;
    margin: 26px 0 0;
    font-size: 1.06rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, .68);
    word-break: keep-all;
}

.pg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 40px;
}

.pg-chips span {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    font-size: .92rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .88);
}

.pg-scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 2;
    width: 24px;
    height: 38px;
    margin-left: -12px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
}

.pg-scroll span {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 7px;
    margin-left: -2px;
    border-radius: 999px;
    background: var(--point-mint);
    animation: pgScroll 1.8s infinite;
}

@keyframes pgScroll {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* ── 본문 ─────────────────────────────────── */
.class-by-target {
    padding: 100px 0 120px;
    background: #f6fbfc;
}

.class-tab-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

/* ── 좌측 과정 목록 ───────────────────────── */
.class-tab-sidebar {
    position: sticky;
    top: 110px;
}

.class-tab-select { display: none; }

.pg-side-label {
    margin: 0 0 16px;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--point-mint-deep);
}

.class-tab-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.class-tab-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: background .25s, border-color .25s, transform .25s;
}

.class-tab-list li:hover {
    background: #fff;
    border-color: #dfeaee;
}

.class-tab-list li.active {
    background: #0d1f2b;
    border-color: #0d1f2b;
}

.pg-side-no {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -.03em;
    color: rgba(0, 204, 198, .55);
}

.class-tab-list li.active .pg-side-no { color: var(--point-mint); }

.pg-side-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pg-side-text strong {
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #0d1f2b;
}

.pg-side-text em {
    font-style: normal;
    font-size: .82rem;
    color: #7b8a92;
}

.class-tab-list li.active .pg-side-text strong { color: #fff; }
.class-tab-list li.active .pg-side-text em { color: rgba(255, 255, 255, .55); }

/* ── 우측 상세 ────────────────────────────── */
.tab-pane { display: none; }

.tab-pane.active {
    display: block;
    animation: pgFade .5s ease forwards;
}

@keyframes pgFade {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.pg-pane-head { margin-bottom: 34px; }

.pg-pane-en {
    display: block;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--point-mint-deep);
}

.pg-pane-title {
    margin: 10px 0 0;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -.045em;
    color: #0d1f2b;
}

.pg-pane-summary {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 1.12rem;
    line-height: 1.7;
    font-weight: 600;
    color: #3d4b53;
    word-break: keep-all;
}

.pg-pane-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.pg-meta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2edf0;
    font-size: .9rem;
    font-weight: 600;
    color: #3d4b53;
}

.pg-meta b {
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--point-mint-deep);
}

/* 사진 — 넓게 한 장. 과정 분위기를 먼저 보여 준다 */
.pg-pane-photo {
    position: relative;
    aspect-ratio: 16 / 8;
    margin-bottom: 40px;
    border-radius: 30px;
    overflow: hidden;
    background: #e6f1f4;
    box-shadow: 0 30px 60px rgba(13, 45, 60, .14);
}

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

.pg-pane-photo:hover img { transform: scale(1.03); }

.pg-pane-desc {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.9;
    color: #55636b;
    word-break: keep-all;
}

.pg-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.pg-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    border: 1px solid #e2edf0;
    border-radius: 20px;
    background: #fff;
    font-size: .96rem;
    font-weight: 700;
    color: #3d4b53;
    word-break: keep-all;
    transition: border-color .25s, transform .25s;
}

.pg-features li:hover {
    border-color: var(--point-mint);
    transform: translateY(-3px);
}

/* 아이콘이 없는 특징도 있다. 그때는 민트 점으로 줄을 맞춘다 */
.pg-features li::before {
    content: '';
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--point-mint);
}

.pg-features li:has(.pg-feature-icon)::before { display: none; }

.pg-feature-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.pg-pane-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 46px;
    padding-top: 36px;
    border-top: 1px solid #dfeaee;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 16px 32px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: .98rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
}

.pg-btn::after {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.pg-btn-main {
    background: #0d1f2b;
    color: #fff;
}

.pg-btn-main:hover { background: var(--point-mint-deep); }

.pg-btn-ghost {
    border-color: #cfdde2;
    color: #3d4b53;
}

.pg-btn-ghost:hover {
    border-color: var(--point-mint);
    color: var(--point-mint-deep);
}

/* ── 반응형 ───────────────────────────────── */
@media (max-width: 1100px) {
    .class-tab-container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    /* 좁아지면 목록 대신 드롭다운으로 고른다 */
    .class-tab-sidebar { position: static; }
    .class-tab-list,
    .pg-side-label { display: none; }

    .class-tab-select {
        display: block;
        width: 100%;
        padding: 16px 20px;
        border: 1px solid #dbe4e8;
        border-radius: 18px;
        background: #fff;
        font-family: inherit;
        font-size: 1rem;
        font-weight: 700;
        color: #0d1f2b;
    }
}

@media (max-width: 768px) {
    .pg-wrap { padding: 0 20px; }
    .pg-hero { min-height: 76vh; padding: 140px 0 72px; }
    .pg-hero-strip span:nth-child(n+4) { display: none; }
    .pg-chips { margin-top: 28px; }
    .pg-chips span { padding: 8px 15px; font-size: .85rem; }
    .class-by-target { padding: 60px 0 80px; }
    .pg-pane-photo { border-radius: 22px; aspect-ratio: 16 / 10; margin-bottom: 28px; }
    .pg-pane-foot { flex-direction: column; }
    .pg-btn { justify-content: center; }
}
