/* Section */
.ppfaq-section {
  background: #f1f1f1;
  padding: 3rem 1rem;
  font-family: 'Noto Sans', sans-serif;
}

.ppfaq-container {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

/* Headings */
.ppfaq-subtitle {
  margin-bottom: -1rem;
}
.ppfaq-title {
  font-size: 3rem;
  font-weight: 600;
}

/* Buttons */
.ppfaq-buttons {
  margin-bottom: 2rem;
}
.bton {
  padding: 0.5rem 1.7rem;
  border: none;
  cursor: pointer;
  margin: 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
    color: #fff;transition: 0.3s ease;
}

.bton-red {
  font-family: 'Noto Sans', sans-serif;
  background: #bb1a1a;
  border: 2px solid #bb1a1a;
}
.bton-red:hover{
  background: transparent;
  color: #bb1a1a;
}
.bton-grey {
  border: 2px solid #888;
  font-family: 'Noto Sans', sans-serif;
  background: #888;
}

.bton-grey:hover{
  background-color: transparent;
  color: #888;
}

/* Boxes */
.ppfaq-box {
  display: flex;
  align-items: flex-start;
  background: #fff;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.286);
  padding: 1rem;
  text-align: left;
}

.ppfaq-img {
  width: 300px;
  margin-right: 3rem;
  object-fit: cover;
}

.ppfaq-content {
  flex: 1;
}

.ppfaq-content h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* Q&A Items */
.ppfaq-item {
  border-bottom: 2px solid #bababa;
  margin-bottom: 0.5rem;
}
.ppfaq-question {
  color: black;
  font-family: 'Noto Sans', sans-serif;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  padding: 0.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
/* CSS: use max-height for smooth reveal and rotate arrow */
.ppfaq-answer {
  font-size: 16px;
  line-height: 1.6;
  color: black;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.2s ease;
  opacity: 0;
}
.ppfaq-item.active .ppfaq-answer {
  opacity: 1;
  /* max-height is set via JS so it exactly fits the content */
}

.arrow-icon {
  width: 16px;
  display: inline-block;       /* so transform works reliably */
  transition: transform 0.25s ease;
  transform-origin: 50% 50%;
}

/* Responsive */
@media (max-width: 768px) {
  .ppfaq-box {
    flex-direction: column;
    text-align: center;
  }
  .ppfaq-img {
    margin: 0 auto 1rem auto;
  }
  .ppfaq-content {
    text-align: left;
  }
}

/* Tablet (≤768px) */
@media (max-width: 768px) {
  .ppfaq-box {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }

  .ppfaq-img {
    margin: 0 auto 1rem auto;
    width: 180px;
  }

  .ppfaq-content {
    text-align: left;
  }

}

/* Mobile (≤486px) */
@media (max-width: 486px) {
  .ppfaq-section {
    padding: 2rem 0.8rem;
  }

  .ppfaq-title {
    font-size: 2rem;
    font-weight: 800;
  }

  .ppfaq-item {
  border-bottom: 2px solid #bababa;
  padding: 0.5rem;
}

  .ppfaq-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    
  }

.bton {
  font-size: 14px;
}

  .ppfaq-box {
    padding: 1rem;
  }

  .ppfaq-img {
    width: 180px;
  }

  .arrow-icon{
    width: 12px;
  }
  
.ppfaq-content h3 {
  margin-bottom:0;
  font-size: 1.3rem;
}

  .ppfaq-question {
    font-size: 15px;
  }

  .ppfaq-answer{
    font-size: 15px;
  }
}
