/**
 * Bemo Category Cards Module - CSS Styles
 *
 * @author    Bemo
 * @copyright 2025 Bemo
 * @license   Proprietary
 */

.bemo-category-cards {
    width: 100%;
    padding: 60px 0;
    background-color: #ffffff;
}

.bemo-cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bemo-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.bemo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.bemo-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bemo-card-image {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.bemo-card-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.bemo-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    flex: 1;
}

.bemo-card-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 16px;
    display: block;
}

.bemo-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #2c2c2c;
    margin: 0;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bemo-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #52c277;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(82, 194, 119, 0.3);
    text-transform: none;
    margin-top: auto;
}

.bemo-card-button:hover {
    background-color: #45a865;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 194, 119, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.bemo-card-button svg {
    transition: transform 0.3s ease;
}

.bemo-card-button:hover svg {
    transform: translateX(5px);
}

/* Responsive styles */
@media (max-width: 991px) {
    .bemo-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .bemo-category-cards {
        padding: 40px 0;
    }
}

@media (max-width: 575px) {
    .bemo-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bemo-card-title {
        font-size: 18px;
        min-height: auto;
    }
    
    .bemo-card-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .bemo-category-cards {
        padding: 30px 0;
    }
}

/* Animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bemo-card {
    animation: fadeInUp 0.6s ease-out;
}

.bemo-card:nth-child(1) {
    animation-delay: 0.1s;
}

.bemo-card:nth-child(2) {
    animation-delay: 0.2s;
}

.bemo-card:nth-child(3) {
    animation-delay: 0.3s;
}
