/* =============================================
   QM 2027 Custom Style Sheet
   ============================================= */

:root {
    --qm-blue: #0073bc;
    --qm-blue-light: #2e90d4;
    --qm-blue-pale: #e6f3fb;
    --qm-green: #1cac83;
    --qm-green-pale: #e6f7f3;
    --qm-red: #b81e49;
    --qm-text: #2c2c2c;
    --qm-gray: #666;

    --conf-theme-menu-selected: #1cac83;
    --conf-theme-menu-selected-bg: #eef9f5;
    --conf-theme-menu-selected-border: #b2e4d5;
}

.page-content .editor-output,
.conferenceDetails .description {
    font-size: 1.2em;
    line-height: 1.85;
    color: var(--qm-text);
}

.page-content h1,
.editor-output h1 {
    font-size: 1.8em;
    color: var(--qm-blue);
    border-bottom: 2px solid var(--qm-blue-light);
    padding-bottom: 10px;
    margin-bottom: 24px;
}

.editor-output h2 {
    font-size: 1.25em;
    color: var(--qm-blue);
    margin-top: 2em;
    margin-bottom: 0.6em;
}

.editor-output h3 {
    font-size: 1.1em;
    color: var(--qm-text);
    font-weight: 700;
    margin-top: 1.5em;
}

.editor-output a,
.conferenceDetails a {
    color: var(--qm-blue-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.editor-output a:hover {
    border-bottom-color: var(--qm-blue-light);
}

.editor-output img {
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    max-width: 100%;
    margin: 1em 0;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.editor-output img:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.conf-sidemenu { font-size: 0.95em; }

.conf-sidemenu .sidemenu-item a {
    color: var(--qm-text);
    padding: 5px 10px;
    display: block;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.conf-sidemenu .sidemenu-item a:hover {
    background-color: var(--qm-blue-pale);
    color: var(--qm-blue);
    text-decoration: none;
}

.conf-sidemenu .sidemenu-item.active a {
    background-color: var(--qm-blue);
    color: #fff !important;
    font-weight: 600;
}

.conf-sidemenu .sidemenu-section-title {
    color: var(--qm-gray);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1em;
    padding: 0 10px;
}

.editor-output ul li { margin-bottom: 0.4em; }

/* --- Timeline --- */
.dates-timeline {
    position: relative;
    padding: 10px 0;
    margin: 20px 0;
}

.dates-timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--qm-blue), var(--qm-blue-light));
}

.date-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0 12px 52px;
    position: relative;
}

.date-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 16px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--qm-blue);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--qm-blue);
}

.date-item.tbd::before {
    background: #aaa;
    box-shadow: 0 0 0 2px #aaa;
}

.date-label {
    flex: 1;
    font-size: 1em;
    color: var(--qm-text);
    padding-top: 1px;
}

.date-badge {
    font-size: 0.88em;
    font-weight: 600;
    color: var(--qm-blue);
    background: var(--qm-blue-pale);
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
    margin-left: 16px;
}

.date-item.tbd .date-badge {
    color: #888;
    background: #f0f0f0;
}

/* --- Committee --- */
.committee-section {
    margin: 32px 0 40px;
}

.confBodyBox .committee-section h2 {
    color: var(--qm-blue) !important;
    font-size: 1.08em;
    font-weight: 700;
    margin: 28px 0 14px;
    padding: 0 0 8px 12px;
    border-left: 4px solid var(--qm-blue-light);
    border-bottom: 1px solid #e7f1f8;
    line-height: 1.4;
}

.committee-leads,
.committee-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.committee-leads li,
.committee-list li {
    padding: 4px 0;
    line-height: 1.4;
    border-bottom: none;
}

.committee-leads li::marker,
.committee-list li::marker {
    content: "";
}

.committee-line {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: nowrap;
}

.committee-name {
    font-weight: 700;
    color: var(--qm-blue);
    white-space: nowrap;
}

.committee-affil {
    color: var(--qm-gray);
}

.committee-role {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--qm-green);
    background: var(--qm-green-pale);
    border: 1px solid #bfe7da;
    border-radius: 999px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.committee-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
}

.committee-empty {
    color: var(--qm-gray);
    font-style: italic;
    padding: 4px 0;
}

@media (max-width: 768px) {
    .committee-columns {
        grid-template-columns: 1fr;
    }

    .committee-line {
        flex-wrap: wrap;
    }
}






/* --- Sidebar --- */
.conf_leftMenu {
    width: 210px;
    border-radius: 8px;
    overflow: hidden;
}

#outer {
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
}

#outer li a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #3d5a80;
    padding: 10px 16px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

#outer li a:hover {
    background: #f0f7ff;
    color: #1a5276;
    border-left: 3px solid #2d6a9f;
}

.menuConfSelected,
.menuConfMiddleCellSelected {
    background: var(--conf-theme-menu-selected-bg) !important;
    border-bottom: 1px solid var(--conf-theme-menu-selected-border);
    border-top: 1px solid var(--conf-theme-menu-selected-border);
}

.menuConfSelected a,
.menuConfMiddleCellSelected a {
    color: var(--conf-theme-menu-selected) !important;
    font-weight: 700 !important;
    border-left: 3px solid var(--conf-theme-menu-selected) !important;
}

li.menuConfMiddleCell a {
    padding: 7px 16px 7px 28px;
    font-size: 12px;
    color: #666;
}

/* ── 서브메뉴 bullet 이미지 제거 ── */
li ul.inner li a {
    background: none !important;
    padding: 7px 12px 7px 32px;
}

li ul.inner li a::before {
    content: '›';
    position: static;
    margin-right: 6px;
    color: #aaa;
    font-size: 14px;
}

/* ── 메뉴 구분선 (spacer) ── */
.conf_leftMenu .spacer {
    height: 1px;
    background: #e8e8e8;
    margin: 4px 12px;
}

/* ── Support Box ── */
.support_box {
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    margin-top: 12px !important;
}

.support_box > h3 {
    background: #1a1a2e;
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── 컨텐츠 페이지 타이틀 ── */
.confBodyBox h1,
.confBodyBox h2 {
    color: #1cac83 !important;
}

/* --- 버튼 스타일 --- */
a.btn-primary {
    display: inline-block;
    background: #0073bc !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    white-space: nowrap;
}

a.btn-primary:hover {
    background: #005a94 !important;
    color: #ffffff !important;
    border-bottom: none !important;
}

/* --- 데이터 테이블 전용 --- */
table.data-table {
    border-collapse: collapse !important;
    width: 100%;
    margin: 1.5em 0;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10) !important;
    border: 1px solid #c5d5e8 !important;
}

/* ✅ 수정: 헤더 행 — 파란 배경 + 흰 글자 */
table.data-table thead th {
    background: #0073bc !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 13px 18px !important;
    text-align: left !important;
    border-bottom: none !important;
    font-size: 0.95em;
    letter-spacing: 0.02em;
}

/* ✅ 수정: TD 패딩 11px → 13px으로 여백 확대 */
table.data-table td {
    padding: 13px 18px !important;
    border-bottom: 1px solid #e8eef5 !important;
    color: #2c2c2c !important;
    background: #ffffff !important;
}

table.data-table tr:last-child td {
    border-bottom: none !important;
}

table.data-table tr:nth-child(odd) td {
    background-color: #f0f8ff !important;
}

table.data-table tr:nth-child(even) td {
    background-color: #ffffff !important;
}

table.data-table tr:hover td {
    background-color: #cce6f7 !important;
    transition: background 0.15s;
}

/* --- Visit Jeju — Link Card --- */
.link-card {
    border: 2px solid #0073bc !important;
    border-radius: 10px !important;
    background: #f0f8ff !important;
    overflow: hidden;
    margin: 20px 0;
}

/* --- Visit Jeju — Visa Cards --- */
.visa-card {
    border: 1px solid #cde4f5 !important;
    border-top: 3px solid #0073bc !important;
    border-radius: 8px !important;
    padding: 18px !important;
    background: #fff !important;
    vertical-align: top !important;
    width: 33% !important;
}

.visa-card-green {
    border: 1px solid #b2e4d7 !important;
    border-top: 3px solid #1cac83 !important;
    border-radius: 8px !important;
    padding: 18px !important;
    background: #f7fdfb !important;
    vertical-align: top !important;
    width: 33% !important;
}

/* --- 줄무늬 테이블 홀수행 --- */
td.row-alt {
    background-color: #f0f8ff !important;
}

/* Supported By — 로고 카드 */
.logo-card {
  border: 1px solid #e0eaf4 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  padding: 20px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

/* ✅ 로고 이미지 shadow 제거 */
.logo-card img {
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

.logo-card img:hover {
  box-shadow: none !important;
  transform: none !important;
}

/* --- Satellite Meetings --- */
.satellite-list {
    margin: 24px 0;
}

.satellite-card {
    background: #ffffff;
    border: 1px solid #d8e6f2;
    border-top: 4px solid var(--qm-blue);
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.satellite-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 115, 188, 0.12);
}

.satellite-title {
    font-size: 1.08em;
    font-weight: 800;
    color: var(--qm-blue);
    line-height: 1.45;
    margin-bottom: 14px;
}

.satellite-meta {
    margin-top: 2px;
}

.satellite-row {
    margin-bottom: 8px;
    line-height: 1.65;
}

.satellite-row:last-child {
    margin-bottom: 0;
}

.satellite-label {
    display: inline-block;
    width: 76px;
    font-weight: 700;
    color: var(--qm-text);
    vertical-align: top;
}

.satellite-value {
    color: #555;
}

.satellite-link {
    color: var(--qm-blue-light) !important;
    font-weight: 600;
    text-decoration: none;
    border-bottom: none !important;
    word-break: break-word;
}

.satellite-link:hover {
    color: var(--qm-blue) !important;
    text-decoration: none;
    border-bottom: none !important;
}

.satellite-note {
    font-size: 0.9em;
    color: #777;
    margin-top: 18px;
}


/* --- Program at a Glance --- */
.program-glance-page {
    margin: 32px 0 40px;
}

.confBodyBox .program-glance-page h1,
.confBodyBox .program-glance-page h2 {
    color: var(--qm-blue) !important;
}

.program-glance-title {
    font-size: 1.55em;
    font-weight: 700;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--qm-blue-pale);
}

.program-glance-subtitle {
    margin: 0 0 22px;
    color: var(--qm-gray);
    line-height: 1.6;
}

.program-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
}

.program-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    border: 1px solid #d9e7f2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.program-table th,
.program-table td {
    border-right: 1px solid #e7eef5;
    border-bottom: 1px solid #e7eef5;
    padding: 8px 10px;
    vertical-align: top;
    text-align: left;
}

.program-table tr:last-child td {
    border-bottom: none;
}

.program-table tr td:last-child,
.program-table tr th:last-child {
    border-right: none;
}

.program-table thead th {
    background: #123a63;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 12px 8px;
    border-bottom: 1px solid #0d2c4a;
}

.program-table thead .program-day-head,
.program-table thead .program-day-sub {
    color: #ffffff !important;
}

.program-table .time-col {
    width: 78px;
    min-width: 78px;
    background: #315b86;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    border-right: 1px solid #24496f;
}


.program-day-head {
    display: block;
    font-size: 1.02em;
    font-weight: 700;
    color: var(--qm-blue);
    line-height: 1.25;
}

.program-day-sub {
    display: block;
    margin-top: 3px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--qm-green);
}

.program-slot {
    font-size: 0.93em;
    line-height: 1.45;
    color: var(--qm-text);
    background: #ffffff;
}

.program-slot.is-registration {
    background: #eef5fb;
    color: #0f4f86;
    font-weight: 700;
}

.program-slot.is-plenary {
    background: #f5f9fd;
    color: #1f3550;
    font-weight: 600;
}

.program-slot.is-parallel {
    background: #fbfcfe;
    color: #2b3e52;
}

.program-slot.is-lunch {
    background: #fff4d9;
    color: #8a6d1d;
    font-weight: 700;
    text-align: center;
}

.program-slot.is-social {
    background: #fff0f4;
    color: #a33a57;
    font-weight: 700;
}

.program-slot.is-special {
    background: #edf8f4;
    color: #18795e;
    font-weight: 700;
}

.program-slot.is-empty {
    background: #ffffff;
}

@media (max-width: 1100px) {
    .program-table {
        min-width: 980px;
    }
}