.ai-consulting-faq-section {
  padding: 50px 0 50px 0;
  /* background: linear-gradient(135deg, #eef9ff 0%, #99d3ff 100%); */
  position: relative;
  margin-bottom: 0;
}

/* Remove any unwanted margin/padding after FAQ */
.ai-consulting-faq-section + * {
  margin-top: 0 !important;
}

/* Ensure FAQ container has proper spacing */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
}

/* FAQ Header */
.faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.faq-main-title {
  /* font-size: 2rem; */
  /* font-weight: 700; */
  margin-bottom: 0;
  /* line-height: 1.2; */
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.faq-main-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #68a4c4, #06a3da);
  border-radius: 2px;
}

/* First part of heading - "Frequently Asked" */
.first-part {
  color: #091e3e;
}

/* Second part of heading - "Questions" */
.second-part {
  color: #06a3da;
}

.faq-subtitle {
  font-size: 1rem;
  color: #444;
  max-width: 600px;
  margin: 20px auto 0;
  padding: 0 20px;
}

/* FAQ Item - Individual boxes with spacing */
.faq-item {
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fff;
  transition: all 0.3s ease;
  width: 100%;
  animation: fadeIn 0.5s ease forwards;
  box-shadow: 0 4px 15px rgba(6, 163, 218, 0.08);
  border: 1px solid #d1ecff;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item.active {
  background: linear-gradient(
    90deg,
    rgba(6, 163, 218, 0.03),
    rgba(104, 164, 196, 0.03)
  );
  box-shadow: 0 6px 20px rgba(6, 163, 218, 0.12);
  border-color: rgba(6, 163, 218, 0.3);
}

/* FAQ Question */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  min-height: 70px;
  transition: all 0.3s ease;
  padding: 0 30px;
}

/* Question Content */
.question-content {
  display: flex;
  align-items: center;
  flex: 1;
}

/* FAQ Title */
.faq-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #091e3e;
  line-height: 1.4;
  margin: 0;
  transition: color 0.3s ease;
  position: relative;
  padding-left: 0;
}

.faq-title::before {
  display: none;
}

.faq-question:hover .faq-title {
  color: #0480b8;
}

.faq-item.active .faq-title {
  color: #06a3da;
  font-weight: 700;
}

/* FAQ Icon */
.faq-icon {
  color: #091e3e;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(6, 163, 218, 0.08);
  border: 1px solid rgba(6, 163, 218, 0.1);
  margin-left: 15px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: linear-gradient(135deg, #68a4c4 0%, #06a3da 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(6, 163, 218, 0.3);
}

.faq-question:hover .faq-icon {
  background: rgba(6, 163, 218, 0.12);
  border-color: rgba(6, 163, 218, 0.15);
  transform: scale(1.05);
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s ease;
  padding: 0 30px;
  position: relative;
  line-height: 1.6;
  background: rgba(6, 163, 218, 0.02);
  border-top: 1px solid transparent;
}

.faq-answer::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #68a4c4, #06a3da);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 25px 30px;
  border-top: 1px solid rgba(6, 163, 218, 0.1);
}

.faq-item.active .faq-answer::before {
  opacity: 1;
}

.faq-answer p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding-left: 10px;
}

.faq-question:hover {
  transform: translateX(3px);
}

.faq-item.active .faq-question {
  transform: translateX(0);
}

/* FAQ Item Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item:nth-child(1) {
  animation-delay: 0.1s;
}
.faq-item:nth-child(2) {
  animation-delay: 0.2s;
}
.faq-item:nth-child(3) {
  animation-delay: 0.3s;
}
.faq-item:nth-child(4) {
  animation-delay: 0.4s;
}
.faq-item:nth-child(5) {
  animation-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ai-consulting-faq-section {
    padding: 40px 15px;
  }
  .faq-header {
    margin-bottom: 40px;
  }
  .faq-main-title {
    /* font-size: 2rem; */
    padding-bottom: 12px;
  }
  .faq-main-title::after {
    width: 80px;
    height: 2.5px;
  }
  .faq-subtitle {
    font-size: 0.9rem;
    margin-top: 15px;
  }
  .faq-item {
    margin-bottom: 12px;
    border-radius: 10px;
  }
  .faq-question {
    min-height: 65px;
    padding: 0 20px;
  }
  .faq-title {
    font-size: 1rem;
  }
  .faq-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-answer::before {
    left: 20px;
  }
  .faq-item.active .faq-answer {
    padding: 20px 20px;
    max-height: 500px;
  }
  .faq-answer p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

@media (max-width: 576px) {
  /* .faq-main-title {
    font-size: 1.8rem;
  } */
}

@media (max-width: 480px) {
  .ai-consulting-faq-section {
    padding: 30px 10px;
  }
  .faq-main-title {
    /* font-size: 1.6rem; */
    padding-bottom: 10px;
  }
  .faq-main-title::after {
    width: 60px;
    height: 2px;
  }
  .faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
  }
  .faq-question {
    min-height: 60px;
    padding: 0 15px;
  }
  .faq-title {
    font-size: 0.95rem;
  }
  .faq-answer {
    padding: 0 15px;
  }
  .faq-answer::before {
    left: 15px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 15px;
  }
  .faq-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

/* For larger screens */
@media (min-width: 1200px) {
  .faq-container {
    max-width: 900px;
  }
}

@media (min-width: 1400px) {
  .faq-container {
    max-width: 1000px;
  }
  .faq-item {
    margin-bottom: 18px;
  }
}

.card-title {
  font-size: 22px;
  /* font-weight: 600; */
  color: #091e3e;
  margin-bottom: 12px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.box-title {
  font-size: 22px;
  /* font-weight: 600; */
  color: #091e3e;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

