/* ===================================
   CSS Variables
   =================================== */
:root {
    --primary-color: #1a2332;
    --secondary-color: #8b7355;
    --accent-color: #c9a961;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-gray: #7f8c8d;
    --bg-light: #f8f9fa;
    --transition: all 0.3s ease;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   Container
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Section Styles
   =================================== */
.section {
    padding: 80px 0;
}

.section-gray {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* 좌측 정렬 헤더 */
.section-header-left {
    text-align: left;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 300;
}

/* 타이틀 우측의 작은 부제목 */
.section-subtitle-inline {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 300;
    margin-left: 20px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    display: inline-block;
    vertical-align: middle;
}

/* ===================================
   Header & Navigation
   =================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

#header.scrolled {
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 300;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 중앙에서 왼쪽으로 변경 */
    position: relative;
    text-align: left; /* 텍스트 왼쪽 정렬 */
    color: var(--text-light);
    overflow: hidden;
}

/* 선명한 배경 이미지 (기본 레이어) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/design/DSC03933.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Blur 처리된 오버레이 (왼쪽에서 오른쪽으로 사라지는 효과)
   - filter: blur(10px) → 왼쪽의 흐림 정도 (6px ~ 15px 추천)
   - mask-image: linear-gradient → 그라데이션 효과
     * to right: 왼쪽에서 오른쪽으로
     * rgba(0,0,0,1) 0%: 왼쪽 끝은 완전히 불투명 (Blur 100%)
     * rgba(0,0,0,0.7) 40%: 중간은 70% Blur
     * rgba(0,0,0,0.3) 70%: 중간~오른쪽은 30% Blur
     * rgba(0,0,0,0) 100%: 오른쪽 끝은 완전히 투명 (선명한 이미지)
   - 그라데이션 위치 조절 방법:
     * 40%, 70%, 100% 값을 변경하여 전환 위치 조절
     * 예: (20%, 50%, 80%) → 더 빠른 전환
     * 예: (50%, 80%, 100%) → 더 느린 전환
*/
.hero-blur-gradient {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/design/DSC03933.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(10px);
    transform: scale(1.1);
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.7) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.7) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 2;
}

/* 어두운 오버레이로 텍스트 가독성 확보
   - rgba의 마지막 값(0.85, 0.75)으로 투명도 조절
   - 0.5 ~ 0.9 추천 (낮을수록 밝음, 높을수록 어두움)
   - 투명도를 낮추면 이미지가 더 선명하게 보이지만 텍스트 가독성이 떨어질 수 있음
   - Blur 그라데이션 효과를 사용할 때는 오버레이를 약하게 (0.6 ~ 0.75) 추천
*/
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 35, 50, 0.75) 0%,
        rgba(139, 115, 85, 0.65) 100%
    );
    z-index: 3;
}

.hero-content {
    max-width: 700px;
    padding: 0 60px; /* 왼쪽 여백 증가 */
    margin-left: 60px; /* 왼쪽에서 시작 */
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 4; /* 배경 이미지와 오버레이 위에 표시 */
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start; /* 버튼 왼쪽 정렬 */
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4; /* 배경 이미지 위에 표시 */
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--text-light);
    border-radius: 3px;
    animation: scrollAnimation 2s infinite;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: #b89850;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 30px;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--text-light);
}

/* YouTube 공식 버튼 스타일 */
.btn-youtube {
    display: inline-flex;
    align-items: center;
    gap: 8px;  /* 10px → 8px */
    background: #FF0000;
    color: #FFFFFF;
    padding: 8px 18px;  /* 12px 24px → 8px 18px (높이 약 33% 축소) */
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;  /* 0.95rem → 0.9rem */
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    color: #FFFFFF;
}

.btn-youtube svg {
    width: 18px;  /* 20px → 18px */
    height: 18px;  /* 20px → 18px */
    fill: currentColor;
}

/* ===================================
   About Section
   =================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-dark);
}

.about-image {
    border-radius: 20px; /* 10px → 20px (더 둥글게) */
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15); /* 더 부드러운 그림자 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px); /* 호버 시 살짝 올라감 */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.about-image img {
    width: 100%;
    height: 450px; /* 400px → 450px (조금 더 크게) */
    object-fit: cover;
    display: block; /* 이미지 아래 여백 제거 */
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--text-light);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===================================
   Repertoire Section
   =================================== */
.repertoire-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.repertoire-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.repertoire-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.repertoire-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.repertoire-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.repertoire-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-dark);
}

.repertoire-highlights {
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(201, 169, 97, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(201, 169, 97, 0.1);
    transform: translateX(5px);
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.highlight-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.highlight-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

/* ===================================
   Concerts Section
   =================================== */
.concerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.concert-card {
    background: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.concert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.concert-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10;
}

.concert-badge.upcoming {
    background: var(--accent-color);
    color: var(--text-light);
}

.concert-badge.past {
    background: var(--text-gray);
    color: var(--text-light);
}

.concert-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--bg-light);
}

.concert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.concert-card:hover .concert-image img {
    transform: scale(1.1);
}

/* 공연 이미지 로딩/에러 상태 */
.concert-image .image-loading-spinner {
    border-color: rgba(201, 169, 97, 0.2);
    border-top-color: var(--accent-color);
}

.concert-image.loaded .image-loading-spinner,
.concert-image.error .image-loading-spinner {
    display: none;
}

.concert-image .image-error-message {
    display: none;
}

.concert-image.error .image-error-message {
    display: block;
}

.concert-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.concert-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 80px; /* 2줄 기본 높이 확보 */
}

.concert-date .month {
    font-size: 1rem;
    font-weight: 300;
}

.concert-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.concert-date .event-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    word-break: keep-all;
    min-height: 3.08rem; /* 2줄 높이 (1.1rem × 1.4 × 2) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.concert-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.concert-info {
    margin-bottom: 15px;
}

.concert-info p {
    color: var(--text-dark);
    margin-bottom: 8px;
}

.concert-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 버튼을 카드 하단에 고정 */
.concert-content .btn {
    margin-top: auto;
}

/* ===================================
   Members Section
   =================================== */
.leadership {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.member-card {
    background: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* 호버 애니메이션 제거 */
/*
.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
*/

.member-card.featured {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

.member-card.featured.reverse {
    flex-direction: row-reverse;
}

.member-image {
    position: relative;
    width: 200px;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0; /* 이미지 크기 고정 */
    border-radius: 15px; /* 둥근 모서리 */
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 단원 이미지 로딩/에러 상태 */
.member-image .image-loading-spinner {
    border-color: rgba(201, 169, 97, 0.2);
    border-top-color: var(--accent-color);
}

.member-image.loaded .image-loading-spinner,
.member-image.error .image-loading-spinner {
    display: none;
}

.member-image .image-error-message {
    display: none;
}

.member-image.error .image-error-message {
    display: block;
}

.member-info {
    padding: 20px 30px 20px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.member-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.member-detail-inline {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 400;
}

.member-card.featured .member-detail {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0 0 15px 0;
}

.member-role {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.member-role.conductor {
    background: var(--primary-color);
}

.member-role.concertmaster {
    background: var(--secondary-color);
}

.member-role.president {
    background: var(--accent-color);
}

.member-detail {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 5px 0 15px 0;
}

.member-bio {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
}

.parts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.part-section {
    background: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.part-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-item {
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.member-item:hover {
    background: var(--accent-color);
    color: var(--text-light);
}

.member-main-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.member-name-line {
    font-weight: 500;
    font-size: 1rem;
    flex: 1;
}

.member-info-line {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: right;
    white-space: nowrap;
}

.member-item:hover .member-info-line {
    color: var(--text-light);
}

.member-instrument {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 4px;
}

.member-item:hover .member-instrument {
    color: var(--text-light);
    opacity: 0.9;
}

/* 기존 스타일 (사용 안 함) */
.member-name {
    font-weight: 500;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

/* 기존 스타일 (사용 안 함) */
.member-year {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.member-department {
    font-size: 0.85rem;
    color: var(--text-gray);
    opacity: 0.8;
}

.member-item:hover .member-year,
.member-item:hover .member-department {
    color: var(--text-light);
}

/* ===================================
   Gallery Section
   =================================== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border-radius: 25px;
    background: var(--text-light);
    color: var(--text-dark);
    font-weight: 500;
    border: 2px solid var(--text-gray);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.gallery-item.hidden {
    display: none;
}

/* 이미지 래퍼 (로딩/에러 상태 관리) */
.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 로딩 스피너 */
.image-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(201, 169, 97, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 이미지 로드 완료 시 스피너 숨김 */
.gallery-image-wrapper.loaded .image-loading-spinner,
.gallery-image-wrapper.error .image-loading-spinner {
    display: none;
}

/* 이미지 에러 메시지 */
.image-error-message {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-gray);
    width: 80%;
}

.gallery-image-wrapper.error .image-error-message {
    display: block;
}

.image-error-message svg {
    opacity: 0.3;
    margin-bottom: 10px;
}

.image-error-message p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 35, 50, 0.9), transparent);
    color: var(--text-light);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* ===================================
   Contact Section
   =================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 2rem;
    min-width: 50px;
}

.info-text h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.info-text p {
    color: var(--text-gray);
    line-height: 1.8;
}

.social-links {
    margin-top: 40px;
}

.social-links h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* YouTube 아이콘 공식 스타일 */
.social-link[href*="youtube"] {
    background: #FF0000;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.social-link[href*="youtube"]:hover {
    background: #CC0000;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    border-radius: 10px;
}

#map {
    border-radius: 10px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer Header - 타이틀과 버튼을 좌우 배치 */
.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;  /* 상단 정렬 */
    gap: 20px;
    grid-column: 1 / -1;  /* 그리드 전체 너비 차지 */
}

.footer-youtube-button {
    flex-shrink: 0;  /* 버튼 크기 유지 */
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0;  /* 20px → 0 (flex 레이아웃에서 불필요) */
    color: var(--accent-color);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-description {
    color: var(--text-gray);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 15px;  /* 30px → 15px (50% 축소) */
    padding-bottom: 15px;  /* 하단 여백 추가 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.75rem;  /* 0.9rem → 0.75rem (더 작게) */
    margin: 0;  /* 기본 마진 제거 */
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollAnimation {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    80% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    /* 모바일에서 인라인 부제목을 블록으로 변경 */
    .section-subtitle-inline {
        display: block;
        margin-left: 0;
        margin-top: 10px;
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* 모바일에서 히어로 콘텐츠 중앙 정렬 */
    .hero {
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        margin-left: 0;
        padding: 0 20px;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 350px; /* 300px → 350px (모바일에서도 충분한 높이) */
    }

    /* 레퍼토리 섹션 모바일 */
    .repertoire-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .repertoire-image img {
        height: 350px;
    }

    .highlight-item {
        padding: 12px;
        gap: 12px;
    }

    .highlight-icon {
        font-size: 1.5rem;
    }

    .highlight-item h4 {
        font-size: 1rem;
    }

    .highlight-item p {
        font-size: 0.9rem;
    }

    .concerts-grid {
        grid-template-columns: 1fr;
    }

    .leadership {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .member-card.featured,
    .member-card.featured.reverse {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .member-image {
        width: 180px;
        height: 220px;
        margin: 0 auto;
        border-radius: 15px; /* 둥근 모서리 */
    }

    .member-info {
        padding: 20px;
    }

    .member-info h3 {
        font-size: 1.5rem;
    }

    .member-detail-inline {
        font-size: 0.9rem;
    }

    .member-card.featured .member-detail {
        font-size: 0.9rem;
    }

    .parts {
        grid-template-columns: 1fr;
    }

    .member-main-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .member-info-line {
        text-align: left;
        font-size: 0.8rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* 모바일에서 지도 높이 조정 */
    .map-container iframe {
        height: 250px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 모바일에서 footer-header를 세로로 배치 */
    .footer-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-section h3 {
        margin-bottom: 15px;
    }

    /* 모바일에서 footer-bottom 더 작게 */
    .footer-bottom {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .footer-bottom p {
        font-size: 0.7rem;  /* 0.75rem → 0.7rem */
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 0;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        padding: 12px 30px;
    }

    /* 모바일에서 YouTube 버튼 크기 조정 */
    .btn-youtube {
        padding: 7px 16px;  /* 10px 20px → 7px 16px (더 작게) */
        font-size: 0.85rem;  /* 0.9rem → 0.85rem */
    }

    .btn-youtube svg {
        width: 16px;  /* 18px → 16px */
        height: 16px;  /* 18px → 16px */
    }

    .features {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .repertoire-controls {
        flex-direction: column;
    }

    .concert-detail-main > div {
        grid-template-columns: 1fr !important;
    }
}

/* ===================================
   New Pages Styles
   =================================== */

/* Page Header */
.page-header {
    color: var(--text-light);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Blur 처리된 배경 이미지 (페이지 헤더)
   - 다른 페이지(about.html, concerts.html 등)의 상단 헤더에 적용
   - filter: blur(6px) → Hero보다 약간 덜 흐림
*/
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/design/DSC03933.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(6px);
    transform: scale(1.1);
    z-index: 1;
}

/* 어두운 오버레이 (페이지 헤더) */
.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 35, 50, 0.90) 0%,
        rgba(139, 115, 85, 0.80) 100%
    );
    z-index: 2;
}

/* 페이지 헤더 콘텐츠를 위로 */
.page-header > * {
    position: relative;
    z-index: 3;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent-color);
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--text-light);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Year Filters */
.year-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Repertoire Controls */
.repertoire-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--text-gray);
    border-radius: 30px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-box svg {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.concert-filters {
    margin-bottom: 30px;
}

.concert-filters h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.genre-filter-details {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.genre-filter-details summary {
    font-size: 1.1rem;
    padding: 10px;
    user-select: none;
}

.genre-filter-details summary:hover {
    color: var(--accent-color);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.sort-options label {
    font-weight: 500;
}

.sort-options select {
    padding: 10px 15px;
    border: 2px solid var(--text-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.sort-options select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.results-info {
    text-align: center;
    margin-top: 20px;
    color: var(--text-gray);
}

/* Repertoire Grid */
.repertoire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.repertoire-card {
    background: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.repertoire-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.repertoire-card-header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 25px;
    height: 135px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.repertoire-title {
    font-size: 1.3rem;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    height: calc(1.3rem * 1.4 * 2);
}

.repertoire-title-kr {
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
    height: calc(0.95rem * 1.4);
}

.repertoire-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.repertoire-composer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.repertoire-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.repertoire-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--accent-color);
    color: var(--text-light);
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.repertoire-duration {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.repertoire-difficulty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.difficulty-stars {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.repertoire-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* 버튼을 카드 하단에 고정 */
.repertoire-card-body .btn {
    margin-top: auto;
}

.repertoire-performance {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.repertoire-performance p {
    margin-bottom: 5px;
}

.repertoire-performance p:last-child {
    margin-bottom: 0;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.no-results p {
    font-size: 1.1rem;
}

/* Logo Link */
.logo a {
    color: inherit;
    text-decoration: none;
}

.logo a:hover {
    color: var(--accent-color);
}

/* Concert Detail Page */
.concert-detail-header {
    margin-bottom: 40px;
}

.concert-detail-main {
    margin-bottom: 60px;
}

/* Gallery Category Badge */
.gallery-category-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.gallery-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-top: 5px;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--text-light);
    border-radius: 15px;
    overflow: hidden;
    z-index: 10001;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: var(--accent-color);
    color: var(--text-light);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    max-height: 90vh;
}

.modal-image-container {
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 400px;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* 모달 이미지 로딩 스피너 */
.modal-image-container .image-loading-spinner {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-color);
}

.modal-image-container.loaded .image-loading-spinner,
.modal-image-container.error .image-loading-spinner {
    display: none;
}

/* 모달 이미지 에러 메시지 */
.modal-image-container .image-error-message {
    color: rgba(255, 255, 255, 0.7);
}

.modal-image-container.error .image-error-message {
    display: block;
}

.modal-image-container .image-error-message svg {
    stroke: rgba(255, 255, 255, 0.3);
}

.modal-info {
    padding: 40px;
    overflow-y: auto;
    background: var(--text-light);
}

.modal-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.modal-date {
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-tags .tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .repertoire-grid {
        grid-template-columns: 1fr;
    }

    .repertoire-card-header {
        height: 120px;
        padding: 20px;
    }

    .repertoire-title {
        font-size: 1.2rem;
        height: calc(1.2rem * 1.4 * 2);
    }

    .repertoire-title-kr {
        font-size: 0.9rem;
        height: calc(0.9rem * 1.4);
    }

    .category-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image-container {
        max-height: 50vh;
    }

    .modal-info {
        padding: 30px 20px;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}

