/* ============================================================
 * SPROUT & SKY · 별담 키즈 아카데미 — Subpage layer
 * teachers / classes / alumni
 * ============================================================ */

/* Sub Hero */
.subhero {
    position: relative;
    min-height: 60vh;
    overflow: hidden;
    isolation: isolate;
    display: flex; align-items: center;
    padding: 96px 0 80px;
}
.subhero-bg {
    position: absolute; inset: -8%;
    background-size: cover;
    background-position: center;
    z-index: -3;
    will-change: transform;
}
.subhero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        transparent 55%,
        rgba(254, 252, 247, 0.55) 88%,
        var(--bg-0) 100%);
    z-index: -2;
}
.subhero-content {
    max-width: var(--max-w); width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    position: relative; z-index: 1;
}
.breadcrumb {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--bg-2);
    border: 1px solid var(--line-1);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-family: var(--display);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 24px;
}
.breadcrumb a { color: var(--sage); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb span { color: var(--ink-3); }
.subhero-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--ink-0);
    margin-bottom: 28px;
    max-width: 14ch;
    text-shadow: 0 0 1px rgba(45, 49, 66, 0.4), 0 2px 4px rgba(254, 252, 247, 0.95);
}
.subhero-title .accent-coral { color: var(--coral); }
.subhero-title .accent-sage { color: var(--sage); }
.subhero-title .accent-sky { color: var(--sky); }
.subhero-desc {
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--ink-1);
    max-width: 580px;
    margin-bottom: 40px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(254, 252, 247, 0.95);
}
.subhero-stats {
    display: flex; gap: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line-1);
    flex-wrap: wrap;
}
.subhero-stats div { display: flex; flex-direction: column; gap: 6px; }
.subhero-stats strong {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--coral);
    line-height: 1;
    letter-spacing: -0.02em;
}
.subhero-stats span {
    font-family: var(--display);
    font-size: 0.78rem;
    color: var(--ink-2);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Sub-section */
.sub-section { padding: 100px 0; background: var(--bg-0); }
.sub-section-alt { background: var(--bg-1); }

/* ===== TEACHERS full grid ===== */
.teachers-fullgrid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.teachers-fullgrid .teacher-card { flex: none; }
.teachers-filter {
    max-width: var(--max-w);
    margin: 0 auto 48px;
    padding: 0 32px;
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.teachers-filter button {
    background: transparent;
    border: 1.5px solid var(--line-2);
    color: var(--ink-2);
    font-family: var(--display);
    font-size: 0.84rem;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all 0.2s var(--spring);
}
.teachers-filter button:hover { color: var(--ink-0); border-color: var(--sage); }
.teachers-filter button.active { background: var(--sage); color: #fff; border-color: var(--sage); }

.recruit-cta {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}

/* ===== CLASSES detail ===== */
.classes-detail {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: flex; flex-direction: column; gap: 16px;
}
.cls-row {
    background: var(--bg-2);
    border: 1px solid var(--line-1);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.4s;
}
.cls-row:hover { border-color: var(--sage); box-shadow: var(--shadow-lift); }
.cls-cell {
    padding: 32px 24px;
    display: flex; flex-direction: column; gap: 8px;
    border-right: 1px solid var(--line-1);
}
.cls-cell:last-child { border-right: 0; }
.cls-cell-major {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--ink-0);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.cls-cell-major small {
    display: block;
    font-family: var(--display);
    font-size: 0.78rem;
    color: var(--coral);
    font-weight: 700;
    margin-top: 4px;
}
.cls-cell-desc {
    font-size: 0.94rem;
    color: var(--ink-1);
    line-height: 1.55;
    font-weight: 500;
}
.cls-cell strong {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--coral);
    line-height: 1;
}
.cls-cell .label {
    font-family: var(--display);
    font-size: 0.74rem;
    color: var(--ink-2);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.cls-cell .price-num { font-size: 1.32rem; }

/* Schedule */
.schedule-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--line-1);
    border: 1px solid var(--line-1);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.schedule-cell {
    background: var(--bg-2);
    padding: 24px 16px;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 200px;
    transition: background 0.3s;
}
.schedule-cell:hover { background: var(--bg-3); }
.schedule-cell .sc-day {
    font-family: var(--display);
    font-weight: 700;
    color: var(--coral);
    font-size: 1.6rem;
    line-height: 1;
}
.schedule-cell .sc-time {
    font-family: var(--display);
    font-size: 0.74rem;
    color: var(--ink-3);
    font-weight: 600;
}
.schedule-cell strong {
    font-family: var(--display);
    font-size: 0.94rem;
    color: var(--ink-0);
    margin-top: auto;
    font-weight: 700;
}
.schedule-cell p {
    font-size: 0.78rem;
    color: var(--ink-2);
    line-height: 1.4;
    font-weight: 500;
}
.tuition-cta {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}

/* ===== ALUMNI page ===== */
.alumni-filter {
    max-width: var(--max-w);
    margin: 0 auto 48px;
    padding: 0 32px;
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.alumni-filter button {
    background: transparent;
    border: 1.5px solid var(--line-2);
    color: var(--ink-2);
    font-family: var(--display);
    font-size: 0.84rem;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all 0.2s var(--spring);
}
.alumni-filter button:hover { color: var(--ink-0); border-color: var(--coral); }
.alumni-filter button.active { background: var(--coral); color: #fff; border-color: var(--coral); }

.alumni-school-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.alumni-school-card {
    background: var(--bg-2);
    border: 1px solid var(--line-1);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex; flex-direction: column; gap: 14px;
    transition: border-color 0.3s, transform 0.3s var(--spring), box-shadow 0.4s;
}
.alumni-school-card:hover { border-color: var(--coral); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.asc-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--ink-0);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.asc-count {
    font-family: var(--display);
    font-weight: 700;
    color: var(--coral);
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: -0.04em;
}
.asc-count small {
    font-family: var(--display);
    font-size: 0.74rem;
    color: var(--ink-2);
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}
.asc-years {
    border-top: 1px solid var(--line-1);
    padding-top: 12px;
    font-family: var(--display);
    font-size: 0.82rem;
    color: var(--sage);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.alumni-interview-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.alumni-interview {
    background: var(--bg-2);
    border: 1px solid var(--line-1);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex; flex-direction: column; gap: 16px;
    transition: border-color 0.3s, box-shadow 0.4s;
}
.alumni-interview:hover { border-color: var(--coral); box-shadow: var(--shadow-lift); }
.ai-quote {
    font-family: var(--hand);
    font-size: 1.32rem;
    line-height: 1.5;
    color: var(--ink-0);
    border-left: 4px solid var(--coral);
    padding-left: 20px;
}
.ai-meta {
    display: flex; align-items: baseline; gap: 12px;
    font-family: var(--display);
    font-size: 0.82rem;
    color: var(--ink-2);
    font-weight: 600;
    border-top: 1px solid var(--line-1);
    padding-top: 14px;
    flex-wrap: wrap;
}
.ai-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.16rem;
    color: var(--coral);
    letter-spacing: -0.02em;
}

.alumni-yearly-bars {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: flex; align-items: flex-end; gap: 6px;
    height: 240px;
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 8px;
}
.yearly-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--coral), var(--sage));
    border-radius: 4px 4px 0 0;
    transition: opacity 0.3s, transform 0.3s var(--spring);
    position: relative;
    min-height: 8px;
}
.yearly-bar:hover { opacity: 0.85; transform: scaleY(1.05); }
.yearly-bar:hover::after {
    content: attr(data-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-2);
    color: var(--ink-0);
    font-family: var(--display);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border: 1px solid var(--coral);
    border-radius: var(--radius);
    white-space: nowrap;
    margin-bottom: 8px;
    box-shadow: var(--shadow-soft);
}

/* responsive */
@media (max-width: 1024px) {
    .teachers-fullgrid { grid-template-columns: repeat(2, 1fr); }
    .cls-row { grid-template-columns: 1fr; }
    .cls-cell { border-right: 0; border-bottom: 1px solid var(--line-1); }
    .cls-cell:last-child { border-bottom: 0; }
    .schedule-grid { grid-template-columns: repeat(3, 1fr); }
    .alumni-school-grid { grid-template-columns: repeat(2, 1fr); }
    .alumni-interview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .subhero { min-height: 50vh; padding: 64px 0 56px; }
    .subhero-stats { gap: 24px; flex-wrap: wrap; }
    .sub-section { padding: 64px 0; }
    .teachers-fullgrid { grid-template-columns: 1fr; padding: 0 20px; }
    .schedule-grid { grid-template-columns: 1fr !important; padding: 0 20px; }
    .schedule-cell { min-height: 150px; padding: 20px 14px; }
    .alumni-school-grid { grid-template-columns: 1fr; padding: 0 20px; }
    .alumni-interview-grid { padding: 0 20px; }
    .alumni-yearly-bars { padding: 0 20px; height: 160px; }
}
