/**
 * CSS for TXS Features Grid Plugin.
 *
 * @package TXS_Features
 */

.txs-features-section {
    padding: 20px 0;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.txs-feature-card {
    background-color: #f1f1f1; /* Light grey from image */
    padding: 25px 15px;
    text-align: center;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none !important;
    border: 1px solid transparent;
}

.txs-feature-card:hover {
    background-color: #eee;
    border-color: #ddd;
    transform: translateY(-3px);
}

.txs-feature-icon-wrapper {
    margin-bottom: 20px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.txs-feature-icon {
    max-height: 48px;
    width: auto;
    display: block;
    /* Optional: If using grey icons like in image, filter can be added if icons are colored */
    opacity: 0.7;
}

.txs-feature-content {
    margin-top: auto;
}

.txs-feature-label {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.4;
    font-family: inherit;
}

/* Swiper overrides for grid layout on Desktop */
@media screen and (min-width: 992px) {
    .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        transform: translate3d(0, 0, 0) !important;
        gap: 15px;
    }

    .swiper-slide {
        width: auto !important;
        margin-right: 0 !important;
        height: auto !important;
    }

    .swiper-pagination {
        display: none !important;
    }
}

@media screen and (max-width: 991px) {
    .txs-features-section {
        padding: 30px 15px;
    }

    .txs-feature-card {
        padding: 20px 10px;
    }

    .txs-feature-label {
        font-size: 12px;
    }
}
