/* =========================
   페이지 관리 (각 페이지 숨김/표시)
   ========================= */
   .page {
    display: none;
    min-height: 100vh;
    padding-top: 80px; /* 헤더 높이만큼 여백 */
}

.page.active {
    display: block;
}

/* =========================
   히어로(메인) 섹션
   ========================= */
.hero-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.hero-container {
    /* max-width: var(--max-width); */
    margin: 0 auto;
    height: 100%;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 어두운 오버레이 */
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* 텍스트 그림자 */
}

.slide-content p {
    font-size: 1.3rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(166, 131, 88, 0.8);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 3;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-color);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--accent-color);
}

/* =========================
   컨텐츠 섹션
   ========================= */
.content-section {
    padding: 70px 0;
    background: var(--bg-color);
}

.content-section:nth-child(even) {
    background: var(--light-gray);
}

.content-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.content-item {
    display: flex;
    align-items: center;
    gap: 200px;
}


.content-image {
width: 400px;
    height: 400px;
    max-width: 400px;
    max-height: 400px;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.content-text {
    flex: 1;
    max-width: 600px;
}

.content-text h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.accent-line {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-bottom: 30px;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* =========================
   반응형 디자인 (미디어 쿼리)
   ========================= */
@media (max-width: 1024px) {
    .navigation {
        display: none; /* 네비게이션 숨김 */
    }
    
    .auth-section {
        display: none; /* 인증 버튼 숨김 */
    }
    
    .menu-toggle {
        display: flex; /* 햄버거 버튼 표시 */
    }
    
    .content-item {
        gap: 50px;
    }
    
    .content-text h2 {
        font-size: 1.9rem; /* 2rem에서 줄임 */
    }
    
    .content-text p {
        font-size: 1rem; /* 줄임 */
    }
    
    .slide-content h1 {
        font-size: 2.8rem; /* 3rem에서 줄임 */
    }
    
    .slide-content p {
        font-size: 1.2rem; /* 줄임 */
    }
    
    .slider-btn {
        width: 50px; /* 60px에서 줄임 */
        height: 50px;
        font-size: 1.7rem; /* 2rem에서 줄임 */
        padding: 12px 15px; /* 줄임 */
    }
    
    .slider-btn.prev {
        left: 20px; /* 30px에서 줄임 */
    }
    
    .slider-btn.next {
        right: 20px; /* 30px에서 줄임 */
    }
    
    .dot {
        width: 10px; /* 12px에서 줄임 */
        height: 10px;
    }
    
    .slider-dots {
        gap: 12px; /* 15px에서 줄임 */
        bottom: 25px; /* 30px에서 줄임 */
    }
    
    .footer-content {
        display: flex; /* 반드시 필요 */
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
      }
    
      .footer-left, .footer-right {
        display: flex; /* 추가 */
        flex-direction: column; /* 추가 */
        align-items: center;
        text-align: center;
        justify-content: center;
      }
    
      .footer-logo img {
        display: block;
        margin: 0 auto;
      }
    
    .footer-links a {
        margin-left: 0;
        margin-right: 20px;
    }
    .logo-section img:first-child {
        width: 36px !important;
        height: 36px !important;
    }
    .logo-section img:last-child {
        width: 110px !important;
        height: 30px !important;
    }
}

@media (max-width: 768px) {
    .content-item {
        flex-direction: column; /* 세로 배치 */
        gap: 40px;
        text-align: center;
    }
    
    .content-item.right-image {
        flex-direction: column;
    }
    
    .content-text h2 {
        font-size: 1.7rem; /* 더 줄임 */
    }
    
    .content-text p {
        font-size: 0.95rem; /* 더 줄임 */
    }
    
    .slide-content h1 {
        font-size: 2.3rem; /* 2.5rem에서 줄임 */
    }
    
    .slide-content p {
        font-size: 1.05rem; /* 1.1rem에서 줄임 */
    }
    
    .slider-btn {
        width: 45px; /* 50px에서 더 줄임 */
        height: 45px;
        font-size: 1.4rem; /* 1.5rem에서 줄임 */
        padding: 10px 12px; /* 더 줄임 */
    }
    
    .slider-btn.prev {
        left: 15px; /* 더 줄임 */
    }
    
    .slider-btn.next {
        right: 15px; /* 더 줄임 */
    }
    
    .dot {
        width: 9px; /* 더 줄임 */
        height: 9px;
    }
    
    .slider-dots {
        gap: 10px; /* 더 줄임 */
        bottom: 20px; /* 더 줄임 */
    }
    
    .content-image {
        width: 320px; /* 400px에서 줄임 */
        height: 320px;
        max-width: 320px;
        max-height: 320px;
    }
    
    .auth-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 1.8rem; /* 2rem에서 더 줄임 */
    }
    
    .slide-content p {
        font-size: 0.95rem; /* 더 줄임 */
    }
    
    .content-text h2 {
        font-size: 1.5rem; /* 1.8rem에서 더 줄임 */
    }
    
    .content-text p {
        font-size: 0.9rem; /* 더 줄임 */
    }
    
    .hero-section {
        height: 50vh;
    }
    
    .slider-btn {
        width: 40px; /* 더 작게 */
        height: 40px;
        font-size: 1.2rem; /* 더 작게 */
        padding: 8px 10px; /* 더 작게 */
    }
    
    .slider-btn.prev {
        left: 10px; /* 더 가까이 */
    }
    
    .slider-btn.next {
        right: 10px; /* 더 가까이 */
    }
    
    .dot {
        width: 8px; /* 더 작게 */
        height: 8px;
    }
    
    .slider-dots {
        gap: 8px; /* 더 줄임 */
        bottom: 15px; /* 더 줄임 */
    }
    
    .content-image {
        width: 280px; /* 더 작게 */
        height: 280px;
        max-width: 280px;
        max-height: 280px;
    }
    
    .content-section {
        padding: 50px 0; /* 70px에서 줄임 */
    }
    
    .auth-form {
        padding: 20px;
    }
    
    .mobile-sidebar {
        width: 250px;
        right: -250px;
    }
}

/* =========================
   부드러운 스크롤
   ========================= */