:root {
    --primary-color: #1a233a; /* Deep Navy */
    --secondary-color: #c5a059; /* Muted Gold */
    --accent-color: #8b3a3a; /* Deep Red/Brown */
    --text-color: #333333;
    --bg-color: #f9f8f5; /* Warm Off-white */
    --white: #ffffff;
    --font-serif: 'Noto Serif KR', serif;
    --font-sans: 'Noto Sans KR', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    background-image: url('../images/bg_pattern.png');
    background-repeat: repeat;
    background-size: 300px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 35, 58, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.nav-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.logo h1 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-size: 1rem;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #000;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.0);
    will-change: opacity, transform;
    animation: heroSlideCycle 30s infinite ease-in-out;
}

.hero-bg .slide-1 {
    animation-delay: 0s;
}

.hero-bg .slide-2 {
    animation-delay: -20s;
}

.hero-bg .slide-3 {
    animation-delay: -10s;
    /* 오버레이 적용 시 사용값: brightness(1.30) contrast(1.03) */
}

@keyframes heroSlideCycle {
    0%   { opacity: 1; transform: scale(1.0); }
    26%  { opacity: 1; transform: scale(1.12); }
    33%  { opacity: 0; transform: scale(1.14); }
    93%  { opacity: 0; transform: scale(1.0); }
    100% { opacity: 1; transform: scale(1.0); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 현재 적용값 기억용: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.7)) */
    background: transparent;
    z-index: 1;
}

.hero-content {
    z-index: 1;
    padding: 2rem;
    max-width: 1000px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #000;
    border-radius: 50px;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    letter-spacing: 2px;
}

.hero-title {
    font-family: var(--font-serif);
    margin-bottom: 3.5rem;
}

.hero-title .title-sub {
    margin-top: 1rem;
}

.title-main {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
    text-shadow: 0 1px 2px rgba(255,255,255,0.35);
    line-height: 1.3;
}

.title-line1,
.title-line2 {
    display: block;
}

.title-connector {
    display: none;
}

.title-sub {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 400;
    color: #000;
    opacity: 1;
    padding: 0.55rem 1.4rem;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    line-height: 1.5;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    font-size: 1.05rem;
}

.info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #111;
}

/* Greeting Section */
.greeting {
    padding: 6rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.greeting::before,
.greeting::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.greeting::before {
    background-image: url('../images/ink_wash_lattice.png');
    animation: fadeInOut1 16s infinite;
    z-index: 0;
}

.greeting::after {
    background-image: url('../images/ten_longevity_symbols.png');
    animation: fadeInOut2 16s infinite;
    z-index: 0;
}

@keyframes fadeInOut1 {
    0% { opacity: 0.45; }
    40% { opacity: 0.45; }
    50% { opacity: 0; }
    90% { opacity: 0; }
    100% { opacity: 0.45; }
}

@keyframes fadeInOut2 {
    0% { opacity: 0; }
    40% { opacity: 0; }
    50% { opacity: 0.45; }
    90% { opacity: 0.45; }
    100% { opacity: 0; }
}

.greeting > .container {
    position: relative;
    z-index: 1;
}

.greeting > .container::before {
    content: '';
    position: absolute;
    top: -6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: calc(100% + 12rem);
    background: linear-gradient(to bottom, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.65) 100%);
    z-index: 0;
    pointer-events: none;
}

.greeting-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.greeting-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    word-break: keep-all;
}

.signature {
    margin-top: 3rem;
    font-family: var(--font-serif);
    font-size: calc(1.2rem + 2px);
    text-align: center;
}

/* Program Section */
.program {
    padding: 6rem 0;
}

.program-heading {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: inline;
    }
}

@media (max-width: 768px) {
    .program-heading .program-sep {
        display: none;
    }

    .program-heading .program-host {
        display: block;
        margin-top: 0.3rem;
    }
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 120px;
    height: 100%;
    width: 2px;
    background-color: var(--secondary-color);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item.break .content {
    background-color: #f0f0f0;
    border-left: 4px solid #999;
}

.time {
    width: 120px;
    padding-right: 20px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
    padding-top: 1.5rem;
}

.content {
    flex-grow: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.content:hover {
    transform: translateY(-5px);
}

.tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.content h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.details p {
    margin-bottom: 0.3rem;
    color: #555;
}

.session-image {
    margin-top: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
    height: 200px;
}

.session-image img,
.session-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.session-image:hover img,
.session-image:hover video {
    transform: scale(1.05);
}

.session-image.ink-wash-effect img {
    filter: grayscale(80%) contrast(110%) brightness(105%);
    opacity: 0.85;
}

.session-image.fade-right {
    position: relative;
}

.session-image.fade-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 30%, rgba(255,255,255,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.content.break-session {
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    min-height: 150px;
}

.content.break-session .break-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.content.break-session::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0) 80%);
    z-index: 1;
}

.content.break-session h3 {
    position: relative;
    z-index: 2;
}

.content.discussion-session {
    position: relative;
    background-image: url('../images/ink_wash_discussion.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 250px;
}

.content.discussion-session::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0) 80%);
    z-index: 0;
}

.content.discussion-session h3,
.content.discussion-session .details {
    position: relative;
    z-index: 1;
}

.content.discussion-session .details {
    font-weight: 600;
    color: var(--primary-color);
}

.content.closing-session {
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    min-height: 250px;
}

.content.closing-session .closing-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.content.closing-session::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0) 80%);
    z-index: 1;
}

.content.closing-session h3 {
    position: relative;
    z-index: 2;
}

.content.dinner-session {
    position: relative;
    background-image: url('../images/ink_wash_leaving.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 250px;
}

.content.dinner-session::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0) 80%);
    z-index: 0;
}

.content.dinner-session h3 {
    position: relative;
    z-index: 1;
}

/* Info Section */
.info {
    padding: 6rem 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(197,160,89,0.2);
}

.info-card h3 {
    font-family: var(--font-serif);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.info-card:hover h3 {
    color: var(--white);
}

.info-card p {
    opacity: 0.9;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s ease;
}

.info-card:hover p {
    opacity: 1;
}

/* Footer */
.footer {
    background-color: #111;
    color: #888;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo h3 {
    color: var(--white);
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        margin: 0 0 0.5rem;
    }

    .hero-badge {
        position: absolute;
        top: 15rem;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        font-size: 0.9rem;
        font-weight: 700;
        padding: 0.4rem 1.1rem;
        letter-spacing: 1px;
        background-color: rgba(255, 255, 255, 0.45);
        white-space: nowrap;
    }

    .hero-title .title-sub {
        margin-top: 0.5rem;
        font-size: 0.82rem;
        font-weight: 600;
        padding: 0.4rem 0.9rem;
        border-radius: 10px;
        line-height: 1.45;
        background-color: rgba(255, 255, 255, 0.45);
        border-color: rgba(255, 255, 255, 0.7);
    }

    .desktop-break {
        display: none;
    }

    .title-main {
        font-size: 1.2rem;
        font-weight: 900;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        line-height: 1.4;
    }

    .title-line1,
    .title-line2 {
        display: block;
    }

    .title-connector {
        display: none;
    }

    .hero-info {
        position: absolute;
        bottom: 3rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.88rem;
        gap: 0.5rem;
        margin-top: 0;
        width: max-content;
        max-width: calc(100% - 2rem);
    }

    .info-item {
        padding: 0.5rem 1rem;
        background-color: rgba(255, 255, 255, 0.45);
        border-color: rgba(255, 255, 255, 0.7);
    }

    .info-item a.map-link,
    .info-item .location-text a.map-link {
        display: none;
    }

    .location-text a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
    }

    .location-line1,
    .location-line2 {
        display: block;
    }

    .location-line2 {
        text-align: center;
    }

    .info-item .location-text a {
        display: inline;
    }

    .info-item .location-line1,
    .info-item .location-line2 {
        display: inline;
    }

    .info-item .location-line2::before {
        content: ' ';
    }

    .info-datetime,
    .info-location {
        display: block;
    }

    .datetime-line1,
    .datetime-line2,
    .location-line1,
    .location-line2 {
        display: inline;
    }

    .datetime-line2::before,
    .location-line2::before {
        content: ' ';
    }

    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .time {
        width: 100%;
        text-align: left;
        padding-left: 40px;
        margin-bottom: 0.5rem;
        padding-top: 0;
    }
    
    .content {
        margin-left: 40px;
    }
    
    .nav-menu {
        display: none; /* Simple hide for mobile for now */
    }

    .nav-logo {
        position: static;
        transform: none;
        margin-left: auto;
    }

    .nav-logo img {
        height: 40px;
    }
    
    .hero-info {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 길찾기 링크 / 버튼 */
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.6rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.35);
    color: inherit;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    vertical-align: middle;
}

.map-link:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.map-link .map-icon {
    font-size: 1rem;
    line-height: 1;
}

.map-link .map-label {
    font-weight: 500;
}

.map-link-button {
    margin-left: 0;
    background-color: #03c75a;
    color: #fff;
    border: 1px solid #03c75a;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.map-link-button:hover {
    background-color: #02a04a;
    border-color: #02a04a;
    color: #fff;
}