 /* CSS Reset 및 기본 설정 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', 'Noto Sans KR', sans-serif; color: #333; line-height: 1.5; background-color: #fff; -webkit-font-smoothing: antialiased; word-break: keep-all; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* 공통 변수 */
:root { --primary: #e6007e; --secondary: #1b2756; --program-bg: #384180; --light-blue: #eef5ff; }

/* 레이아웃 공통 */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 상단 헤로(Hero) 영역 */
.hero { position: relative; width: 100%; height: auto; overflow: hidden; display: flex; flex-direction: column; align-items: center; background: url('../images/common/bg_top_all.png') center top / cover no-repeat; }
.bg-top { position: absolute; top: 0; left: 0; width: 100%; height: calc(100% - 350px); z-index: 0; }
.bg-bottom { position: absolute; bottom: 0; left: 0; width: 100%; height: 350px; z-index: 0; }

/* 네비게이션바 */
.nav-wrap { position: relative; z-index: 20; width: 100%; padding: 10px 40px; display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 80px; filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3)); }
.gnb { display: flex; gap: 80px; }
.gnb a { color: white; font-weight: 800; font-size: 24px; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); transition: color 0.3s; }
.gnb a:hover { color: var(--primary); }
.logo-right img { height: 138px; object-fit: contain; }

/* 모바일 전용 메뉴바 (가로 스크롤) */
.mobile-gnb { display: none; position: relative; z-index: 20; width: 100%; overflow-x: auto; white-space: nowrap; padding: 10px 20px; text-align: center; -ms-overflow-style: none; scrollbar-width: none; }
.mobile-gnb::-webkit-scrollbar { display: none; }
.mobile-gnb-inner { display: inline-flex; gap: 20px; justify-content: center; min-width: 100%; }
.mobile-gnb a { color: white; font-weight: bold; font-size: 16px; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); }

/* 타이틀 및 버튼 컨텐츠 */
.hero-content { position: relative; z-index: 20; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 1000px; padding: 0 20px; }
.main-title { font-size: 0; margin-bottom: 15px; }
.main-title img { max-width: 100%; width: 816px; }
.main-title .sub { font-size: 0; display: block; }
.main-title .sub img { height: 60px; max-width: 100%; object-fit: contain; margin: 0 auto; }

.main-subtitle { font-size: 0; margin-top: 15px; }
.main-subtitle img { max-width: 100%; width: 765px; margin: 0 auto; }

.btn-apply { margin: 60px auto; display: inline-block; background: linear-gradient(90deg, #FF2894 0%, #E50072 100%); color: white; font-weight: bold; font-size: 1.8rem; padding: 18px 0; width: 100%; max-width: 800px; border-radius: 50px; box-shadow: 0 10px 20px rgba(230,0,126,0.3); transition: transform 0.3s, background-color 0.3s; text-align: center; }
.btn-apply:hover { transform: translateY(-5px); }

.base-img { width: 100%; max-width: 800px; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15)); }

/* 캐릭터 이미지 배치 */
.characters { column-gap: 100px; position: relative; display: flex; z-index: 10; width: 100%; max-width: 1240px; pointer-events: none; align-items: center; justify-content: center; margin-bottom: 100px; padding: 0 20px; }
.char-left { height: 267px; }
.char-right { height: 409px; }

/* 프로그램 소개 박스 */
.program-section { position: relative; z-index: 30; padding: 0 20px; margin-top: -100px; display: flex; justify-content: center; }
.program-box-wrap { background-color: #bbd7ff; border-radius: 48px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); max-width: 900px; width: 100%; }
.program-box { background-color: white; border-radius: 40px; display: flex; overflow: hidden; border: 10px solid #cde3f7; }
.program-title { background-color: var(--program-bg); color: white; padding: 40px; width: 25%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 1.5rem; font-weight: bold; line-height: 1.3; }
.program-desc { padding: 40px; width: 75%; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.desc-item { display: flex; align-items: center; }
.badge { background-color: #4f46e5; color: white; font-weight: bold; padding: 4px 12px; font-size: 20px; border-radius: 6px; margin-right: 16px; min-width: 90px; text-align: center; flex-shrink: 0; }
.desc-text { font-weight: 600; color: #4b5563; font-size: 20px; }
.desc-text strong { font-weight: bold; color: #1f2937; }
.text-pink { color: var(--primary); font-size: 1.25rem; }
.text-sm-gray { font-size: 0.95rem; color: #6b7280; font-weight: normal; }

/* 섹션 공통 설정 */
.section { padding: 96px 20px; background-color: white; }
.sec-header { text-align: center; margin-bottom: 48px; }
.sec-title { font-size: 5rem; font-weight: 900; margin-bottom: 8px; letter-spacing: 0.05em; }
.sec-subtitle { color: #6b7280; font-size: 1rem; }

/* BASE 섹션 */
.base-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1200px; margin: 0 auto; }
.base-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.base-thumb { width: 320px; height: 320px; border-radius: 50%; overflow: hidden; margin-bottom: 24px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); transition: transform 0.5s, box-shadow 0.5s; }
.base-thumb img { width: 100%; height: 100%; object-fit: cover; }
.base-item:hover .base-thumb { transform: scale(1.05); box-shadow: 0 20px 25px rgba(0,0,0,0.15); }
.base-name { font-size: 1.5rem; font-weight: bold; margin-bottom: 8px; }
.base-tag { display: flex; justify-content: center; align-items: center; color: white; font-size: 1rem; font-weight: bold; padding: 4px 20px; border-radius: 50px; margin-bottom: 12px; }
.tag-1 { background-color: #e8a34d; }
.tag-2 { background-color: #e05a33; }
.tag-3 { background-color: #2aa876; }
.base-addr { color: #6b7280; font-size: 1rem; }
.divider { max-width: 100%; margin: 0 auto; border: none; border-top: 1px solid #e5e7eb; }

/* 공지사항 섹션 */
.notice-wrap { max-width: 1200px; margin: 0 auto; }
.notice-item { display: flex; justify-content: space-between; align-items: center; padding: 30px 20px; border-top: 1px solid #1f2937; border-bottom: 1px solid #1f2937; margin-bottom: 32px; transition: background-color 0.3s; }
.notice-item:hover { background-color: #f9fafb; }
.notice-title-wrap { display: flex; align-items: center; gap: 16px; flex: 1; }
.notice-badge { font-size: 0.75rem; font-weight: bold; border: 1px solid #d1d5db; color: #6b7280; padding: 2px 8px; border-radius: 4px; flex-shrink: 0; }
.notice-title { font-weight: bold; color: #1f2937; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; max-width: 600px; font-size: 20px; }
.notice-title:hover { text-decoration: underline; }
.notice-info { display: flex; gap: 20px; font-size: 0.875rem; color: #9ca3af; flex-shrink: 0; margin-left: 20px; }
.btn-more { display: inline-block; border: 2px solid var(--primary); color: var(--primary); font-weight: bold; padding: 10px 60px; border-radius: 50px; font-size: 1rem; transition: all 0.3s; max-width: 300px; width: 100%; text-align: center; }
.btn-more:hover { background-color: var(--primary); color: white; }

/* 사진&영상 (갤러리) 섹션 */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1100px; margin: 0 auto 48px; }
.gallery-item { display: block; cursor: pointer; }
.gal-thumb { overflow: hidden; border-radius: 8px; margin-bottom: 16px; aspect-ratio: 16 / 9; background-color: #f3f4f6; display: flex; align-items: center; justify-content: center; border: 1px solid #e5e7eb; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover .gal-thumb img { transform: scale(1.1); }
.gal-type { font-size: 0.75rem; color: #9ca3af; margin-bottom: 4px; }
.gal-type span { float: right; }
.gal-title { font-weight: bold; font-size: 1.125rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s; }
.gallery-item:hover .gal-title { color: var(--primary); }
.gal-tags { font-size: 0.875rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 푸터 (Footer) */
.footer { border-top: 1px solid #e5e7eb; padding: 32px 20px 100px 20px; position: relative; text-align: center; } /* 하단 여백 추가(플로팅 바 고려) */
.copy { font-size: 0.75rem; color: #9ca3af; font-weight: 500; letter-spacing: 0.05em; }
.btn-top { position: absolute; right: 32px; top: 30px; width: 40px; height: 40px; background-color: #2dd4bf; border: none; border-radius: 50%; color: white; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; transition: background-color 0.3s; }
.btn-top:hover { background-color: #14b8a6; }
.btn-top svg { width: 24px; height: 24px; }

/* ==============================================================
   플로팅 하단 신청 버튼 (스크롤 시 노출)
   ============================================================== */
.floating-bottom-bar {
    position: fixed;
    bottom: -120px; /* 초기 상태: 화면 아래로 숨김 */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.08);
    padding: 15px 20px;
    z-index: 999;
    display: flex;
    justify-content: center;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-bottom-bar.show {
    bottom: 0; /* 노출 클래스 추가 시 등장 */
}
.btn-floating {
    display: inline-block;
    background: linear-gradient(90deg, #FF2894 0%, #E50072 100%);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 14px 0;
    width: 100%;
    max-width: 600px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(230,0,126,0.3);
    text-align: center;
    transition: transform 0.2s;
}
.btn-floating:hover {
    transform: translateY(-3px);
}

/* ==============================================================
   반응형 미디어 쿼리 (Tablet & Mobile 보강) 
   ============================================================== */

@media (max-width: 1024px) {
    .gnb { gap: 40px; }
    .gnb a { font-size: 18px; }
    .characters { column-gap: 50px; }
    .char-left { height: 200px; }
    .char-right { height: 300px; }
    .base-thumb { width: 250px; height: 250px; }
    .sec-title { font-size: 4rem; }
}

@media (max-width: 768px) {
    /* 배경 및 헤더 영역 */
    .hero { padding-bottom: 60px; }
    .bg-top { height: calc(100% - 200px); }
    .bg-bottom { height: 200px; }
    .nav-wrap { padding: 15px 20px; }
    .logo img { height: 50px; }
    .logo-right img { height: 70px; }
    .gnb { display: none; }
    
    /* 모바일 전용 메뉴 */
    .mobile-gnb { display: block; padding-top: 15px; }
    
    /* 메인 타이틀 및 요소 */
    .hero-content { margin-top: 40px; }
    .main-title img { max-width: 90%; }
    .main-title .sub img { height: 40px; margin-top: 10px; }
    .main-subtitle img { max-width: 85%; }
    
    /* 버튼 삐져나감(오버플로우) 방지 및 사이즈 조절 */
    .btn-apply { font-size: 1.3rem; padding: 15px 0; margin: 40px auto; width: 90%; max-width: 400px; }
    .base-img { max-width: 95%; }
    
    /* 캐릭터 이미지 최적화 */
    .characters { height: auto; column-gap: 20px; margin-bottom: 50px; align-items: flex-end; }
    .char-left { height: 130px; }
    .char-right { height: 200px; }
    
    /* 프로그램 소개 박스 최적화 */
    .program-section { margin-top: -60px; padding: 0 15px; }
    .program-box-wrap { padding: 0; border-radius: 32px; }
    .program-box { flex-direction: column; border-radius: 28px; border-width: 5px; }
    .program-title { width: 100%; padding: 20px; font-size: 1.3rem; }
    .program-title br { display: none; }
    .program-desc { width: 100%; padding: 24px; gap: 16px; }
    
    /* 항목들이 좁은 공간에서 찌그러지지 않도록 세로 배치 혹은 폰트 축소 */
    .desc-item { align-items: flex-start; flex-direction: column; gap: 8px; }
    .badge { font-size: 15px; min-width: 60px; padding: 4px 10px; margin-right: 0; }
    .desc-text { font-size: 16px; line-height: 1.4; }
    .text-pink { font-size: 1.1rem; }
    .text-sm-gray { display: block; margin-top: 4px; font-size: 14px; }
    
    /* 섹션 타이틀 및 여백 */
    .section { padding: 70px 20px; }
    .sec-header { margin-bottom: 30px; }
    .sec-title { font-size: 2.5rem; }
    
    /* BASE 그리드 모바일 (1열 배치) */
    .base-grid { grid-template-columns: 1fr; gap: 40px; }
    .base-thumb { width: 220px; height: 220px; margin-bottom: 16px; }
    .base-name { font-size: 1.3rem; }
    
    /* 공지사항 텍스트 잘림 방지 */
    .notice-item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 10px; }
    .notice-title-wrap { align-items: flex-start; }
    .notice-title { max-width: 100%; white-space: normal; font-size: 16px; line-height: 1.4; }
    .notice-info { width: 100%; justify-content: space-between; margin-left: 0; margin-top: 5px; }
    
    /* 갤러리 및 더보기 버튼 */
    .gallery-grid { grid-template-columns: 1fr; gap: 24px; }
    .btn-more { width: 100%; max-width: 100%; padding: 14px; font-size: 1.1rem; }

    /* 플로팅 버튼 모바일 대응 */
    .floating-bottom-bar { padding: 12px 15px; }
    .btn-floating { font-size: 1.2rem; padding: 12px 0; max-width: 100%; }
}