/* ============================================
   Header
   ============================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Main Nav */
#main-nav {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

@media (min-width: 768px) {
    #main-nav {
        padding: 0 44px;
    }
}

/* Logo */
#logo-link p {
    color: #fff;
    font-size: 19px;
    letter-spacing: 2.5px;
    font-family: 'Shefian', serif;
    transition: color 0.3s;
}

/* Header Right */
.header-right {
    position: absolute;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Selector */
.lang-selector {
    position: relative;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.lang-arrow {
    width: 8px;
    height: 4px;
    opacity: 0.8;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.2s;
}
.lang-selector.active .lang-arrow {
    transform: rotate(180deg);
}
body.programs-page .lang-arrow,
body.gnb-open .lang-arrow {
    filter: none;
}
.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: -30px;
    margin-top: 6px;
    min-width: 100px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 1001;
}
.lang-dropdown.active {
    display: block;
}
.lang-option {
    display: block;
    width: 100%;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
}
.lang-option:hover {
    background: #f5f5f5;
}
body.programs-page .lang-btn,
body.gnb-open .lang-btn {
    border-color: rgba(0,0,0,0.2);
    color: #333;
}
body.programs-page .lang-btn:hover,
body.gnb-open .lang-btn:hover {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .header-right {
        right: 44px;
    }
}

/* Location Info */
.location-info {
    display: none;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 13px;
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .location-info {
        display: flex;
    }
}

.location-info img {
    width: 12px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

/* Hamburger Button */
.hamburger-menu-btn {
    position: relative;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger-menu-btn span:nth-child(1) { top: 0; }
.hamburger-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu-btn span:nth-child(3) { bottom: 0; }

body.gnb-open .hamburger-menu-btn span {
    background: #fff !important;
}
body.gnb-open .hamburger-menu-btn span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
body.gnb-open .hamburger-menu-btn span:nth-child(2) { opacity: 0; }
body.gnb-open .hamburger-menu-btn span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ============================================
   GNB Fullscreen Menu
   ============================================ */

.gnb {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #2A1F1B;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    z-index: 999;
}

.gnb.open {
    opacity: 1;
    visibility: visible;
}

.gnb-inner {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.6s 0.2s;
}

.gnb.open .gnb-inner {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PC 메뉴
   ============================================ */

.gnb-content--pc {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 95%;
    margin: 0 auto;
}

.gnb-content--mobile {
    display: none;
}

/* Category */
.gnb-category {
    flex: 1;
    text-align: center;
}

.gnb-category--wide {
    flex: 4;
}

.gnb-category--wide .gnb-box {
    gap: 40px;
}

.gnb-menu__list li a {
    white-space: normal;
    writing-mode: horizontal-tb;
}

.gnb-category:not(.gnb-category--wide) {
    min-width: 180px;
}

.gnb-category__title {
    font-family: 'Sorts Mill Goudy', serif;
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 20px;
    padding-left: 30px;
    text-align: left;
}

.gnb-category__title-ko {
    margin-left: 5px;
    font-size: 15px;
    font-family: 'pretendard', sans-serif;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.gnb-category__title em.pinyon {
    font-family: 'Pinyon Script', cursive;
    font-size: 36px;
    font-style: normal;
}

/* GNB Box */
.gnb-box {
    background: #e8e8e8;
    border-radius: 35px;
    padding: 50px 45px;
    display: flex;
    gap: 70px;
    height: 100%;
    min-height: 400px;
    justify-content: left;
}

/* Menu */
.gnb-menu {
    text-align: left;
}

.gnb-menu__title {
    font-size: 20px;
    font-weight: 600;
    color: #8b7f70;
    padding-bottom: 30px;
}

.gnb-menu__title a {
    color: inherit;
    text-decoration: none;
}

.gnb-menu__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gnb-menu__list li a {
    position: relative;
    display: inline-block;
    font-size: 19px;
    color: #090a09;
    font-weight: 500;
    text-decoration: none;
    padding-left: 0;
    transition: color 0.3s, padding-left 0.3s;
}

.gnb-menu__list li a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #736c63;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.gnb-menu__list li a:hover {
    color: #736c63;
}

.gnb-menu__list li a:hover::before {
    opacity: 1;
}

/* Watermark */
.gnb-watermark {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.1;
    pointer-events: none;
}

.gnb-watermark img {
    height: 150px;
    filter: brightness(0) invert(1);
}

/* ============================================
   모바일 아코디언 메뉴
   ============================================ */

@media (max-width: 1024px) {
    .gnb-content--pc {
        display: none;
    }
    
    .gnb-content--mobile {
        display: block;
        width: 100%;
        height: calc(100vh - 200px);
        overflow-y: auto;
    }
    
    .gnb-inner {
        justify-content: flex-start;
    }
    
    .gnb-watermark {
        display: none;
    }
    
    .gnb-number-wrap {
        position: relative;
        bottom: auto;
        padding: 0;
        border-bottom: none;
        margin-top: 30px;
    }
    
    .gnb-login-wrap .gnb-login-menu {
        justify-content: center;
    }
}

/* Accordion */
.gnb-accordion {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.gnb-accordion__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.gnb-accordion__btn {
    width: 100%;
    padding: 5vw 0;
    background: transparent;
    border: none;
    color: #e2d6c8;
    font-size: 4.5vw;
    font-weight: 300;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s;
}

.gnb-accordion__item.active .gnb-accordion__btn {
    color: #bfa991;
}

.gnb-accordion__panel {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.gnb-accordion__item.active .gnb-accordion__panel {
    max-height: 500px;
    padding-bottom: 4vw;
}

.gnb-accordion__panel li {
    padding: 2vw 0;
}

.gnb-accordion__panel li a {
    color: #fff;
    font-size: 3.5vw;
    text-decoration: none;
    transition: color 0.3s;
}

.gnb-accordion__panel li a:hover {
    color: #bfa991;
}

/* ============================================
   Scrolled State
   ============================================ */

header.scrolled #main-nav {
    background: #fff;
    border-bottom-color: #eee;
}

header.scrolled .location-info {
    color: #333;
}

header.scrolled .location-info img {
    filter: none;
}

header.scrolled .hamburger-menu-btn span {
    background: #333;
}

/* ============================================
   1200px 이하
   ============================================ */

@media (max-width: 1200px) and (min-width: 1025px) {
    .gnb-box {
        padding: 40px 30px;
        gap: 40px;
        border-radius: 40px;
        min-height: 400px;
    }
}
