/* 기본 스타일 및 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* 헤더 스타일 */
.site-header {
    background: #005472;
    color: white;
    text-align: center;
    max-width: 500px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 100%;
    height: 60px;
}

.header-container {
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}


.logo img {
    height: 45px;
    max-width: 100%;
}

.site-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.header-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 섹션 공통 스타일 */
section {
    width: 100%;
    overflow: hidden;
    background-color: #ffffff; 
}

.benefit-section{
    background-color: #005472; /* 섹션 배경색 */
}

/* 섹션 타이틀 스타일 */
.section-title-container {
    text-align: center;
    margin-bottom: 10px;
}

.main-title {
    display: inline-block;
    color: white;
    font-size: 2rem;
    font-weight: 300;
}
.main-title strong {
    display: inline-block;
    color: white;
    font-size: 2rem;
    font-weight: 900;
}

.sub-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    margin-top: 5px;
}

.sub-title span{
    color: #38374a;
    background-color: #ffffff;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 900;
    margin-top: 5px;
}


/* 이미지 섹션 스타일 */
.image-section img {
    width: 100%;
    display: block;
}

.community-image {
    width: 100%;
    overflow: hidden;
}

.community-image img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

/* 위치 및 규모 섹션 스타일 */
.location-section {
    padding-bottom: 0px;
}

.location-info-container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    
}

.location-image {
    width: 100%;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    display: block;
    height: auto;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(88, 77, 227, 0.15);
}

.info-icon {
    color: #005472;
    font-size: 1.8rem;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text {
    flex-grow: 1;
    padding-left: 5px;
}

.info-text h3 {
    color: #005472;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-text p {
    color: #707070;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
}



/* 폼 섹션 스타일 */
.form-section {
    padding: 2rem 1rem 8rem 1rem;
    background-color: #fff;
}

.form-container {
    max-width: 100%;
    padding-top: 10px; /* 폼 컨테이너 상단에 약간의 패딩 추가 */
}

.form-container h2 {
    /* 기존 h2 스타일 유지하되 margin 조정 */
    margin-bottom: 1.2rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-weight: 500;
}

.input-group input[type="text"],
.input-group input[type="tel"],
.input-group input[type="date"],
.input-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.input-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23555555%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    padding-right: 2rem;
}

.privacy {
    margin-bottom: 1.5rem;
}

.privacy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.privacy-header label {
    font-size: 0.95rem;
    margin-left: 0.5rem;
    flex-grow: 1;
}

#privacyToggle {
    background: none;
    border: none;
    color: #838383;
    cursor: pointer;
    font-size: 0.8rem;
}

.privacy-content {
    display: none;
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid #eee;
    max-height: 150px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* 모바일 디바이스에서 부드러운 스크롤 */
    scrollbar-width: thin; /* Firefox용 스크롤바 스타일 */
    scrollbar-color: #ccc #f9f9f9; /* Firefox용 스크롤바 색상 */
}

/* 웹킷 기반 브라우저(Chrome, Safari 등) 스크롤바 스타일 */
.privacy-content::-webkit-scrollbar {
    width: 6px;
}

.privacy-content::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 4px;
}

.privacy-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.privacy-content p {
    font: 1em sans-serif;
    margin-bottom: 1rem;
    line-height: 1.5;
    padding-right: 5px; /* 스크롤바 고려하여 오른쪽 패딩 추가 */
}




.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #005472;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}


.btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    color: white;
    text-align: center;
}

.left-btn {
    background-color: #005472;
}

.right-btn {
    background-color: #9A6732;
}
/* 하단 고정 버튼 */
.bottom-buttons {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    display: flex;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 1);
    overflow: hidden;
}

/* 버튼 라이트 스윕 효과 */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 25%;
    height: 300%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(-16deg);
    animation: lightSweep 3s infinite ease-in-out;
}

.right-btn::before {
    animation-delay: 1.5s;
}

@keyframes lightSweep {
    0% {
        left: -100%;
        opacity: 0.7;
    }
    40% {
        left: 10%;
        opacity: 0.7;
    }
    100% {
        left: 120%;
        opacity: 0;
    }
}

/* 말풍선 스타일 */
.promotion-bubble {
    position: fixed;
    bottom: 70px;
    left: calc(50% - 90px);
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 7px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    z-index: 1001;
    animation: promotionPulse 2s infinite ease-in-out;
    border: 2px solid #FFD700;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.promotion-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #FFA500;
}

.promotion-bubble .small-text {
    font-size: 0.75rem;
  
    font-weight: 600;
    margin-bottom: 2px;
    opacity: 0.8;
}

.promotion-bubble .highlight-text {
    font-size: 1rem;
    font-weight: bold;
    color: #332604;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    overflow: hidden;
    position: relative;
    width: 140px;
}

.promotion-bubble .roulette-text {
    position: absolute;
    width: 100%;
    text-align: center;
    animation: rouletteSlide 8s infinite linear;
    white-space: nowrap;
    opacity: 0;
}

.promotion-bubble .roulette-text:nth-child(1) { animation-delay: 0s; }
.promotion-bubble .roulette-text:nth-child(2) { animation-delay: 2s; }
.promotion-bubble .roulette-text:nth-child(3) { animation-delay: 4s; }
.promotion-bubble .roulette-text:nth-child(4) { animation-delay: 6s; }

/* 룰렛 애니메이션 */
@keyframes rouletteSlide {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    12.5% {
        transform: translateY(0);
        opacity: 1;
    }
    25% {
        transform: translateY(0);
        opacity: 1;
    }
    37.5% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

/* 말풍선 애니메이션 */
@keyframes promotionPulse {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    }
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
}

/* 화면 크기에 따른 말풍선 위치 조정 */
@media (min-width: 501px) {
    .promotion-bubble {
        left: calc(50% - 125px);
    }
}

/* 실시간 방문자 표시 말풍선 */
.visitor-bubble {
    position: fixed;
    bottom: 70px;
    left: 45px;
    max-width: 150px; /* 말풍선 최대 너비 제한 */
    width: auto;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: floating 3s infinite ease-in-out;
    opacity: 0; /* 초기에는 투명하게 설정 */
    visibility: hidden; /* 초기에는 보이지 않게 설정 */
    transition: opacity 0.5s ease, visibility 0.5s ease; /* 부드러운 전환 효과 */
}

.visitor-bubble.visible {
    opacity: 1;
    visibility: visible;
}

.visitor-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);

    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.7);
}

/* 화면 크기에 따른 말풍선 위치 조정 */
@media (min-width: 501px) {
    .visitor-bubble {
        left: calc(50% - 170px); /* 화면 중앙에서 왼쪽으로 이동 */
    }
}

/* 둥둥 떠다니는 애니메이션 추가 */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 모바일 최적화 */
@media (max-width: 500px) {
    body {
        width: 100%;
    }
}

@media (min-width: 501px) {
    body {
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
    }
    
    .bottom-buttons {
        max-width: 500px;
    }
}

/* 페이지 하단 여백 (하단 버튼 높이만큼) */
body {
    padding-bottom: 60px;
}

/* 푸터 스타일 */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 45px;
    max-width: 100%;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-links {
    margin-top: 1.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copyright {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.6;
}
.completion-content {
    padding: 4rem 1.5rem;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.icon-success {
    font-size: 5rem;
    color: #005472;
    margin-bottom: 1.5rem;
}

.completion-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.completion-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.return-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: #005472;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
}


/* 섹션 1: 비디오 섹션 스타일 */
.video-section {
    position: relative;
    height: calc(100vh - 60px); 
    width: 100%;
    overflow: hidden;
}

.video-container {
    position: absolute;
    background: #030023;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 비디오 대체 이미지 스타일 */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/section1.png');
    background-size: cover;
    background-position: center;
    z-index: 2;
    opacity: 1;
    transition: opacity 1.5s ease;
}

.video-placeholder.fade-out {
    opacity: 0;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 1;
}

.video-wrapper.loaded {
    opacity: 1;
}

/* YouTube 컨테이너 스타일 */
.youtube-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 350%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.youtube-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.youtube-video.active {
    opacity: 1;
    z-index: 2;
}

/* 스마트폰 세로 모드에서 적절한 비율 유지 */
@media (max-aspect-ratio: 16/9) {
    .youtube-video {
        width: 300%;
        height: 100%;
    }
}

/* 스마트폰 가로 모드 또는 태블릿에서 적절한 비율 유지 */
@media (min-aspect-ratio: 16/9) {
    .youtube-video {
        width: 100%;
        height: 300%;
    }
}

/* 나머지 기존 스타일은 유지 */
.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10%; /* 그라데이션 높이 조절 가능 */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    z-index: 4;
}

.center-logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 60%;
}

.center-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.25));
}

.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.bottom-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 4;
}

.bottom-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 갤러리 섹션 스타일 */
.gallery-section {
    padding-bottom: 30px;
}

.gallery-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 15px;
    padding: 0 15px;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}



.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 위치 이미지 확대 기능 */
.location-image.gallery-item {

    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s ease;
}

.location-image.gallery-item.animated {
    transform: translateY(0);
    opacity: 1;
}

.location-image.gallery-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.location-image.gallery-item img {
    transition: transform 0.5s ease;
}


/* 방향별 애니메이션 정의 - info-item에도 적용 */
.info-item[data-direction="top"],
.gallery-item[data-direction="top"] {
    transform: translateY(30px);
    
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
                opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
                box-shadow 1.5s ease;
    will-change: transform, opacity;
}

.info-item[data-direction="right"],
.gallery-item[data-direction="right"] {
    transform: translateX(-30px);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
                opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
                box-shadow 0.5s ease;
    will-change: transform, opacity;
}

.info-item[data-direction="bottom"],
.gallery-item[data-direction="bottom"] {
    transform: translateY(-30px);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
                opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
                box-shadow 0.5s ease;
    will-change: transform, opacity;
}

.info-item[data-direction="left"],
.gallery-item[data-direction="left"] {
    transform: translateX(30px);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
                opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
                box-shadow 0.5s ease;
    will-change: transform, opacity;
}

.info-item[data-direction="center"],
.benefit-item[data-direction="center"] {
    transform: scale(0.95);
    opacity: 0;
    
    transition: transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
                opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), 
                box-shadow 0.5s ease;
    will-change: transform, opacity;
}

 .gallery-item[data-direction="center"] {
    transform: scale(0.95);
    opacity: 0;
    
    transition: transform 2.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
                opacity 2.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
                box-shadow 1s ease;
    will-change: transform, opacity;
}

.info-item.animated,
.gallery-item.animated,
.benefit-item.animated {
    transform: translate(0, 0) scale(1);
    opacity: 1;
    backface-visibility: hidden; /* 애니메이션 최적화를 위한 레이어 생성 */
    -webkit-font-smoothing: antialiased; /* 폰트 렌더링 개선 */
}

/* 혜택 아이템 방향별 스타일 */
.benefit-item[data-direction="center"] {
    transform: scale(0.95);
    opacity: 0;
}

.benefit-item[data-direction="right"] {
    transform: translateX(-30px);
    opacity: 0;
}

.benefit-item[data-direction="left"] {
    transform: translateX(30px);
    opacity: 0;
}

/* 팝업 스타일 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-container {
    position: relative;
    width: 90%;
    max-width: 400px;
    max-height: 80%;
    margin: 0 auto;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    animation: popupFadeIn 0.5s ease forwards;
    transform: scale(0.95);
}

@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.popup-close-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.popup-image {
    display: block;
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

/* 프로모션 박스 스타일 */
.promotion-box {
    background-color: #f8f4ff;
    border: 1px solid #d9c8ff;
    border-radius: 10px;
    padding: 10px;
    margin: 20px auto 10px;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.promotion-title {
    font-size: 1.5rem;
    white-space: nowrap;
    font-weight: 900;
    color: #005472;
    margin-bottom: 10px;
    text-align: center;
    animation: titleBounce 2s infinite ease-in;
}

@keyframes titleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

.promotion-text {
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.3;
    font-weight: 700;
}

.promotion-text span {
    border-bottom: #ff0000 3px dotted;
}

.promotion-text strong {
    color: #005472;
    font-weight: 700;
}

.promotion-note {
    font-size: 0.6rem;
    color: #666;
    text-align: center;
    margin-top: 15px;
}



/* 분양혜택 섹션 스타일 */
.benefit-section {
    padding: 30px 0;
}

.benefit-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100%;
    margin: 0 auto;
}

.benefit-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(88, 77, 227, 0.2);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease, box-shadow 0.3s ease;
}

.benefit-item.animated {
    transform: translateY(0);
    opacity: 1;
}

.benefit-item {
    position: relative; /* Add position relative to make absolute positioning work */
}

.benefit-item:nth-of-type(1) p::before {
    content: 'PREMIUM 1';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    left: 10px;

    border-radius: 8px;
    text-align: left;
    z-index: -1;
}
.benefit-item:nth-of-type(1) p::after {
    content: '';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    right: 10px;
    border-radius: 8px;
    text-align: right;
    z-index: -1;
}

.benefit-item:nth-of-type(2) p::before {
    content: 'PREMIUM 2';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    left: 10px;

    border-radius: 8px;
    text-align: left;
    z-index: -1;
}
.benefit-item:nth-of-type(2) p::after {
    content: '';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    right: 10px;
    border-radius: 8px;
    text-align: right;
    z-index: -1;
}


.benefit-item:nth-of-type(3) p::before {
    content: 'PREMIUM 3';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    left: 10px;

    border-radius: 8px;
    text-align: left;
    z-index: -1;
}
.benefit-item:nth-of-type(3) p::after {
    content: '';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    right: 10px;
    border-radius: 8px;
    text-align: right;
    z-index: -1;
}


.benefit-item:nth-of-type(4) p::before {
    content: 'PREMIUM 4';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    left: 10px;
    border-radius: 8px;
    text-align: left;
    z-index: -1;
}
.benefit-item:nth-of-type(4) p::after {
    content: '';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    right: 10px;
    border-radius: 8px;
    text-align: right;
    z-index: -1;
}


.benefit-item:nth-of-type(5) p::before {
    content: 'PREMIUM 5';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    left: 10px;
    border-radius: 8px;
    text-align: left;
    z-index: -1;
}
.benefit-item:nth-of-type(5) p::after {
    content: '';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    right: 10px;
    border-radius: 8px;
    text-align: right;
    z-index: -1;
}



.benefit-item:nth-of-type(6) p::before {
    content: 'PREMIUM 6';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    left: 10px;

    border-radius: 8px;
    text-align: left;
    z-index: -1;
}

.benefit-item:nth-of-type(6) p::after {
    content: '';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    right: 10px;
    border-radius: 8px;
    text-align: right;
    z-index: -1;
}

.benefit-item:nth-of-type(7) p::before {
    content: 'PREMIUM 7';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    left: 10px;

    border-radius: 8px;
    text-align: left;
    z-index: -1;
}

.benefit-item:nth-of-type(7) p::after {
    content: '';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    right: 10px;
    border-radius: 8px;
    text-align: right;
    z-index: -1;
}
.benefit-item:nth-of-type(8) p::before {
    content: 'PREMIUM 8';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    left: 10px;

    border-radius: 8px;
    text-align: left;
    z-index: -1;
}

.benefit-item:nth-of-type(8) p::after {
    content: '';
    position: absolute;
    font-size: 0.7rem;
    top: 2px;
    right: 10px;
    border-radius: 8px;
    text-align: right;
    z-index: -1;
}

.benefit-item p {
    color: #2e2a26;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-wrap: nowrap;
}

.benefit-item p span {
    font-size: 0.8rem;
    font-weight: 500;
}

.benefit-item p strong {
    color: #5a2123;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-wrap: nowrap;
}


/* 슬라이더 섹션 스타일 */
.slider-section {
    background-color: #F3EFE6;

    position: relative;
    overflow: hidden;
}

.slider-section::before,
.slider-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 5px;
    background-image: linear-gradient(
        to right,
        #005472 90%,
        transparent 50%
    );
    background-size: 450px 5px;
    animation: borderScroll 10s linear infinite;
}

.slider-section::before {
    top: 0;
}

.slider-section::after {
    bottom: 0;
    animation-direction: reverse;
}

@keyframes borderScroll {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 400px 0;
    }
}

.slider-container {
    width: 100%;
    overflow: hidden;
    margin: 5px auto;
}

.slider {
    
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    overflow: hidden;
    
}

.slide img {
    width: 100%;
    display: block;
}

/* 슬라이더 페이지네이션 스타일 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 10px;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background-color: #005472;
    transform: scale(1.2);
}

.pagination-bar {
    height: 4px;
    background-color: #919191;
    flex-grow: 1;
    margin: 0 5px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 30px;
}

.pagination-bar.active {
    background-color: #005472;
    height: 5px;
}

/* 스크롤 아이콘 스타일 */
.scroll-icon-container {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    cursor: pointer;
}

.scroll-icon {
    width: 25px;
    height: 40px;
    border: 4px solid #fff;
    border-radius: 15px;
    position: relative;
    margin-bottom: 8px;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    animation: scrollAnimation 2s infinite;
}

.scroll-text {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 스크롤 아이콘 애니메이션 */
@keyframes scrollAnimation {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
    60% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
}



/* 히어로 타이틀 스타일 */
.hero-title {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    width: 90%;
    text-wrap: nowrap;
    transition: top 0.8s ease-in-out;
}

.hero-title.moved {
    top: 50%;
}

/* 펄스 모션 텍스트 스타일 */
.pulse-text {
    background-color: #005472;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    animation: pulseMotion 2s infinite ease-in-out;
    box-shadow: 0 4px 15px rgba(4, 22, 71, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.pulse-text .highlight {
    color: #FFD700;
    font-weight: 700;
}

/* 펄스 모션 애니메이션 */
@keyframes pulseMotion {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(4, 22, 71, 0.3);
        border-color: rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(4, 22, 71, 0.5);
        border-color: rgba(255, 215, 0, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(4, 22, 71, 0.3);
        border-color: rgba(255, 215, 0, 0.3);
    }
}




.sparkle-text {
    text-shadow: -2px 2px 2px #000000, 2px 2px 2px #000000, 2px -2px 2px #000000, -2px -2px 2px #000000;
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
    color: #ffffff;

}



/* 유리 반짝임 애니메이션 */
@keyframes glassShine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 반짝이는 글로우 효과 */
@keyframes sparkleGlow {
    0% {
        text-shadow: 
            0 0 2px rgba(255, 221, 0, 0.8),
            0 0 2px rgba(255, 221, 0, 0.6),
            0 0 2px rgba(255, 221, 0, 0.4),
            2px 2px 1px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 
            0 0 2px rgba(255, 221, 0, 0.8),
            0 0 2px rgba(255, 221, 0, 0.6),
            0 0 2px rgba(255, 215, 0, 0.4),
            2px 2px 1px rgba(0, 0, 0, 0.5);
    }
    100% {
        text-shadow: 
            0 0 2px rgba(255, 221, 0, 0.8),
            0 0 2px rgba(255, 221, 0, 0.6),
            0 0 2px rgba(255, 221, 0, 0.4),
            2px 2px 1px rgba(0, 0, 0, 0.5);
    }
}

/* 반짝이는 점들 애니메이션 */
@keyframes sparklePoints {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    20% {
        opacity: 1;
        transform: scale(1.2);
    }
    40% {
        opacity: 0;
        transform: scale(1);
    }
    60% {
        opacity: 1;
        transform: scale(1.2);
    }
    80% {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* 스티키 헤더 스타일 */
.sticky-header {
    position: fixed;
    top: 59px; /* 기존 헤더 아래에 위치 */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background-color: #464646;
    color: white;
    padding: 8px 15px;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(-50%) translateY(-100%);
}

.sticky-header.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sticky-title-container {
    text-align: center;
}

.sticky-title {
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.sticky-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* POPUP 버튼 스타일 */
.popup-button {
    position: fixed;
    top: 130px; /* 스티키 헤더 아래 위치 */
    right: 0;
    z-index: 101;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    max-width: 500px;
    width: 60px;
    transform-origin: right center;
}

.popup-button:hover {
    transform: translateX(-5px);
}

.popup-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: #4D55B2;
    border-radius: 20px 0 0 20px;
    z-index: -1;
}

.popup-button::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    width: 50px;
    height: 40px;
    background-color: #4D55B2;
    z-index: -1;
    transition: width 0.3s ease;
}

.popup-button span {
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-left: 5px;
    line-height: 1.1;
}

/* 모바일 최적화 */
@media (min-width: 501px) {
    .popup-button {
        right: calc(50% - 250px); /* 화면 중앙 기준으로 오른쪽 배치 */
    }
    .popup-button::after{
        width: 20px;
    }
    .popup-button:hover:after {
    transition: width 0.3s ease;
    width: 25px;
    
    }


}

/* 최상단 이동 버튼 스타일 */
.top-button {
    position: fixed;
    top: 135px;
    right: 8px;
    width: 45px;
    height: 45px;
    background-color: #005472;
    color: white;
    border-radius: 50%;
    border: 2px solid #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.253);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.top-button.visible {
    opacity: 1;
    visibility: visible;
}



/* 화면 크기에 따른 최상단 버튼 위치 조정 */
@media (min-width: 501px) {
    .top-button {
        right: calc(50% - 250px + 20px);
    }
}

/* 혜택 리스트 스타일 */

.benefits-list {
    position: relative;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
    align-items: center;
    justify-content: center;
}

.benefits-list::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 40px 60px, #fff 100%, transparent),
        radial-gradient(1px 1px at 20px 50px, #fff 100%, transparent),
        radial-gradient(2px 2px at 30px 100px, #fff 100%, transparent),
        radial-gradient(2px 2px at 40px 60px, #fff7d1 100%, transparent),
        radial-gradient(2px 2px at 110px 90px, #fff 100%, transparent),
        radial-gradient(1px 1px at 80px 120px, #fff7d1 100%, transparent),
        radial-gradient(1.5px 1.5px at 160px 40px, #fff 100%, transparent),
        radial-gradient(1px 1px at 210px 60px, #fff 100%, transparent),
        radial-gradient(1.5px 1.5px at 260px 30px, #fff7d1 100%, transparent),
        radial-gradient(1px 1px at 300px 70px, #fff 100%, transparent),
        radial-gradient(2px 2px at 320px 100px, #fff 100%, transparent);
    background-size: 300px 200px;
    background-repeat: repeat;
    mix-blend-mode: screen;
    opacity: 0.7;
    z-index: -1;
    animation: movingStars 15s linear infinite;
}

@keyframes movingStars {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 400px -200px;
    }
}

@keyframes backgroundPulse {
    0% {
        background: radial-gradient(circle, rgba(4, 22, 71, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    }
    100% {
        background: radial-gradient(circle, rgba(25, 43, 94, 0.8) 0%, rgba(4, 12, 36, 0.9) 100%);
    }
}




.benefits-list.visible {
    opacity: 1;
    transform: translateY(0);
}


.benefit-text {
    width: 80%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 1.15rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    animation: benefitPulse 2s infinite ease-in-out;
}

.benefit-text.animate {
    opacity: 1;
    transform: translateY(0);
}

.exclusive-notice {
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(4, 22, 71, 0.9);
    color: #FFD700;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.exclusive-notice.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 혜택 텍스트 펄스 애니메이션 */
@keyframes benefitPulse {
    0% {
        box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
}





/* 혜택 텍스트 내 강조 텍스트를 위한 스타일 추가 */
.benefit-text .emphasis {
    color: #dc0000; /* 빨간색으로 설정 */
    font-size: 1.2rem; /* 기존 텍스트보다 약간 크게 설정 */
    font-weight: 700; /* 더 굵게 설정 */
}


.benefit-text .small {
    font-size: 0.8rem; /* 강조 텍스트보다 작게 설정 */
    color: #0000009b; /* 흰색으로 설정 */
    font-weight: 500; /* 중간 굵기로 설정 */

}

.benefit-text strong {
    font-size: 1.2rem; /* 강조 텍스트와 동일한 크기 */
    font-weight: 700; /* 강조 텍스트와 동일한 굵기 */
}