/* ==========================================
   기본 설정 (Reset & Typography)
=========================================== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --bg-color: #000000;
    --card-bg: rgba(30, 30, 30, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-color: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(15px) saturate(180%);
    --card-radius: 20px;
    --btn-radius: 24px;
    --primary-font: 'Inter', 'Pretendard', sans-serif;
}

/* ==========================================
   Shared Shell Overrides
=========================================== */
.main-nav a.nav-active {
    color: var(--text-primary);
}

/* ==========================================
   3. FOOTER (Refined & Consolidated)
=========================================== */
.site-footer {
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3.5rem 2rem 2.5rem;
    color: var(--text-secondary);
    font-family: var(--primary-font);
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 3.5rem;
    align-items: start;
}

.footer-support {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-support-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.6px;
    margin-bottom: 0.1rem;
}

.footer-support-hours {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.65rem 1.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.btn-contact:hover {
    background: #fff;
    color: #000;
    transform: translateY(-1px);
}

.footer-social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.25rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    color: #fff;
}

.footer-social-link .icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    transition: all 0.2s ease;
}

.footer-social-link:hover .icon {
    background: rgba(255, 255, 255, 0.15);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.footer-link-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-column h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.footer-link-column a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    transition: all 0.25s ease;
    width: fit-content;
}

.footer-link-column a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

.footer-legal-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

.footer-legal-links a strong {
    color: var(--text-primary);
    font-weight: 700;
}

.footer-legal-links a:hover {
    color: #fff;
}

.footer-info-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.8;
}

.footer-company-more {
    margin-top: 0.5rem;
}

.footer-company-name, .company-info strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-company-more a {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    opacity: 0.8;
}

.footer-company-more a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}

/* ==========================================
   Shared Shell Overrides
=========================================== */
.main-nav a.nav-active {
    color: var(--text-primary);
}


/* ==========================================
   Shared Shell Overrides
=========================================== */
.main-nav a.nav-active {
    color: var(--text-primary);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--primary-font);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul,
li {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* 터치 대상 최소 크기 보장 (모바일 최적화) */
button,
input,
select,
.btn-link {
    min-height: 44px;
    min-width: 44px;
}

/* ==========================================
   Responsive Display Utilities
=========================================== */
.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

.desktop-only-flex {
    display: flex !important;
}

.mobile-only-flex {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .desktop-only-flex {
        display: none !important;
    }

    .mobile-only-flex {
        display: flex !important;
    }
}

/* ==========================================
   1. HEADER
=========================================== */
.site-header {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.5px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-image {
    display: block;
    width: auto;
    height: 34px;
    max-width: 180px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    font-weight: 500;
}

.main-nav a {
    color: var(--text-secondary);
    font-size: 1rem;
}

.main-nav a:hover {
    color: var(--text-primary);
}

.header-utils {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--btn-radius);
    padding: 0.5rem 1.2rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    width: 180px;
    font-size: 0.9rem;
}

.search-bar input::placeholder {
    color: #888;
}

/* 드롭다운 시인성 해결 */
select {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: var(--btn-radius);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    outline: none;
}

option {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* 사용자 메뉴 스타일 (JS에서 동적으로 들어옴) */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    border-radius: 30px;
    transition: all 0.3s;
}

.user-profile-btn:hover {
    background: var(--glass-border);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--glass-border);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-login-main {
    background: var(--accent-color);
    color: #000;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-login-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* ==========================================
   2. MAIN CONTENT
=========================================== */
.main-content {
    max-width: 1400px;
    /* 사이드바를 위해 조금 더 넓게 조정 */
    margin: 0 auto;
    padding: 3rem 2rem;
}

.index-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.sidebar-nav {
    width: 240px;
    position: sticky;
    top: 100px;
    flex-shrink: 0;
}

.content-area {
    flex: 1;
    min-width: 0;
}

/* 2-1. Sidebar Category Nav */
.sidebar-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    font-weight: 800;
}

/* 2-2. Main Page Category Grid (Horizontal & Premium) */
.category-grid {
    margin-top: 3rem;
    padding: 0 1rem;
}

.category-grid ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap; /* 일자로 배치 */
    overflow-x: auto; /* 모바일 대응용 스크롤 허용 */
    padding: 1.5rem 1rem; /* 상단 패딩 추가하여 짤림 방지 */
    scrollbar-width: none;
}

.category-grid ul::-webkit-scrollbar {
    display: none; /* 크롬/사파리용 */
}

.category-grid li {
    flex-shrink: 0;
}

.category-grid li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 1.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 120px; /* 너비 소폭 확장 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.category-grid li a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.category-grid li a .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: inherit;
}

.category-grid li a:hover .icon {
    background: #fff;
    color: #000;
}

.category-grid li a svg {
    width: 20px;
    height: 20px;
}

.category-sidebar li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-sidebar li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(4px);
}

.category-sidebar li.active a {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-color: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-sidebar .icon {
    font-size: 1.2rem;
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-sidebar li a .cat-label {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-sidebar li a .cat-count {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0.14rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
}

/* 2-2. Hero Section (광고) */
.hero-section {
    margin-bottom: 4rem;
}

.main-ad-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.main-ad-banner h2 {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3em;
    font-weight: 900;
}

.banner-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.banner-hero-slide.is-active {
    opacity: 1;
}

.banner-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.banner-nav {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.banner-nav:hover {
    background: rgba(255, 255, 255, 0.16);
}

.banner-dot {
    transition: transform 0.2s ease, background 0.2s ease;
}

.banner-dot.active {
    transform: scale(1.15);
}

/* 기존 category-grid 스타일 제거 또는 대체 */

/* 2-2. Class Lists Section */
.class-group {
    margin-bottom: 3rem;
}

.group-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* 공통 카드 그리드 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
}

.class-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    transition: transform 0.2s ease;
}

.class-card:hover {
    transform: translateY(-4px);
}

.card-thumbnail {
    width: 100%;
    height: 160px;
    background-color: #222;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.class-card:hover .card-thumbnail img {
    transform: scale(1.08);
}

/* 카드 뱃지 스타일 */
.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge-coupon {
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-discount {
    background: #ffffff;
    color: #ff4757;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-bookmark {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 2;
    transition: transform 0.2s, background 0.2s;
}

.btn-bookmark:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.6);
}

.badge-award {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #a55eea, #8854d0);
    color: white;
    padding: 8px 12px;
    border-top-left-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.placeholder-orange {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%);
}

/* 추천 클래스 (3단 컬럼) */
/* 큐레이션 영역 (이미지 기반 고도화) */
.curated-sections-dark {
    background: #0c0c0c;
    border-radius: 40px;
    padding: 4rem 3rem;
    margin-bottom: 5rem;
}

.curated-sections-dark .class-group {
    margin-bottom: 4rem;
}

.curated-sections-dark .class-group:last-child {
    margin-bottom: 0;
}

.curated-sections-dark .group-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
}

/* 추천 컬럼 카드 (이미지 스타일 반영) */
.recommend-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    justify-content: center;
}

.recommend-column {
    background: #f4f4f4;
    border-radius: 28px;
    padding: 2rem;
    color: #000;
    transition: transform 0.3s ease;
}

.recommend-column:hover {
    transform: translateY(-5px);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.header-text h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 0.4rem;
}

.header-text .desc {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.btn-more-arrow {
    background: #333;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.btn-more-arrow:hover {
    background: #000;
    transform: scale(1.1);
}

/* 미니 카드 목록 (추천 세션 내부) */
.mini-card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-class-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
    background: transparent;
    border-radius: 12px;
    transition: background 0.2s;
}

.mini-class-card:hover {
    background: rgba(0,0,0,0.03);
}

.mini-thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: #ff7a00; /* 주황색 플레이스홀더 */
    flex-shrink: 0;
}

.mini-info .m-title {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.3rem;
}

.mini-info .m-meta {
    font-size: 0.8rem;
    color: #777;
}

.list-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    align-items: center;
    padding: 0.8rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.list-item:hover {
    background: var(--glass-bg);
}

.item-thumbnail {
    width: 90px;
    height: 65px;
    border-radius: 10px;
    background-color: #222;
    flex-shrink: 0;
}

/* 카드 텍스트 정보 */
.card-info {
    padding: 0.6rem 0.2rem 0.8rem 0.2rem;
}

.card-info .category {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.card-info .title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.9rem;
}

.card-info .creator {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    display: block;
}

.card-info .meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-info .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffb100;
    font-weight: 700;
    font-size: 0.85rem;
}

.card-info .price-area {
    margin-top: 0.4rem;
    display: flex;
    align-items: baseline;
    gap: 8px;
    border-top: none;
    padding-top: 0;
}

.card-info .original-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.card-info .current-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* 2-3. 하단 배너 */
.bottom-banner-section {
    margin-top: 3rem;
    padding: 0;
}

.bottom-banner-section .banner-bottom-shell {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 1.25rem 4.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.banner-bottom-stage {
    position: relative;
    min-height: 280px;
}

.banner-bottom-slide {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(72vw, 1000px);
    aspect-ratio: 16 / 3;
    border-radius: 28px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.86);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, filter 0.6s ease;
    will-change: transform, opacity, filter;
}

.banner-bottom-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111;
}

.banner-bottom-shell .banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.banner-bottom-shell .banner-nav-prev {
    left: 1rem;
}

.banner-bottom-shell .banner-nav-next {
    right: 1rem;
}

/* ==========================================
   3. FOOTER
=========================================== */


/* ==========================================
   반응형 (Responsive) 및 Apple UX 최적화
=========================================== */
@media (max-width: 1024px) {
    .index-layout {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar-nav {
        width: 100%;
        position: relative;
        top: 0;
    }

    .category-sidebar ul {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-sidebar ul::-webkit-scrollbar {
        display: none;
    }

    .category-sidebar li {
        flex: 0 0 auto;
    }

    .sidebar-title {
        display: none;
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 1rem;
    }

    .main-nav {
        display: none;
    }

    .search-bar {
        display: none;
    }

    .card-grid,
    .large-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-inner {
        gap: 3rem;
    }

    .footer-legal-links {
        gap: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {

    .card-grid,
    .large-grid {
        grid-template-columns: 1fr;
        /* 모바일 세로 모드에서는 1열 */
    }

    .category-sidebar ul {
        gap: 8px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    button,
    input,
    select,
    textarea {
        font-size: 16px;
        /* iOS 자동 확대 방지 */
    }
}
