/* FAQ section — qalam-high.html.
   Depends on shared page tokens (--warm-white, --crimson-*, --gold-500, --line,
   --text-muted, --dark-950, --radius-lg, --shadow-sm, --shadow, --display).
   Section padding for .faq itself is set by a shared cross-section rule in
   static/css/qalam-high.css. The open/close JS toggle lives in
   static/js/qalam-high.js and only depends on the .faq-item/.faq-question
   classes below, not on this file. */

.faq {
  padding: 120px 0;
  background: var(--warm-white);
  position: relative;
}
.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(--crimson-600);
  font-weight: 800;
}
.faq-head p {
  font-size: 15.5px;
  color: var(--text-muted);
  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: #fff;
  border: 1px solid var(--line);
  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: var(--crimson-100);
  box-shadow: var(--shadow);
}
.faq-item[open] {
  background: #fff;
  border-color: var(--crimson-100);
  box-shadow: 0 18px 46px rgba(92, 15, 26, 0.1);
}
.faq-question {
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 22px 72px 22px 28px;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 800;
  color: var(--dark-950);
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 6px rgba(240, 165, 0, 0.18);
}
.faq-question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 28px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    linear-gradient(var(--crimson-600), var(--crimson-600)) center / 14px 2px no-repeat,
    linear-gradient(var(--crimson-600), var(--crimson-600)) center / 2px 14px no-repeat,
    var(--crimson-50);
  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(--dark-950), var(--dark-950)) center / 14px 2px no-repeat,
    var(--gold-500);
  transform: translateY(-50%) rotate(180deg);
}
.faq-answer {
  padding: 0 28px 26px 55px;
  color: var(--text-muted);
  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: 900px) {
  .faq {
    padding: 96px 0;
  }
}

@media (max-width: 640px) {
  .faq {
    padding: 64px 0;
  }
  .faq-head {
    margin-bottom: 40px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .faq-list {
    min-height: 0;
  }
  .faq-item {
    border-radius: 18px;
  }
  .faq-question {
    min-height: auto;
    padding: 20px 58px 20px 22px;
    font-size: 1rem;
  }
  .faq-question::before {
    width: 8px;
    height: 8px;
  }
  .faq-question::after {
    right: 20px;
    width: 30px;
    height: 30px;
  }
  .faq-answer {
    padding: 0 22px 20px 49px;
    font-size: 14.5px;
  }
}
