/* ==========================================================================
   Page Layout & Hero Section
   ========================================================================== */
.kc-hero-wrapper {
  display: flex;
  flex-direction: row; /* Aligns primary content to the right for Hebrew (RTL) */
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1850px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
  margin-bottom: 120px;
}

/* Inner Text Content Column */
.kc-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 718px;
  flex: 1 1 718px;
}

.kc-hero__breadcrumb-link {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.8;
  color: #000080;
  text-decoration: none;
}

.kc-hero__title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 72px;
  color: #000080;
  margin: 0;
}

.kc-hero__description {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  color: #000080;
  margin: 0;
}

/* Media/Graphic Placeholder Side */
.kc-hero-wrapper__media {
  flex: 1 1 calc(100% - 718px - 67px);
  height: 100%;
  min-height: 400px;
}

.kc-layout {
  display: flex;
  flex-direction: row;
  gap: 40px;
  width: 100%;
  max-width: 1850px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* Responsive Scaling */
@media (max-width: 1200px) {
  .kc-hero-wrapper,
  .kc-layout {
    flex-direction: column;
    min-height: auto;
    gap: 32px;
  }

  .kc-hero,
  .kc-sidebar {
    max-width: 100%;
    flex: 1 1 auto;
  }
}

/* ==========================================================================
   Sidebar Component
   ========================================================================== */

.kc-sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 25px;
  width: 100%;
  max-width: 420px;
  flex: 0 0 420px;
}

.kc-sidebar__header {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 33px;
  width: 100%;
}

/* Search Box */
.kc-sidebar__search {
  flex: 1;
}

.kc-search-input {
  position: relative;
  width: 100%;
  max-width: 295px;
}

.kc-search-input__field {
  width: 100%;
  height: 53px;
  background: #FAF9F5;
  border: none;
  border-radius: 9999px;
  padding: 14px 48px 14px 16px;
  font-family: 'Fredoka', sans-serif;
  font-size: 21px;
  color: #183B51;
  outline: none;
  box-sizing: border-box;
}

.kc-search-input__field::placeholder {
  color: #183B51;
  opacity: 0.7;
}

.kc-search-input__button {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kc-search-input__icon {
  display: block;
  width: 18px;
  height: 21px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.kc-search-input__button:hover .kc-search-input__icon {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Sort Dropdown */
.kc-dropdown {
  position: relative;
  width: 168px;
  user-select: none;
}

.kc-dropdown__trigger {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 168px;
  height: 50px;
  padding: 0 20px;
  border: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  box-sizing: border-box;
}

.kc-dropdown__label {
  font-family: 'Fredoka', sans-serif;
  font-size: 21px;
  line-height: 16px;
  color: #183B51;
}

.kc-dropdown__icon {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease-in-out;
}

.kc-dropdown.is-open .kc-dropdown__icon {
  transform: rotate(180deg);
}

.kc-dropdown__menu {
  position: absolute;
  top: 47px;
  left: 0;
  width: 168px;
  background: #FAF9F5;
  border-radius: 0 0 8px 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease-in-out;
  z-index: 10;
}

.kc-dropdown.is-open .kc-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kc-dropdown__divider {
  width: 168px;
  height: 3px;
  background: #A1CEE1;
  border-radius: 2px;
}

.kc-dropdown__options {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.kc-dropdown__option {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  line-height: 22px;
  color: #183B51;
  text-align: right;
  cursor: pointer;
  transition: color 0.15s ease;
}

.kc-dropdown__option:hover,
.kc-dropdown__option--selected {
  font-weight: 500;
  color: #C22DAF;
}

/* ==========================================================================
   Filter Groups & Inputs
   ========================================================================== */

.kc-filter-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.kc-filter-group--card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 20px 15px;
  box-sizing: border-box;
}

.kc-filter-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: transparent;
  padding: 0 4px 0 0;
  cursor: pointer;
  width: 100%;
}

.kc-filter-group__title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 20px;
  color: #183B51;
  text-transform: uppercase;
  margin: 0;
}

.kc-filter-group__arrow {
  width: 20px;
  height: 20px;
  background-color: #183B51;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.kc-filter-group__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Custom Checkbox */
.kc-checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  height: 26px;
}

.kc-checkbox__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.kc-checkbox__svg-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  order: 0;
}

.kc-checkbox__svg--checked {
  display: none;
}

.kc-checkbox__svg--unchecked {
  display: block;
}

.kc-checkbox__input:checked ~ .kc-checkbox__svg-icon .kc-checkbox__svg--checked {
  display: block;
}

.kc-checkbox__input:checked ~ .kc-checkbox__svg-icon .kc-checkbox__svg--unchecked {
  display: none;
}

.kc-checkbox__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: #A1CEE1;
  border-radius: 10px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #183B51;
  order: 2;
}

.kc-checkbox__label {
  flex: 1;
  font-family: 'Fredoka', sans-serif;
  font-size: 21px;
  line-height: 24px;
  text-align: right;
  color: #183B51;
  order: 1;
}

/* Pills & Chips */
.kc-filter-group__pills,
.kc-filter-group__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.kc-pill,
.kc-chip {
  height: 38px;
  padding: 6px 16px;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  font-family: 'Fredoka', 'Lexend', sans-serif;
  font-size: 21px;
  color: #183B51;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.kc-pill {
  border-radius: 8px;
  min-width: 120px;
}

.kc-pill--active,
.kc-chip--active {
  background: #183B51;
  color: #FFFFFF;
  font-weight: 500;
}


.kc-filter-group__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.kc-pill {
  flex: 0 0 calc(50% - 4px);
  height: 36px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  font-family: 'Fredoka', sans-serif;
  font-size: 21px;
  color: #183B51;
  text-align: start;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.kc-pill--active {
  background: #183B51;
  color: #FAF9F5;
  font-weight: 500;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
  .kc-hero-wrapper,
  .kc-layout {
    flex-direction: column;
    min-height: auto;
    gap: 32px;
  }

  .kc-hero,
  .kc-sidebar {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .kc-pill, .kc-chip,
  .kc-pill,
  .kc-checkbox__label {
      font-size: 16px;
  }
}


/* ==========================================================================
   Main Content Layout & Top Tabs Filter
   ========================================================================== */

.kc-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 1172px;
  flex: 1;
}

/* Category Filter Tabs (Frame 85609) */
.kc-tabs-filter {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 31px;
  width: 100%;
}

.kc-tabs-filter__btn {
  width: 150px;
  height: 45px;
  border-radius: 9999px;
  border: 1.5px solid #000080;
  background: #FFFFFF;
  color: #000080;
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kc-tabs-filter__btn--active {
  /* background: #000080; */
  /* color: #FFFFFF; */
  font-weight: 600;
  border-color: #000080;
}

.kc-tabs-filter__btn:hover:not(.kc-tabs-filter__btn--active) {
  /* background: #F5F4ED; */
}

/* ==========================================================================
   Card Components (Course & Tools)
   ========================================================================== */

.kc-feed {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.kc-card {
  background: #FFFFFF;
  border-radius: 25px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow: hidden;
}

/* 1. Full-width Horizontal Course Card */
.kc-card--course {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  gap: 40px;
  min-height: 426px;
  background: #FFFFFF;
  border-radius: 25px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow: hidden;
}

.kc-card--course::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.002);
  border: 2px dashed #5E2E8A;
  border-radius: 24px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 3;
}

.kc-card--course > * {
  position: relative;
  z-index: 2;
}

.kc-card__media-wrapper {
  width: 416px;
  height: 100%;
  background: #EEEEFC;
  border-radius: 0;
  position: relative;
  flex-shrink: 0;
  padding: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.kc-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  flex: 1;
  gap: 16px;
  padding-inline-end: 40px;
}


.kc-card__header-info {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.kc-card__meta {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #000080;
  white-space: nowrap;
}

.kc-card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kc-card__tags {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Badges & Tags */
.kc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 9999px;
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  height: 37px;
  gap: 4px;
  position: absolute;
  right: 26px;
  top: 26px;
}

.kc-badge--course, .kc-badge--tool {
  background: #C22DAF;
}

.kc-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 24px;
  border-radius: 9999px;
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #000080;
}

.kc-badge--blue { background: #EEEEFC; }
.kc-badge--orange { background: #FFE1C7; }
.kc-badge--sub { background: #A1CEE1; }
.kc-badge--pink { background: #FFE7F3; }
.kc-badge--green { background: #BEE1DA; }

.kc-card__title {
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  color: #000080;
  margin: 0;
}

.kc-card__description {
  font-family: 'Fredoka', sans-serif;
  font-size: 21px;
  line-height: 30px;
  color: #183B51;
  margin: 0;
  margin-bottom: 20px;
}

.kc-card__author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.kc-card__avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.kc-card__author-info {
  display: flex;
  flex-direction: column;
}

.kc-card__author-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #000080;
}

.kc-card__author-role {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  color: rgba(0, 0, 128, 0.85);
}

.kc-card__footer {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(161, 206, 224, 0.2);
  display: flex;
  justify-content: flex-end;
}

/* Button Component */
.kc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 9999px;
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.kc-btn--primary {
  background: #CB6DA7;
  color: #FFFFFF;
  box-shadow: 0px 4px 20px rgba(26, 35, 126, 0.1);
}

.kc-btn--outline {
  border: 1.5px solid #000080;
  color: #000080;
  background: transparent;
}

/* ==========================================================================
   2. Tools Grid Row (570px x 499px Cards)
   ========================================================================== */

.kc-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  width: 100%;
}

.kc-card--tool {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  min-height: 499px;
  background: #FFFFFF;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.kc-card--tool::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.002);
  opacity: 0.9;
  border: 2px dashed #67B8A8;
  border-radius: 24px;
  pointer-events: none;
  z-index: 3;
}

.kc-card--tool-alt::before {
  border-color: #0196CE;
}

.kc-card--tool > * {
  position: relative;
  z-index: 2;
}

.kc-card--tool-alt {
  border-color: #0196CE;
}

.kc-card__tool-header {
  height: 222px;
  background: #E0EBE2;
  padding: 26px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  display: flex;
  justify-content: center;
  align-items: center;
}

.kc-card--tool-alt .kc-card__tool-header {
  background: #E3EEF3;
}

.kc-card--tool .kc-card__body {
  padding: 24px;
}

.kc-card__hashtags {
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #000080;
}

/* ==========================================================================
   3. Featured Banner
   ========================================================================== */

.kc-banner {
  position: relative; /* חובה עבור מיקום החצים האבסולוטיים */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  background: #F4D9E8;
  border-radius: 20px;
  padding: 0px 100px; /* פאדינג מוגדל בצדדים כדי שהחצים לא יסתרו את התוכן */
  min-height: 394px;
  box-sizing: border-box;
  box-shadow: 0px 25px 50px -12px rgba(24, 58, 81, 0.05);
  gap: 20px;
}

.kc-banner__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  max-width: 455px;
  gap: 18px;
  z-index: 2;
}

.kc-banner__title {
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #000080;
  margin: 0;
}

.kc-banner__text {
  font-family: 'Fredoka', sans-serif;
  font-size: 21px;
  line-height: 30px;
  color: #183B51;
  margin: 0;
}

.kc-banner__image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.kc-banner__image {
  max-width: 422px;
  height: auto;
}

/* חצי הניווט העגולים (60px x 60px) לפי Figma והתמונה */
.kc-banner__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #183B51;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.kc-banner__arrow:hover {
  background: #000080;
  transform: translateY(-50%) scale(1.05);
}

/* מיקום חץ ימין ושמאל */
.kc-banner__arrow--right {
  right: 24px;
}

.kc-banner__arrow--left {
  left: 24px;
}

/* Wrapper around both arrow buttons. On desktop it renders as if it
   weren't there at all (display: contents), so the buttons keep
   positioning themselves absolutely against .kc-banner-swiper exactly
   as before. On narrow screens (see the ≤767px rules below) this
   becomes a real flex row so both arrows sit next to each other under
   the banner instead of one at the very top and one at the very
   bottom. */
.kc-banner__nav {
  display: contents;
}

/* ==========================================================================
   Carousel: real Swiper instance (see assets/js/pages/knowledge-center.js
   → initCarouselSwiper). .kc-banner-swiper is the outer .swiper element
   Swiper is instantiated on; each slide's actual look (pink card, text,
   image) is still the original .kc-banner markup, just nested one level
   deeper inside .swiper-wrapper > .swiper-slide. The arrow buttons and
   pagination dots live at this outer level (not per-slide), positioned
   absolutely the same way the old single-banner version was.
   ========================================================================== */
.kc-banner-swiper {
  min-width: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.kc-banner-swiper .swiper-slide {
  height: auto; /* let every slide match the tallest .kc-banner instead of collapsing */
}

.kc-banner-swiper .swiper-pagination {
  position: static;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.kc-banner-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0;
  background: #183B51;
  opacity: 0.35;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.kc-banner-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #000080;
  transform: scale(1.15);
}

/* התאמה למסכים קטנים */
@media (max-width: 1024px) {
  .kc-banner {
    padding: 60px 24px;
  }

  .kc-banner__arrow {
    width: 44px;
    height: 44px;
  }

  .kc-banner__arrow--right {
    right: 12px;
  }

  .kc-banner__arrow--left {
    left: 12px;
  }
}

/* ==========================================================================
   Pagination Component
   ========================================================================== */

.kc-pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 40px;
}

.kc-pagination__item {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: #E7D3EB; /* Snuff color from Figma */
  color: #000080;
  font-family: 'Lexend', 'Fredoka', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.kc-pagination__item:hover:not(.kc-pagination__item--active) {
  background: #d8beee;
  transform: translateY(-1px);
}

/* Active Page State */
.kc-pagination__item--active {
  background: #000080;
  color: #FFFFFF;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  cursor: default;
}

/* Arrow Navigation Buttons */
.kc-pagination__item--arrow {
  background: #E7D3EB;
}

.kc-pagination__item--arrow svg {
  display: block;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .kc-card--course,
  .kc-banner {
    flex-direction: column;
    padding: 24px;
  }

  .kc-tools-grid {
    grid-template-columns: 1fr;
  }

  .kc-card__media-wrapper {
    width: 100%;
  }
}

/* ==========================================================================
   JS-driven state (assets/js/pages/knowledge-center.js)
   ========================================================================== */

/* Type tabs: toggle-tabs.js (shared component) toggles an "is-active"
   class rather than this page's original "--active" modifier, so both
   are kept in sync visually. */
.kc-tabs-filter__btn.is-active {
  background: #000080;
  color: #FFFFFF;
  font-weight: 600;
  border-color: #000080;
}

/* Collapsible filter groups (אבחנה / מותאם גיל / טווח זמן / נושאי ליבה) —
   clicking the header hides the group's content and flips the chevron. */
.kc-filter-group__arrow {
  transition: transform 0.2s ease;
}

.kc-filter-group.is-collapsed .kc-filter-group__content,
.kc-filter-group.is-collapsed .kc-filter-group__pills,
.kc-filter-group.is-collapsed .kc-filter-group__chips {
  display: none;
}

.kc-filter-group.is-collapsed .kc-filter-group__arrow {
  transform: rotate(180deg);
}

/* Empty-state message when a filter/search combination has no matches. */
.kc-empty-state {
  width: 100%;
  padding: 60px 24px;
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 21px;
  color: #183B51;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
}

/* ==========================================================================
   Additional responsiveness (small tablets / phones)
   ========================================================================== */

@media (max-width: 1023px) {
  .kc-hero-wrapper {
    margin-bottom: 64px;
    padding: 0;
  }

  .kc-layout {
    padding: 0;
  }

  .kc-sidebar {
    max-width: 100%;
    flex: 1 1 auto;
  }
}

@media (max-width: 767px) {
  .kc-hero__title {
    font-size: 40px;
    line-height: 48px;
  }

  .kc-hero__description {
    font-size: 19px;
    line-height: 27px;
  }

  .kc-tabs-filter {
    flex-wrap: wrap;
    gap: 12px;
  }

  .kc-tabs-filter__btn {
    flex: 1 1 auto;
    width: auto;
    min-width: 96px;
  }

  .kc-sidebar__header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .kc-sidebar__search,
  .kc-search-input,
  .kc-dropdown {
    width: 100%;
    max-width: 100%;
  }

  .kc-dropdown__trigger,
  .kc-dropdown__menu,
  .kc-dropdown__divider {
    width: 100%;
  }

  .kc-card__body {
    padding-inline-end: 20px;
    padding: 20px;
  }

  .kc-card__header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .kc-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
    gap: 24px;
  }

  .kc-banner__content {
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  /* Both arrows become a real row again (instead of display: contents),
     centered under the slide, so they sit next to each other rather
     than one pinned to the top of the banner and one to the bottom.
     No "order" needed here — .kc-banner__nav already comes after
     .swiper-wrapper in the markup, it just needs to stop being
     display:contents. */
  .kc-banner__nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
  }

  .kc-banner__arrow {
    position: static;
    transform: none;
  }

  .kc-banner__arrow:hover {
    transform: scale(1.05);
  }
}

@media (max-width: 599px) {
  .kc-hero__title {
    font-size: 32px;
    line-height: 40px;
  }

  .kc-hero__breadcrumb-link {
    font-size: 16px;
  }

  .kc-hero__description {
    font-size: 17px;
    line-height: 25px;
  }

  .kc-filter-group__pills .kc-pill {
    flex: 1 1 100%;
  }

  .kc-card__title {
    font-size: 21px;
    line-height: 28px;
  }

  .kc-card__description {
    font-size: 18px;
    line-height: 26px;
  }

  .kc-card--tool {
    min-height: auto;
  }

  .kc-card__tool-header {
    height: 180px;
  }

  .kc-card__tool-header svg {
    max-width: 80%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .kc-tabs-filter__btn {
    font-size: 17px;
    height: 40px;
  }

  .kc-btn {
    font-size: 17px;
    padding: 8px 18px;
  }

  .kc-badge {
    right: 14px;
    top: 14px;
    font-size: 16px;
    height: 32px;
  }
}

/* ==========================================================================
   Mobile "סינון ומיון" bar (trigger for the sidebar drawer)
   Hidden on desktop by default; shown only at/under the drawer
   breakpoint below.
   ========================================================================== */
.kc-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.kc-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1.5px solid #000080;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #000080;
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.kc-filters-toggle:hover {
  background: #F5F4ED;
}

.kc-filters-toggle:active {
  transform: scale(0.98);
}

.kc-mobile-bar__count {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  color: #183B51;
  opacity: 0.8;
  white-space: nowrap;
}

/* ==========================================================================
   Result-count / pagination-range text (visible, not just for screen
   readers) — tells people where they are ("מציגים 1–4 מתוך 11
   תוצאות") instead of leaving raw page-number buttons to speak for
   themselves.
   ========================================================================== */
.kc-pagination-range {
  width: 100%;
  margin: 0 0 12px;
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  color: #183B51;
  opacity: 0.75;
}

/* Bigger, easier-to-hit pagination targets specifically on this page,
   overriding the shared component's <400px shrink (this selector is
   more specific and this file loads last, so it wins without touching
   assets/css/components/_pagination.css — that file is shared with
   Blog/My Orders and shouldn't change for them). */
[data-kc-pagination].pagination-shared .pagination-shared-arrow,
[data-kc-pagination].pagination-shared .pagination-shared-page {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

[data-kc-pagination].pagination-shared {
  flex-wrap: wrap;
  row-gap: 10px;
}

/* ==========================================================================
   Sidebar as a slide-in drawer on mobile/tablet
   Desktop (≥1201px) keeps the original two-column layout untouched;
   this block — and the ≥1201px reset right after it — supersede the
   older ≤1200px sidebar rule earlier in this file (later rule in the
   cascade wins), so the sidebar becomes a proper off-canvas panel
   instead of just an inline block stacked under the results.
   ========================================================================== */
.kc-sidebar__mobile-header,
.kc-sidebar__mobile-footer {
  display: none;
}

.kc-sidebar-backdrop {
  display: none;
}

@media (max-width: 1200px) {
  .kc-mobile-bar {
    display: flex;
  }

  .kc-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(24, 59, 81, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 999;
  }

  .kc-sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .kc-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: min(88vw, 400px);
    max-width: 400px;
    height: 100dvh;
    margin: 0;
    background: #F5F4ED;
    box-shadow: -16px 0 40px rgba(24, 59, 81, 0.2);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px 20px 100px;
    box-sizing: border-box;
  }

  .kc-sidebar.is-open {
    transform: translateX(0);
  }

  .kc-sidebar__mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 128, 0.1);
    position: sticky;
    top: -20px;
    background: #F5F4ED;
    padding-top: 20px;
    margin-top: -20px;
    z-index: 2;
  }

  .kc-sidebar__mobile-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #000080;
    margin: 0;
  }

  .kc-sidebar__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 128, 0.08);
    color: #183B51;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
  }

  .kc-sidebar__close:hover {
    background: rgba(0, 0, 128, 0.16);
  }

  .kc-sidebar__mobile-footer {
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 400px;
    padding: 16px 0;
    box-sizing: border-box;
    z-index: 3;
    position: relative;
  }

  .kc-sidebar__apply {
    width: 100%;
    text-align: center;
    font-size: 21px;
  }
}

@media (min-width: 1201px) {
  .kc-mobile-bar,
  .kc-sidebar__mobile-header,
  .kc-sidebar__mobile-footer,
  .kc-sidebar-backdrop {
    display: none !important;
  }

  .kc-sidebar {
    position: static;
    transform: none;
    height: auto;
    width: 100%;
    box-shadow: none;
    padding: 0;
  }
}

/* Prevent the page from scrolling behind the open drawer. */
body.kc-no-scroll {
  overflow: hidden;
}