/*
Theme Name: 스텝업금융교육
Theme URI: https://stepupasset.com/
Author: 비랜딩 (blanding.kr)
Author URI: https://blanding.kr/
Description: 스텝업금융교육 전용 경량 운영 테마. 표준 메뉴와 강사 관리 기능을 제공합니다.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: stepup-education
*/

:root {
    --stepup-navy: #004b87;
    --stepup-blue: #00a2d1;
    --stepup-deep: #002250;
    --stepup-ink: #1d2733;
    --stepup-muted: #687483;
    --stepup-line: #dce5ed;
    --stepup-soft: #f4f7fb;
    --stepup-white: #fff;
    --stepup-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--stepup-ink); background: #fff; font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif; line-height: 1.65; letter-spacing: -.014em; word-break: keep-all; }
body.admin-bar #pro-stepup-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.stepup-skip-link { position: fixed; z-index: 100000; top: -80px; left: 20px; padding: 10px 16px; color: #fff; background: #000; text-decoration: none; }
.stepup-skip-link:focus { top: 20px; }
.stepup-site-content { min-height: 60vh; overflow: clip; }
.stepup-page { margin: 0; }
.stepup-page > p:only-child { margin: 0; }

/* 강사 소개 */
.stepup-sub-hero { min-height: 400px; padding: 135px 24px 70px; display: grid; place-items: center; position: relative; color: #fff; text-align: center; background-color: var(--stepup-deep); background-position: center; background-size: cover; }
.stepup-instructor-hero { background-image: linear-gradient(100deg, rgba(0,34,80,.9), rgba(0,75,135,.68)), url("https://images.unsplash.com/photo-1557425955-df376b5903c8?q=80&w=2000&auto=format&fit=crop"); }
.stepup-sub-hero-inner { position: relative; z-index: 1; }
.stepup-sub-hero span { display: block; margin-bottom: 12px; color: #53d4f1; font-size: 14px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.stepup-sub-hero h1 { margin: 0; color: #fff; font-size: 48px; font-weight: 750; line-height: 1.18; letter-spacing: -.04em; }
.stepup-sub-hero p { margin: 18px 0 0; color: rgba(255,255,255,.88); font-size: 18px; }
.stepup-instructor-section { padding: 96px 24px 130px; background: #fff; }
.stepup-inner { width: min(100%, var(--stepup-width)); margin: 0 auto; }
.stepup-instructor-card { margin-bottom: 42px; display: grid; grid-template-columns: 36% 64%; overflow: hidden; background: #fff; border: 1px solid #e8eef3; border-radius: 28px; box-shadow: 0 16px 48px rgba(0,34,80,.07); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.stepup-instructor-card:hover { transform: translateY(-5px); border-color: #b9dce9; box-shadow: 0 24px 64px rgba(0,34,80,.11); }
.stepup-instructor-photo { min-height: 470px; padding: 34px; display: grid; place-items: center; background: #f3f8fb; border-right: 1px solid #e8eef3; }
.stepup-instructor-photo img { width: 100%; height: 100%; max-height: 480px; display: block; object-fit: contain; object-position: center; border-radius: 18px; background: #edf4f8; }
.stepup-photo-empty { width: 100%; aspect-ratio: 4/5; display: grid; place-items: center; align-content: center; gap: 10px; color: #8ca0b0; border: 1px dashed #bdcbd5; border-radius: 18px; }
.stepup-photo-empty i { font-size: 48px; }
.stepup-photo-empty span { font-size: 12px; letter-spacing: .18em; }
.stepup-instructor-copy { padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; }
.stepup-instructor-copy header { margin-bottom: 31px; padding-bottom: 24px; border-bottom: 1px solid var(--stepup-line); }
.stepup-instructor-copy header p { margin: 0 0 7px; color: var(--stepup-blue); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.stepup-instructor-copy h2 { margin: 0; color: var(--stepup-deep); font-size: 38px; line-height: 1.25; letter-spacing: -.04em; }
.stepup-instructor-copy h2 span { color: #7c8994; font-size: 20px; font-weight: 500; }
.stepup-instructor-detail + .stepup-instructor-detail { margin-top: 26px; }
.stepup-instructor-detail h3 { margin: 0 0 13px; color: var(--stepup-navy); font-size: 17px; }
.stepup-instructor-detail h3 i { width: 24px; color: var(--stepup-blue); }
.stepup-instructor-detail ul { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.stepup-instructor-detail li { position: relative; padding-left: 14px; color: #44515e; }
.stepup-instructor-detail li::before { content: ""; position: absolute; top: .78em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--stepup-blue); }
.stepup-instructor-detail p { margin: 0; color: #44515e; }
.stepup-empty { margin: 0; padding: 70px 20px; color: var(--stepup-muted); text-align: center; }

/* 강의신청 강사 선택 */
#stepup-apply .stepup-instructor-choice { margin-top: 4px; }
#stepup-apply .stepup-choice-help { margin: 6px 0 16px; color: #718091; font-size: 14px; }
#stepup-apply .stepup-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#stepup-apply .stepup-choice-card { margin: 0; cursor: pointer; }
#stepup-apply .stepup-choice-card > input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
#stepup-apply .stepup-choice-visual { min-height: 98px; padding: 12px 48px 12px 12px; display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 14px; position: relative; color: var(--stepup-ink); background: #fff; border: 1px solid #d9e3eb; border-radius: 14px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
#stepup-apply .stepup-choice-photo { width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; color: var(--stepup-navy); background: #eef6fa; border-radius: 10px; }
#stepup-apply .stepup-choice-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
#stepup-apply .stepup-choice-photo > i { font-size: 25px; }
#stepup-apply .stepup-choice-copy { min-width: 0; display: block; }
#stepup-apply .stepup-choice-copy strong { display: block; color: var(--stepup-deep); font-size: 16px; }
#stepup-apply .stepup-choice-copy small { margin-top: 4px; display: -webkit-box; overflow: hidden; color: #6d7b88; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
#stepup-apply .stepup-choice-visual > i { position: absolute; top: 50%; right: 17px; width: 24px; height: 24px; display: grid; place-items: center; color: #fff; background: #cbd6df; border-radius: 50%; font-size: 11px; transform: translateY(-50%); }
#stepup-apply .stepup-choice-card > input:checked + .stepup-choice-visual { background: #f3fbfe; border-color: var(--stepup-blue); box-shadow: 0 0 0 2px rgba(0,162,209,.11); }
#stepup-apply .stepup-choice-card > input:checked + .stepup-choice-visual > i { background: var(--stepup-blue); }
#stepup-apply .stepup-choice-card > input:focus-visible + .stepup-choice-visual { outline: 3px solid rgba(0,75,135,.24); outline-offset: 2px; }

/* 기본 글·페이지 */
.stepup-standard-wrap, .stepup-article { width: min(calc(100% - 48px), 960px); margin: 0 auto; padding: 150px 0 110px; }
.stepup-standard-heading { margin-bottom: 50px; padding-bottom: 26px; border-bottom: 1px solid var(--stepup-line); }
.stepup-standard-heading span { color: var(--stepup-blue); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.stepup-standard-heading h1, .stepup-article h1 { margin: 7px 0 0; color: var(--stepup-deep); font-size: 44px; line-height: 1.25; letter-spacing: -.04em; }
.stepup-post-list article { padding: 28px 0; border-bottom: 1px solid var(--stepup-line); }
.stepup-post-list time, .stepup-article time { color: #84909b; font-size: 13px; }
.stepup-post-list h2 { margin: 7px 0; font-size: 23px; }
.stepup-post-list h2 a { text-decoration: none; }
.stepup-post-list p { margin: 0; color: var(--stepup-muted); }
.stepup-article header { margin-bottom: 42px; padding-bottom: 28px; border-bottom: 1px solid var(--stepup-line); }
.stepup-article-content { font-size: 17px; line-height: 1.8; }

/* WPCode의 기존 헤더·푸터가 중지되어도 사용할 수 있는 기본 구조 */
.stepup-fallback-header { min-height: 90px; padding: 0 max(24px, calc((100vw - 1320px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 40px; position: sticky; z-index: 9999; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid #edf1f4; }
.stepup-brand img { width: auto; max-height: 46px; display: block; }
.stepup-theme-menu, .stepup-theme-menu ul { margin: 0; padding: 0; list-style: none; }
.stepup-theme-menu { display: flex; gap: 62px; }
.stepup-theme-menu > li { position: relative; }
.stepup-theme-menu a { color: #202a34; font-weight: 700; text-decoration: none; }
.stepup-theme-menu .sub-menu { min-width: 210px; padding: 12px 0; position: absolute; top: calc(100% + 18px); left: -22px; color: #fff; background: var(--stepup-deep); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.stepup-theme-menu .sub-menu a { padding: 9px 20px; display: block; color: #fff; font-size: 14px; font-weight: 500; }
.stepup-theme-menu li:hover > .sub-menu, .stepup-theme-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.stepup-menu-toggle { display: none; }
.stepup-fallback-footer { padding: 50px 24px; color: #cbd6df; background: #07182b; }
.stepup-fallback-footer > div { width: min(100%, 1200px); margin: 0 auto; }
.stepup-fallback-footer img { width: 150px; filter: brightness(0) invert(1); }
.stepup-fallback-footer p { margin: 12px 0 0; font-size: 13px; }

@media (max-width: 900px) {
    body.admin-bar #pro-stepup-header { top: 46px; }
    .stepup-instructor-card { grid-template-columns: 1fr; }
    .stepup-instructor-photo { min-height: 0; padding: 32px 32px 0; border-right: 0; }
    .stepup-instructor-photo img { max-height: 560px; }
    .stepup-instructor-copy { padding: 38px 34px 44px; }
    .stepup-fallback-header { min-height: 74px; }
    .stepup-menu-toggle { width: 44px; height: 44px; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 5px; border: 0; background: transparent; }
    .stepup-menu-toggle span { width: 24px; height: 2px; display: block; background: var(--stepup-deep); }
    .stepup-menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
    .stepup-fallback-nav { position: fixed; inset: 74px 0 0; padding: 30px 24px; overflow-y: auto; color: #fff; background: rgba(0,34,80,.98); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s; }
    .stepup-fallback-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .stepup-theme-menu { display: block; }
    .stepup-theme-menu > li { border-bottom: 1px solid rgba(255,255,255,.14); }
    .stepup-theme-menu > li > a { padding: 16px 0; display: block; color: #fff; font-size: 19px; }
    .stepup-theme-menu .sub-menu { position: static; padding: 0 0 15px 18px; display: block; background: transparent; opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 640px) {
    .stepup-sub-hero { min-height: 330px; padding: 115px 20px 55px; }
    .stepup-sub-hero h1 { font-size: 38px; }
    .stepup-sub-hero p { font-size: 15px; }
    .stepup-instructor-section { padding: 62px 16px 90px; }
    .stepup-instructor-card { margin-bottom: 28px; border-radius: 20px; }
    .stepup-instructor-photo { padding: 20px 20px 0; }
    .stepup-instructor-photo img { max-height: 420px; border-radius: 14px; }
    .stepup-instructor-copy { padding: 30px 22px 34px; }
    .stepup-instructor-copy header { margin-bottom: 24px; padding-bottom: 18px; }
    .stepup-instructor-copy h2 { font-size: 30px; }
    .stepup-instructor-copy h2 span { font-size: 17px; }
    #stepup-apply .stepup-choice-grid { grid-template-columns: 1fr; }
    #stepup-apply .stepup-choice-visual { min-height: 88px; grid-template-columns: 60px minmax(0,1fr); }
    #stepup-apply .stepup-choice-photo { width: 60px; height: 60px; }
    .stepup-standard-wrap, .stepup-article { width: calc(100% - 32px); padding: 110px 0 80px; }
    .stepup-standard-heading h1, .stepup-article h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
