/* ==============================
   Yiontech Category Card Widget
   Handle: yiontech-category-card
   ============================== */

/* Base card styles */
.category-card-item {
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

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

.category-card-icon-container, .category-card-image-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
    border-style: solid;
    border-width: 0;
}

.category-card-icon {
    transition: all 0.3s ease;
    font-size: 24px;
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.category-card-image {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    transition: all 0.3s ease;
    object-fit: cover;
    box-sizing: border-box;
    z-index: 1;
    position: relative;
    border-style: solid;
    border-width: 0;
    width: 100%;
    height: 100%;
}

.category-card-title {
    margin: 0 0 10px 0;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.category-card-qualifications {
    margin: 0 0 15px 0;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.category-card-button-container {
    margin-top: 15px;
    display: block;
}

.category-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

/* Button border styles */
.category-card-button.border-2 {
    border-width: 2px;
    border-style: solid;
}

.category-card-button:hover {
    text-decoration: none;
}

.category-card-arrow {
    transition: all 0.3s ease;
}

.category-card-button:hover .category-card-arrow {
    transform: translateX(3px);
}

/* Button types */
.category-card-button.bg-transparent {
    background-color: transparent !important;
}

.category-card-button.p-0 {
    padding: 0 !important;
}

/* Icon/Image positioning */
.category-card-icon-container.justify-flex-start,
.category-card-image-container.justify-flex-start {
    justify-content: flex-start;
}

.category-card-icon-container.justify-center,
.category-card-image-container.justify-center {
    justify-content: center;
}

.category-card-icon-container.justify-flex-end,
.category-card-image-container.justify-flex-end {
    justify-content: flex-end;
}

/* Icon/Image background hover effect */
.category-card-item:hover .category-card-icon-container,
.category-card-item:hover .category-card-image-container {
    transition: background-color 0.3s ease;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .category-card-title {
        font-size: 18px;
    }
    
    .category-card-qualifications {
        font-size: 14px;
    }
    
    .category-card-button {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* Animation for card entrance */
.category-card-item {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}