.fht-wrapper {
    width: 100%;
}

.fht-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    align-items: start;
    width: 100%;
}

.fht-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.fht-item>a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

/* When item has no link, card and title are direct children */
.fht-item>.fht-card {
    margin-bottom: 20px;
}

.fht-item>.fht-card-title {
    width: 100%;
}

.fht-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.fht-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

.fht-card-image {
    width: 100%;
    height: 284px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fht-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fht-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    text-align: center;
    text-decoration: none;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop Plus Icon - Positioned Between Cards */
.fht-item:not(:last-child)::after {
    content: '+';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translate(50%, -50%);
    color: #dc3545;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    z-index: 10;
    pointer-events: none;
}

/* Tablet Layout - 2 Columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .fht-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .fht-item:not(:last-child)::after {
        display: none;
    }

    /* Show plus between items in same row */
    .fht-item:nth-child(odd):not(:nth-last-child(-n+2))::after {
        content: '+';
        display: block;
        right: -25px;
        font-size: 32px;
    }

    .fht-card {
        padding: 35px 20px;
    }

    .fht-card-title {
        font-size: 15px;
        min-height: 45px;
    }
}

/* Mobile Layout - Stacked Vertically */
@media (max-width: 768px) {
    .fht-wrapper {
        padding: 30px 0;
    }

    .fht-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .fht-item {
        margin-bottom: 0;
    }

    /* Hide desktop plus icons */
    .fht-item:not(:last-child)::after {
        display: none;
    }

    .fht-card {
        padding: 30px 20px;
        margin-bottom: 0;
    }

    .fht-card-title {
        font-size: 15px;
        margin-top: 15px;
        min-height: 45px;
    }

    /* Mobile Plus Icon - Centered Between Cards */
    .fht-mobile-plus {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #dc3545;
        font-size: 32px;
        font-weight: 700;
        line-height: 1;
        margin: 25px 0;
        padding: 0;
    }

    .fht-item:last-child .fht-mobile-plus {
        display: none;
    }
}

/* Hide mobile plus on desktop/tablet */
@media (min-width: 769px) {
    .fht-mobile-plus {
        display: none !important;
    }
}