.faq-container {
    width: 100%;
    max-width: 900px;
    margin: 25px auto 22px auto;
    padding: 28px 10px 18px 10px;
    border-radius: 20px;
}

.faq-title {
      text-align: center;
      margin: 20px;
      color: #7a51e0;
      font-size: 45px;
      font-weight: bold;
      letter-spacing: .2px;
      margin-bottom: 18px;
    }

.faq-search {
    width: 100%;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    border: 1.4px solid #ebe6f7;
    font-size: 1.05rem;
    background: #fcfbff;
    color: #23214a;
    transition: border-color .17s;
}

.faq-item {
    border-radius: 15px;
    background: #fafbfc;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid #f2f2f6;
    transition: box-shadow .17s, background .13s;
    cursor: pointer;
}

.faq-item:hover {
    background: #f4f2fd;
}

.faq-question {
    cursor: pointer;
    color: #222240;
    font-weight: 700;
    padding: 15px 20px;
    position: relative;
    transition: background .13s;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
}

.faq-question::before {
    content: '';
    display: inline-block;
    width: 34px;
    height: 34px;
    background: #f3eaff url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23a777fb" stroke-width="2" viewBox="0 0 24 24"><polyline points="6 9 12 15 18 9"/></svg>') center center no-repeat;
    border-radius: 12px;
    margin-left: 13px;
    margin-right: 2px;
}
.faq-item.open .faq-question::before {
    background: #f3eaff url('data:image/svg+xml;utf8,<svg fill="none" stroke="%236047ce" stroke-width="2" viewBox="0 0 24 24"><polyline points="18 15 12 9 6 15"/></svg>') center center no-repeat;
}

.faq-answer {
    display: none;
    padding: 18px 28px 16px 18px;
    color: #444;
    font-size: 1.02rem;
    background: transparent;
    transition: max-height .15s;
}
.faq-item.open .faq-answer {
    display: block;
}

/* ========== PAGINATION ========== */

.custom-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 14px 0;
  flex-wrap: wrap;
}

.pagination-btn {
  background: #f4f3fd;
  border: 1px solid #ece8ff;
  color: #4930c4;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  margin: 0 2px; 
}
.pagination-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.pagination-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination-input {
  width: 45px;
  height: 32px;
  border: 1px solid #ece8ff;
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
  outline: none;
}
.pagination-total {
  color: #555;
  font-size: 15px;
}


@media (max-width: 900px) {
  .faq-container {
    max-width: 95vw;
    padding: 16px 4px;
    border-radius: 12px;
  }
  .faq-title {
    font-size: 35px;
  }
  .faq-question {
    padding: 13px 12px;
    font-size: 1rem;
  }
  .faq-answer {
    padding: 14px 12px 12px 8px;
    font-size: 0.98rem;
  }
}
@media (max-width:600px) {
    .faq-container {max-width: 90vw; padding:10px;}
    .faq-title {font-size:30px;}
}
