/* --- 전역 변수 추가 설정 (main 전용) --- */
:root {
    --section-padding: 160px; /* 섹션 간 넓은 간격 */
    --transition-smooth: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center; /* 세로 중앙 */
}

.hero-video-bg { position: absolute; top:0; left:0; width:100%; height:100%; z-index:-2; }
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center center; 
    transition: all 0.5s ease;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 사진 위에 검은색 반투명 막을 씌움 */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px; /* 텍스트 너비 제한 */
    margin-left: 14%; 
    text-align: left; 
}

.hero-content .sub-heading {
    font-size: 0.9rem; /* 1rem에서 축소 */
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--light-blue);
    margin-bottom: 20px;
    display: block;
}

.sub-heading { 
    display: block;
    color: var(--point-blue); 
    letter-spacing: 4px; 
    font-weight: 600; 
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.hero-content h1 {
    font-family: var(--font-serif); /* 고급 명조체 */
    font-size: 3.2rem; /* 4rem 이상에서 3.2rem으로 대폭 축소 (압박감 해소) */
    font-weight: 500;
    line-height: 1.35; /* 줄간격 넓혀 가독성 향상 */
    margin-bottom: 30px;
}
.hero-content h1 .blue-text {
    color: #3a8dff; /* 기존보다 살짝 더 밝고 선명한 블루로 교체 */
    font-weight: 700; /* 두께를 키워 눈에 띄게 함 */
    text-shadow: 0 0 20px rgba(58, 141, 255, 0.3); /* 은은한 발광 효과로 배경과 분리 */
}

.hero-content p {
    font-size: 1.05rem; /* 1.2rem에서 1.05rem으로 축소 */
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    justify-content: flex-start; /* 버튼들을 왼쪽부터 차례로 */
    gap: 15px;
}

.btn {
    padding: 18px 45px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    border-radius: 0px; /* 칼같은 직선이 더 고급스러움 */
    font-weight: 600;
}

.btn-primary { 
    background: var(--point-blue); 
    color: #fff; 
    border: 1px solid var(--point-blue);
}

.btn-primary:hover { 
    background: transparent; 
    color: var(--point-blue); 
    box-shadow: 0 10px 30px rgba(0, 74, 153, 0.3);
}

.btn-outline { 
    border: 1px solid rgba(255,255,255,0.4); 
    color: #fff; 
}

.btn-outline:hover { 
    border-color: var(--light-blue);
    color: var(--light-blue);
    background: rgba(51, 133, 255, 0.05);
}

/* --- Performance: 카드 가독성 개선 --- */
.main-performance { padding: var(--section-padding) 0; }
.section-title-wrap { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 10px; 
}

.section-title { 
    font-family: 'Nanum Myeongjo', serif; 
    font-size: 2.5rem; 
    border-left: 5px solid var(--point-blue); 
    padding-left: 20px;
    letter-spacing: -1px;
}

.view-all { color: var(--text-dim); font-size: 0.9rem; letter-spacing: 1px; }
.view-all:hover { color: var(--light-blue); }
/* 버튼 디자인 최적화 */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 45px;   /* 버튼을 더 크게 */
    background-color: var(--point-blue);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;  /* 둥근 버튼으로 시선 집중 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 버튼에만 역동적인 효과 */
}

.view-all-btn:hover {
    background-color: #3a8dff;
    transform: scale(1.1); /* 버튼만 커지게 */
    box-shadow: 0 10px 25px rgba(58, 141, 255, 0.5);
}

.view-all-btn i {
    margin-left: 12px;
    font-size: 0.8rem;
}


/* 1. 포스터 섹션 레이아웃 (가로 유지 및 너비 확장) */
.main-poster-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin-top: 0 !important;
}

.main-poster-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center; 
    gap: 80px;            /* 사진과 글 사이 간격을 더 넓게 수정 */
    max-width: 1200px;    
    margin: 80px auto;    
    padding: 0;
    /* 카드 전체 애니메이션 완전 박멸 */
    transform: none !important; 
    transition: none !important;
}

/* 2. 포스터 이미지 (움직임 절대 금지) */
.poster-img-box {
    flex: 0 0 400px;      /* 옹졸하지 않게 적당한 크기 유지 */
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: none !important;
}

.poster-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 이미지 관련 모든 효과 삭제 */
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* 마우스 올렸을 때 포스터에 생기는 모든 효과 차단 */
.main-poster-card:hover,
.main-poster-card:hover img,
.main-poster-card:hover .poster-img-box {
    transform: none !important;
    opacity: 1 !important;
}

/* 3. 텍스트 영역 */
.poster-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 왼쪽 정렬 고정 */
    text-align: left;
}

.poster-text h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    word-break: keep-all;
}

.poster-text .date { 
    color: var(--text-dim); 
    margin-bottom: 15px; 
    font-weight: 500; 
}

.poster-text .desc {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
    color: rgba(255,255,255,0.7);
}

/* 4. 전체보기 버튼 (가로로 짧고 세련된 디자인) */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    margin-top: 10px;
    /* 가로 길이를 170px에서 220px로 늘려 텍스트가 안 잘리게 함 */
    width: 220px;          
    height: 54px;         /* 높이도 살짝 키워 존재감 부여 */
    
    /* 평소에도 색상을 채워서 눈에 확 띄게 변경 */
    background-color: var(--point-blue); 
    color: #fff;
    border: none;         /* 테두리 대신 면으로 강조 */
    
    font-size: 1rem;      /* 글자 크기 살짝 키움 */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer;
}

/* 마우스 올렸을 때 버튼만 피드백 */
.view-all-btn:hover {
    background-color: #3a8dff; /* 더 밝은 파란색으로 변경 */
    transform: translateY(-4px); /* 조금 더 높게 띄움 */
    box-shadow: 0 8px 20px rgba(58, 141, 255, 0.4); /* 그림자 강화 */
}

@media (max-width: 768px) {
    /* 1. 최상위 부모: 양옆 여백 최소화 */
    .main-performance.container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 5px !important;  
        padding-right: 5px !important; 
        margin: 0 auto !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* 2. 카드 컨테이너: 이미지-글자 사이 간격 (요청대로 살짝 조절) */
    .main-poster-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important; 
        gap: 20px !important; /* 이미지와 글자 사이 적당한 거리 */
        width: 100% !important;
        margin-top: 15px !important;
    }

    /* 3. 포스터 이미지 크기 (44% 유지하며 최적화) */
    .poster-img-box {
        flex: 0 0 44% !important; 
        max-width: 180px !important; 
        margin: 0 !important;
        padding: 0 !important;
        aspect-ratio: 2 / 3;
    }

    /* 4. 텍스트 영역: 요소 간 여백 추가 */
    .poster-text {
        flex: 1 !important;
        padding: 0 !important; 
        margin: 0 !important; 
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important; 
    }

    /* 제목 */
    .poster-text h3 {
        font-size: 1.5rem !important;
        margin: 0 0 8px 0 !important; /* 아래 여백 추가 */
        line-height: 1.25 !important;
        word-break: keep-all;
        width: 100% !important;
    }

    /* 날짜 및 장소 정보 */
    .poster-text .date {
        font-size: 0.9.5rem !important;
        margin-bottom: 15px !important; /* [여백 추가] 정보와 내용 사이 간격 벌림 */
        color: #aaa;
        line-height: 1.4;
        width: 100% !important;
    }

    /* 공연 내용 설명 */
    .poster-text .desc {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important; /* [여백 추가] 내용과 버튼 사이 간격 벌림 */
        color: #ccc;
        word-break: keep-all;
        width: 100% !important;
    }
    /* 5. [수정] 버튼: 가로로 길고 세로는 얇게(슬림하게) */
    .view-all-btn {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        
        /* 가로는 시원하게 */
        width: 100% !important;
        max-width: 160px !important;
        min-width: 140px !important;
        
        /* [핵심] 세로 두께 조절: 5px로 줄여서 날렵하게 만듦 */
        padding: 12px 0 !important; 
        
        font-size: 0.8rem !important; /* 글자도 살짝 줄임 */
        font-weight: 500 !important;
        margin-top: auto; 
        background-color: #4A90E2 !important;
        border-radius: 50px !important;
        white-space: nowrap !important;
        
        /* 혹시 버튼 높이가 고정되어 있다면 해제 */
        height: auto !important;
        min-height: 0 !important;
    }
}

/* --- Values: 공간 분리 --- */
.main-values { 
    background: linear-gradient(to bottom, #050505, #0c1529); 
    padding: var(--section-padding) 0; 
}

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; text-align: center; }
.value-item i { font-size: 3rem; color: var(--point-blue); margin-bottom: 25px; display: block; }
.value-item h4 { font-family: 'Nanum Myeongjo'; font-size: 1.5rem; margin-bottom: 20px; }
.value-item p { color: var(--text-dim); line-height: 1.8; }

/* --- Location: 네이버 지도 연결 최적화 --- */
.main-location { padding: var(--section-padding) 0; }
.location-wrapper { 
    display: flex; 
    max-width: 1200px; 
    margin: 50px auto 0; /* 중앙 정렬 */
    background: #0d0d0d; 
    border: 1px solid rgba(255,255,255,0.05); 
}

.map-area { 
    flex: 1.6;            /* 가로 비율을 정보창과 1:1로 맞춤 */
    height: 420px;      /* 높이를 350px로 고정 (부담 없는 높이) */
    min-height: auto;   /* 기존 min-height 해제 */
    position: relative; /* 자식 요소인 버튼의 기준점 */
    overflow: hidden;
}
.map-link { 
    display: block; 
    width: 100%; 
    height: 100%; 
}
.map-link img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: none; /* 흑백 필터 제거 */
    opacity: 0.9; /* 텍스트와 대비를 위해 밝기만 미세하게 조절 */
    transition: 0.5s;
}

.map-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #fff; /* 평소에는 흰색 배경 */
    color: var(--point-blue); /* 글자는 블루 */
    padding: 10px 18px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 10;
    transition: 0.3s;
    pointer-events: none; /* 클릭은 부모인 a태그가 담당 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* 미세한 그림자 */
}

.map-link:hover img { 
    opacity: 1; /* 호버 시 100% 밝기 */
    transform: scale(1.03); /* 살짝 확대 */
}

.map-link:hover .map-btn {
    background: var(--point-blue); /* 호버 시 블루 배경 */
    color: #fff; /* 호버 시 흰색 글자 */
    transform: translateY(-3px); /* 살짝 위로 이동 */
}

/* 지도 호버 시 안내 문구 */
.map-area::after {
    content: 'CLICK TO NAVER MAP';
    position: absolute;
    bottom: 20px; right: 20px;
    background: var(--point-blue);
    color: #fff;
    padding: 8px 15px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    pointer-events: none;
    opacity: 0.8;
}

.transport { 
    margin-top: 15px; 
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* 상단과 구분 */
    padding-top: 20px;
}

/* 통합 박스 (두 정보를 묶어줌) */
.transport-box {
    background-color: #0d0d0d; /* 미세하게 밝은 블랙 */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 15px;
}

.transport-row { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

/* 뱃지 기본 디자인 (이미지와 통일감 유지) */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 2px;
    min-width: 65px;
    text-align: center;
}

/* 대중교통 (채워진 블루) */
.badge.blue {
    background-color: var(--point-blue);
    color: #fff;
}

/* 자가용 (테두리 블루) */
.badge.outline {
    border: 1px solid var(--point-blue);
    color: var(--light-blue);
}

.transport-row p {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.6;
}

/* 두 정보 사이의 미세한 구분선 */
.transport-box .divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.03);
    margin: 15px 0;
}

.location-info { 
    flex: 1; 
    padding: 40px;      /* 안쪽 여백을 줄여 전체 크기 축소 */
    height: 420px;      /* 지도와 높이 통일 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.location-info h3 { font-family: 'Nanum Myeongjo'; font-size: 2rem; margin-bottom: 30px; color: var(--light-blue); }
.location-info p { margin-bottom: 11px; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.location-info p strong { color: var(--point-blue); min-width: 60px; }

/* --- Animation: 부드러운 등장 --- */
.reveal { opacity: 0; transform: translateY(60px); transition: 1.2s cubic-bezier(0.215, 0.61, 0.355, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Responsive: 반응형 --- */
@media (max-width: 1024px) {
    .poster-text { padding: 40px; }
    .location-wrapper { flex-direction: column; }
    .map-area { min-height: 300px; }
    .main-poster-card {
        max-width: 95%;
        gap: 30px;
    }
    .poster-img-box {
        flex: 0 0 280px;  /* 화면 작아지면 사진 크기도 유동적으로 */
    }
}

@media (max-width: 768px) {
    :root { --section-padding: 100px; }
    .hero { padding-left: 0; justify-content: center; text-align: center; }
    .hero-content { padding: 0 20px; }
    .hero-btns { justify-content: center; }
    .value-grid { grid-template-columns: 1fr; gap: 60px; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 600px) {
    .main-poster-card {
        gap: 20px;        /* 좁은 화면에선 간격만 살짝 줄임 */
    }
    .poster-img-box {
        flex: 0 0 150px;  /* 모바일선 사진을 더 작게 (150px) */
    }
    .poster-text h3 {
        font-size: 1.1rem; /* 모바일 글자 크기 조절 */
    }
}

@media (max-width: 480px) {
    .main-poster-card {
        gap: 15px;
        padding: 10px;
    }
    .poster-img-box {
        flex: 0 0 120px; /* 모바일에서도 가로 유지를 위해 사진을 더 축소 */
    }
    .poster-text h3 { font-size: 1rem; }
    .view-all-btn { padding: 10px 20px; font-size: 0.8rem; }
}