:root {
  /* --primary-color: #4a90e2; */

  --white: #ffffff;
  --gray-light: #e0e0e0;
  --transition-speed: 0.3s;
}

.faq-hero-section {
  background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0)
    ),
    url('https://images.pexels.com/photos/8761536/pexels-photo-8761536.jpeg');
  background-position: 0% 55%;
  background-repeat: no-repeat;
  background-size: cover;
}

.faq-hero-section .header-left-content {
  max-width: 700px;
}

.faq-container {
  flex: 1;
  margin: 0 auto;
  background: transparent;
}

.faq-header {
  text-align: center;
  margin-bottom: 30px;
}

.faq-header h1 {
  color: var(--text-color);
  margin-bottom: 10px;
}

/* Filter Buttons Styling */
.faq-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 70px 0px 50px;
}

.filter-btn {
  padding: 10px 20px;
  border: none;
  background-color: var(--white);
  color: var(--text-color-light-dark);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 16px;
}

.filter-btn:hover {
  background-color: var(--gray-light);
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--primary-theme-color);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

/* Accordion Item Styling */
.faq-item {
  background-color: var(--white);
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-item.active .faq-question {
  background: #2a7b9b;
  background: linear-gradient(
    90deg,
    rgba(42, 123, 155, 0.1) 0%,
    rgba(199, 186, 87, 0.09) 50%,
    rgba(237, 83, 83, 0.12) 100%
  );
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--text-color);
  background: var(--white);
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: #fafafa;
}

/* The Plus/Minus Icon */

.faq-item .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.faq-item.active .icon {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Accordion Body (Answer) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease-out;
  background-color: var(--white);
}

.faq-answer p {
  padding: 0 20px 20px 20px;
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* Hide functionality for filtering */
.hide {
  display: none;
}

.industry-title-container {
  display: flex;
  justify-content: space-between;
}

.section-sub-title {
  width: 390px;
}
.section-sub-title p {
  text-align: end;
}

/* ... existing styles ... */

#category-info {
  width: 290px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.category-header h2 {
  margin: 0 0 10px 0;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.category-header p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}
.full-faq-div {
  flex: 1;
}

/* Simple fade animation for text changes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- NEW: Dynamic Category Header Styling --- */
.category-header {
  text-align: left;
  /* Default background color if image fails to load */
  background-color: var(--primary-color);
  /* Essential background properties */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 40px 30px; /* More padding for banner look */
  border-radius: 12px;
  margin-bottom: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

  position: relative; /* Needed for overlay positioning */
  overflow: hidden; /* Ensures overlay doesn't spill out */
  color: var(--white); /* Text color white for contrast */
}

/* The Dark Overlay to make text readable */
.category-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Black with 60% opacity */
  z-index: 1;
}

/* Ensure content sits above the overlay */
.cat-header-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 0.5s ease-in-out;
}

.category-header h2 {
  margin: 0 0 10px 0;
  color: var(--white);
  font-size: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.category-header p {
  margin: 0;
  color: #f0f0f0; /* Slightly off-white for description */
  font-size: 1.1rem;
  max-width: 600px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-main-content-container {
  display: flex;
  gap: 30px;
}

.faq-bottom {
  display: flex;
  justify-content: space-between;
  padding: 30px 0px;
}

.blogs-container {
  margin-bottom: -20px !important;
}

@media screen and (max-width: 1000px) {
  .industry-title-container {
    flex-direction: column;
    gap: 15px;
  }

  .industry-title-container .section-sub-title > p {
    text-align: start;
  }
  .industry-title-container .section-sub-title > p span {
    display: none;
  }

  .faq-main-content-container {
    flex-direction: column;
  }
  #category-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 20px 25px;
  }
}

@media screen and (max-width: 500px) {
  #category-info {
    display: none;
  }

  .section-sub-title {
    width: 100%;
  }
  .faq-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0px;
    text-align: center;
    gap: 10px;
  }

  .filter-btn {
    font-size: 14px;
  }
  .faq-hero-section {
    background-position: 50% 55%;
    background-repeat: no-repeat;
    background-size: cover;
  }
}
