/* ===================================================================
   Unit 7 — Page 1: שאלות נפוצות (FAQ)
   Global tokens, header, footer, and sequential nav from theme.css.
   =================================================================== */

.ata-unit-page {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.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-unit7-faq {
  --u7-intro-main: #f59b97;
  --u7-intro-light: #feece9;
  --u7-guidance-main: #edb3d2;
  --u7-guidance-light: #fef2f6;
  --u7-participants-main: #a9d48f;
  --u7-participants-light: #ecf7ea;
  --u7-syllabus-main: #ffee81;
  --u7-syllabus-light: #fdfad9;
  --u7-partners-main: #f59dc5;
  --u7-partners-light: #fdecf4;
  --u7-budget-main: #b9e4ed;
  --u7-budget-light: #f0f8fc;
  position: relative;
  width: 100%;
  direction: rtl;
  text-align: right;
  color: var(--navy);
  overflow: visible;
}

.u7-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;
}

#athalta-unit7-faq [hidden] {
  display: none !important;
}

.u7-intro {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 0 2.5rem;
}

.u7-faq-title,
.u7-contact-title {
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--teal);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: right;
}

.u7-intro-text,
.u7-contact-text {
  display: block;
  width: 100%;
  max-width: var(--prose-measure);
  margin: 0;
  padding: 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;
}

.u7-instruction {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  max-width: 100%;
  margin: 1.25rem 0 0;
  margin-inline-end: auto;
}

.u7-click-icon {
  display: block;
  width: 2.5rem;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.u7-instruction-text {
  margin: 0;
  color: var(--teal);
  font-size: var(--text-body);
  font-weight: 700;
  line-height: var(--lh-body);
  text-align: right;
}

.u7-faq-layout {
  display: grid;
  grid-template-columns: minmax(22rem, 30rem) minmax(0, 1fr);
  column-gap: 2rem;
  align-items: start;
  width: 100%;
}

.u7-topics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.u7-topic {
  --u7-topic-main: #d8d8d8;
  --u7-topic-light: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0.7rem 2.65rem 0.7rem 1.15rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow), -1px -1px 2.7px rgba(0, 0, 0, 0.16);
  color: var(--navy);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.u7-topic::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1.85rem;
  background: var(--u7-topic-main);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.u7-topic span {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.u7-topic:hover {
  transform: translateY(-0.1rem);
}

.u7-topic[aria-expanded="true"] {
  background: var(--u7-topic-light);
}

.u7-topic[data-u7-topic="intro"] {
  --u7-topic-main: var(--u7-intro-main);
  --u7-topic-light: var(--u7-intro-light);
}

.u7-topic[data-u7-topic="guidance"] {
  --u7-topic-main: var(--u7-guidance-main);
  --u7-topic-light: var(--u7-guidance-light);
}

.u7-topic[data-u7-topic="participants"] {
  --u7-topic-main: var(--u7-participants-main);
  --u7-topic-light: var(--u7-participants-light);
}

.u7-topic[data-u7-topic="syllabus"] {
  --u7-topic-main: var(--u7-syllabus-main);
  --u7-topic-light: var(--u7-syllabus-light);
}

.u7-topic[data-u7-topic="partners"] {
  --u7-topic-main: var(--u7-partners-main);
  --u7-topic-light: var(--u7-partners-light);
}

.u7-topic[data-u7-topic="budget"] {
  --u7-topic-main: var(--u7-budget-main);
  --u7-topic-light: var(--u7-budget-light);
}

.u7-question-panel {
  --u7-active-main: var(--u7-participants-main);
  --u7-active-light: var(--u7-participants-light);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  padding: 1.75rem 1.5rem 2.25rem;
  background: var(--white);
  border: 0.3rem solid var(--u7-active-main);
  border-radius: 0.625rem;
  overflow: visible;
  text-align: right;
}

.u7-questions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  direction: rtl;
  gap: 1rem 1.25rem;
  width: 100%;
  text-align: right;
  scroll-margin-top: 1.5rem;
}

.u7-question {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0.45rem 1.15rem;
  border: 0.3rem solid var(--u7-active-light);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow), -1px -1px 2.7px rgba(0, 0, 0, 0.16);
  color: var(--navy);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.u7-question:hover {
  transform: translateY(-0.1rem);
  border-color: var(--u7-active-main);
}

.u7-question[aria-expanded="true"] {
  background: var(--u7-active-light);
  border-color: var(--u7-active-main);
}

.u7-answer {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 2.25rem 0 1.5rem;
  margin-inline-end: auto;
  padding: 1.35rem 1.5rem 1.5rem;
  background: var(--u7-active-light);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: none;
  filter: drop-shadow(-1px -1px 1.4px rgba(0, 0, 0, 0.16))
    drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
  color: var(--navy);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -0.02em;
  text-align: right;
  scroll-margin-top: 1.5rem;
}

.u7-answer::after {
  content: "";
  position: absolute;
  right: 1.75rem;
  bottom: -1.35rem;
  width: 2.5rem;
  height: 1.6rem;
  background: var(--u7-active-light);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}

.u7-answer p {
  max-width: var(--prose-measure);
  margin: 0 0 0.75rem;
  padding: 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;
}

.u7-answer p:last-child {
  margin-bottom: 0;
}

.u7-contact {
  width: 100%;
  margin: 4.5rem 0 0;
  padding: 0;
  text-align: right;
}

.u7-contact-text {
  font-weight: 700;
}

.u7-email {
  display: inline-block;
  color: var(--navy);
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  direction: ltr;
  unicode-bidi: isolate;
  text-decoration: none;
  transition: all 0.3s ease;
}

.u7-email:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

@media (max-width: 47.9375rem) {
  .ata-unit-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .u7-faq-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2rem;
  }

  .u7-faq-title,
  .u7-contact-title {
    font-size: 1.5rem;
  }

  .u7-topic {
    font-size: 1.25rem;
    padding: 0.65rem 2.2rem 0.65rem 0.85rem;
    white-space: normal;
  }

  .u7-topic span {
    white-space: normal;
  }

  .u7-topic::before {
    width: 1.25rem;
  }

  .u7-answer {
    width: 100%;
    max-width: 100%;
  }

  .u7-contact {
    margin-top: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .u7-topic,
  .u7-question,
  .u7-email {
    transition: none;
  }

  .u7-topic:hover,
  .u7-question:hover {
    transform: none;
  }
}

html,
body {
  background-color: #ffffff;
  background-image: none;
}

.page-bg {
  display: none;
  background-image: none;
}

.u7p1-canvas {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  background-color: #ffffff;
  background-image: none;
}

.u7p1-pipes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.u7p1-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;
}

.u7p1-pipe-a {
  top: 17.5rem;
  bottom: auto;
  right: -4.75rem;
  left: auto;
  width: 14rem;
  transform: none;
}

.u7p1-pipe-b {
  bottom: 6rem;
  top: auto;
  left: -0.5rem;
  right: auto;
  width: 13.6rem;
  transform: scaleX(-1);
}

.site-header,
.site-footer {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  background-image: none;
}

@media (max-width: 768px) {
  .u7p1-pipe-a {
  top: 11.9rem;
  bottom: auto;
  right: -3.23rem;
  left: auto;
  width: 9.52rem;
  transform: none;
}

  .u7p1-pipe-b {
  bottom: 6rem;
  top: auto;
  left: -5.4rem;
  right: auto;
  width: 9.25rem;
  transform: scaleX(-1);
}
}
