


/* Title */
.categories-title {
    font-size: 54px;
    font-weight: 500;
    line-height: 50px;
    color: #0B0427;
    white-space: nowrap;
}

/* Categories Grid */
.categories-grid {
    width: 100%;
    max-width: 1720px;

    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
    align-items: flex-start;
    /* flex-wrap: wrap; */
    justify-content: center;

    
    flex-wrap: nowrap;
   

    padding: 0 40px;
    margin: 42px auto 0 auto;
}

/* Category Item */
.category-item {
    width: auto;
    flex: 1 0 0;
    
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    /* width: 136.222px; */
   
    cursor: pointer;
}

/* Category Icon */
.category-icon {
    width: 55px;
    height: 56px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Category Label */
.category-label {
    font-family: 'ICPangeaText', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    color: #46494F;
    letter-spacing: 0.96px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .categories-container {
        padding: 40px 20px;
    }

    .categories-title {
        font-size: 28px;
        line-height: 50px;
    }

    .categories-grid {
        gap: 30px;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0;
    }

    .category-item {
        /* width: 142px; */
       
        width: 45%;
        flex: 0 0 45%;
    }
}


.items-gallery-container {
    width: calc(100% - 204px);
    max-width: 1685px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    /* width: 100%; */
}

.items-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

@media (max-width: 768px) {
    .generic-card-gallery{
        padding: 0 !important;
    }

    .items-wrapper {
        flex-direction: column;
        gap: 12px;
        max-width: 100vw;
        align-items: center;

    }

    .items-wrapper .items-gallery-container{
        width: 100%;
    }

    .items-wrapper .items-gallery-container .swiper-items {
        width: calc(100vw - 40px);
        height: 620px;
    }



    .items-wrapper .items-gallery-container .swiper-items .swiper-slide {
        width: calc((100vw - 40px) / 2) !important;

    }

    .items-wrapper .items-gallery-container .swiper-wrapper {
        /* height: 578px; */
        height: 100%;
    }

}


/* FIX: גלריה לא נשברת בגלל flex של wrapper בדף הבית */
.sections > .generic-card-gallery {
  width: 100%;
  display: block;
}

.generic-card-gallery .tabs-container,
.generic-card-gallery .tabs-content,
.generic-card-gallery .tab-panel,
.generic-card-gallery .items-wrapper,
.generic-card-gallery .swiper-items {
  width: 100%;
}



.swiper-items {
    width: 100%;
    max-width: 1740px;
    /* width: 1740px; */

    position: relative;
    overflow: hidden;
}

.swiper-items .swiper-slide .card.item,
.swiper-items .swiper-slide {
    /* width: 435px !important; */

    width: 100%;
    max-width: 435px;

}


@media (max-width: 768px) {
    .swiper-items {
        width: calc(100vw - 40px);
        height: 620px;
    }

    .swiper-items .swiper-slide {
        width: calc((100vw - 40px) / 2) !important;

    }

}


/* ================================
   Generic Card Gallery – Image Responsiveness (Desktop + Tablet)
   ================================ */

/* קונטיינר התמונה – יחס קבוע */
.generic-card-gallery .card-header {
  width: 100%;
  aspect-ratio: 414 / 240;
  overflow: hidden;
  position: relative;
  background-color: #f2f2f2;
}

/* התמונה עצמה */
.generic-card-gallery .card-header .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* שמור על יחס, מילוי יפה */
  object-position: center;
  display: block;
}

/* מניעת מתיחות של כרטיסים בתוך Swiper */
.generic-card-gallery .swiper-slide {
  height: auto;
  display: flex;
}

.generic-card-gallery .card-container {
  width: 100%;
  display: flex;
}

/* דסקטופ קטן / לפטופים */
@media (max-width: 1280px) {
  .generic-card-gallery .card-container {
    max-width: 320px;   /* אפשר לשנות ל־300 / 340 לפי טעם */
  }
}

/* דסקטופ קטן מאוד */
@media (max-width: 1100px) {
  .generic-card-gallery .card-container {
    max-width: 300px;
  }
}








.more-btn {
    width: 124px;
    height: 488px;

    display: flex;
    
    text-decoration: none;
    margin-top: 10px;
    
    background-color: #2020B3;
    background-image: url('/assets/images/gallery-more.png');
    background-size: 249.55px 250.615px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 56px 0 rgba(0, 0, 0, 0.08);

    padding: 6px;
  }
  
  .more-btn .desktop-more {
    color: #fff;
    text-align: right;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 25px;
  
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 17px;
  }
  
  .more-btn .action-row{
    display: none;
  }
  
  @media (max-width: 768px) {
    .more-btn {
        display: block;
        height: auto;
        width: auto;
        background: unset;

        margin: 0;
      }

    .more-btn .desktop-more {
      display: none;
    }
  
    
    .more-btn .action-row{
      display: block !important;
    }
  }
  