/* 카드 컴포넌트 스타일 */
.card-component {
    width: clamp(160px, 20vw, 300px);
    height: clamp(160px, 20vw, 300px);
    position: relative;
    background: #F3F7FA;
    overflow: hidden;
    border-radius: clamp(15px, 1.5vw, 20px);
}

.card-content {
    position: absolute;
    top: clamp(30px, 6vw, 60px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(5px, 1vw, 10px);
    text-align: center;
    width: 80%;
}

.card-title {
    text-align: center;
    color: #191F28;
    font-size: clamp(18px, 2.5vw, 30px);
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    line-height: clamp(22px, 3vw, 36px);
    word-wrap: break-word;
}

.card-subtitle {
    text-align: center;
    color: #191F28;
    font-size: clamp(12px, 1.5vw, 17px);
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    line-height: clamp(14px, 1.8vw, 20.40px);
    word-wrap: break-word;
}

.card-image {
    position: absolute;
    bottom: clamp(20px, 4vw, 40px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(50px, 8vw, 90px);
    height: clamp(24px, 4vw, 43px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 카드 상태별 효과 */
.card-component {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-component:hover {
    background: #4C5969;
}

.card-component:hover .card-title,
.card-component:hover .card-subtitle {
    color: white;
}

.card-component.active {
    background: #3721E5;
}

.card-component.active .card-title,
.card-component.active .card-subtitle {
    color: white;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .card-component {
        width: 160px !important;
        height: 160px !important;
        max-width: 160px;
        max-height: 160px;
    }
    
    .card-content {
        width: 85%;
        top: 30px;
    }
    
    .card-title {
        font-size: 18px;
        line-height: 22px;
    }
    
    .card-subtitle {
        font-size: 12px;
        line-height: 14px;
    }
    
    .card-image {
        bottom: 20px;
        width: 50px;
        height: 24px;
    }
}
