/* =========================
   헤더 스타일
   ========================= */
   .header {
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* 그림자 효과 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navigation {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.auth-section {
    display: flex;
    gap: 15px;
}

.auth-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.auth-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* =========================
   모바일 사이드바
   ========================= */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* 비활성화 시 오른쪽으로 숨김 */
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 20px;
}

.mobile-sidebar.active {
    right: 0; /* 활성화 시 오른쪽에 표시 */
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

.sidebar-auth {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.sidebar-auth-btn {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.sidebar-auth-btn:hover {
    background: #8f6d47;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 20px;
}

.sidebar-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s;
}

.sidebar-menu a:hover {
    color: var(--primary-color);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* 반투명 오버레이 */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================
   애니메이션 클래스
   ========================= */
   .animate-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   반응형 디자인 (미디어 쿼리)
   ========================= */
@media (max-width: 1024px) {
    .navigation {
        display: none; /* 네비게이션 숨김 */
    }
    
    .auth-section {
        display: none; /* 인증 버튼 숨김 */
    }
    
    .menu-toggle {
        display: flex; /* 햄버거 버튼 표시 */
    }
    
    .content-item {
        gap: 50px;
    }
    
    .content-text h2 {
        font-size: 2rem;
    }
    
    .slide-content h1 {
        font-size: 3rem;
    }
    
    .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;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .auth-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .content-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        height: 50vh;
    }
    
    .auth-form {
        padding: 20px;
    }
    
    .mobile-sidebar {
        width: 250px;
        right: -250px;
    }
}

/* =========================
   부드러운 스크롤
   ========================= */
html {
    scroll-behavior: smooth;
}