/* ==========================================================================
   Detailed Value Section — MOVED (2026) to
   components/_detailed-value.css (Tool.html reuses the exact same
   layout for its own value section). Link that file in this page's
   <head> instead of relying on it being bundled here.
   ========================================================================== */

/* ==========================================================================
   Category Page Master Stylesheet
   Architecture: BEM / RTL First
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Layout & Section Header
   -------------------------------------------------------------------------- */

.cat-section--processing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 67px;
  width: 100%;
  max-width: 1816px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* .cat-section__header/__subtitle/__title/__description — MOVED (2026)
   to components/_section-header.css (Tool.html's case-studies section
   uses the exact same eyebrow+title pattern). */


/* .cat-tools-grid — REMOVED (2026): was an extra class on the tools
   grid, layered on top of .article-tools-grid, that added
   flex-wrap: wrap. That's what made Category's tools slides wrap onto
   multiple rows instead of behaving as the same single-row swiper as
   Article.html's identical section. The grid now carries only
   .article-tools-grid (components/_tools-section.css), same classes
   as Article.html, so the two are one-to-one. */

/* --------------------------------------------------------------------------
   2-4. Tool Card (was .kc-card--tool) — REMOVED (2026): this was a
   hand-duplicated copy of components/_tools-section.css's
   .article-tool-card (identical 570x499 size, identical header colors
   E8E6DC/E0EBE2/E3EEF3, identical badge/footer). Category.html now
   renders its tools grid with .article-tools-grid / .article-tool-card
   from that shared component instead — link
   components/_tools-section.css in this page's <head>, same as
   Article.html.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   5. Responsive Breakpoints
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .article-tool-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .cat-section--processing {
    gap: 32px;
  }

  .cat-section__title {
    font-size: 26px;
    line-height: 32px;
  }

  .cat-section__description {
    font-size: 18px;
    line-height: 22px;
  }

  /* .article-tool-card__desc's <=767px size is already set by
     components/_tools-section.css — not repeated here. */
  .article-tool-card__title {
    font-size: 20px;
    line-height: 28px;
  }
}
/* ==========================================================================
   Category Hero — rebuilt (2026) from the real Figma CSS export
   (breadcrumb, title, big circle photo w/ decorative flowers, filter
   pill rows, CTA). Replaces the earlier placeholder version built
   before the spec was available.
   ========================================================================== */
.cat-hero {
  width: 100%;
  max-width: 1856px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 60px;
  box-sizing: border-box;
  direction: rtl;
}

.cat-hero__media {
  flex: 0 0 auto;
}

.cat-hero__content {
  flex: 1 1 640px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  text-align: right;
}

.cat-hero__breadcrumb {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: #000080;
}

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

.cat-hero__desc {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  color: #000080;
  margin: 0;
  max-width: 602px;
}

.cat-hero__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 64px;
  height: 50px;
  box-sizing: border-box;
  background: #CB6DA7;
  border: none;
  border-radius: 9999px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cat-hero__cta-btn:hover {
  background: #c22daf;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Filter pills — two explicit rows in the source (not one wrapping
   row): row 1 has 4 pills, row 2 has 2. Kept as separate rows so the
   layout matches exactly instead of approximating with flex-wrap.
   -------------------------------------------------------------------------- */
.cat-hero__filters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.cat-hero__filters-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cat-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  height: 56px;
  box-sizing: border-box;
  border-radius: 9999px;
  background: var(--color-white);
  border: none;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: #000080;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

/* Driven by toggle-tabs.js, which keeps aria-selected in sync on every
   tab whenever the selection changes (true on the picked one, false on
   the rest) — a more reliable single source of truth than a manually
   toggled class name would be. */
.cat-filter-pill[aria-selected="true"] {
  background: #A1CEE1;
  font-weight: 500;
}

/* Wraps a pill that carries a hover tooltip (see components/_tooltip.css
   + assets/js/components/tooltip.js) — the tooltip needs a positioned
   ancestor to anchor to. */
.cat-filter-pill-wrap {
  position: relative;
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   Circle photo + decorative flowers + play button
   -------------------------------------------------------------------------- */
.cat-hero__photo-wrap {
  position: relative;
  width: 576px;
  height: 576px; /* circle (576) + room below for the play-button/caption group */
  flex: 0 0 auto;
}

.cat-hero__flower {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.cat-hero__flower--left {
  width: 144px;
  height: auto;
  left: -210px;
  top: 130px;
  transform: rotate(-24.7deg);
}

.cat-hero__flower--right {
  width: 260px;
  height: auto;
  right: -110px;
  top: -60px;
  transform: rotate(52.2deg);
}

.cat-hero__circle {
  position: relative;
  width: 576px;
  height: 576px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #E89DC4;
  box-shadow: 0px 18px 30px -10px rgba(86, 41, 80, 0.66);
  z-index: 1;
}

.cat-hero__circle::after {
  /* the 20% black tint over the photo, per spec */
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.cat-hero__circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-hero__play {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 145px;
  z-index: 2;
}

.cat-hero__play-btn {
  width: 76px;
  height: 76px;
  border: none;
  border-radius: 50%;
  background: #CB6DA7;
  box-shadow: 0px 18px 30px -10px rgba(194, 45, 175, 0.667);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cat-hero__play-btn:hover {
  transform: scale(1.08);
  background-color: #c22daf;
}

.cat-hero__play-caption {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  color: #000080;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 1300px) {
  .cat-hero {
    flex-wrap: wrap;
  }

  .cat-hero__photo-wrap {
    width: 420px;
    height: 524px;
  }

  .cat-hero__circle {
    width: 420px;
    height: 420px;
  }

  .cat-hero__flower--left,
  .cat-hero__flower--right {
    display: none;
  }
}

@media (max-width: 1023px) {
  .cat-hero {
    flex-direction: column-reverse;
    padding: 32px 24px 0;
    gap: 32px;
    text-align: center;
  }

  .cat-hero__content {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .cat-hero__filters,
  .cat-hero__filters-row {
    align-items: center;
    justify-content: center;
  }

  .cat-hero__photo-wrap {
    margin: 0 auto;
  }
}

@media (max-width: 599px) {
  .cat-hero__title {
    font-size: 34px;
    line-height: 42px;
  }

  .cat-hero__desc {
    font-size: 19px;
    line-height: 27px;
  }

  .cat-hero__photo-wrap {
    width: 280px;
    height: 350px;
  }

  .cat-hero__circle {
    width: 280px;
    height: 280px;
  }
}


/* ==========================================================================
   Case Study Section & Items ("מקרי בוחן") — MOVED (2026) to
   components/_case-study-card.css (Tool.html shows the exact same
   case studies). Link that file in this page's <head> instead of
   relying on it being bundled here.
   ========================================================================== */
