/* 🔒 WRAPPER (ALIVE BACKGROUND) */
.astro-faq-wrapper {
  background: linear-gradient(180deg, #fffaf5, #fff, #fdf7ef);
  padding: 100px 20px;
  color: #1a1a1a;
  position: relative;
  overflow: hidden;
}

/* 🔥 FLOATING GLOW ORBS */
.astro-faq-wrapper::before,
.astro-faq-wrapper::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,140,0,0.15), transparent);
  filter: blur(100px);
  animation: floatGlow 12s ease-in-out infinite;
}

.astro-faq-wrapper::before {
  top: -120px;
  left: -120px;
}

.astro-faq-wrapper::after {
  bottom: -120px;
  right: -120px;
  animation-delay: 4s;
}

@keyframes floatGlow {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(40px); }
}

/* CONTAINER */
.astro-faq-container {
  max-width: 920px;
  margin: auto;
  position: relative;
  z-index: 2;
}

/* HEADER */
.astro-faq-header {
  text-align: center;
  margin-bottom: 70px;
}

.astro-faq-header h2 {
  font-size: 40px;
  font-weight: 700;
  background: linear-gradient(90deg, #ff8c00, #f5c542);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.astro-faq-header p {
  color: #666;
  margin-top: 10px;
  font-size: 15px;
}

/* ================= */
/* FAQ CARD */
/* ================= */

.astro-faq-item {
  position: relative;
  border-radius: 18px;
  margin-bottom: 20px;
  overflow: hidden;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(255,140,0,0.15);

  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);

  transform: translateY(20px);
  opacity: 0;
}

/* shimmer effect */
.astro-faq-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,0.4),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.astro-faq-item:hover::before {
  opacity: 1;
}

/* HOVER */
.astro-faq-item:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(255,140,0,0.4);
  box-shadow: 0 20px 45px rgba(255,140,0,0.15);
}

/* ACTIVE */
.astro-faq-item.active {
  border-color: #ff8c00;
  box-shadow: 0 15px 40px rgba(255,140,0,0.25);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%,100% { box-shadow: 0 15px 40px rgba(255,140,0,0.25); }
  50% { box-shadow: 0 15px 50px rgba(255,140,0,0.4); }
}

/* ================= */
/* QUESTION */
/* ================= */

.astro-faq-question {
  width: 100%;
  padding: 22px;
  font-size: 16px;
  font-weight: 600;

  background: none;
  border: none;
  color: #222;

  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;
  transition: color 0.3s ease;
}

.astro-faq-item:hover .astro-faq-question {
  color: #ff8c00;
}

/* ================= */
/* ICON ANIMATION */
/* ================= */

.astro-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.astro-icon::before,
.astro-icon::after {
  content: "";
  position: absolute;
  background: linear-gradient(45deg,#ff8c00,#f5c542);
  transition: all 0.3s ease;
}

.astro-icon::before {
  width: 100%;
  height: 2px;
  top: 9px;
}

.astro-icon::after {
  width: 2px;
  height: 100%;
  left: 9px;
}

/* rotate icon */
.astro-faq-item.active .astro-icon {
  transform: rotate(180deg);
}

.astro-faq-item.active .astro-icon::after {
  transform: scaleY(0);
}

/* ================= */
/* ANSWER */
/* ================= */

.astro-faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.45s ease;
}

.astro-faq-answer p {
  padding: 0 22px 22px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}

/* ACTIVE */
.astro-faq-item.active .astro-faq-answer {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
}

/* ================= */
/* CTA */
/* ================= */

.astro-faq-cta {
  text-align: center;
  margin-top: 70px;
}

.astro-faq-cta h3 {
  margin-bottom: 18px;
  font-size: 22px;
}

/* BUTTON */
.astro-faq-btn {
  display: inline-block;
  padding: 16px 36px;
  background: linear-gradient(90deg,#ff8c00,#f5c542);
  color: #000;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;

  position: relative;
  overflow: hidden;

  transition: all 0.3s ease;
}

/* button glow animation */
.astro-faq-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: translateX(-100%);
}

.astro-faq-btn:hover::before {
  animation: shine 1s forwards;
}

@keyframes shine {
  to { transform: translateX(100%); }
}

.astro-faq-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255,140,0,0.4);
}

/* ================= */
/* SCROLL REVEAL */
/* ================= */

.astro-faq-item.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s ease;
}

/* MOBILE */
@media (max-width: 600px) {
  .astro-faq-header h2 {
    font-size: 28px;
  }
}