/* 기본 초기화 및 공통 스타일 생략 (이전과 동일) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; overflow-x: hidden; color: #111; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1600px; margin: 0 auto; padding: 0 40px; }

/* 1. 전체 컨테이너: 이 영역에 마우스를 올리면 모든 라벨이 나타남 */
.floating-wrapper {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 오른쪽 정렬 */
    gap: 15px;
    z-index: 9999;
}

/* 2. 개별 버튼 기본 스타일 */
.float-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 아이콘을 왼쪽에 고정 */
    text-decoration: none;
    background: #fff;
    color: #111;
    height: 55px;
    width: 55px; /* 기본은 원형 */
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 튕기는 듯한 부드러운 효과 */
    overflow: hidden;
    padding: 0 17px;
    border: 1px solid #eee;
    white-space: nowrap;
}

/* 3. 아이콘 스타일 */
.float-btn .icon {
    font-size: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 4. 글자 라벨 스타일 */
.float-btn .label {
    opacity: 0;
    margin-left: 0;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* --------------------------------------------------
   핵심 기능: 컨테이너에 호버하면 세 개의 라벨이 동시에 나옴
-------------------------------------------------- */

.floating-wrapper:hover .float-btn {
    width: 140px; /* 모든 버튼이 동시에 길어짐 */
    background: #fdfdfd;
}

.floating-wrapper:hover .label {
    opacity: 1;
    margin-left: 12px;
}

/* 개별 버튼 호버 시 색상 강조 (선택 사항) */
.float-btn.phone:hover { background: #2ecc71 !important; color: #fff; }
.float-btn.kakao:hover { background: #FEE500 !important; color: #3C1E1E; }
.float-btn.contact:hover { background: #000 !important; color: #fff; }
/* 모바일 대응: 항상 라벨이 보이거나 너무 크지 않게 조절 */
@media (max-width: 768px) {
    .floating-wrapper { right: 20px; bottom: 20px; gap: 10px; }
    .float-btn { height: 50px; min-width: 50px; }
}

/* ... (이전 코드의 Navbar, Video, GIF, Partners, Programs 스타일 유지) ... */
.navbar { height: 80px; display: flex; align-items: center; border-bottom: 1px solid #eee; background: #fff; position: sticky; top: 0; z-index: 1000; }
.navbar .container { display: flex; justify-content: space-between; width: 100%; }
.logo { font-family: 'Cinzel', serif; font-weight: 700; font-size: 24px; letter-spacing: 2px; }
.menu { display: flex; list-style: none; gap: 30px; }
.menu a { text-decoration: none; color: #333; font-weight: 500; }

.video-section { position: relative; padding-bottom: 56.25%; background: #000; }
.video-section iframe { position: absolute; width: 100%; height: 100%; top: 0; left: 0; border: none; }

.gif-section { height: 60vh; background: #1a1e27; position: relative; }
.gif-overlay { background: rgba(0,0,0,0.6); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; }

.partners { padding: 80px 0; background: #fdfdfd; text-align: center; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin-top: 30px; }
.logo-item { height: 80px; background: #fff; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; filter: grayscale(1); transition: 0.3s; }
.logo-item:hover { filter: grayscale(0); border-color: #111; }

.programs { padding: 100px 0; background: #fff; text-align: center; }
.program-row { display: flex; justify-content: center; gap: 100px; margin-bottom: 150px; flex-wrap: wrap; }
.carousel-wrapper-3d { flex: 0 0 550px; position: relative; }
.group-title { font-size: 22px; margin-bottom: 60px; border-bottom: 2px solid #1a1e27; display: inline-block; padding-bottom: 5px; }
/* 1. 화살표 배치의 기준이 되는 바깥 박스 */
.carousel-outer-3d {
    position: relative; /* 화살표 absolute 배치의 기준점 */
    width: 100%;
    max-width: 800px;   /* 카루셀이 차지할 전체 너비 제한 */
    margin: 0 auto;     /* 가운데 정렬 */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;  /* 카루셀 높이보다 넉넉하게 잡아야 화살표가 중앙에 옴 */
}

/* 2. 3D 카루셀 본체 (화살표 사이의 공간) */
.carousel-container-3d {
    width: 150px;       /* 아이템 너비 */
    height: 220px;
    perspective: 1200px; /* 원근감 */
    z-index: 10;        /* 화살표보다는 낮게 */
}

/* 3. 화살표 공통 스타일: 위치를 절대 좌표로 고정 */
.arrow-3d {
    position: absolute;
    top: 50%;           /* 세로 정중앙 */
    transform: translateY(-50%); /* 정확한 중앙 보정 */
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;      /* 모든 3D 포스터보다 무조건 앞에 위치 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* 4. 화살표 좌우 위치 미세 조정 */
.arrow-3d.left {
    left: 0;           /* 컨테이너 왼쪽 끝에 딱 붙임 */
}

.arrow-3d.right {
    right: 0;          /* 컨테이너 오른쪽 끝에 딱 붙임 */
}

/* 호버 시 시각 피드백 */
.arrow-3d:hover {
    background-color: #1a1e27;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

/* [추가] 3D 아이템들이 화살표를 뚫고 나오지 못하게 방지 */
/* 3D 스테이지: 회전 질감을 '착-' 감기게 수정 */
.carousel-stage-3d {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    /* 0.8초 동안 살짝 튕기듯 돌아가는 관성 효과 */
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); 
}

/* 1. 포스터 아이템 기본 설정 */
.item-3d { 
    position: absolute; 
    width: 150px; 
    height: 220px; 
    background: #111; 
    border-radius: 12px; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    backface-visibility: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
}

/* 2. 배경 이미지가 들어갈 가상 요소 */
.item-3d::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;

    background-size: cover;
    background-position: center;
    /* 초기 상태: 선명하고 밝음 */
    filter: brightness(1) blur(0px); 
    transition: filter 0.4s ease, transform 0.4s ease;
    z-index: 1;
}

/* 4. 호버 시 효과: 배경만 '어둡게' + '흐리게' */
.item-3d:hover::before {
    /* brightness(0.3)으로 어둡게, blur(4px)로 흐리게 조정 */
    filter: brightness(0.3) blur(4px); 
    transform: scale(1.1); /* 살짝 커지는 효과로 입체감 추가 */
}

/* 5. 글자 영역: 배경이 어두워지므로 흰색 글자가 아주 잘 보입니다 */
.item-3d a {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2; /* 어두워진 배경보다 위에 위치 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}
/* 5. 글자 나타나기 (선명함 유지) */
.item-3d a span {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 글자를 더 돋보이게 함 */
}

.item-3d:hover a span {
    opacity: 1;
    transform: translateY(0);
}
.item-3d:nth-child(1) { transform: rotateY(0deg) translateZ(250px); }
.item-3d:nth-child(2) { transform: rotateY(36deg) translateZ(250px); }
.item-3d:nth-child(3) { transform: rotateY(72deg) translateZ(250px); }
.item-3d:nth-child(4) { transform: rotateY(108deg) translateZ(250px); }
.item-3d:nth-child(5) { transform: rotateY(144deg) translateZ(250px); }
.item-3d:nth-child(6) { transform: rotateY(180deg) translateZ(250px); }
.item-3d:nth-child(7) { transform: rotateY(216deg) translateZ(250px); }
.item-3d:nth-child(8) { transform: rotateY(252deg) translateZ(250px); }
.item-3d:nth-child(9) { transform: rotateY(288deg) translateZ(250px); }
.item-3d:nth-child(10) { transform: rotateY(324deg) translateZ(250px); }

.etc-section { text-align: center; }

/* 1. 슬라이더 외곽 컨테이너 */
.flat-carousel-outer { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 20px; 
    position: relative;
}

/* 2. 뷰포트 (오버플로우 및 위쪽 여백 보정) */
.flat-viewport { 
    width: 1170px; 
    overflow: hidden; 
    /* 카드가 위로 (-10px 정도) 올라갈 공간을 확보해줍니다 */
    padding-top: 15px;
    margin-top: -15px;
    padding-bottom: 10px; /* 아래쪽 그림자 공간 확보 */
    margin-bottom: -10px;
}

.flat-track { 
    display: flex; 
    gap: 20px; 
    transition: transform 0.5s ease; 
}

/* 3. 아이템 (정사각형 유지 및 부드러운 호버 애니메이션) */
.flat-item { 
    flex: 0 0 150px; 
    height: 150px; /* 정사각형 크기 */
    background: #eee; 
    border-radius: 8px; /* 둥근 모서리 */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid #ddd;
    overflow: hidden;   /* 이미지 둥근 모서리 잘림 유지 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 호버 애니메이션 */
}

/* 4. 마우스 올려놓았을 때 (잘림 없이 위로 살짝 올라감) */
.flat-item:hover {
    transform: translateY(-8px); /* 위로 8px 이동 */
    box-shadow: 0 10px 20px rgba(0,0,0,0.25); /* 입체감 그림자 */
    z-index: 5;
}

.flat-arrow { 
    background: none; 
    border: none; 
    font-size: 40px; 
    cursor: pointer; 
}

/* --- 7. 주문 의뢰서 스타일 (New) --- */
.contact-section { padding: 120px 0; background: #f9f9f9; }
.contact-flex { display: flex; gap: 60px; align-items: flex-start; }
.contact-image { flex: 1; height: 600px; position: sticky; top: 120px; }
.image-placeholder { width: 100%; height: 100%; background: #ddd center/cover; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #888; font-weight: bold; }

.contact-form-container { flex: 1.2; background: #fff; padding: 50px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.05); }
.form-title { font-size: 32px; margin-bottom: 40px; border-left: 5px solid #111; padding-left: 15px; }

.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 10px; color: #333; }
.form-group input, .form-group textarea { width: 100%; padding: 14px; border: 1px solid #eee; border-radius: 8px; background: #fcfcfc; font-size: 15px; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: #111; background: #fff; outline: none; }

.required { font-size: 12px; color: #e74c3c; margin-left: 5px; }
.radio-group { 
    display: flex; 
    flex-direction: row;    /* 가로로 배치 */
    flex-wrap: nowrap;      /* 절대 줄바꿈 하지 않음 */
    justify-content: flex-start; 
    gap: 12px;              /* 항목 간의 간격을 살짝 좁힘 */
    padding: 12px 0;
    width: 100%;
    overflow-x: visible;    /* 영역 밖으로 나가지 않도록 설정 */
}

.radio-group label { 
    display: flex;
    align-items: center;
    gap: 6px;               /* 동그라미 버튼과 글자 사이 간격 */
    white-space: nowrap;    /* 글자가 아래로 떨어지는 것 방지 */
    font-size: 13.5px;      /* 항목이 많으므로 폰트 크기를 미세하게 조정 */
    cursor: pointer;
    font-weight: 400;
    color: #444;
}

/* 라디오 버튼(동그라미) 크기 정렬 */
.radio-group input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 15px;
    height: 15px;
}

/* 모바일 등 화면이 아주 좁아질 경우를 대비 */
@media (max-width: 600px) {
    .radio-group {
        flex-wrap: wrap;    /* 모바일에서는 어쩔 수 없이 줄바꿈이 필요할 수 있음 */
        gap: 10px 15px;     /* 상하 10px, 좌우 15px 간격 */
    }
}

.submit-btn { width: 100%; padding: 20px; background: #1a1e27; color: #fff; border: none; border-radius: 10px; font-size: 18px; font-weight: bold; cursor: pointer; transition: 0.3s; margin-top: 20px; }
.submit-btn:hover { background: #1a1e27; transform: translateY(-3px); }

.vision { padding: 100px 0; background: #1a1e27; color: #fff; text-align: center; }
footer { text-align: center; padding: 60px; border-top: 1px solid #eee; }

@media (max-width: 1100px) {
    .contact-flex { flex-direction: column; }
    .contact-image { width: 100%; height: 300px; position: static; }
    .flat-viewport { width: 830px; }
}
/* 1. 전체 배경색 및 기본 텍스트 색상 */
body {
    background-color: #1a1e27 !important; /* 요청하신 네이비 컬러 */
}

/* 2. 섹션 카드 배경색 (시안의 연회색) */
.partners, 
.programs, 
.contact-form-container, 
.contact-image { 
    background-color: #e9ecef !important; 
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}

/* 3. 플로팅 바 디자인 (Contact 수정 및 흰색 글자) */
.floating-wrapper {
    background-color: #212529 !important; /* 다크한 박스 배경 */
    padding: 25px 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    min-width: 160px !important; /* 빈 공간을 채우기 위한 최소 너비 */
}

/* "Quick Contact" -> "Contact" (HTML에서 수정하거나 CSS로 강제 변경 시) */
.floating-header {
    color: #ffffff !important; /* 흰색 글자 */
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    width: 100% !important;
    text-align: center !important;
    padding-bottom: 8px !important;
    opacity: 1 !important; /* 불투명하게 */
}

/* 플로팅 버튼 내부 정렬 (이모지 크기 및 간격) */
.float-btn {
    background: transparent !important;
    color: #ffffff !important; /* 흰색 글자 */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 40px !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.float-btn .icon {
    font-size: 22px !important; /* 이모지 크기를 조금 더 키움 */
    margin-right: 12px !important; /* 이모지와 글자 사이 간격 */
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.float-btn .label {
    opacity: 1 !important; /* 항상 보이게 */
    color: #ffffff !important; /* 흰색 글자 */
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* 4. 기타 요소 색상 조절 */
.vision h2, .vision p {
    color: #ffffff !important;
}

.submit-btn {
    background-color: #1a1e27 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

.submit-btn:hover {
    background-color: #000 !important;
}

/* 3D 아이템 테두리 강조 */
.item-3d, .flat-item {
    border: 1px solid #ddd !important;
}

/* --------------------------------------------------
   기존 레이아웃은 유지하고, 색상만 시안 테마로 변경
-------------------------------------------------- */

/* 전체 배경색 (가장 깊은 바닥) */
body { 
    background-color: #1a1e27 !important; 
}

/* 개별 섹션 카드 배경색 (시안의 연회색 박스) */
/* 이 코드는 위치를 바꾸지 않고 '색깔'만 입힙니다 */
.partners, 
.programs, 
.contact-form-container, 
.contact-image { 
    background-color: #e9ecef !important; 
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}

/* 3D 포스터 및 슬라이드 아이템 내부 색상 */
.item-3d, .flat-item { 
    background-color: #ffffff !important; 
    color: #111111 !important;
    border: 1px solid #dddddd !important;
}

/* 플로팅 바 (Contact 박스) 스타일 최적화 */
.floating-wrapper {
    background-color: #212529 !important;
    padding: 15px 15px 10px 15px !important; /* 내부 여백 압축 */
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    min-width: 150px !important;
    gap: 2px !important; /* 항목 사이 간격 최소화 */
}

/* 헤더 글자 및 구분선 간격 */
.floating-header {
    color: #ffffff !important;
    margin-bottom: 5px !important; /* 아래 항목과 바짝 붙임 */
    padding-bottom: 5px !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    text-align: center !important;
    display: block !important;
}

/* 문의 버튼 텍스트 및 이모지 */
.float-btn {
    background: transparent !important;
    color: #ffffff !important;
    height: 32px !important; /* 높이를 줄여서 밀착 */
    display: flex !important;
    align-items: center !important;
}

.float-btn .label {
    color: #ffffff !important;
    opacity: 1 !important;
    margin-left: 8px !important;
    font-size: 13px !important;
}

/* 비전 및 하단 텍스트 */
.vision h2, .vision p { color: #ffffff !important; }
.section-title, .group-title { color: #111111 !important; border-bottom-color: #111 !important; }

/* PC 환경: 대각선으로 전체적인 사이즈 업 */
@media (min-width: 769px) {
    .floating-wrapper {
        position: fixed !important;
        right: 40px !important;  /* 여백도 살짝 키움 */
        bottom: 40px !important;
        
        /* [핵심] 전체적인 너비와 높이 스케일 업 */
        width: fit-content !important;
        min-width: 200px !important; /* 가로를 더 듬직하게 */
        padding: 20px 25px !important; /* 안쪽 여백을 늘려 전체 부피 확장 */
        
        background-color: #212529 !important;
        border-radius: 20px !important; /* 박스가 커진 만큼 모서리도 더 둥글게 */
        box-shadow: 0 15px 40px rgba(0,0,0,0.5) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important; /* 항목 간 간격도 시원하게 */
        z-index: 9999;
    }

    .floating-header {
        font-size: 16px !important; /* 헤더 글자 크기 UP */
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid rgba(255,255,255,0.2) !important;
        text-align: center !important;
        color: #fff !important;
        letter-spacing: 2px;
    }

    .float-btn {
        height: 45px !important; /* 버튼 높이를 키워 대각선 확장 느낌 구현 */
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
    }

    .float-btn .icon {
        font-size: 26px !important; /* 이모지도 시원하게 키움 */
        margin-right: 15px !important;
    }

    .float-btn .label {
        font-size: 16px !important; /* 텍스트 크기 UP */
        font-weight: 700 !important;
        color: #fff !important;
        white-space: nowrap !important;
    }
}

/* 모바일은 사용성을 위해 기존 사이즈 유지 */
@media (max-width: 768px) {
    .floating-wrapper {
        position: fixed !important;
        right: 20px !important;
        bottom: 20px !important;
        width: fit-content !important;
        padding: 12px 15px !important;
        background-color: #212529 !important;
        border-radius: 15px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }
    .floating-header { font-size: 13px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.2); text-align: center; color: #fff; }
    .float-btn { height: 35px; display: flex; align-items: center; text-decoration: none; }
    .float-btn .icon { font-size: 20px; margin-right: 10px; }
    .float-btn .label { font-size: 14px; color: #fff; }
}

/* ==================================================
   [색상 전용] 구조는 건드리지 않고 색감만 변경
   ================================================== */

/* 1. 전체 배경색 (버튼색과 통일) */
body { 
    background-color: #1a1e27 !important; 
}

/* 2. 섹션별 카드 배경색 (연회색) */
.partners, 
.programs, 
.contact-form-container, 
.contact-image { 
    background-color: #e9ecef !important; 
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
}

/* 3. 의뢰 신청하기 버튼 (배경색과 일치 + 테두리) */
.submit-btn {
    background-color: #1a1e27 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.submit-btn:hover {
    background-color: #000000 !important;
}

/* 4. 3D 아이템 및 슬라이드 내부 색상 */
.item-3d, .flat-item { 
    background-color: #ffffff !important; 
    color: #111111 !important;
    border: 1px solid #dddddd !important;
}

/* 5. 비전 및 푸터 텍스트 색상 */
.vision h2, .vision p { color: #ffffff !important; }
footer { 
    background-color: #1a1e27 !important; 
    color: rgba(255, 255, 255, 0.3) !important; 
}

/* 6. 제목 텍스트 색상 */
.section-title, .group-title { 
    color: #111111 !important; 
    border-bottom-color: #111111 !important; 
}

/* 상단 로고 텍스트 색상을 배경색과 동일한 딥 네이비로 변경 */
.logo {
    color: #1a1e27 !important;
    font-weight: 700 !important; /* 글자가 더 선명하게 보이도록 두께 강조 */
}

/* 3D 아이템 및 플랫 아이템 안의 링크가 영역 전체를 차지하게 */
.item-3d a, .flat-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit; /* 부모의 글자색(흰색/검은색) 유지 */
}

/* 호버 효과 (선택사항) */
.item-3d a:hover, .flat-item a:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

/* 드롭다운 전체 컨테이너 */
.menu li {
    position: relative; /* 하위 메뉴의 기준점 */
}

/* 드롭다운 박스 기본 숨김 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #1a1e27; /* 딥 네이비 */
    min-width: 160px;
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Programs 메뉴에 호버하면 드롭다운 표시 */
.menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 드롭다운 내부 링크 */
.dropdown a {
    display: block;
    padding: 10px 20px;
    color: rgba(255,255,255,0.8) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
    text-align: center;
}

.dropdown a:hover {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.05);
}

/* 드롭다운 화살표(삼각형) */
.dropdown::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #1a1e27;
}

/* 프로그램 카테고리 메뉴 바 (글자색 블루 + 3개씩 2줄 배치) */
.program-category-nav {
    display: flex;
    flex-wrap: wrap;             /* 2줄 배치를 위한 줄바꿈 */
    justify-content: center;
    gap: 20px;                   /* 버튼 사이 간격 */
    margin: 50px auto 90px;
    max-width: 1100px;           /* 3개 배치가 딱 맞춰지는 최적 너비 */
    width: 100%;
    box-sizing: border-box;
}

.cat-btn {
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.05);
    
    /* 평상시 글자 색상 (선명한 블루) */
    color: #1a1e27 !important; 
    
    /* 3개 배치를 위한 핵심 설정 (간격 제외 정확히 3등분) */
    flex: 0 0 calc((100% - 40px) / 3); 
    box-sizing: border-box;
    
    /* 크기 및 폰트 설정 (큰 글씨 유지) */
    padding: 18px 10px;          /* 좌우 패딩을 줄여 글자 잘림 방지 */
    font-size: 20px;             /* 큰 폰트 크기 유지 */
    font-weight: 800;
    white-space: nowrap;         /* '체험 및 강의' 글자 줄바꿈 방지 */
    
    border-radius: 60px;
    border: 2.5px solid #1a1e27;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    display: inline-block;
}

/* 마우스 올렸을 때 */
.cat-btn:hover {
    background-color: #ffffff !important; 
    color: #1a1e27 !important;
    transform: scale(1.05) translateY(-5px); /* 옆 버튼 침범 방지하여 축소 */
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.3);
    border-color: #ffffff;
}

/* 현재 섹션 강조 */
.cat-btn.active {
    background-color: #ffffff;
    color: #1a1e27;
    font-weight: 700;
}

/* 모바일 대응 (화면 작아질 때) */
@media (max-width: 768px) {
    .program-category-nav { 
        gap: 10px; 
    }
    .cat-btn {
        flex: 0 0 calc((100% - 20px) / 3); /* 모바일에서도 3개씩 유지 */
        padding: 12px 4px;
        font-size: 13px;                    /* 모바일 반응형 폰트 조정 */
        border-width: 2px;
    }
}

/* 1. 3D 아이템 부모 틀 */
.item-3d {
    position: absolute;
    width: 150px;
    height: 220px;
    background: #111; /* 이미지가 로딩되기 전 기본 배경색 */
    border-radius: 12px;
    overflow: hidden;
    transform-style: preserve-3d;
    border: 1px solid rgba(255,255,255,0.1) !important; /* 미세한 테두리 */
}

/* 2. 자바스크립트가 배경 이미지를 꽂아주는 영역 */
.item-bg {
    position: absolute; /* 절대 위치로 부모를 꽉 채움 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.4s ease;
    z-index: 1; /* 이미지 레이어를 아래로 */
}

/* 3. 호버 시 배경 이미지 효과 (어둡게 + 흐리게) */
.item-3d:hover .item-bg {
    filter: brightness(0.3) blur(4px) !important; 
    transform: scale(1.1);
}

/* 4. 글자 및 클릭 영역 (이미지보다 위에 떠 있어야 함) */
.item-3d a {
    position: absolute; /* 배경 위로 띄움 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* 이미지 레이어(z-index: 1)보다 높게 설정 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white !important;
    background: transparent; /* 배경은 투명하게 유지 */
}

/* 5. 평소엔 안 보이다가 호버 시 나타나는 글자 */
.item-3d a span {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* 검은 배경에서 글자 강조 */
}

.item-3d:hover a span {
    opacity: 1;
    transform: translateY(0);
}
/* 아이템 기본 설정 */
.flat-item {
    flex: 0 0 150px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

/* 글자를 감싸는 오버레이 레이어 */
.item-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26, 30, 39, 0); /* 평소엔 투명 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(0px); /* 평소엔 블러 없음 */
}

/* 제목, 설명, 상세보기 공통 스타일 (평소엔 투명) */
.item-title, .item-desc, .view-more {
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.item-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.item-desc { font-size: 11px; font-weight: 300; line-height: 1.4; margin-bottom: 12px; }
.view-more { font-size: 10px; color: #007bff; border: 1px solid #007bff; padding: 4px 8px; border-radius: 4px; }

/* 🔥 마우스를 올렸을 때 (Hover) */
.flat-item:hover .item-overlay {
    background: rgba(26, 30, 39, 0.85); /* 어두운 배경 */
    backdrop-filter: blur(4px); /* 배경 블러 처리 */
}

.flat-item:hover .item-title,
.flat-item:hover .item-desc,
.flat-item:hover .view-more {
    opacity: 1;
    transform: translateY(0);
}

/* 제목보다 설명이 살짝 늦게 올라오도록 시간차 효과 */
.flat-item:hover .item-desc { transition-delay: 0.1s; }
.flat-item:hover .view-more { transition-delay: 0.2s; }

.flat-item:hover { transform: translateY(-8px); }

/* 검색창 */
.search-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 15px 25px;
    padding-right: 60px;
    border-radius: 50px;
    border: 2px solid #1a1e27;
    background: #1a1e27;
    color: #1a1e27;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: #007bff;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(0,123,255,0.3);
}

.search-icon {
    position: absolute;
    right: 25px;
    font-size: 20px;
    color: #888;
}

/* 1. 기본 placeholder 색상 변경 (모든 브라우저 대응) */
.search-box input::placeholder {
    color: #ffffff; /* 흰색인데 약간 투명하게 (조절 가능) */
    font-size: 15px;
    font-weight: 400;
}

/* 2. (선택 사항) 마우스를 클릭(focus)했을 때 글자색을 더 밝게 */
.search-box input:focus::placeholder {
    color: #007bff; /* 파란색으로 변경되어 '입력 중'임을 강조 */
    transition: 0.3s;
}

/* 참고: 인터넷 익스플로러나 구형 브라우저 대응이 필요한 경우 */
.search-box input::-webkit-input-placeholder { color: #ffffff; }
.search-box input:-ms-input-placeholder { color: #ffffff; }

.search-icon {
    position: absolute;
    right: 25px;
    font-size: 20px;
    color: #888;
    transition: all 0.2s ease;
}

/* 마우스를 올렸을 때 효과 */
.search-icon:hover {
    color: #007bff; /* 파란색으로 변경 */
    transform: scale(1.2); /* 살짝 커짐 */
}

/* 검색 메뉴 아이템 스타일 */
.menu-search {
    margin-left: 10px; /* Contact와 간격 벌리기 */
}

.search-trigger {
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
}

.search-trigger:hover {
    transform: scale(1.2); /* 호버 시 살짝 커짐 */
    color: #007bff !important; /* 포인트 컬러로 변경 */
}

/* 모바일 대응 (메뉴가 겹치지 않게) */
@media (max-width: 768px) {
    .menu { gap: 15px; }
    .menu-search { margin-left: 5px; }
}

/* 1. 메뉴 리스트 정렬 강화 */
.menu {
    display: flex;
    align-items: center; /* 모든 메뉴 아이템을 세로 중앙 정렬 */
    list-style: none;
    gap: 30px;
}

/* 2. 검색 아이콘 메뉴 아이템 */
.menu-search {
    display: flex;
    align-items: center;
    height: 100%; /* 부모 높이에 맞춤 */
}

.search-trigger {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* 텍스트와 높이를 맞추기 위해 미세 조정 */
    transform: translateY(-1px); 
}

/* 3. 돋보기 아이콘 본체 */
.search-line-icon {
    position: relative;
    display: inline-block;
    width: 15px; /* 크기를 아주 살짝 줄여서 글자 두께와 맞춤 */
    height: 15px;
    border: 2px solid #333;
    border-radius: 50%;
    transition: all 0.3s ease;
    /* 수직 위치가 안 맞을 경우 여기서 조절 */
    vertical-align: middle; 
}

/* 돋보기 손잡이 */
.search-line-icon::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 5px;
    height: 2px;
    background: #333;
    transform: rotate(45deg);
}

