/* FAQ section — qalam-primary.html.
   Depends on shared page tokens (--white, --line, --green, --green-dark,
   --green-soft, --yellow, --ink, --ink-60, --radius-lg, --shadow-sm,
   --shadow). */

.faq {
  background: var(--white);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 60px;
  align-items: start;
}
.faq-head h2 {
  margin: 14px 0 20px;
}
.faq-head h2 em {
  font-style: normal;
  color: var(--green);
  font-weight: 700;
}
.faq-head p {
  font-size: 15.5px;
  color: var(--ink-60);
  line-height: 1.65;
  margin-bottom: 24px;
}
.faq-list {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: var(--faq-list-min-height, 0);
}
.faq-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(222, 230, 226, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease,
    background 0.24s ease;
}
.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(4, 54, 42, 0.18);
  box-shadow: var(--shadow);
}
.faq-item[open] {
  background: var(--white);
  border-color: rgba(4, 54, 42, 0.22);
  box-shadow: 0 18px 46px rgba(1, 26, 20, 0.1);
}
.faq-question {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 22px 72px 22px 28px;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.18);
}
.faq-question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 28px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-soft);
  background:
    linear-gradient(var(--green), var(--green)) center / 14px 2px
      no-repeat,
    linear-gradient(var(--green), var(--green)) center / 2px 14px
      no-repeat,
    var(--green-soft);
  transform: translateY(-50%) rotate(0deg);
  transition:
    transform 0.24s ease,
    background-color 0.24s ease;
}
.faq-item[open] .faq-question::after {
  background:
    linear-gradient(var(--green-dark), var(--green-dark)) center / 14px
      2px no-repeat,
    var(--yellow);
  transform: translateY(-50%) rotate(180deg);
}
.faq-answer {
  padding: 0 28px 26px 55px;
  color: var(--ink-60);
  font-size: 15.5px;
  line-height: 1.75;
}
.faq-answer p + p {
  margin-top: 10px;
}
.faq-answer ul,
.faq-answer ol {
  margin: 10px 0 0 18px;
}
.faq-answer li + li {
  margin-top: 6px;
}

@media (max-width: 1100px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 640px) {
  .faq-grid {
    gap: 28px;
  }
  .faq-list {
    gap: 10px;
  }
  .faq-item {
    border-radius: 18px;
  }
  .faq-question {
    min-height: 68px;
    padding: 18px 58px 18px 20px;
    gap: 12px;
    font-size: 15.5px;
  }
  .faq-question::before {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 5px rgba(250, 204, 21, 0.16);
  }
  .faq-question::after {
    right: 18px;
    width: 30px;
    height: 30px;
  }
  .faq-answer {
    padding: 0 20px 22px 39px;
    font-size: 14.5px;
  }
}
