/* ============================================
   IMAGE TABS – FULL CSS FILE
   ============================================ */

.itp-wrapper {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    direction: rtl;
}

/* ============================================
   TABS ROW – FULL WIDTH, LARGE IMAGES
   ============================================ */

.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;
}

/* Each tab is a full column */
.itp-tab {
    flex: 1 1 25%;     /* 4 equal items */
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Large image filling the tab width */
.itp-tab img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
}

.itp-tab-title {
    margin-top: 6px;
    font-size: 14px;
    text-align: center;
    color: #333;
}

.itp-tab--active {
    outline: none;
}

/* ============================================
   RESPONSIVE TABS
   ============================================ */

@media (max-width: 768px) {
    .itp-tabs-row {
        flex-wrap: wrap;
    }

    .itp-tab {
        flex: 1 1 calc(50% - 8px);  /* 2 per row */
    }
}

@media (max-width: 480px) {
    .itp-tab {
        flex: 1 1 100%;  /* 1 per row */
    }
}

/* ============================================
   CONTENT AREA
   ============================================ */

.itp-contents {
    width: 100%;
}

.itp-content {
    display: none;
}

.itp-content--active {
    display: block;
}

/* ============================================
   CARD GRID
   ============================================ */

.itp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   CARD STYLE (LIKE YOUR DESIGN)
   ============================================ */

.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;
}

/* ============================================
   BUTTON (לצפייה)
   ============================================ */

.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);
}

.itp-card-icon {
    display: flex;
    align-items: center;
}
@media (max-width: 600px) {
    .itp-tabs-row {
        flex-wrap: wrap !important;
    }

    .itp-tab {
        flex: 1 1 calc(50% - 12px) !important; /* 2 in a row */
        max-width: calc(50% - 12px) !important;
    }
}
/* ============================================
   MOBILE CARD TWEAKS
   ============================================ */

@media (max-width: 480px) {
    .itp-card {
        padding: 16px 12px 18px;
    }

    .itp-card-title {
        font-size: 14px;
    }

    .itp-card-button {
        width: 100%;
    }
}
