* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 1.05rem;
}

body.lang-zh {
    font-family: 'Noto Sans SC', 'Noto Sans KR', 'Noto Sans', sans-serif;
}

body.lang-en {
    font-family: 'Noto Sans', 'Noto Sans KR', 'Noto Sans SC', sans-serif;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

nav {
    background: #2c3e50;
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex: 1;
}

.nav-menu li {
    margin: 0 1.5rem;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: #667eea;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #667eea;
}

.lang-btn.active {
    background: #667eea;
    border-color: #667eea;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

section {
    margin-bottom: 4rem;
    scroll-margin-top: 80px;
}

h2 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.intro-content {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    line-height: 1.9;
    font-size: 1.1rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-icon {
    width: 24px;
    height: 24px;
}

.email-btn {
    background: #667eea;
    color: #ffffff;
}

.email-btn:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.phone-btn {
    background: #FF6B35;
    color: #ffffff;
}

.phone-btn:hover {
    background: #E85A2B;
    transform: scale(1.1);
}

.kakao-btn {
    background: #FEE500;
    color: #000000;
}

.kakao-btn:hover {
    background: #E6CE00;
    transform: scale(1.1);
}

.wechat-btn {
    background: #07C160;
    color: #ffffff;
}

.wechat-btn:hover {
    background: #06AD56;
    transform: scale(1.1);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    table-layout: fixed;
}

.schedule-table th,
.schedule-table td {
    width: 33.33%;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
    width: 15%;
}

.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
    width: 65%;
}

.schedule-table th:last-child,
.schedule-table td:last-child {
    width: 20%;
}

.schedule-table th {
    background: #667eea;
    color: white;
    padding: 1rem;
    text-align: left;
}

/* 분과 테이블 헤더 스타일 (톤 다운) */
.section-table th {
    background: #8b9dc3;
    color: white;
}

.schedule-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
}

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

.schedule-table tr:hover {
    background: #f8f9fa;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: #e3f2fd !important;
}

.venue-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.venue-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.venue-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.venue-card p {
    margin-bottom: 0.5rem;
}

.map-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.map-link:hover {
    background: #764ba2;
}

.naver-map-link {
    background: #03C75A;
}

.naver-map-link:hover {
    background: #02B350;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

@media (max-width: 999px) {
    .nav-menu {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav {
        padding: 0.4rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 0.3rem;
    }

    .nav-menu li {
        margin: 0.2rem 0.5rem;
    }

    .nav-menu li a {
        font-size: 0.9rem;
    }

    .container {
        padding: 3rem 0.67rem;
    }

    .schedule-table {
        font-size: 0.9rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.7rem;
    }
}

.article {
	font-weight: bold;
}

.person {
	color: #555;
	/* margin-left: 2em; */
	padding-top: 0.8em;
}

.person::before {
	font-size: large;
	font-weight: bold;
	color: #667eea;
	content: "❚ ";
}

.mr-2 {
	margin-right: 2em;
}

/* 일정 테이블 다운로드 버튼 스타일 */
.pdf-download {
    padding: 0.4rem 1rem;
	margin: 0.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

.pdf-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.pdf-download:active {
    transform: translateY(0);
}

/* 비활성 다운로드 버튼 */
.schedule-table button:not(.pdf-download) {
    padding: 0.4rem 1rem;
    background: #e0e0e0;
    color: #999;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: not-allowed;
    opacity: 0.6;
    white-space: nowrap;
}

/* 다운로드 버튼이 있는 셀 스타일 */
.schedule-table td:has(button) {
    text-align: center;
    vertical-align: middle;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .pdf-download,
    .schedule-table button:not(.pdf-download) {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
}

.align-center {
	text-align: center !important;
}

.rest {
	padding: 2em 0 !important;
}

/* WeChat Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
    align-items: center;
    justify-content: center;
}

.modal[style*="display: block"] {
    display: flex !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.close {
    color: #aaa;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #667eea;
}

.wechat-qr {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

.wechat-id-box {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.wechat-id-box code {
    background: #f5f5f5;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    font-family: 'Courier New', monospace;
    user-select: all;
}

/* Bilingual text styling */
.bilingual-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.zh-text {
    font-family: 'Noto Sans SC', 'Noto Sans KR', sans-serif;
    font-size: 1.05em;
    font-weight: 500;
}

.ko-text {
    font-family: 'Noto Sans KR', 'Noto Sans SC', sans-serif;
    font-size: 0.9em;
    color: #666;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.copy-btn .ko-text {
    color: white;
    font-weight: 500;
}

.copy-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        max-height: 95vh;
    }

    .wechat-qr {
        max-width: 200px;
    }

    .wechat-id-box {
        flex-direction: column;
    }

    .wechat-id-box code {
        width: 100%;
        text-align: center;
    }
}