/* ============================================
   Category Hero - Short Text Design (20-30자)
   ============================================ */

.sok-category-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -10px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #faf9f7 0%, #f3f1ed 100%);
    overflow: hidden;
}

.sok-category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.02) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
}

/* PC Background Image */
.sok-category-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.sok-category-hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 40px;
}

/* Text Content */
.sok-category-hero-content {
    flex: 1;
    position: relative;
    padding-left: 20px;
}

.sok-category-hero-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 2px;
    background: linear-gradient(180deg, #a08060 0%, #c9b896 100%);
    border-radius: 1px;
}

.sok-category-hero-desc {
    font-family: 'Nanum Myeongjo', '나눔명조', serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: #3a3632;
    margin: 0;
    word-break: keep-all;
    letter-spacing: -0.02em;
}

/* Image */
.sok-category-hero-image {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    position: relative;
}

.sok-category-hero-image::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: -6px;
    bottom: -6px;
    background: linear-gradient(135deg, #a08060 0%, #c9b896 100%);
    opacity: 0.12;
}

.sok-category-hero-image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

/* No image style */
.sok-category-hero--no-image .sok-category-hero-inner {
    justify-content: center;
    max-width: 600px;
    padding: 28px 40px;
}

.sok-category-hero--no-image .sok-category-hero-content {
    text-align: center;
    padding-left: 0;
}

.sok-category-hero--no-image .sok-category-hero-content::before {
    display: none;
}

.sok-category-hero--no-image .sok-category-hero-desc {
    font-size: 17px;
}

/* ============================================
   Tablet
   ============================================ */
@media (max-width: 1024px) {
    .sok-category-hero-inner {
        padding: 28px 30px;
        gap: 30px;
    }
    
    .sok-category-hero-image {
        flex: 0 0 140px;
        width: 140px;
        height: 140px;
    }
    
    .sok-category-hero-desc {
        font-size: 16px;
    }
}

/* ============================================
   Mobile - Background image style
   ============================================ */
@media (max-width: 768px) {
    .sok-category-hero {
        margin-bottom: 20px;
        background: #252320;
    }
    
    .sok-category-hero::before {
        display: none;
    }
    
    .sok-category-hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover;
        background-position: center;
        opacity: 0.35;
    }
    
    .sok-category-hero-inner {
        flex-direction: column;
        padding: 36px 24px;
        gap: 0;
        justify-content: center;
    }
    
    .sok-category-hero-image {
        display: none;
    }
    
    .sok-category-hero-content {
        position: relative;
        z-index: 1;
        text-align: center;
        padding-left: 0;
        max-width: 100%;
    }
    
    .sok-category-hero-content::before {
        display: none;
    }
    
    .sok-category-hero-desc {
        font-size: 15px;
        line-height: 1.8;
        color: rgba(255, 255, 255, 0.92);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    /* No image mobile */
    .sok-category-hero--no-image {
        background: linear-gradient(135deg, #f5f3f0 0%, #ebe8e3 100%);
    }
    
    .sok-category-hero--no-image .sok-category-hero-desc {
        color: #3a3632;
        text-shadow: none;
    }
}

/* ============================================
   Small Mobile
   ============================================ */
@media (max-width: 480px) {
    .sok-category-hero-inner {
        padding: 30px 20px;
    }
    
    .sok-category-hero-desc {
        font-size: 14px;
    }
}

/* Hide slider when hero exists */
.sok-category-hero ~ .container .slider-container {
    display: none !important;
}

/* ============================================
   Mobile/PC Hero Text Separation
   ============================================ */

/* PC: category_exp 표시 (기본) */
.sok-hero-mobile {
    display: none;
}
.sok-hero-pc {
    display: block;
}

/* Mobile: keyword_exp 표시 */
@media (max-width: 768px) {
    .sok-hero-mobile {
        display: block;
    }
    .sok-hero-pc {
        display: none;
    }
}
