/* ===================================================================
   Unit 4 — Page 5.0: תכנים מוצעים — ביטוי עצמי ושייכות
   Global tokens, header, footer, and sequential nav from theme.css.
   =================================================================== */

:root {
  --u4c-green: #a9d48f;
  --u4c-green-accent: #93b97d;
  --u4c-green-light: #ecf7ea;
  --u4-green-dark: #93b97d;
  --u4-green-light: #ecf7ea;
  --u4c-tab: 40px;
  --u4c-puzzle-border: 5px;
  --u4-puzzle-stroke: var(--u4-green-dark);
  --u4-puzzle-title-bg: var(--u4-green-light);
  --u4-puzzle-banner-bg: var(--u4c-green);
}

.ata-unit-page {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  overflow-x: hidden;
}

.ata-unit-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: right;
}

.ata-unit-title-index,
.ata-unit-title-name {
  color: var(--teal);
}

.ata-unit-title-divider {
  color: var(--rose);
  padding: 0 0.625rem;
}

#athalta-unit4-contents-belonging {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  direction: rtl;
  text-align: right;
  color: var(--navy);
}

.u4c-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.u4c-opening,
.u4c-foundation,
.u4c-carousel-intro {
  width: 100%;
  margin: 0 0 2rem;
}

.u4c-foundation {
  margin-bottom: 2.5rem;
}

.u4c-page-title,
.u4c-section-heading,
.u4c-carousel-heading {
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--teal);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: right;
}

.u4c-page-title {
  font-size: var(--text-h2);
}

.u4c-section-heading,
.u4c-carousel-heading {
  font-size: var(--text-h3);
  font-weight: 600;
}

.u4c-intro,
.u4c-running-text,
.u4c-instruction-text {
  width: 100%;
  max-width: var(--prose-measure);
  margin: 0;
  color: var(--navy);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  text-align: right;
  text-wrap: pretty;
}

.u4c-intro strong {
  font-weight: 700;
}

.u4c-after-video {
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}

.u4c-intro + .u4c-intro {
  margin-top: 0.75rem;
}

.u4c-instruction {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  max-width: 100%;
  margin: 0.85rem 0 0;
  margin-inline-end: auto;
}

.u4c-click-icon {
  display: block;
  width: 2.5rem;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.u4c-instruction-text {
  max-width: none;
  color: var(--teal);
  font-weight: 700;
}

.u4c-carousel,
.u4c-carousel-wrapper,
.u4c-slides,
.u4c-slide {
  overflow: visible !important;
}

.u4c-carousel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 56.25rem;
  margin: 0 auto;
  padding: 0;
}

.u4c-carousel-wrapper,
.u4c-slides {
  max-width: 100%;
}

.u4c-carousel-wrapper {
  position: relative;
  width: auto;
  margin-inline: clamp(0rem, 6vw, 5.5rem);
}

.u4c-slides {
  width: 100%;
}

.u4c-slide {
  display: none;
}

.u4c-slide.is-active {
  display: block;
}

.u4c-card {
  display: flex;
  flex-direction: column;
  gap: 2.35rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 56.25rem;
  margin: 0 auto;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 0.625rem;
  background: var(--white);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.08), var(--shadow);
}

.u4c-card-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0.45rem 1.5rem;
  border: 0.25rem solid var(--u4c-green);
  border-radius: 0.625rem;
  background: var(--u4c-green-light);
  color: var(--navy);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.u4c-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0.85rem 1.5rem 1.25rem;
  border: 0.25rem solid var(--u4c-green);
  border-radius: 0.625rem;
  background: var(--white);
}

.u4c-panel-icon {
  display: block;
  width: 3.75rem;
  height: auto;
  max-width: 100%;
  margin: -2.55rem auto 0.1rem;
  flex-shrink: 0;
  object-fit: contain;
}

.u4c-panel-label {
  display: inline-flex;
  align-self: center;
  justify-content: center;
  margin: 0 auto 1.35rem;
  padding: 0.15rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: var(--u4c-green);
  background-color: #a9d48f;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.u4c-panel-text {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.02em;
  text-align: right;
  text-wrap: pretty;
}

.u4c-examples-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.u4c-examples-list li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 0.625rem;
  background: var(--u4c-green-light);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.02em;
  text-align: right;
}

.u4c-examples-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--u4c-green-accent);
}

.u4c-links-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.u4c-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 0.625rem;
  background: var(--u4c-green-light);
  box-shadow: var(--shadow);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.u4c-link-chip:hover {
  transform: translateY(-0.1rem);
}

.u4c-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--u4c-green-accent);
  box-shadow: var(--shadow);
  color: var(--u4c-green-light);
  cursor: pointer;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.u4c-next {
  left: calc(-3.5rem - 30px);
  right: auto;
}

.u4c-prev {
  right: calc(-3.5rem - 30px);
  left: auto;
}

.u4c-nav svg {
  display: block;
  width: 1.25rem;
  height: auto;
  flex-shrink: 0;
}

.u4c-nav:hover,
.u4c-nav:focus-visible {
  transform: translateY(-50%) scale(1.05);
}

.u4c-nav[hidden] {
  display: none;
}

.u4c-dots {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin: 1.35rem 0 0;
}

.u4c-dot {
  width: 2.15rem;
  height: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.625rem;
  background: rgba(147, 185, 125, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.u4c-dot.is-active {
  background: var(--u4c-green-accent);
}

@media (max-width: 47.9375rem) {
  .u4c-carousel {
    max-width: 100%;
    padding: 0;
  }

  .u4c-carousel,
  .u4c-carousel-wrapper,
  .u4c-card {
    width: 100%;
    max-width: none;
  }

  .u4c-carousel-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-inline: 0;
  }

  .u4c-slides {
    flex: 1 0 100%;
    order: -1;
  }

  .u4c-nav,
  .u4c-next,
  .u4c-prev {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    margin-top: 0.85rem;
  }

  .u4c-nav:hover,
  .u4c-nav:focus-visible {
    transform: none;
  }

  .u4c-card {
    padding: 1.25rem 1rem 1.15rem;
    gap: 2rem;
  }

  .u4c-nav {
    width: 2.75rem;
    height: 2.75rem;
  }

  .u4c-intro,
  .u4c-running-text {
    max-width: none;
  }
}

.as-video-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.75rem;
  width: min(100%, 30rem);
  min-width: 0;
  margin: 0;
  margin-inline-end: auto;
  padding: 0.85rem 0.85rem 0.9rem;
  border: 0.25rem solid #49bbbd;
  border-radius: 1rem;
  background: #ffffff;
  box-sizing: border-box;
}

.as-video-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  margin: 0;
  font-size: inherit;
  font-weight: 700;
  text-align: center;
  direction: rtl;
}

.as-video-kicker {
  display: block;
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  background: none;
}

.as-video-name {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 0.55rem;
  background: #ccebec;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-align: center;
  box-sizing: border-box;
}

.as-video-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: visible;
  border-radius: 0.5rem;
  pointer-events: auto;
}

.as-video-frame iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .as-video-card,
  .as-video-frame,
  .as-video-frame iframe {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    touch-action: manipulation;
  }
}

@media (prefers-reduced-motion: reduce) {
  .u4c-link-chip,
  .u4c-nav,
  .u4c-dot {
    transition: none;
  }

  .u4c-link-chip:hover,
  .u4c-nav:hover,
  .u4c-nav:focus-visible {
    transform: none;
  }
}

html,
body {
  background-color: #ffffff;
  background-image: none;
}

.page-bg {
  display: none;
  background-image: none;
}

.u4p50-canvas {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  background-color: #ffffff;
  background-image: none;
}

.u4p50-pipes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.u4p50-pipe {
  position: absolute;
  z-index: 0;
  display: block;
  height: auto;
  max-width: 18.75rem;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}

.u4p50-pipe-a {
  top: 0.5rem;
  bottom: auto;
  left: -0.5rem;
  right: auto;
  width: 12rem;
  transform: none;
}

.u4p50-pipe-b {
  bottom: 11.25rem;
  top: auto;
  right: -0.5rem;
  left: auto;
  width: 10rem;
  transform: none;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  background-image: none;
}

@media (max-width: 768px) {
  .u4p50-pipe-a {
  top: 0.34rem;
  bottom: auto;
  left: -0.34rem;
  right: auto;
  width: 8.16rem;
  transform: none;
}

  .u4p50-pipe-b {
  bottom: 7.65rem;
  top: auto;
  right: -0.34rem;
  left: auto;
  width: 6.8rem;
  transform: none;
}
}

html,
body {
  background-color: #ffffff;
  background-image: none;
}

.page-bg {
  display: none;
  background-image: none;
}

.u4p501-canvas {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  background-color: #ffffff;
  background-image: none;
}

.u4p501-pipes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.u4p501-pipe {
  position: absolute;
  z-index: 0;
  display: block;
  height: auto;
  max-width: 18.75rem;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}

.u4p501-pipe-a {
  top: 7.5rem;
  bottom: auto;
  right: -4rem;
  left: auto;
  width: 10.5rem;
  transform: none;
}

.u4p501-pipe-b {
  bottom: 5.5rem;
  top: auto;
  left: -0.5rem;
  right: auto;
  width: 12rem;
  transform: none;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  background-image: none;
}

@media (max-width: 768px) {
  .u4p501-pipe-a {
  top: 5.1rem;
  bottom: auto;
  right: -2.7rem;
  left: auto;
  width: 7.1rem;
  transform: none;
}

  .u4p501-pipe-b {
  bottom: 3.74rem;
  top: auto;
  left: -0.34rem;
  right: auto;
  width: 8.16rem;
  transform: none;
}
}
