/* Index Page Specific Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(43, 77, 160, 0.3), rgba(0, 10, 85, 0.2)), 
                url('../img/index_hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(245, 158, 11, 0.1) 50%, transparent 70%);
    animation: heroShine 3s ease-in-out infinite;
}

@keyframes heroShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

/* Hero Brand Section */
.hero-content-wrapper {
    animation: fadeInUp 1s ease-out;
}

.hero-brand-section {
    text-align: center;
}

.hero-brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-brand-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.5s ease;
}

.hero-brand-title {
    color: white;
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.hero-text-section {
    margin-top: 2rem;
}

.hero-subtitle {
    font-size: 2.6rem;
    opacity: 1;
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight: 500;
    line-height: 1.4;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Product Section */
#products {
    background-color: transparent;
}

#products .section-title {
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

#products .section-subtitle {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: normal;
    margin-bottom: 0.6rem;
}

/* Product Tabs */
.product-tabs-container {
    margin-bottom: 0;
}

.product-tabs {
    border: 2px solid var(--border-color);
    border-bottom: none;
    margin-bottom: 0;
    display: flex;
    justify-content: flex-start;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    border-radius: 0;
    position: relative;
    z-index: 2;
}

.product-tabs .nav-item {
    margin: 0;
    flex: 1;
}

.product-tabs .nav-link {
    background: #2b4da0 !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    padding: 1rem 2rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    position: relative;
    width: 100%;
    text-align: center;
    border-right: 1px solid var(--border-color) !important;
}

/* 첫 번째 탭 - 둥근 모서리 제거 */
.product-tabs .nav-item:first-child .nav-link {
    border-radius: 0;
}

/* 마지막 탭 - 둥근 모서리 제거 */
.product-tabs .nav-item:last-child .nav-link {
    border-radius: 0;
    border-right: none;
}

.product-tabs .nav-link:hover {
    color: white !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border-color: var(--primary-color) !important;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.product-tabs .nav-link.active {
    background: white !important;
    border: none !important;
    color: var(--primary-color) !important;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Product Tab Content */
.product-tab-content {
    background: white;
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* Product Slider */
.product-slider-container {
    position: relative;
    overflow: visible; /* 버튼이 보이도록 변경 */
    padding: 0 70px; /* 버튼 공간 확보 */
}

.product-slider {
    overflow: hidden;
    border-radius: 15px;
}

.product-slide {
    width: 100%;
}

/* 모바일용 단일 제품 슬라이더 */
@media (max-width: 768px) {
    /* 전체 섹션 패딩 최소화 */
    #products .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .product-tab-content {
        padding: 2rem 5px !important; /* 매우 작은 좌우 패딩 */
    }
    
    .product-slider-container {
        padding: 0 55px; /* 버튼 공간만 최소한 확보 */
        margin: 0;
    }
    
    .product-slider {
        display: block;
        transition: all 0.3s ease;
        margin: 0;
    }
    
    .product-slide {
        width: 100%;
        padding: 0;
    }
    
    .product-slide .row {
        margin: 0;
        justify-content: center;
    }
    
    .product-slide .col-md-4 {
        display: none !important;
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    
    /* JavaScript에서 동적으로 보여질 제품 */
    .product-slide .col-md-4[style*="display: block"] {
        display: block !important;
    }
    
    /* 모바일에서 제품 아이템 스타일링 - 화면 가득 채우기 */
    .product-item {
        max-width: 100%;
        margin: 0;
        height: 100%;
        border-radius: 10px; /* 둥근 모서리 약간 줄이기 */
    }
    
    .product-image {
        height: 280px; /* 이미지 높이 증가 */
        border-radius: 10px 10px 0 0;
    }
    
    .product-info {
        padding: 1.5rem 1rem;
    }
    
    .product-info h5 {
        font-size: 1.3rem; /* 제목 크기 증가 */
        margin-bottom: 0.8rem;
    }
    
    .product-info p {
        font-size: 1rem; /* 설명 텍스트 크기 증가 */
        line-height: 1.5;
    }
}

.product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

/* hover 효과는 링크에서만 처리하도록 제거 */

.product-image {
    height: 250px;
    overflow: hidden;
    background: linear-gradient(45deg, #e5e7eb, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.2rem;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-info p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 제품 링크 스타일 */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-link:hover .product-item {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    position: absolute;
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.slider-btn.prev-btn {
    left: 0;
}

.slider-btn.next-btn {
    right: 0;
}

.slider-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(43, 77, 160, 0.4);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.slider-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Success Partner Section */
.success-partner {
    position: relative;
    overflow: hidden;
}

.success-partner-background {
    background: linear-gradient(135deg, 
        rgba(43, 77, 160, 0.2) 0%, 
        rgba(0, 10, 85, 0.15) 100%),
        url('../img/partner_bg.png') center/cover no-repeat;
    background-attachment: scroll;
    min-height: 200vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 200px 0;
}

/* 모바일에서 성공파트너 섹션 높이 조정 */
@media (max-width: 768px) {
    .success-partner-background {
        min-height: 120vh;
        padding: 100px 0;
    }
    
    /* 모바일에서 4개 이미지를 2x2 그리드로 배치 */
    .success-partner .row.mb-5 {
        margin-left: -0.05rem;
        margin-right: -0.05rem;
        margin-bottom: 0.3rem !important;
    }
    
    .success-partner .row.mb-5 .col-lg-3,
    .success-partner .row.mb-5 .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0.05rem;
        margin-bottom: 0.05rem;
    }
}

.success-partner-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(43, 77, 160, 0.3) 0%,
        rgba(0, 10, 85, 0.4) 50%,
        rgba(43, 77, 160, 0.3) 100%
    );
    z-index: 1;
}

.success-partner-background .container {
    position: relative;
    z-index: 2;
}

.success-partner-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(43, 77, 160, 0.3) 0%,
        rgba(0, 10, 85, 0.4) 50%,
        rgba(43, 77, 160, 0.3) 100%
    );
    z-index: 1;
}

.success-partner-background .container {
    position: relative;
    z-index: 2;
}

.success-partner-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-top: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
}

.success-partner-subtitle {
    color: white;
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 6rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    text-align: center;
}

.success-feature-box {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    height: auto;
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    margin: 0;
    padding: 0;
}

.success-feature-box:hover {
    transform: none;
    box-shadow: none;
}

.success-feature-image {
    height: 650px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-feature-image img {
    width: 320px;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.success-feature-box:hover .success-feature-image img {
    transform: none;
}

.success-feature-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    text-align: center;
    width: 250px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-feature-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.success-feature-box {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    height: auto;
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    margin: 0;
    padding: 0;
}

.success-feature-box:hover {
    transform: none;
    box-shadow: none;
}

.success-feature-image {
    height: 650px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-feature-image img {
    width: 320px;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.success-feature-box:hover .success-feature-image img {
    transform: none;
}

.success-feature-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    text-align: center;
    width: 250px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-feature-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* 데스크탑에서만 CSS Grid 사용하여 완전한 간격 제거 */
@media (min-width: 769px) {
    .success-partner .row.mb-5 {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr 1fr !important;
        grid-gap: 0 !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 모든 Bootstrap 클래스 무력화 */
    .success-partner .row.mb-5 > * {
        all: unset !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .success-partner .row.mb-5 > .col-lg-3,
    .success-partner .row.mb-5 > .col-md-6,
    .success-partner .col-lg-3,
    .success-partner .col-md-6,
    .success-partner [class*="col-"] {
        all: unset !important;
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        outline: none !important;
    }
    
    /* mb-4 클래스도 무력화 */
    .success-partner .mb-4 {
        margin-bottom: 0 !important;
    }
}

/* 데스크탑에서 모든 간격 완전 제거 */
@media (min-width: 769px) {
    .success-partner .success-feature-box {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        width: 100% !important;
        display: block !important;
    }
    
    .success-partner .row.mb-5 > .col-lg-3 {
        margin-bottom: 0 !important;
    }
}

.success-guarantee-title {
    color: white;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10rem;
    margin-top: 8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
}

.highlight-text {
    color: #92b2ff;
}

/* guarantee 섹션 가로 배치 강제 */
.success-partner .row.justify-content-center {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
}

/* 모바일에서는 세로 배치로 변경 */
@media (max-width: 768px) {
    .success-partner .row.justify-content-center {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }
}

.success-partner .row.justify-content-center .col-lg-4,
.success-partner .row.justify-content-center .col-md-4 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    padding: 0 0.5rem !important;
}

.guarantee-item {
    margin-bottom: 2rem;
    text-align: center;
}

.guarantee-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    text-align: center;
}

.guarantee-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.guarantee-icon:hover {
    transform: translateY(-5px) scale(1.05);
}

.guarantee-icon i {
    font-size: 3rem;
    color: white;
}

.guarantee-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* Partnership Section */
.partnership {
    background: white;
}

/* 파트너 로고 컨테이너 크기: 가로 100%, 높이 100px */
.partner-logo {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100px; /* 로고 컨테이너 고정 높이 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 파트너 로고 이미지 크기: 최대 가로 100%, 최대 높이 60px */
.partner-logo img {
    max-width: 100%; /* 컨테이너 너비를 초과하지 않음 */
    max-height: 60px; /* 최대 높이 60px로 제한 */
    object-fit: contain; /* 비율 유지하며 크기 조정 */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover img {
    opacity: 1;
}

/* Contact Section */
.contact {
    background: transparent;
}

.contact-title {
    text-align: left;
}

.contact-title .section-title {
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.contact-title .section-subtitle {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: normal;
    margin-bottom: 0;
}

.contact-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    padding-top: 60px;
}

.contact-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

/* 모바일에서 contact 이미지 영역 숨기기 */
@media (max-width: 991px) {
    .contact .col-lg-4 {
        display: none;
    }
    
    .contact .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form .form-control {
    border: 2px solid #e5e7eb;
    padding: 15px;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Location Section */
.location {
    background: white;
}

.location .section-title {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.location .section-subtitle-inline {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: normal;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
    height: 540px;
}

#daumRoughmapContainer1751939936511 {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#daumRoughmapContainer1751939936511 .daum_roughmap {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(45deg, #e5e7eb, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.2rem;
    border-radius: 15px;
}

.location-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: auto;
}

.location-info h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-item i {
    font-size: 1.2rem;
    width: 24px;
}

/* Tablet responsive - prevent tab wrapping */
@media (max-width: 1024px) and (min-width: 769px) {
    .product-tabs .nav-link {
        padding: 1rem 1.5rem !important;
        font-size: 0.95rem !important;
        min-width: 150px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-brand-container {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .hero-brand-title {
        font-size: 3rem;
    }
    
    .hero-brand-logo {
        height: 65px;
    }
    
    .hero-subtitle {
        font-size: 2.2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin-bottom: 1rem;
    }
    
    /* Product Tabs Mobile */
    .product-tabs {
        flex-wrap: wrap;
        justify-content: stretch;
        gap: 0.5rem;
    }
    
    .product-tabs .nav-item {
        margin: 0;
        flex: 1 1 calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
    }
    
    .product-tabs .nav-link {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
        min-width: 100%;
        width: 100%;
        height: 60px;
        border-radius: 8px !important;
        border-right: 2px solid var(--border-color) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.2;
    }
    
    /* 위에서 이미 정의됨 - 중복 제거 */
    
    /* 모바일에서 슬라이더 버튼 위치 조정 */
    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .slider-btn.prev-btn {
        left: 5px;
    }
    
    .slider-btn.next-btn {
        right: 5px;
    }
    
    .success-partner-title {
        font-size: 2.5rem;
    }
    
    .success-partner-subtitle {
        font-size: 1.2rem;
        margin-bottom: 3rem;
    }
    
    .success-feature-box {
        margin-bottom: 0.2rem;
    }
    
    .success-feature-image {
        height: 400px;
    }
    
    .success-feature-image img {
        width: 200px;
    }
    
    .success-feature-content {
        width: 220px;
        height: 90px;
    }
    
    .success-guarantee-title {
        font-size: 2rem;
    }
    
    .guarantee-title {
        font-size: 1.2rem;
        margin: 0 0 1rem 0;
    }
    
    .guarantee-icon {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .guarantee-icon i {
        font-size: 2.5rem;
    }
    
    .guarantee-icon img {
        width: 100px;
        height: 100px;
    }
    
    /* 모바일에서 세로 정렬 */
    .success-partner .row.justify-content-center .col-lg-4,
    .success-partner .row.justify-content-center .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 2rem !important;
        display: block !important;
        margin-bottom: 1rem !important;
    }
    
    .guarantee-item {
        margin-bottom: 2rem;
        padding: 0;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .location-info {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-brand-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-brand-title {
        font-size: 2.8rem;
    }
    
    .hero-brand-logo {
        height: 60px;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Product Tabs Mobile */
    .product-tabs {
        gap: 0.4rem;
    }
    
    .product-tabs .nav-item {
        margin: 0;
        flex: 1 1 calc(50% - 0.2rem);
        max-width: calc(50% - 0.2rem);
    }
    
    .product-tabs .nav-link {
        padding: 0.8rem 0.4rem;
        font-size: 0.8rem;
        min-width: 100%;
        width: 100%;
        height: 55px;
        border-radius: 6px !important;
        border-right: 2px solid var(--border-color) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.1;
    }
    
    /* 소형 모바일에서 더 극적인 여백 제거 */
    #products .container {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .product-tab-content {
        padding: 1.5rem 2px !important; /* 거의 제로에 가까운 패딩 */
    }
    
    .product-slider-container {
        padding: 0 45px; /* 버튼 공간 더 축소 */
    }
    
    .product-item {
        border-radius: 8px; /* 더 작은 둥근 모서리 */
    }
    
    .product-image {
        height: 240px !important; /* 소형 화면에 맞게 조정 */
        border-radius: 8px 8px 0 0;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-btn.prev-btn {
        left: 10px;
    }
    
    .slider-btn.next-btn {
        right: 10px;
    }
    
    .success-partner-title {
        font-size: 2rem;
    }
    
    .success-partner-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
        margin-bottom: 2rem;
    }
    
    .success-feature-box {
        margin-bottom: 2rem;
    }
    
    .success-feature-image {
        height: 420px;
    }
    
    .success-feature-image img {
        width: 250px;
    }
    
    .success-feature-content {
        padding: 1rem;
        width: 200px;
        height: 80px;
    }
    
    .success-feature-title {
        font-size: 1rem;
    }
    
    .success-guarantee-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .guarantee-title {
        font-size: 1.1rem;
        margin: 0 0 0.8rem 0;
    }
    
    .guarantee-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .guarantee-icon i {
        font-size: 2rem;
    }
    
    .guarantee-icon img {
        width: 80px;
        height: 80px;
    }
    
    /* 작은 모바일에서도 세로 정렬 */
    .success-partner .row.justify-content-center .col-lg-4,
    .success-partner .row.justify-content-center .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 1.5rem !important;
        display: block !important;
        margin-bottom: 1rem !important;
    }
    
    .guarantee-item {
        margin-bottom: 1.5rem;
        padding: 0;
    }
    
    .success-feature-box {
        margin-bottom: 0.2rem;
    }
    
    .success-feature-image {
        height: 420px;
    }
    
    .success-feature-image img {
        width: 250px;
    }
    
    .success-feature-content {
        padding: 1rem;
        width: 200px;
        height: 80px;
    }
    
    .success-feature-title {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* 매우 간단한 flexbox 슬라이더 */
.product-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.product-slider-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.3s ease;
    width: auto;
    gap: 2rem;
}

.product-slider-item {
    flex: 0 0 calc(33.333% - 1.33rem); /* 3개가 한 줄에 들어가도록 */
    min-width: 280px;
    max-width: 400px;
}

.product-slider-item .product-item {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Bootstrap 클래스들 무력화 */
.product-slider-item .col-md-4,
.product-slider-item [class*="col-"] {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
}

/* 기존 Bootstrap grid 완전 무력화 */
.product-slider-container .row,
.product-slider-container [class*="col-"] {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
}

/* 모든 기존 product 관련 CSS 무력화 */
.product-slider-container .product-slide {
    display: none !important;
}

/* 추가적인 강제 규칙 */
.product-slider-wrapper {
    white-space: nowrap !important;
    overflow: hidden !important;
}

.no-products {
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 모바일에서는 1개씩 보이도록 */
@media (max-width: 768px) {
    .product-slider-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

/* 데스크톱에서 3개씩 보이도록 */
@media (min-width: 1025px) {
    .product-slider-item {
        width: calc(33.333% - 2rem) !important;
        min-width: 300px !important;
        max-width: 400px !important;
    }
    
    .product-slider-wrapper {
        width: 100% !important;
    }
    
    .product-slider-track {
        width: auto !important;
        min-width: 100% !important;
    }
}

/* 태블릿에서는 2개씩 보이도록 */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-slider-item {
        flex: 0 0 calc(50% - 1rem);
        width: calc(50% - 1rem);
        min-width: calc(50% - 1rem);
    }
}

/* Product placeholder styles */
.product-item.placeholder {
    opacity: 0.3;
    pointer-events: none;
}

.placeholder-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

.placeholder-image::before {
    content: '이미지 없음';
    color: #6c757d;
    font-size: 14px;
}

/* No image fallback */
img[src='assets/img/no-image.jpg'] {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

img[src='assets/img/no-image.jpg']::after {
    content: '이미지를 찾을 수 없습니다';
    color: #6c757d;
    font-size: 14px;
    display: block;
}
