/* ===================================================
   tc_hybrid — 관리형유학 하이브리드 스킨
   IGE 2025 Design Tokens (Option D: Premium Warm)
   =================================================== */

:root {
    --tc-accent: #e57a00;
    --tc-accent-dark: #d4690a;
    --tc-accent-light: #f59e0b;
    --tc-accent-soft: #fff7ed;
    --tc-accent-muted: #fef3c7;
    --tc-accent-text: #92400e;
    --tc-green: #2d7d4f;
    --tc-green-light: #E8F5E9;

    --tc-navy: #0A1628;
    --tc-snow: #F8FAFC;
    --tc-gray-50: #F9FAFB;
    --tc-gray-100: #F1F5F9;
    --tc-gray-200: #E2E8F0;
    --tc-gray-300: #CBD5E1;
    --tc-gray-400: #94A3B8;
    --tc-gray-600: #475569;
    --tc-gray-800: #1E293B;
    --tc-text: #212536;

    --tc-font-display: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
    --tc-font-body: 'Noto Sans KR', -apple-system, sans-serif;
    --tc-container: 1280px;
    --tc-radius-sm: 8px;
    --tc-radius-md: 12px;
    --tc-radius-lg: 16px;
    --tc-shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --tc-shadow-hover: 0 12px 32px rgba(0,0,0,0.10);
    --tc-transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-wrap {
    max-width: var(--tc-container);
    margin: 0 auto;
    padding: 0 24px;
    font-family: var(--tc-font-body);
    color: var(--tc-text);
    line-height: 1.7;
}

/* ===================================================
   HERO
   =================================================== */
/* 2026-04-16 Phase 5: .tc-hero-* dead CSS 제거 — HTML은 .hero-* 사용 중 (components/hero.css가 처리).
   pills/stats/inner/h1/desc 전부 참조 0건 확인 후 삭제. */

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

/* ===================================================
   SECTIONS
   =================================================== */
.tc-section {
    padding: 40px 0;
}
.tc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.tc-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--tc-font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--tc-navy);
}
.tc-section-count {
    font-size: 13px;
    color: var(--tc-gray-400);
}
.tc-divider {
    height: 1px;
    background: var(--tc-gray-200);
    margin: 0;
}

/* ===================================================
   FEATURED RAIL
   =================================================== */
.tc-feat-rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.tc-feat-rail::-webkit-scrollbar { height: 4px; }
.tc-feat-rail::-webkit-scrollbar-track { background: var(--tc-gray-100); border-radius: 4px; }
.tc-feat-rail::-webkit-scrollbar-thumb { background: var(--tc-gray-300); border-radius: 4px; }
.tc-feat-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--tc-radius-lg);
    overflow: hidden;
    box-shadow: var(--tc-shadow-card);
    transition: var(--tc-transition);
    text-decoration: none;
    color: inherit;
    display: block;
    animation: tcFadeInUp 0.5s ease-out backwards;
}
.tc-feat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tc-shadow-hover);
}
.tc-feat-banner {
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.tc-feat-name {
    font-family: var(--tc-font-display);
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    z-index: 1;
    text-align: center;
    line-height: 1.3;
}
.tc-feat-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: rgba(251,191,36,0.9);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    color: #78350F;
    z-index: 2;
}
.tc-feat-body {
    padding: 14px 16px;
}
.tc-feat-meta {
    font-size: 12px;
    color: var(--tc-gray-400);
    margin-bottom: 6px;
}
.tc-feat-cost {
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-accent);
    margin-top: 8px;
}

/* ===================================================
   FILTER BAR
   =================================================== */
.tc-filter-toggle {
    display: none;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-sm);
    background: #fff;
    font-family: var(--tc-font-body);
    font-size: 14px;
    color: var(--tc-gray-600);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}
.tc-filter-box {
    background: var(--tc-gray-50);
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-md);
    padding: 16px;
    margin-bottom: 20px;
}
.tc-f-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.tc-f-row:last-child { margin-bottom: 0; }
.tc-f-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tc-gray-600);
    min-width: 50px;
}
.tc-f-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid var(--tc-gray-200);
    background: #fff;
    font-size: 13px;
    color: var(--tc-gray-600);
    cursor: pointer;
    transition: var(--tc-transition);
    user-select: none;
}
.tc-f-chip:hover {
    border-color: var(--tc-accent);
    color: var(--tc-accent);
}
.tc-f-chip.on {
    background: var(--tc-accent);
    border-color: var(--tc-accent);
    color: #fff;
    font-weight: 600;
}

/* Dropdowns */
.tc-f-dropdowns {
    gap: 12px;
}
.tc-f-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tc-f-select-label {
    font-size: 11px;
    color: var(--tc-gray-400);
    font-weight: 500;
}
.tc-f-select-wrap select {
    padding: 6px 10px;
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-sm);
    font-size: 13px;
    font-family: var(--tc-font-body);
    color: var(--tc-gray-600);
    background: #fff;
    cursor: pointer;
    min-width: 100px;
}
.tc-f-select-wrap select:focus {
    outline: none;
    border-color: var(--tc-accent);
}
.tc-f-toggle-wrap {
    justify-content: center;
}
.tc-f-toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--tc-gray-600);
    cursor: pointer;
}
.tc-f-toggle-label input[type="checkbox"] {
    accent-color: var(--tc-accent);
}

/* Cost slider */
.tc-f-cost-row {
    align-items: center;
}
.tc-cost-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}
#tc_cost_slider {
    flex: 1;
    height: 6px;
}
.tc-cost-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--tc-gray-600);
    min-width: 65px;
    text-align: center;
}

/* Search */
.tc-search-box {
    margin-top: 10px;
}
.tc-search-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-sm);
    transition: var(--tc-transition);
}
.tc-search-inner:focus-within {
    border-color: var(--tc-accent);
    box-shadow: 0 0 0 3px rgba(229,122,0,0.08);
}
.tc-search-icon {
    font-size: 18px;
    color: var(--tc-gray-400);
}
.tc-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: var(--tc-font-body);
    color: var(--tc-text);
    background: transparent;
}
.tc-search-input::placeholder { color: var(--tc-gray-300); }
.tc-search-clear {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--tc-gray-400);
    cursor: pointer;
    padding: 2px 6px;
}
.tc-search-clear:hover { color: var(--tc-gray-600); }

/* ===================================================
   CARDS
   =================================================== */
/* [2026-04-14 v2] A1 · 1열 복구 + max-width 700px (homestay/bording 일관성) */
.tc-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}
/* 768px+ / 1024px+ 2열 미디어쿼리 제거 — max-width 700px이라 의미 없음 */
.tc-card {
    background: #fff;
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: var(--tc-transition);
    animation: tcFadeInUp 0.4s ease-out backwards;
}
.tc-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tc-shadow-hover);
    border-color: var(--tc-accent);
}
.tc-card-thumb {
    height: 100px;
    background-size: cover;
    background-position: center;
    background-color: var(--tc-gray-100);
}
/* 액센트 바 (썸네일 없는 카드) */
.tc-card-accent {
    height: 6px;
    border-radius: var(--tc-radius-md) var(--tc-radius-md) 0 0;
}
.tc-card-accent.tc-accent-ige {
    background: linear-gradient(90deg, #e57a00, #f59e0b);
}
.tc-card-accent.tc-accent-partner {
    background: linear-gradient(90deg, #0d7680, #06b6d4);
}
/* 카드 헤더 (제목 + 운영사 도트) */
.tc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.tc-card-op-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}
.tc-card-op-dot.tc-accent-ige { background: var(--tc-accent); }
.tc-card-op-dot.tc-accent-partner { background: #0d7680; }
/* 칩 태그 */
.tc-card-chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.tc-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 16px;
    font-size: 11px;
    background: var(--tc-gray-100);
    color: var(--tc-gray-600);
    white-space: nowrap;
}
.tc-chip .material-symbols-outlined { font-size: 13px; }
.tc-chip-featured {
    background: #fef3c7;
    color: #92400e;
}
.tc-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tc-card-title {
    font-family: var(--tc-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--tc-navy);
    margin-bottom: 4px;
    line-height: 1.4;
}
.tc-card-meta {
    font-size: 12px;
    color: var(--tc-gray-400);
    margin-bottom: 8px;
}
.tc-card-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.tc-card-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.tc-card-opt {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--tc-gray-600);
}
.tc-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--tc-gray-100);
    margin-top: auto;
}
.tc-card-schools {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--tc-gray-400);
}
.tc-card-cost {
    font-size: 14px;
    font-weight: 700;
    color: var(--tc-accent);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}
.badge-ige {
    background: var(--tc-accent-soft);
    color: var(--tc-accent);
}
.badge-partner {
    background: var(--tc-accent-muted);
    color: var(--tc-accent);
}
.badge-featured {
    background: var(--tc-green-light);
    color: var(--tc-green);
}

/* === 가로형 카드 (tc-card-h) === */
.tc-card-h {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--tc-transition);
}
.tc-card-h:hover {
    transform: translateY(-1px);
    box-shadow: var(--tc-shadow-hover);
    border-color: var(--tc-accent);
}
.tc-card-h-accent {
    width: 5px;
    flex-shrink: 0;
}
.tc-card-h-accent.tc-accent-ige {
    background: linear-gradient(180deg, #e57a00, #f59e0b);
}
.tc-card-h-accent.tc-accent-partner {
    background: linear-gradient(180deg, #0d7680, #06b6d4);
}
.tc-card-h-info {
    flex: 1;
    padding: 14px 16px;
    min-width: 0;
}
.tc-card-h-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.tc-card-h-title {
    font-family: var(--tc-font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--tc-navy);
    margin-bottom: 8px;
    line-height: 1.3;
}
.tc-card-h-chips {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.tc-card-h-school {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--tc-gray-600);
}
.tc-card-h-cost {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    min-width: 160px;
    background: var(--tc-gray-50);
    border-left: 1px solid var(--tc-gray-200);
    text-align: center;
}
.tc-card-h .tc-card-cost {
    font-family: var(--tc-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--tc-accent);
    white-space: nowrap;
}
.tc-card-cost-unit {
    font-size: 12px;
    font-weight: 400;
    color: var(--tc-gray-400);
    margin-left: 2px;
}
.tc-card-cost--inquiry {
    color: var(--tc-gray-400);
    font-weight: 500;
}
.tc-card-h-arrow {
    color: var(--tc-gray-300);
    font-size: 20px;
    margin-top: 6px;
}

/* Empty state */
.tc-empty {
    text-align: center;
    padding: 60px 20px;
}
.tc-empty p {
    font-size: 15px;
    color: var(--tc-gray-400);
    margin-top: 12px;
}

/* Loading / Error */
.tc-loading, .tc-error {
    text-align: center;
    padding: 40px;
    color: var(--tc-gray-400);
    font-size: 14px;
}

/* ===================================================
   BLOG LIST (운영 기록 — 2019~)
   =================================================== */
.tc-blog-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tc-blog-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--tc-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: var(--tc-transition);
}
.tc-blog-item:hover {
    background: var(--tc-gray-50);
}
.tc-blog-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--tc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.tc-blog-icon.guide { background: var(--tc-accent-soft); color: var(--tc-accent); }
.tc-blog-icon.cost { background: var(--tc-accent-muted); color: var(--tc-accent); }
.tc-blog-icon.compare { background: var(--tc-green-light); color: var(--tc-green); }
.tc-blog-icon.photo { background: var(--tc-teal-soft, #e0f2f1); color: var(--tc-teal, #0f766e); }
.tc-blog-icon.achievement { background: #fef3c7; color: #b45309; }
.tc-blog-text { flex: 1; min-width: 0; }
.tc-blog-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc-blog-meta {
    font-size: 12px;
    color: var(--tc-gray-400);
    margin-top: 2px;
}
.tc-blog-arrow {
    font-size: 18px;
    color: var(--tc-gray-300);
    flex-shrink: 0;
}

/* Hero 헤리티지 배지 (Phase 15 — 16년 축적) */
.hero-badge--heritage {
    margin-left: 8px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.32);
}
@media (max-width: 600px) {
    .hero-badge--heritage { margin-left: 0; margin-top: 6px; display: inline-block; }
}

/* ===================================================
   ARCHIVE — 연도별 타임라인 아코디언 (2026-04-17)
   =================================================== */
.tc-archive-head {
    max-width: 720px;
    margin-bottom: 28px;
}
.tc-archive-title {
    font-size: 25px;
    line-height: 1.28;
    font-weight: 700;
    color: var(--tc-navy);
    letter-spacing: -0.015em;
    margin: 0;
}
.tc-archive-desc {
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
    color: var(--tc-gray-500);
    margin: 10px 0 0 0;
}
@media (min-width: 768px) {
    .tc-archive-title { font-size: 27px; }
    .tc-archive-desc { font-size: 16px; }
}

/* 세로 타임라인 레일 */
.tc-archive-timeline {
    position: relative;
    padding-left: 24px;
}
.tc-archive-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 14px;
    bottom: 14px;
    width: 1.5px;
    background: linear-gradient(to bottom,
        var(--tc-gray-200) 0%,
        var(--tc-gray-200) 72%,
        transparent 100%);
}

/* 연도 그룹 */
.tc-year-group {
    position: relative;
}
.tc-year-group + .tc-year-group {
    margin-top: 2px;
}

/* 연도 헤더 (버튼) */
.tc-year-head {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 14px 14px 14px 2px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    color: var(--tc-navy);
    font-family: inherit;
    border-radius: var(--tc-radius-sm);
    transition: background var(--tc-transition);
    position: relative;
}
.tc-year-head:hover {
    background: var(--tc-gray-50);
}
.tc-year-head:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--tc-accent-soft);
    background: var(--tc-gray-50);
}

/* 타임라인 dot */
.tc-year-dot {
    position: absolute;
    left: -21px;
    top: 50%;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--tc-gray-300);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.tc-year-group.is-open .tc-year-dot {
    border-color: var(--tc-accent);
    background: var(--tc-accent);
    box-shadow: 0 0 0 4px var(--tc-accent-soft);
}

/* 연도 숫자 */
.tc-year-number {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--tc-navy);
    font-variant-numeric: tabular-nums;
    min-width: 58px;
    transition: color var(--tc-transition);
}
.tc-year-group.is-open .tc-year-number {
    color: var(--tc-accent);
}

/* 건수 배지 */
.tc-year-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--tc-gray-500);
    background: var(--tc-gray-100);
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.01em;
    transition: background var(--tc-transition), color var(--tc-transition);
}
.tc-year-group.is-open .tc-year-count {
    background: var(--tc-accent-soft);
    color: var(--tc-accent);
}

/* chevron */
.tc-year-chevron {
    margin-left: auto;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-gray-400);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color var(--tc-transition);
}
.tc-year-chevron svg {
    width: 14px;
    height: 14px;
    display: block;
}
.tc-year-group.is-open .tc-year-chevron {
    color: var(--tc-accent);
    transform: rotate(180deg);
}

/* 패널 — grid-template-rows 트릭으로 콘텐츠 높이 자동 대응 */
.tc-year-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.tc-year-group.is-open .tc-year-panel {
    grid-template-rows: 1fr;
}
.tc-year-panel > .tc-blog-list {
    min-height: 0;
    padding: 2px 0 10px 0;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.tc-year-group.is-open .tc-year-panel > .tc-blog-list {
    opacity: 1;
    transform: none;
    transition-delay: 0.05s;
}

/* 카드 staggered 등장 (전개 시) */
.tc-year-group.is-open .tc-blog-item {
    animation: tcArchiveFadeUp 0.35s both;
}
.tc-year-group.is-open .tc-blog-item:nth-child(1) { animation-delay: 0.05s; }
.tc-year-group.is-open .tc-blog-item:nth-child(2) { animation-delay: 0.10s; }
.tc-year-group.is-open .tc-blog-item:nth-child(3) { animation-delay: 0.15s; }
@keyframes tcArchiveFadeUp {
    from { opacity: 0; transform: translateY(-2px); }
    to   { opacity: 1; transform: none; }
}

/* 모바일 */
@media (max-width: 480px) {
    .tc-archive-timeline { padding-left: 20px; }
    .tc-archive-timeline::before { left: 5px; }
    .tc-year-dot { left: -18px; }
    .tc-year-number { font-size: 20px; min-width: 52px; }
    .tc-year-head { padding: 12px 8px 12px 2px; gap: 12px; }
    .tc-year-count { font-size: 11.5px; padding: 2px 8px; }
}

/* 모션 축소 사용자 배려 */
@media (prefers-reduced-motion: reduce) {
    .tc-year-panel,
    .tc-year-panel > .tc-blog-list,
    .tc-year-chevron,
    .tc-year-dot,
    .tc-year-number,
    .tc-year-count,
    .tc-year-group.is-open .tc-blog-item {
        transition: none !important;
        animation: none !important;
    }
}

/* ===================================================
   VIEW PAGE — Program Detail Header (Option C: Compact Accent)
   =================================================== */
.tc-view-header {
    padding: 28px 32px;
    border-left: 5px solid var(--tc-accent);
    background: #fff;
    margin-bottom: 24px;
}
.tc-view-header--ige {
    border-left-color: var(--tc-accent);
}
.tc-view-header--partner {
    border-left-color: #0d7680;
}
.tc-view-title {
    font-family: var(--tc-font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--tc-navy);
    margin-bottom: 10px;
    line-height: 1.3;
}
.tc-view-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.tc-view-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.tc-view-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    background: var(--tc-gray-100);
    border-radius: 16px;
    font-size: 12px;
    color: var(--tc-gray-600);
}
.tc-view-chip .material-symbols-outlined { font-size: 14px; }
.tc-view-cost-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--tc-accent-soft);
    border-radius: var(--tc-radius-md);
}
.tc-view-cost-label {
    font-size: 12px;
    color: var(--tc-gray-400);
    margin-right: auto;
}
.tc-view-cost-amount {
    font-family: var(--tc-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--tc-accent);
}
.tc-view-cost-unit {
    font-size: 12px;
    color: var(--tc-accent-text);
}
.tc-view-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin-bottom: 40px;
}
.tc-view-content {
    min-width: 0;
}
.tc-view-content #bo_v_con {
    line-height: 1.8;
    font-size: 15px;
}
.tc-view-content #bo_v_con img {
    max-width: 100%;
    height: auto;
}

/* Cost sidebar */
.tc-cost-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}
.tc-option-card {
    background: #fff;
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-md);
    padding: 16px;
    margin-bottom: 12px;
}
.tc-option-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--tc-navy);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tc-option-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: var(--tc-gray-600);
}
.tc-option-cost {
    font-weight: 700;
    color: var(--tc-accent);
    font-size: 15px;
}
.tc-option-desc {
    font-size: 12px;
    color: var(--tc-gray-400);
    margin-top: 4px;
}
.tc-sidebar-summary {
    background: var(--tc-accent-soft);
    border: 2px solid var(--tc-accent);
    border-radius: var(--tc-radius-md);
    padding: 16px;
    text-align: center;
}
.tc-sidebar-summary-label {
    font-size: 12px;
    color: var(--tc-gray-600);
    margin-bottom: 4px;
}
.tc-sidebar-summary-cost {
    font-family: var(--tc-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--tc-accent);
}

/* Connected schools */
.tc-schools-section {
    margin-bottom: 40px;
}
.tc-schools-section h3 {
    font-family: var(--tc-font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--tc-navy);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tc-schools-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--tc-gray-400);
}
.tc-schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.tc-school-card {
    background: #fff;
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-sm);
    padding: 14px;
    transition: var(--tc-transition);
}
.tc-school-card:hover {
    border-color: var(--tc-accent);
    box-shadow: 0 2px 8px rgba(229,122,0,0.08);
}
.tc-sc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}
.tc-sc-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-navy);
    text-decoration: none;
}
.tc-sc-name:hover { color: var(--tc-accent); }
.tc-sc-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 100px;
    font-weight: 600;
}
.tc-sc-badge.public { background: var(--tc-accent-soft); color: var(--tc-accent); }
.tc-sc-badge.private { background: var(--tc-accent-muted); color: var(--tc-accent); }
.tc-sc-meta {
    font-size: 12px;
    color: var(--tc-gray-400);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.tc-sc-district {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--tc-gray-400);
    text-decoration: none;
    font-size: 12px;
}
.tc-sc-district:hover { color: var(--tc-accent); }
.tc-sc-district .material-symbols-outlined { font-size: 14px; }

/* Community section */
.tc-community {
    margin-bottom: 40px;
}
.tc-community-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.tc-community-head h3 {
    font-family: var(--tc-font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--tc-navy);
}
.btn-ask {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--tc-radius-sm);
    background: var(--tc-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--tc-transition);
}
.btn-ask:hover {
    background: var(--tc-accent-dark);
    color: #fff;
}
.tc-community-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tc-community-list li {
    border-bottom: 1px solid var(--tc-gray-100);
}
.tc-community-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
}
.tc-community-list a:hover { color: var(--tc-accent); }
.cm-cat {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--tc-gray-100);
    color: var(--tc-gray-600);
    flex-shrink: 0;
}
.cm-subject {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cm-meta {
    font-size: 12px;
    color: var(--tc-gray-400);
    flex-shrink: 0;
}
.tc-community-more {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: var(--tc-accent);
    text-decoration: none;
    margin-top: 8px;
}
.tc-community-more:hover { text-decoration: underline; }
.tc-community-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--tc-gray-400);
    font-size: 14px;
    background: var(--tc-gray-50);
    border-radius: var(--tc-radius-sm);
}

/* ===================================================
   WRITE PAGE
   =================================================== */
.tc-write-section {
    background: var(--tc-gray-50);
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-md);
    padding: 16px;
    margin-bottom: 16px;
}
.tc-write-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tc-navy);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tc-field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.tc-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tc-field-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--tc-gray-600);
}
.tc-field-group input,
.tc-field-group select {
    padding: 7px 10px;
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-sm);
    font-size: 13px;
    font-family: var(--tc-font-body);
}

/* Options dynamic rows */
.tc-opt-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-sm);
}
.tc-opt-row select,
.tc-opt-row input {
    padding: 6px 8px;
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-sm);
    font-size: 13px;
    font-family: var(--tc-font-body);
}
.tc-opt-row .tc-opt-remove {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 18px;
    padding: 2px 6px;
}
.tc-opt-add-btn {
    padding: 6px 14px;
    border: 1px dashed var(--tc-gray-300);
    border-radius: var(--tc-radius-sm);
    background: transparent;
    color: var(--tc-accent);
    font-size: 13px;
    cursor: pointer;
    font-family: var(--tc-font-body);
    transition: var(--tc-transition);
}
.tc-opt-add-btn:hover {
    background: var(--tc-accent-soft);
    border-color: var(--tc-accent);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
    /* 2026-04-16 Phase 5: .tc-hero 모바일 규칙 제거 (dead) */

    /* 필터 항상 노출 — 토글 숨김 */
    .tc-filter-toggle { display: none !important; }
    .tc-filter-box { display: block !important; }

    /* 드롭다운 2열 배치 */
    .tc-f-dropdowns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .tc-f-select-wrap select {
        min-width: unset;
        width: 100%;
    }
    .tc-f-toggle-wrap {
        grid-column: 1 / -1;
    }

    /* 카드 가로형 모바일 대응 */
    .tc-card-h {
        flex-direction: column;
    }
    .tc-card-h-accent {
        width: 100%;
        height: 4px;
    }
    .tc-card-h-cost {
        flex-direction: row;
        justify-content: space-between;
        min-width: unset;
        border-left: none;
        border-top: 1px solid var(--tc-gray-200);
        padding: 10px 16px;
    }
    .tc-card-h-arrow {
        margin-top: 0;
    }

    /* 뷰 헤더 모바일 */
    .tc-view-header {
        padding: 20px 20px 20px 24px;
    }
    .tc-view-title {
        font-size: 22px;
    }
    .tc-view-cost-amount {
        font-size: 18px;
    }

    /* 여백 축소 */
    .tc-wrap { padding: 0 12px; }
    .tc-section { margin-bottom: 24px; }
    .tc-f-row { padding: 6px 0; }

    .tc-feat-card { flex: 0 0 220px; }

    .tc-view-layout {
        grid-template-columns: 1fr;
    }
    .tc-cost-sidebar {
        position: static;
    }

    .tc-schools-grid {
        grid-template-columns: 1fr;
    }

    .tc-field-grid {
        grid-template-columns: 1fr;
    }
}

/* 태블릿도 1열 유지 (가로형 카드) */

/* ===================================================
   DESIGN UPGRADE: Amber Accent System
   Hero pills, CTA banner, Accordion, Gnuboard override
   =================================================== */

/* View Hero — position anchor for action buttons */
.tc-view-wrap .tc-view-header {
    position: relative;
}

/* 2026-04-16 Phase 5: .tc-hero-pills 제거 (dead — 참조 0건) */
.tc-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.tc-pill--cta {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.tc-pill--cta:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* Gnuboard meta hide (view page) — profile만 숨김, #bo_v_top은 표시 */
.tc-view-wrap #bo_v_info .profile_info { display: none; }

/* Fullwidth cost grid */
.tc-cost-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}
.tc-cost-grid-card {
    border: 1px solid var(--tc-accent);
    border-radius: var(--tc-radius-md);
    padding: 20px;
    background: var(--tc-accent-soft);
}
.tc-cost-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.tc-cost-activity {
    font-size: 13px;
    color: var(--tc-gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}
.tc-cost-grid-card .tc-cost-amount {
    font-family: var(--tc-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--tc-accent-dark);
}
.tc-cost-grid-card .tc-cost-unit {
    font-size: 14px;
    font-weight: 400;
    color: var(--tc-gray-600);
}
.tc-cost-grid-card .tc-krw {
    font-size: 13px;
    color: var(--tc-accent-text);
    margin-top: 2px;
}
.tc-cost-grid-card .tc-cost-inquiry {
    color: var(--tc-gray-400);
    font-size: 16px;
}
.tc-cost-grid-card .tc-cost-desc {
    font-size: 12px;
    color: var(--tc-gray-400);
    margin-top: 8px;
    line-height: 1.5;
}

/* Cost pending card */
.tc-cost-pending {
    text-align: center;
    padding: 32px;
    background: var(--tc-accent-soft);
    border: 1px dashed var(--tc-accent);
    border-radius: var(--tc-radius-md);
}
.tc-cost-pending h4 {
    font-size: 18px;
    color: var(--tc-accent-dark);
    margin: 12px 0 8px;
}
.tc-cost-pending p {
    font-size: 14px;
    color: var(--tc-gray-600);
    margin-bottom: 16px;
}

/* Section heads (fullwidth view) */
.tc-section {
    margin-bottom: 32px;
}
.tc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.tc-section-title {
    font-family: var(--tc-font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--tc-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tc-section-count {
    font-size: 13px;
    color: var(--tc-gray-400);
}

/* CTA banner */
.tc-cta-banner {
    background: linear-gradient(135deg, #e57a00, #d4690a);
    border-radius: var(--tc-radius-md);
    padding: 40px 24px;
    text-align: center;
    margin: 32px 0;
}
.tc-cta-banner h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.tc-cta-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin-bottom: 20px;
}
.tc-cta-button {
    display: inline-block;
    background: #fff;
    color: var(--tc-accent-dark);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tc-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Accordion (write page) */
.tc-accordion-section {
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}
.tc-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 18px;
    background: var(--tc-gray-50);
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--tc-navy);
    font-family: var(--tc-font-body);
}
.tc-accordion-header.is-open {
    background: var(--tc-accent-soft);
    color: var(--tc-accent-dark);
    border-bottom: 1px solid var(--tc-gray-200);
}
.tc-accordion-icon {
    transition: transform 0.3s;
    font-size: 12px;
}
.tc-accordion-header.is-open .tc-accordion-icon {
    transform: rotate(180deg);
}
.tc-accordion-body {
    padding: 18px;
}

/* Card no-cost + school name */
.tc-card.no-cost .tc-card-cost { display: none; }
.tc-card.no-cost .tc-card-options { margin-bottom: 0; }
.tc-card.no-cost .tc-card-footer {
    border-top: 1px solid var(--tc-gray-200);
    padding-top: 8px;
}
.tc-card-school-name {
    font-size: 13px;
    color: var(--tc-gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.tc-card-detail {
    font-size: 13px;
    color: var(--tc-accent);
    font-weight: 600;
}

/* Mobile adjustments for new components */
@media (max-width: 768px) {
    .tc-cost-grid { grid-template-columns: 1fr; }
    /* 2026-04-16 Phase 5: .tc-hero-pills 모바일 제거 (dead) */
    .tc-pill { font-size: 12px; padding: 5px 10px; }
    .tc-cta-banner { padding: 24px 16px; }
    .tc-cta-banner h3 { font-size: 18px; }
    .tc-cta-button { padding: 10px 24px; font-size: 14px; }
}

/* ===================================================
   VIEW PAGE — 상단 버튼 + 하단 UI (추천/비추천 + 이전다음글)
   bd_hybrid 수준 정상화
   =================================================== */

/* 상단 버튼 영역 스타일 보정 (프로그램 모드) */
.tc-view-wrap #bo_v_top {
    padding: 12px 0;
    border-bottom: 1px solid var(--tc-gray-200, #eee);
    margin-bottom: 16px;
}
.tc-view-wrap #bo_v_top .btn_bo_user {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tc-view-wrap #bo_v_top .btn_bo_user li {
    position: relative;
}
.tc-view-wrap #bo_v_top .btn_bo_user .btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1px solid var(--tc-gray-300, #ddd);
    border-radius: 6px;
    color: var(--tc-gray-700, #333);
    text-decoration: none;
    font-size: 13px;
    background: #fff;
    transition: background 0.2s;
}
.tc-view-wrap #bo_v_top .btn_bo_user .btn:hover {
    background: var(--tc-gray-100, #f5f5f5);
}
/* 더보기 옵션 (수정/삭제 드롭다운) */
.tc-view-wrap #bo_v_top .more_opt {
    position: absolute;
    background: #fff;
    border: 1px solid var(--tc-gray-200, #eee);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 4px 0;
    min-width: 100px;
    z-index: 100;
    display: none;
    list-style: none;
}
.tc-view-wrap #bo_v_top .more_opt li a {
    display: block;
    padding: 8px 16px;
    color: var(--tc-gray-700, #333);
    text-decoration: none;
    font-size: 13px;
}
.tc-view-wrap #bo_v_top .more_opt li a:hover {
    background: var(--tc-gray-100, #f5f5f5);
}

/* ===================================================
   COMMENT AREA — h2 숨김 + 댓글 영역 정비
   =================================================== */

/* 댓글목록/댓글쓰기 시맨틱 h2 숨김 (screen-reader only) */
#bo_vc > h2,
.bo_vc_w > h2,
#bo_vc article header h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

/* ===================================================
   BOTTOM SECTION — 추천 + 이전글/다음글 + 댓글 + 하단 네비
   =================================================== */

/* 하단 영역 통합 wrapper */
.tc-bottom-section {
    margin-top: 32px;
    border-top: 1px solid var(--tc-gray-200);
    padding-top: 24px;
}

/* 추천/비추천 독립 바 */
.tc-vote-bar {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}
.tc-vote-bar #bo_v_act {
    display: flex;
    align-items: center;
    gap: 24px;
}
.tc-vote-bar .bo_v_good {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--tc-gray-600);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--tc-gray-200);
    transition: all 0.2s;
}
.tc-vote-bar .bo_v_good:hover {
    border-color: var(--tc-accent);
    color: var(--tc-accent);
    background: var(--tc-accent-soft);
}
.tc-vote-bar .bo_v_good .good-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--tc-accent);
    border-radius: 50%;
}
.tc-vote-bar .bo_v_good .good-ico span {
    font-size: 16px;
    color: #fff;
}
.tc-vote-bar .bo_v_nogood {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--tc-gray-400);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--tc-gray-200);
    transition: all 0.2s;
}
.tc-vote-bar .bo_v_nogood:hover {
    border-color: var(--tc-gray-400);
    background: var(--tc-gray-50);
}
.tc-vote-label {
    font-size: 14px;
    font-weight: 500;
}
.tc-vote-label strong {
    font-weight: 700;
}

/* 댓글 토글 버튼 — tc_hybrid 내 간격 */
.tc-bottom-section .cmt_btn.board-comment-title {
    margin-top: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tc-gray-200);
}

/* 댓글 입력 영역 간격 */
.tc-bottom-section .bo_vc_w {
    margin-top: 8px;
}

/* 댓글 입력 textarea 스타일 보정 */
.tc-bottom-section .board-commnet-input textarea {
    border-radius: 8px;
    border-color: var(--tc-gray-200);
    background: var(--tc-gray-50);
}

/* 댓글등록 버튼 보정 */
.tc-bottom-section .fviewcomment-wrap .ip-btn.app {
    border-radius: 8px;
    background: var(--tc-accent);
    border: none;
    color: #fff;
    font-weight: 600;
}

/* 하단 네비게이션 — pill-shape 버튼 */
.tc-bottom-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--tc-gray-200);
}
.tc-bottom-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--tc-gray-600);
    border: 1px solid var(--tc-gray-200);
    border-radius: 24px;
    background: #fff;
    transition: all 0.2s;
}
.tc-bottom-nav-btn:hover {
    color: var(--tc-accent);
    border-color: var(--tc-accent);
    background: var(--tc-accent-soft);
}
.tc-bottom-nav-btn .material-symbols-outlined {
    font-size: 18px;
}
.tc-bottom-nav-btn--primary {
    background: var(--tc-accent);
    color: #fff;
    border-color: var(--tc-accent);
}
.tc-bottom-nav-btn--primary:hover {
    background: var(--tc-accent-dark);
    border-color: var(--tc-accent-dark);
    color: #fff;
}

/* 이전글/다음글 */
.tc-view-wrap .bo_v_nb {
    list-style: none;
    margin: 16px 0;
    padding: 0;
    border: 1px solid var(--tc-gray-200, #eee);
    border-radius: 8px;
    overflow: hidden;
}
.tc-view-wrap .bo_v_nb li {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    font-size: 14px;
}
.tc-view-wrap .bo_v_nb li + li {
    border-top: 1px solid var(--tc-gray-200, #eee);
}
.tc-view-wrap .bo_v_nb .nb_tit {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--tc-gray-500, #888);
    min-width: 70px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tc-view-wrap .bo_v_nb li a {
    color: var(--tc-gray-700, #333);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tc-view-wrap .bo_v_nb li a:hover {
    color: var(--tc-accent, #e57a00);
}

/* 모바일 반응형 — 하단 UI */
@media (max-width: 768px) {
    .tc-bottom-nav {
        flex-direction: column;
        gap: 8px;
    }
    .tc-bottom-nav-btn {
        justify-content: center;
        width: 100%;
    }
    .tc-vote-bar {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .tc-view-wrap .bo_v_nb li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .tc-view-wrap .bo_v_nb li a {
        white-space: normal;
    }
    .tc-view-wrap #bo_v_top .btn_bo_user {
        flex-wrap: wrap;
    }
}

/* ===================================================
   LIST PAGE — Admin 글쓰기 버튼
   =================================================== */
.tc-admin-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}
.tc-admin-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--tc-accent, #e57a00);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.tc-admin-write-btn:hover {
    background: var(--tc-accent-dark, #d4690a);
    color: #fff;
}
.tc-admin-write-btn .material-symbols-outlined {
    font-size: 18px;
}

/* ===================================================
   GALLERY GRID (wr_content 내부)
   =================================================== */
.tc-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 160px;
    gap: 8px;
    margin: 0 auto 32px;
    max-width: 800px;
    border-radius: var(--tc-radius-md);
    overflow: hidden;
}
.tc-gallery-grid > .tc-gallery-main {
    grid-row: 1 / 3;
    grid-column: 1;
    position: relative;
    min-height: auto;
}
.tc-gallery-main img,
.tc-gallery-grid > .tc-gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: var(--tc-transition);
    background: var(--tc-gray-100);
}
.tc-gallery-main img:hover,
.tc-gallery-grid > .tc-gallery-img-wrap img:hover { opacity: 0.9; }
/* 서브 이미지 래퍼 (모자이크 그리드 직접 자식) */
.tc-gallery-img-wrap {
    overflow: hidden;
}
/* 구 .tc-gallery-thumbs 호환 (에디터 콘텐츠에서 아직 사용 가능) */
.tc-gallery-thumbs {
    display: contents;
}
.tc-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: var(--tc-transition);
    background: var(--tc-gray-100);
}
.tc-gallery-thumbs img:hover { opacity: 0.85; }
/* 동영상 썸네일 (iframe → 썸네일 변환) */
.tc-video-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #111;
}
.tc-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--tc-transition);
}
.tc-video-thumb:hover img { opacity: 0.85; }
.tc-video-thumb .tc-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(229,122,0,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    padding-left: 3px;
    transition: var(--tc-transition);
}
.tc-video-thumb:hover .tc-video-play { background: rgba(229,122,0,1); transform: translate(-50%, -50%) scale(1.1); }
.tc-video-thumb .tc-video-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 10px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 2px 8px;
    border-radius: 4px;
}
/* iframe이 갤러리 내부에서 크기 제한 */
.tc-gallery-grid iframe,
.tc-gallery-thumbs iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

/* ===================================================
   LIGHTBOX
   =================================================== */
.tc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tc-lb-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}
.tc-lb-close {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
}
.tc-lb-prev, .tc-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: #fff;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: var(--tc-transition);
}
.tc-lb-prev:hover, .tc-lb-next:hover { background: rgba(255,255,255,0.3); }
.tc-lb-prev { left: 16px; }
.tc-lb-next { right: 16px; }

/* ===================================================
   CONTENT PREMIUM STYLES (wr_content 내부)
   =================================================== */
.tc-program-content,
.edusmart-program-content {
    font-family: var(--tc-font-body);
    color: var(--tc-text);
    line-height: 1.8;
}

/* 섹션 카드 */
.tc-info-card {
    background: #fff;
    border: 1px solid var(--tc-gray-200);
    border-radius: var(--tc-radius-md);
    padding: 24px;
    margin-bottom: 20px;
}
.tc-info-card h3 {
    font-family: var(--tc-font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--tc-navy);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tc-accent-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tc-info-card h3 .material-symbols-outlined {
    font-size: 20px;
    color: var(--tc-accent);
}
.tc-info-card p {
    font-size: 15px;
    margin: 0 0 12px;
    color: var(--tc-gray-800);
}
.tc-info-card p:last-child { margin-bottom: 0; }

/* 체크 리스트 */
.tc-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tc-check-list li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 14px;
    color: var(--tc-gray-800);
    border-bottom: 1px solid var(--tc-gray-100);
}
.tc-check-list li:last-child { border-bottom: none; }
.tc-check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tc-accent-soft);
    color: var(--tc-accent);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

/* 스케줄 테이블 */
.tc-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.tc-schedule-table thead th {
    background: var(--tc-navy);
    color: #fff;
    padding: 10px 12px;
    font-weight: 600;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tc-schedule-table thead th:first-child {
    border-radius: var(--tc-radius-sm) 0 0 0;
}
.tc-schedule-table thead th:last-child {
    border-radius: 0 var(--tc-radius-sm) 0 0;
}
.tc-schedule-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--tc-gray-100);
    color: var(--tc-gray-800);
}
.tc-schedule-table tbody tr:hover {
    background: var(--tc-gray-50);
}
.tc-schedule-table tbody td:first-child {
    font-weight: 600;
    color: var(--tc-accent);
    white-space: nowrap;
}

/* ===================================================
   VIDEO EMBED (wr_content 내부)
   =================================================== */
.tc-video-section {
    margin-bottom: 24px;
    max-width: 800px;
}
.tc-video-section h3 {
    font-family: var(--tc-font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--tc-navy);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tc-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--tc-radius-md);
    background: #000;
    margin-bottom: 12px;
}
.tc-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* 비디오 썸네일 (iframe 변환 후) */
.tc-video-wrap .tc-video-thumb {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
}
.tc-video-wrap .tc-video-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* ===================================================
   GALLERY + CONTENT MOBILE
   =================================================== */
@media (max-width: 768px) {
    .tc-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .tc-gallery-grid > .tc-gallery-main {
        grid-row: auto;
        grid-column: 1 / -1;
        min-height: 200px;
    }
    .tc-gallery-thumbs {
        display: contents;
    }
    .tc-gallery-thumbs img,
    .tc-gallery-thumbs .tc-video-thumb {
        height: 120px;
    }
    .tc-info-card {
        padding: 16px;
    }
    .tc-lb-prev, .tc-lb-next {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* [Phase 1 P1-6] 관리형 모바일 필터 — 480px 이하 1열 */
@media (max-width: 480px) {
    .tc-f-dropdowns {
        grid-template-columns: 1fr !important;
    }
}

/* [Phase 7] TC 필터 박스 PC 중앙 정렬 */
@media (min-width: 1024px) {
  .tc-filter-box { max-width: 960px; margin-left: auto; margin-right: auto; }
}

/* [Phase 8-X/Z] TC 필터박스 왼쪽 정렬 + 슬라이더 축소 (2026-04-13) */
@media (min-width: 1024px) {
  .tc-filter-box {
    max-width: 680px;
    margin-left: 0 !important;
    margin-right: 0;
  }
  .tc-cost-slider-wrap { max-width: 300px; }
  .tc-search-box { max-width: 400px; margin-left: 0; }
}

/* [Phase 9-A] 하단 공유 섹션 PC 2열 (prep_footer_sections 공유) (2026-04-13) */
@media (min-width: 1024px) {
  /* FAQ: 부모 자체 grid (id-check C3 패턴) */
  .prep-faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    column-gap: 16px;
  }
  .prep-faq h2 { grid-column: 1 / -1; }
  .prep-faq .faq-item { align-self: start; }

  /* 대학 진학 사례 — .university-list 자체 grid (id-check C2 패턴) */
  .prep-university .university-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .prep-university .university-item { align-self: start; }
  /* [id-check C4 반영] login-hint는 리스트 하단 풀폭 */
  .prep-university .university-list .uni-login-hint { grid-column: 1 / -1; }

  /* blog-list 시각 정돈 */
  .blog-list {
    background: transparent;
    border: 0;
    gap: 12px;
  }
  .blog-item {
    border: 1px solid var(--ink-200, #e0e0e0);
    border-radius: 8px;
    padding: 12px 14px;
  }
}
