/* ============================================
   IMAGE TABS MULTI – FINAL CSS
   ============================================ */

.itp-wrapper {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    direction: rtl;
}

/* ============================================
   TABS ROW – FLEX LAYOUT
   ============================================ */

.itp-tabs-row {
    display: flex;
    flex-wrap: nowrap; /* שורה אחת בדסקטופ */
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* עיצוב הטאב - גמיש */
.itp-tab {
    flex: 1;           /* יתחלקו שווה בשווה */
    min-width: 0;
    border: none;      /* איפוס מסגרת */
    background: transparent; /* איפוס רקע */
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* === התוספות שלך לאיפוס הכפתורים והסתרת הכותרת === */

/* מונע רקע בהובר/פוקוס (דורס את התבנית) */
button.itp-tab:hover,
button.itp-tab:focus {
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
}

/* הסתרת כותרת הטאב (לפי בקשתך) */
.itp-tab-title {
    display: none;
}

/* תמונה ממלאת את רוחב הטאב */
.itp-tab img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
}

.itp-tab--active {
    outline: none;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .itp-tabs-row {
        flex-wrap: wrap; 
    }
    .itp-tab {
        flex: 1 1 calc(33.33% - 11px);  /* 3 בשורה בטאבלט */
    }
}

@media (max-width: 480px) {
    .itp-tab {
        flex: 1 1 calc(50% - 8px);  /* 2 בשורה במובייל */
    }
}

/* ============================================
   CONTENT AREA & CARDS
   ============================================ */

.itp-contents {
    width: 100%;
    /* === העיצוב שלך למיכל התוכן === */
    background: #f4fbff !important;
    border-radius: 24px !important;
    border: 1px solid #e0ecf5 !important;
    padding: 25px;
    box-sizing: border-box;
}

.itp-content {
    display: none;
}

.itp-content--active {
    display: block;
}

.itp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.itp-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 20px 20px 24px;
    text-align: center;
    box-sizing: border-box;
}

.itp-card-title {
    font-size: 16px;
    margin-bottom: 18px;
    color: #005a8e;
    font-weight: 600;
}

.itp-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 28px;
    border-radius: 999px;
    background: #0394db;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.itp-card-button:hover,
.itp-card-button:focus {
    background: #027ab5;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .itp-card { padding: 16px 12px 18px; }
    .itp-card-title { font-size: 14px; }
    .itp-card-button { width: 100%; }
    
    /* התאמה קלה לריפוד במובייל בתוך המיכל */
    .itp-contents { padding: 15px; } 
}