html {
    overflow-y: scroll;
}

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

body {
    font-family: 'Helvetica Neue', sans-serif;
    background: #ececec;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background: linear-gradient(90deg, #007ACC, #2980b9);
    padding: 0;
    position: relative;
}

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

.logo {
    padding: 15px 0;
}

.logo a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 15px 0;
    z-index: 1001;
}

nav {
    flex-grow: 1;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    padding: 20px 15px;
    display: block;
    font-size: 16px;
}

nav ul li:hover>a {
    background: rgba(255, 255, 255, 0.2);
}

nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2980b9;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul li ul li:last-child {
    border-bottom: none;
}

nav ul li ul li a {
    padding: 12px 15px;
    font-size: 14px;
}

.hero {
    background: url('../images/hero-bg2.jpg') center 55%/cover no-repeat;
    height: 60vh;
    min-height: 300px;
    max-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero>div {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(30px, 5vw, 50px);
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: clamp(16px, 3vw, 24px);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.content {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.content h2 {
    font-size: 32px;
    color: #2980b9;
    border-bottom: 2px solid #2980b9;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.content h3 {
    font-size: 24px;
    color: #2980b9;
    margin: 25px 0 15px 0;
}

.content p {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: left;
}

.content ul {
    list-style-type: disc;
    margin: 0 0 20px 30px;
}

.content ul li {
    margin-bottom: 8px;
    text-align: left;
}

.content a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
}

.content a:hover {
    text-decoration: underline;
}

.date-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.date-table tr {
    border-bottom: 1px solid #ddd;
}

.date-table td {
    padding: 12px;
    text-align: left;
}

.date-table td:first-child {
    font-weight: bold;
    width: 60%;
}

.email-address {
    color: #0066cc;
    font-weight: bold;
    padding: 5px 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: inline-block;
    word-break: break-all;
}

.committee-section {
    margin-bottom: 30px;
}

.committee-section h3 {
    color: #2980b9;
    margin-bottom: 15px;
}

.venue-info {
    margin-top: 20px;
}

.venue-info h3 {
    color: #2980b9;
    font-size: 24px;
    margin-bottom: 20px;
}

.venue-info h4 {
    color: #007ACC;
    font-size: 18px;
    margin: 15px 0 10px 0;
}

.venue-photos {
    margin-bottom: 30px;
    width: 100%;
}

.venue-photo {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.venue-photo img {
    width: calc(50% - 8px);
    height: auto;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.venue-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.address-block,
.room-block {
    flex: 1;
    min-width: 250px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.map-container {
    margin-bottom: 30px;
}

.map-button {
    margin-top: 15px;
    text-align: center;
}

.map-button a {
    display: inline-block;
    background-color: #007ACC;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.map-button a:hover {
    background-color: #2980b9;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 0;
    width: 90%;
    max-width: 520px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(90deg, #007ACC, #2980b9);
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: white;
}

.close-modal {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: white;
}

.modal-body {
    text-align: left;
    padding: 25px;
}

.highlight-deadline {
    color: #cb2d3e;
    font-weight: bold;
}

.extension-notice {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}


.announcement-list {
    list-style-type: none;
    padding-left: 20px;
    margin: 15px 0;
    text-align: left;
    width: 100%;
}

.announcement-list li {
    margin-bottom: 12px;
}

.deadline-label {
    display: inline-block;
    width: 200px;
}

.modal-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.modal-footer button {
    background-color: #2980b9;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-footer button:hover {
    background-color: #00497e;
}


footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

@media screen and (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .hamburger {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #2980b9;
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        padding-top: 60px;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li a {
        padding: 15px 20px;
        width: 100%;
    }

    nav ul li ul {
        position: static;
        width: 100%;
        display: none;
        background: #004a7c;
        box-shadow: none;
    }

    nav ul li.has-submenu>a:after {
        content: ' +';
        float: right;
    }

    nav ul li.submenu-active>a:after {
        content: ' -';
    }

    nav ul li.submenu-active>ul {
        display: block;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }

    .hero {
        height: 40vh;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 20px;
    }

    .content {
        margin: 30px 15px;
        padding: 20px;
    }

    .content h2 {
        font-size: 28px;
    }

    .venue-photo img {
        width: 100%;
        margin-bottom: 15px;
    }

    .venue-details {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    nav {
        width: 260px;
        right: -260px;
    }

    .hero {
        height: 30vh;
        min-height: 200px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .content {
        margin: 20px 10px;
        padding: 15px;
    }

    .content h2 {
        font-size: 24px;
    }

    .content h3 {
        font-size: 20px;
    }

    .content p,
    .content ul li {
        font-size: 15px;
    }

    .date-table td {
        padding: 10px 5px;
        font-size: 14px;
    }

    .committee-section h3 {
        font-size: 20px;
    }

    .modal-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        padding: 0;
        width: 90%;
        max-width: 500px;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-footer button {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* 프로그램 표 스타일 개선 */
.program-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2.5rem;
    font-size: 0.96rem;
    table-layout: auto;
}

.program-table th,
.program-table td {
    border: 1px solid #ccc;
    padding: 14px 12px;
    vertical-align: top;
    line-height: 1.6;
}

.program-table th {
    background-color: #f4f4f4;
    color: #333;
    text-align: left;
    font-weight: bold;
}

.program-table tr:nth-child(even) {
    background-color: #fafafa;
}

.program-table td strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #0056b3;
}

.program-table td em {
    display: block;
    font-style: italic;
    color: #444;
    margin-bottom: 4px;
}

.program-table td div {
    color: #222;
    font-size: 0.95rem;
}

/* 날짜 제목 강조 */
.program-day-title {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: #222;
    border-bottom: 2px solid #ccc;
    padding-bottom: 6px;
}

.download-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff !important;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.download-button:hover {
    background-color: #0056b3;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.language-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
}

.language-tab {
    padding: 12px 28px;
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: 3px solid transparent;
    margin-right: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #495057;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.language-tab:last-child {
    margin-right: 0;
}

.language-tab.active {
    background: white;
    color: #007ACC;
    border: 1px solid #007ACC;
    border-bottom: 3px solid #007ACC;
    box-shadow: 0 2px 8px rgba(0, 123, 204, 0.15);
    transform: translateY(-1px);
}

.language-tab:hover:not(.active) {
    background: #e9ecef;
    color: #007ACC;
    border: 1px solid #007ACC;
    border-bottom: 3px solid #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.language-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .program-table {
        font-size: 0.88rem;
    }

    .program-table th,
    .program-table td {
        padding: 10px 6px;
    }

    .download-button {
        display: block;
        width: 100%;
        padding: 16px 20px;
    }

    .language-tabs {
        flex-direction: column;
        margin-bottom: 15px;
        border-bottom: none;
    }

    .language-tab {
        margin-right: 0;
        margin-bottom: 8px;
        text-align: center;
        font-size: 15px;
        padding: 14px 20px;
        border-radius: 8px;
        border-bottom: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .language-tab:last-child {
        margin-bottom: 0;
    }

    .language-tab.active {
        background: linear-gradient(135deg, #007ACC 0%, #2980b9 100%);
        color: white;
        border: 1px solid #007ACC;
        border-bottom: none;
        transform: none;
        box-shadow: 0 3px 8px rgba(0, 123, 204, 0.3);
    }

    .language-tab:hover:not(.active) {
        transform: none;
        border: 1px solid #007ACC;
        border-bottom: none;
    }
}

/* ==== Gallery (JS 없이, 줄맞춤 스타일) ==== */
.gallery-grid{
  display:flex;
  flex-wrap:wrap;       /* 다음 줄로 자연스럽게 내려감 */
  gap:8px;              /* 타일 간격 */
}

.gitem{
  display:block;
  line-height:0;        /* 인라인 간격 제거 */
  border-radius:10px;
  overflow:hidden;
  background:#f4f4f4;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}

/* ==== Gallery: tile grid (no JS) ==== */
/* 바둑판형: 컬럼 자동 배치 */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* 칼럼 폭 */
  gap: 12px;
}

/* 각 타일 모양(4:3) — 정사각 원하면 1/1로 변경 */
.gitem{
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  aspect-ratio: 4 / 3;          /* ← 바둑판 타일 비율(정사각: 1 / 1) */
  background: #f4f4f4;
}

/* 이미지가 타일을 꽉 채우되 비율 유지 */
.gitem img{
  position: absolute; inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;             /* 잘려도 비율 보존 */
  display: block;
  transition: transform .2s ease;
}
.gitem:hover img{ transform: scale(1.03); }

@media (max-width: 600px){
  .gallery-grid{ gap: 8px; }
}


/* 카드 레이아웃 */
.gallery-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(320px, 1fr));
  gap:16px;
  margin-top:12px;
}

.gallery-card{
  display:block;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  text-decoration:none;
  color:inherit;
  transition:transform .15s ease, box-shadow .15s ease;
}
.gallery-card:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,.10);
}

/* 대표 이미지: 16:9 비율(원하면 1/1로 바꿔도 됨) */
.gallery-card .cover{
  margin:0;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#f4f4f4;
}
.gallery-card .cover img{
  width:100%; height:100%;
  object-fit:cover; display:block;
  transition:transform .25s ease;
}
.gallery-card:hover .cover img{ transform:scale(1.03); }

/* 텍스트 영역 */
.gallery-card .card-body{
  padding:14px 16px 16px;
}
.gallery-card .card-body h3{
  margin:0 0 6px; font-size:1.05rem;
}
.gallery-card .card-body p{
  margin:0; color:#666; font-size:.95rem;
}
