.faq-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: center; /* ✅ Center align both sides */
  padding: 60px 20px;
  max-width: 1140px;
  margin: auto;
   font-family: 'Outfit', sans-serif;
}

.faq-left-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

.faq-left-image::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 90%;
  background: linear-gradient(135deg, rgba(244, 193, 15, 0.08), rgba(0, 0, 0, 0.03));
  border-radius: 20px;
  z-index: 0;
  filter: blur(20px);
  opacity: 0.7;
  pointer-events: none;
}

.faq-left-image img {
  height: 400px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 18px;
  z-index: 2;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.12),
    0 6px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 5px solid #F4B730;
  background-color: #fff;
}

.faq-left-image img:hover {
  transform: scale(1.02);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.15),
    0 10px 10px rgba(0, 0, 0, 0.1);
}


.faq-right-content {
  flex: 1 1 55%;
    font-family: 'Outfit', sans-serif;
}

.faq-heading {
  font-size: 32px;
  color: #1A2C53;
  margin-bottom: 30px;
  text-align: left;
    font-family: 'Outfit', sans-serif;
}

.faq-item {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
}

.faq-question {
  display: flex;
    font-family: 'Outfit', sans-serif;
  justify-content: space-between;
  align-items: center;
  background-color: #F4B730;
  color: #1A2C53;
  font-weight: 600;
  padding: 16px 20px;
  width: 100%;
  border: none;
  font-size: 16px;
  cursor: pointer;
  outline: none;
}

.faq-question .icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg); /* rotates + to x */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.1s ease, padding 0.3s ease;
  background: #fffbe6;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 500px; 
  padding: 16px 20px;
}

@media (max-width: 768px) {
  .faq-section {
    flex-direction: column;
    align-items: center; /* ✅ Center content */
  }

  .faq-heading {
    order: 1;
    text-align: center;
    width: 100%;
    bottom: 400px;
    position: relative;
  
   
  }

  .faq-left-image {
    order: 2;
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
    width: 100%;         /* ✅ Ensure full width */
    display: flex;
    position: relative;
    top: 100px;
     
  }

  .faq-left-image img {
    height: auto;
    max-width: 100%;       /* ✅ Add margin from sides */
    margin: auto;         /* ✅ Center the image */
  }

  .faq-right-content {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .faq-section {
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
  }

  .faq-heading {
    order: 1;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    position: static;
  }

  .faq-left-image {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    position: static;
  }

  .faq-left-image img {
    height: auto;
    max-width: 90%;
    border-radius: 18px;
  }

  .faq-right-content {
    order: 3;
    width: 100%;
    text-align: center;
  }
}
