/**
 * Component: Features & Benefits
 * Architecture: Standalone (No external dependencies)
 */

/* 1. Outer Section - Padding instead of Margin */
.tama-fb-section {
    padding: 80px 0;
    width: 100%;
    display: block;
}

/* 2. Layout Container */
.tama-fb-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 3. Section Title */
.tama-fb-title {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a; 
    margin-bottom: 60px;
    margin-top: 0;
}

/* Optional description under the title */
.tama-fb-desc {
    max-width: 900px;
    margin: -36px auto 60px;
    text-align: center;
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 20px;
    line-height: 1.4;
    color: #1a1a1a;
}

/* 4. Flex-wrap, 3/4/5 per row (--fb-cols) - an incomplete last row is centered (not stuck to the left) */
.tama-fb-grid {
    --fb-cols: 3;
    --fb-gap: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: var(--fb-gap);
    row-gap: 60px;
}

.tama-fb-cols-4 { --fb-cols: 4; }
.tama-fb-cols-5 { --fb-cols: 5; }

/* 5. Individual Feature Item */
.tama-fb-item {
    flex: 0 0 calc((100% - (var(--fb-cols) - 1) * var(--fb-gap)) / var(--fb-cols));
    max-width: calc((100% - (var(--fb-cols) - 1) * var(--fb-gap)) / var(--fb-cols));
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tama-fb-icon {
    max-width: 60px;
    height: auto;
    margin-bottom: 20px;
}

/* 6. Typography */
.tama-fb-item-title {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    margin-top: 0;
}

.tama-fb-item-desc {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 16px;
    color: #555555;
    line-height: 1.5;
    margin: 0;
}

/* Optional button */
.tama-fb-btn-wrap {
    display: flex;
    justify-content: center;
    margin-block-start: 60px;
}

.tama-fb-section .tama-fb-button {
    width: max-content;
    max-width: 100%;
    padding: 12px 32px;
    background-color: var(--primary-color, #667f06);
    color: #fff;
    font-family: "Titillium", sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border-radius: 12px 12px 12px 2px;
    transition: all 0.3s ease;
}

.tama-fb-section .tama-fb-button:hover {
    background-color: var(--third-color, #1c2d00);
    color: #fff;
    text-decoration: none;
}

[dir="rtl"] .tama-fb-section .tama-fb-button {
    border-radius: 12px 12px 2px 12px;
}

/* 7. Responsive Adjustments */
@media (max-width: 992px) {
    .tama-fb-grid {
        --fb-cols: 2; /* 2 columns on tablet, whatever the desktop setting */
    }
}

@media (max-width: 768px) {
    .tama-fb-section {
        padding: 50px 0;
    }
    .tama-fb-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    .tama-fb-grid {
        row-gap: 40px;
    }
    .tama-fb-section .tama-fb-grid {
        --fb-cols: 1; /* 1 column on mobile */
    }
    .tama-fb-desc {
        font-size: 18px;
        margin: -16px auto 40px;
    }
    .tama-fb-btn-wrap {
        margin-block-start: 40px;
    }
}