.navbar {
  background: white;
}

/* Background gradient for the main section */
.bg-light-pink-gradient {
  position: relative; /* Acts as the anchor */
  overflow: hidden; /* Cuts off any image parts that stick out */
  z-index: 1;
  background: linear-gradient(135deg, #ffeff1 0%, #ffffff 50%, #ffeff1 100%);
}

/* --- GRID LAYOUT --- */
.faq-layout {
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: start;
  position: relative;
  margin: 0 auto;
}

.deco-lines-img {
  position: absolute;
  top: 0;
  left: 0%;

  /* Desktop: Height follows the section, Width auto preserves the curve shape */
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: left top;

  z-index: -1; /* Sits behind the text */
  pointer-events: none;
  opacity: 0.8;
}

.intro-content {
  position: relative;
  z-index: 2; /* Sits above lines */
}

.intro-content h2 {
  margin-bottom: 26px;
}

.intro-desc {
  margin-bottom: 26px;
}

.faq-divider {
  height: 1px;
  width: 100%;
  background-color: #000000;
}

.faq-contact-box h3 {
  margin: 18px 0;
}

.faq-contact-box p {
  max-width: 580px;
}

.mt-3 {
  margin-top: 18px;
}

/* --- RIGHT COLUMN: Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.faq-item {
  background: white;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 24px 36px;
  background: white;
  border: 1px solid #ffeff2;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question span {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  color: #353f4f;
  max-width: 465px;
}

/* --- ICONS IN CSS (Using Pseudo-elements) --- */
.faq-question::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;

  /* DEFAULT: PLUS ICON (Black) */
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='11' stroke='%23333333' stroke-width='1.5'/%3E%3Cpath d='M12 7V17' stroke='%23333333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7 12H17' stroke='%23333333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Answer Body */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: #ffe7eb; /* Light Pink */
  transition: max-height 0.1s ease, padding 0.1s ease;
  padding: 0 36px;
  border: 1px solid #ffeff2;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.5;
  color: #262525;
}

/* --- ACTIVE STATE --- */
.faq-item.active {
  box-shadow: 0 10px 30px rgba(250, 18, 57, 0.15);
}

/* 1. Change Background to Red */
.faq-item.active .faq-question {
  background-color: var(--primary-500);
}

/* 2. Change Text to White */
.faq-item.active .faq-question span {
  color: white;
  font-size: 24px;
}

/* 3. Switch Icon to Minus & Make White */
.faq-item.active .faq-question::after {
  /* MINUS ICON */
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='11' stroke='%23333333' stroke-width='1.5'/%3E%3Cpath d='M7 12H17' stroke='%23333333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  /* Turn icon white */
  filter: brightness(0) invert(1);
}

/* 4. Expand Answer */
.faq-item.active .faq-answer {
  max-height: 100%;
  padding: 36px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .bg-light-pink-gradient {
    background: linear-gradient(135deg, #ffeff1 0%, #ffffff 50%, #ffeff1 100%);
    padding: 36px 30px;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .deco-lines-img {opacity: 1;left: 0;}

  .faq-intro {
    position: static;
    text-align: center;
  }
  .intro-content h2 {
    margin-bottom: 24px;
  }
  .intro-desc {
    margin-bottom: 20px;
  }

  .deco-lines-pattern {
    width: 100%;
    left: 0;
  }

  .faq-contact-box p {
    margin: 0 auto;
  }

  .faq-item.active .faq-question span {
    color: white;
    font-size: 20px;
  }

  .faq-answer p {
    text-align: center;
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .bg-light-pink-gradient {
    padding: 30px 0px;
  }

  .container {
    padding-inline: 20px;
  }

  .deco-lines-img{
    top: 0%;
    left: -40%;
    height: 62%;
    width: 100%;
    opacity: 0.5;
    object-position: top center;
  }

  .faq-layout {
    gap: 36px;
  }
  .intro-content {
    padding: 0 16px;
  }

  .faq-contact-box h3 {
    margin: 18px 0 7px;
  }

  .faq-item.active .faq-question span {
    font-size: 24px;
  }

  .faq-answer p {
    text-align: left;
    font-size: 16px;
  }
}
