/* FAQ Section Styles */

.rand-faq {
  background-color: #ffffff;
  padding: 60px 16px;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .rand-faq {
    padding: 100px 40px;
  }
}

@media (min-width: 992px) {
  .rand-faq {
    padding: 150px 60px;
  }
}

.rand-faq__container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .rand-faq__container {
    flex-direction: row;
    gap: 60px;
    justify-content: space-between;
  }
}

@media (min-width: 1400px) {
  .rand-faq__container {
    gap: 100px;
  }
}

/* Header Column */
.rand-faq__header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  width: 100%;
}

@media (min-width: 992px) {
  .rand-faq__header {
    max-width: 400px;
    flex-shrink: 0;
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .rand-faq__header {
    max-width: 500px;
  }
}

/* Label */
.rand-faq__label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 1.96px;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
}

/* Title */
.rand-faq__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -1px;
  color: #222222;
  margin: 0;
}

@media (min-width: 992px) {
  .rand-faq__title {
    font-size: 50px;
    line-height: normal;
  }
}

/* Items Column */
.rand-faq__items {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  min-width: 0;
}

@media (min-width: 992px) {
  .rand-faq__items {
    flex: 1;
    max-width: 600px;
  }
}

/* FAQ Item */
.rand-faq__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Item Header (question + chevron) */
.rand-faq__item-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

/* Question Row */
.rand-faq__question-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Question */
.rand-faq__question {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #222222;
  margin: 0;
}

@media (min-width: 992px) {
  .rand-faq__question {
    font-size: 24px;
    line-height: normal;
  }
}

/* Chevron */
.rand-faq__chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.rand-faq__item.is-open .rand-faq__chevron {
  transform: rotate(180deg);
}

/* Separator */
.rand-faq__separator {
  width: 100%;
  height: 1px;
  background-color: #dee0e4;
}

/* Answer Content */
.rand-faq__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  padding-top: 0;
}

.rand-faq__item.is-open .rand-faq__content {
  max-height: 1000px;
  opacity: 1;
  padding-top: 8px;
}

/* Answer */
.rand-faq__answer {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #64748b;
  margin: 0;
}

@media (min-width: 992px) {
  .rand-faq__answer {
    font-size: 18px;
    line-height: 28px;
  }
}

.rand-faq__answer p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px !important;
  line-height: 24px !important;
  color: #64748b;
  margin: 0 0 1em 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 992px) {
  .rand-faq__answer p {
    font-size: 18px !important;
    line-height: 28px !important;
  }
}

.rand-faq__answer p:last-child {
  margin-bottom: 0;
}

.rand-faq__answer strong {
  font-weight: 600;
}

.rand-faq__answer ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.rand-faq__answer li {
  margin-bottom: 0.5em;
}

/* Button - hidden on mobile */
.rand-faq__button {
  display: none;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 8px 24px;
  background-color: #2c52f5;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: fit-content;
}

@media (min-width: 992px) {
  .rand-faq__button {
    display: inline-flex;
  }
}

.rand-faq__button:hover {
  background-color: #2445d4;
}
