.program-layout {
    display: flex;
    gap: 20px;
    min-height: calc(100vh - 200px);
}

.sidebar {
    min-width: 200px;
    max-width: 200px;
    background: var(--color-surface);
    border-right: 1px solid var(--border-color);
    padding: 0 0 20px 0;
}

@media (max-width: 992px) { .sidebar { display: none; } }

.sidebar h3 {
    color: var(--color-text);
    font-size: 1.1875rem;
    font-weight: 700;
    padding: 20px 20px 10px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

/* 사이드바 메뉴 항목 구분선 */
.sidebar-menu > li { border-bottom: 1px solid var(--border-color); }
.sidebar-menu > li:last-child { border-bottom: none; }

.sidebar-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 0.9375rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--color-surface-2);
    color: #ff6b35;
    border-left-color: #ff6b35;
}

/* 접이식 트리/서브 메뉴 (content_page 등 자식 메뉴를 가진 사이드바).
   .sidebar-menu 하위로 한정 — 모바일 드로어(.mobile-menu .menu-item)와 클래스명을
   공유하므로 스코프를 좁혀 상호 간섭을 방지한다(데스크톱 전용 사이드바). */
.sidebar-menu .menu-item {
    display: block;
    padding: 14px 20px;
    color: var(--color-text);
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 0.9375rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    background: none;
    width: 100%;
    text-align: left;
}

.sidebar-menu .menu-item:hover { background: var(--color-surface-2); color: #ff6b35; }

.sidebar-menu .menu-item.has-submenu::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}
.sidebar-menu .menu-item.has-submenu.expanded::after { transform: rotate(180deg); }

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--color-bg);
    transition: max-height 0.3s ease;
}
.submenu.expanded { max-height: 1000px; }
.submenu li { margin: 0; }
.submenu a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--color-text-dim);
    text-decoration: none;
    font-size: 0.875rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}
.submenu a:hover, .submenu a.active {
    background: var(--color-surface-2);
    color: #ff6b35;
    border-left-color: #ff6b35;
}

/* 단일 메뉴 (자식이 없는 1depth) */
.sidebar-menu .menu-item.single { font-weight: 500; }
.sidebar-menu .menu-item.single:hover, .sidebar-menu .menu-item.single.active {
    background: var(--color-surface-2);
    color: #ff6b35;
    border-left-color: #ff6b35;
}

.main-content {
    flex: 1;
    /*padding: 0 20px 20px 20px;*/
    padding: 0 0 20px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin: 0 0 20px 0;
    font-size: 0.875rem;
    color: var(--color-text-dim);
}

.breadcrumb a {
    color: var(--color-text-dim);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ff6b35;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--color-muted);
}

/* 브레드크럼 루트(상위 메뉴명): 데스크톱은 일반 텍스트, 모바일에서만 탭 가능한 링크.
   모바일에서 탭하면 모바일 메뉴가 열리고 현재 위치로 스크롤된다(nav.js [data-menu-open]). */
.breadcrumb-root {
    cursor: default;
}

@media (max-width: 992px) {
    .breadcrumb-root {
        cursor: pointer;
        color: var(--color-primary);
        text-decoration: underline;
        text-underline-offset: 2px;
    }
}

.program-banner {
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    width: 100%;
    /*min-width: 960px;*/
    max-width: 896px;
    height: 360px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.program-banner::before {
    content: none;
}

/* 채널별 기본 배너 배경 (프로그램 개별 이미지가 있으면 인라인 style 이 오버라이드) */
.program-banner.is-tv    { background: url("../images/tv_p.ce1023a94ba9.png")    center center / cover no-repeat; }
.program-banner.is-radio { background: url("../images/radio_p.b5355e78ec69.png") center center / cover no-repeat; }
.program-banner.is-event { background: url("../images/event_p.49f3e416a028.png") center center / cover no-repeat; }

.program-banner-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: 100%;
    align-items: center;
}

.program-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.program-info .subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.program-details {
    display: flex;
    gap: 30px;
    font-size: 0.875rem;
}

.program-details .detail-item {
    display: flex;
    flex-direction: column;
}

.program-details .label {
    font-weight: 600;
    margin-bottom: 5px;
}

.section-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

/* 탭 스타일 */
.program-tabs {
    margin-top: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-buttons {
    display: flex;
    gap: 0;
    column-gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tab-buttons button {
    padding: 15px 0;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--color-text-dim);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-buttons button:hover {
    color: var(--color-text);
}

.tab-buttons button.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.tab-content {
    display: none;
    padding: 30px 0;
}

.tab-content.active {
    display: block;
}

/* 게시판/페이징 스타일은 frontend/css/ubc_default/board.css 로 분리됨
   (프로그램 게시판 탭은 뷰의 board_css_path 로 program.css 다음에 로드) */

/* 프로그램 정보 스타일 */
.program-info-section {
    padding: 20px 0;
}

.program-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: left;
    margin-bottom: 15px;
}

.program-info-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    text-align: left;
    margin-bottom: 30px;
}

.program-info-details {
    display: grid;
    gap: 12px;
}

.program-info-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
}

.program-info-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    min-width: 100px;
}

.program-info-value {
    font-size: 1rem;
    color: var(--color-text-dim);
    flex: 1;
}

@media (max-width: 768px) {
    .main-content { padding: 0 0 20px 0; }
    .program-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    /*!* 접이식 트리/서브 메뉴 반응형 보정 *!
    .menu-item { padding: 16px 20px; font-size: 1rem; }
    .submenu a { padding: 14px 20px 14px 40px; font-size: 0.9375rem; }
    .menu-item.has-submenu::after { right: 15px; font-size: 1.1rem; }*/

    .program-banner {
        width: 100%;
        min-width: auto;
        max-width: 100%;
    }

    .program-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}