.banner-section {
    margin-bottom: 40px;
}

.banner {
    width: 100%;
    aspect-ratio: 1920 / 1107;
    background-color: #6a6e6f;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
}

.banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
}

.tab-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    background: #e0e0e0;
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab:hover {
    background: #d0d0d0;
}

.tab.active {
    background: #05529f;
    color: white;
    border-color: #05529f;
}

.color-palette {
    margin-top: 40px;
    margin-bottom: 100px;
}

.app-download-section {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 200px;
}

.app-download-section .elementor-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.app-download-section img {
    max-width: 200px;
    height: auto;
}

.palette-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.color-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 70px; /* 60px → 70px (버튼 공간 확보) */
}

.color-carousel {
    overflow: hidden;
    position: relative;
}

.color-grid {
    display: flex;
    gap: 20px;
    padding: 10px 10px;
    transition: transform 0.3s ease;
}

.scroll-button {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scroll-button:hover {
    background: #f5f5f5;
    border-color: #05529f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-button:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.scroll-button.left {
    left: 10px; /* 0 → 10px (화면 가장자리 여백) */
}

.scroll-button.right {
    right: 10px; /* 0 → 10px (화면 가장자리 여백) */
}

.scroll-button svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

.color-item {
    cursor: pointer;
    transition: transform 0.2s ease;
    text-align: center;
    flex-shrink: 0;
}

/* 데스크탑/태블릿: 10개 표시 */
@media (min-width: 769px) {
    .color-item {
        width: calc((100% - 180px) / 10);
    }
}

/* 모바일: 5개 표시 */
@media (max-width: 768px) {
    .color-item {
        width: calc((100% - 80px) / 5);
    }
}

.color-item:hover {
    transform: translateY(-4px);
}

.color-box {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 29px;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-item:hover .color-box {
    border-color: #05529f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.color-item.selected .color-box {
    border-color: #05529f;
    box-shadow: 0 4px 12px rgba(5,82,159,0.4);
}

.color-name {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.color-hex {
    font-size: 11px;
    color: #999;
    font-family: 'Courier New', monospace;
    margin-top: 4px;
}

.current-color-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 20px;
    text-align: center;
}

.current-color-info h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.current-color-display {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.current-color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.current-color-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 메인 비주얼 반응형 스타일 (미디어 쿼리 기반) */
.st-vis {
    width: 100% !important;
    max-width: 1900px !important;
    height: auto !important;
}

/* 데스크톱 (1024px 이상) */
@media (min-width: 1024px) {
    .st-vis {
        width: 1900px !important;
        left: -280px !important;
        height: auto !important;
        position: relative;
    }

    .st-vis-box {
        position: absolute !important;
        top: 130px !important;
        left: 68.16% !important;
        padding: 15px 20px !important;
        font-size: 14px !important;
        line-height: 1 !important;
        width: 180px !important;
        height: 150px !important;
        border: 3px solid white !important;
        border-radius: 12px !important;
    }

    .st-vis-box .item-tit {
        display: block;
        font-weight: 700;
        font-size: 14px;
    }

    .st-vis-box .item-code {
        display: block;
        font-weight: 900;
        font-size: 54px;
        margin-bottom: 6px;
    }

    .st-vis-box .item-name {
        display: block;
        font-weight: 900;
        font-size: 24px;
    }

    .st-vis-box .item-logo {
        position: absolute;
        bottom: 14px;
        width: 166px;
        max-width: 100%;
    }
}

/* 중간 해상도 (태블릿 769px ~ 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
    .st-vis-box {
        position: absolute !important;
        top: 80px !important;
        left: 60% !important;
        padding: 12px 16px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        width: 130px !important;
        height: 115px !important;
        border: 3px solid white !important;
        border-radius: 12px !important;
    }

    .st-vis-box .item-tit {
        display: block;
        font-weight: 700;
        font-size: 11px;
    }

    .st-vis-box .item-code {
        display: block;
        font-weight: 900;
        font-size: 40px;
        margin-bottom: 4px;
    }

    .st-vis-box .item-name {
        display: block;
        font-weight: 900;
        font-size: 18px;
    }

    .st-vis-box .item-logo {
        position: absolute;
        bottom: 12px;
        width: 120px;
        max-width: 100%;
    }

    .color-carousel-wrapper {
        padding: 0 70px;
        max-width: calc(100% - 40px); /* 좌우 여백 확보 */
    }

    .scroll-button {
        width: 40px;
        height: 40px;
    }

    .scroll-button.left {
        left: 10px;
    }

    .scroll-button.right {
        right: 10px;
    }

    .scroll-button svg {
        width: 18px;
        height: 18px;
    }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
    .st-vis-box {
        position: absolute !important;
        top: 20px !important;
        left: 60% !important;
        padding: 5px 6px !important;
        font-size: 5px !important;
        line-height: 1 !important;
        width: 45px !important;
        height: 18.5px !important;
        border: 1.5px solid white !important;
        border-radius: 6px !important;
    }

    .st-vis-box .item-tit {
        display: block;
        font-weight: 700;
        font-size: 5px;
    }

    .st-vis-box .item-code {
        display: block;
        font-weight: 900;
        font-size: 13.5px;
        margin-bottom: 1.5px;
    }

    .st-vis-box .item-name {
        display: none;
    }

    .st-vis-box .item-logo {
        display: none;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 22px;
    }

    .color-carousel-wrapper {
        padding: 0 65px; /* 버튼 + 여백 공간 확보 */
        max-width: calc(100% - 50px); /* 좌우 25px 여백 (30px → 50px) */
        margin: 0 auto;
    }

    .scroll-button {
        width: 36px;
        height: 36px;
    }

    .scroll-button.left {
        left: 10px; /* 화면 가장자리에서 10px */
    }

    .scroll-button.right {
        right: 15px; /* 화면 가장자리에서 15px (10px → 15px) */
    }

    .scroll-button svg {
        width: 16px;
        height: 16px;
    }

    .color-name {
        font-size: 11px;
    }

    .color-hex {
        font-size: 10px;
    }

    .tab {
        padding: 10px 16px;
        font-size: 12px;
    }
}
