/* =============================================
   FAQs PAGE — AD ASTRA 2027
   File: css/faqs.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Poppins:wght@400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #E8F4F3;
  overflow-x: hidden;
}

/* ── BACKGROUND TEXTURE OVERLAY ── */
.faq-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/bg-texture.png');
 background-size: 500px;  /* <--- Replace 500px with your original image's actual pixel width */
  background-repeat: repeat; 
  mix-blend-mode: multiply;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

/* ── PAGE LAYOUT ── */
.faq-page {
  width: 100%;
  display: flex;
  align-items: stretch;
  position: relative;
  background-color: #E8F4F3;
}

/* ── LEFT COLUMN ── */
.faq-left {
  width: 57%;
  padding: clamp(120px, 6.25vw, 220px) 0 clamp(140px, 7.3vw, 260px) clamp(140px, 7.3vw, 260px);
  flex-shrink: 0;
  position: relative;
}

/* ── RIGHT COLUMN ── */
.faq-right {
  flex: 1;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.faq-collage {
  width: 100%;
  height: auto;
  object-position: top center;
  display: block;
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.faq-header {
  margin-bottom: clamp(72px, 3.75vw, 140px);
  padding-right: clamp(80px, 7.3vw, 260px);
}

.faq-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(96px, 5vw, 180px);
  font-weight: 400;
  font-style: normal;
  color: #900;
  line-height: 100%;
  letter-spacing: -2.88px;
  max-width: 100%;
  margin-bottom: clamp(28px, 1.46vw, 52px);
  white-space: normal;
}

/* First letter of each word: italic */
.faq-title em {
  font-style: italic;
}

/* Hide manual line break at desktop — title wraps naturally by available width */
.faq-title br {
  display: none;
}

.faq-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(24px, 1.25vw, 44px);
  font-weight: 500;
  color: #900;
  line-height: 150%;
  letter-spacing: -0.72px;
  max-width: 100%;
  white-space: normal;
}

/* ══════════════════════════════════════════
   FAQ SECTION
══════════════════════════════════════════ */
.faq-section {
  margin-bottom: clamp(56px, 2.9vw, 100px);
}

/* ── FAQ SECTIONS WRAPPER ── */
.faq-sections {
  padding-right: clamp(80px, 7.3vw, 260px);
}

.section-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(36px, 1.875vw, 64px);
  font-weight: 600;
  color: #900;
  line-height: 150%;
  letter-spacing: -1.08px;
  border-bottom: 1.5px solid #231F20;
  padding-bottom: 16px;
  margin-bottom: 0;
  max-width: 100%;
}

/* ── FAQ LIST ── */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.faq-item {
  border-bottom: 1.5px solid #231F20;
}

/* ── QUESTION BUTTON ── */
.faq-question {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(18px, 0.94vw, 32px);
  font-weight: 600;
  color: #231F20;
  line-height: 150%;
  letter-spacing: -0.54px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: clamp(20px, 1.04vw, 36px) 0;
  cursor: pointer;
}

/* ── 4-BAR TOGGLE ICON ── */
.faq-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  width: 28px;
  height: 22px;
}

.faq-icon-bar {
  display: block;
  width: 28px;
  height: 2px;
  background-color: #231F20;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Open: only the top bar slants from the left */
.faq-item.active .faq-icon .faq-icon-bar:nth-child(1) {
  transform-origin: left center;
  transform: rotate(-20deg);
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon-bar,
  .faq-answer { transition: none !important; }
}

/* ── ANSWER ── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(16px, 0.83vw, 28px);
  font-weight: 400;
  color: #231F20;
  line-height: 1.65;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 800px;
  opacity: 1;
  padding: 4px 0 24px 0;
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  padding-left: 20px;
  margin-top: 8px;
}

.faq-answer ul li {
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media screen and (max-width: 1440px) {
  .faq-page { width: 100%; min-height: unset; flex-direction: column; }
  .faq-left { width: 100%; padding: 60px 40px; }
  .faq-sections { padding-right: 0; }
  .faq-right { width: 100%; aspect-ratio: 5 / 4; max-height: 600px; min-height: 300px; overflow: hidden; }
  .faq-collage { width: 100%; height: 100%; min-height: unset; object-fit: cover; object-position: center 20%; }
  .faq-title { font-size: 90px; max-width: 100%; }
  .faq-subtitle { font-size: 18px; max-width: 100%; }
  .section-heading { font-size: 28px; max-width: 100%; }
  .faq-list { max-width: 100%; }
  .faq-question { font-size: 16px; }
}

/* 876–1440px: title stays on one line at fixed size */
@media screen and (min-width: 876px) and (max-width: 1440px) {
  .faq-title {
    font-size: 90px;
    max-width: 100%;
  }
  .faq-title br {
    display: none;
  }
}

/* ≤875px: restore <br> so title splits to 2 lines */
@media screen and (max-width: 875px) {
  .faq-title br { display: revert; }
}

@media screen and (max-width: 600px) {
  .faq-left { padding: 40px 24px; }
  .faq-sections { padding-right: 0; }
  .faq-title { font-size: 64px; letter-spacing: -1.5px; max-width: 100%; }
  .faq-subtitle { font-size: 15px; max-width: 100%; }
  .section-heading { font-size: 22px; max-width: 100%; }
  .faq-question { font-size: 14px; }
  .faq-answer { font-size: 14px; }
  .faq-list { max-width: 100%; }
}