/* Cases Section - 성공사례 */
.cases {
    background: url('../../images/main/section_03_bg.jpg') center center / cover no-repeat;
}

.cases .container {
    gap: 40px;
}

.cases .section-nav {
    flex: 0 0 150px;
    width: 150px;
}

.cases .section-content {
    flex: 1;
}

.cases-header {
    text-align: center;
    margin-bottom: 60px;
}

.cases-subtitle {
    color: rgba(255, 255, 255, 0.50);
    font-family: 'Sumana', serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 12px;
}

.cases-title {
    color: #FFF;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
}

.cases-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.20);
}

.case-item-wrapper {
    width: 100%;
}

.case-item {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

/* PC에서 4번째 항목 숨김 */
.case-item-wrapper:nth-child(4) {
    display: none;
}

.case-item:hover {
    transform: translateY(-5px);
}

.case-info {
    margin-bottom: 12px;
}

.case-category {
    background: #003E76;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 8px;
    color: #FFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.case-title {
    color: #FFF;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 12px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.case-date,
.case-author {
    color: #999;
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.cases-empty {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 60px;
    font-size: 18px;
}

.cases-more {
    text-align: center;
}

.btn-more {
    display: flex;
    width: 150px;
    height: 50px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.50);
    color: rgba(255, 255, 255, 0.50);
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    text-decoration: none;
    margin: 0 auto;
    transition: all 0.3s;
}

.btn-more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .cases-header {
        margin-bottom: 30px;
    }

    .cases-subtitle {
        color: #FFF;
        font-family: 'Sumana', serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 120%;
    }

    .cases-title {
        color: #FFF;
        text-align: center;
        font-family: 'Pretendard', sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: 120%;
    }

    .cases-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cases-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 30px 0;
        max-width: 100%;
        margin: 0 auto 40px;
    }

    .case-item-wrapper {
        width: 100%;
    }

    .case-item {
        display: block;
        width: 100%;
        height: 100%;
    }

    /* 모바일에서 4번째 항목 표시 */
    .case-item-wrapper:nth-child(4) {
        display: block;
    }

    .case-image {
        height: 120px;
    }

    .case-category {
        font-size: 10px;
        padding: 3px 8px;
    }

    .case-title {
        font-size: 12px;
        margin-bottom: 6px;
        line-height: 1.3;
        max-height: 2.6em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .case-info {
        margin-bottom: 8px;
    }

    .case-meta,
    .case-date,
    .case-author {
        font-size: 10px;
    }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
    .cases-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .case-image {
        height: 100px;
    }

    .case-category {
        font-size: 9px;
        padding: 3px 6px;
    }

    .case-title {
        font-size: 11px;
        margin-bottom: 5px;
        line-height: 1.3;
    }

    .case-info {
        margin-bottom: 6px;
    }

    .case-meta,
    .case-date,
    .case-author {
        font-size: 9px;
    }
}
