:root {
  --brand-black: #1a1a1a;
  --white: #ffffff;
  --brand-green: #d1ff75;
  --text-dark: #333333;
  --text-mid: #666666;
  --text-light: #999999;
  --light-gray: #f4f4f4;
  --ultra-light-gray: #f9f9f9;
  --container-width: 1200px;
  --radius-medium: 6px;
  --radius-large: 8px;
  --font-extrabold: 800;
  --font-semibold: 600;
  --font-medium: 500;
  --transition-fast: all 0.2s ease;
}

/* Page-specific styles */
.page-hero::before {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(1) contrast(1)!important;
  animation: fadeIn 0.6s ease-in forwards !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.6;
  }
}
.webp .page-hero::before {
  background-image: url("/images/banners/employee-demolishing.webp") !important;
}

.no-webp .page-hero::before {
  background-image: url("/images/banners/employee-demolishing.png") !important;
}

.faq-main {
  padding: 2rem 1rem;
  background-color: var(--light-gray);
}

.faq-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.faq-search-section {
  margin-bottom: 3rem;
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-large);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-container {
  display: flex;
  max-width: 700px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  height: 50px;
  padding: 0 1rem 0 3rem;
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-medium);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23666666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
  background-repeat: no-repeat;
  background-position: 12px center;
}

.search-input:focus {
  outline: none;
}

/* FAQ Category Tabs Styling */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f4f4f4;
  color: #333;
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 40px;
  font-family: "Switzer", sans-serif;
}

.category-tab:hover {
  background-color: #e7e7e7;
  border-color: #d1d1d1;
}

.category-tab.active {
  color: var(--brand-black);
  background-color: var(--brand-green);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-results {
  font-size: 0.9rem;
  color: var(--text-mid);
  text-align: center;
  margin-top: 1rem;
}

.faq-categories {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.faq-category {
  background-color: var(--white);
  border-radius: var(--radius-large);
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-header {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-icon {
  width: 40px;
  height: 40px;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg {
  stroke: var(--text-dark);
}

.category-title {
  font-size: 1.5rem;
  font-weight: var(--font-semibold);
  color: var(--text-dark);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 1.5rem;
  max-height: 2000px;
}

.faq-answer p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  color: var(--text-mid);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 0 0 1rem 1.5rem;
  color: var(--text-mid);
}

.faq-answer li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.icon-plus {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.icon-plus::before,
.icon-plus::after {
  content: "";
  position: absolute;
  background-color: currentColor;
  transition: transform 0.3s ease;
}

.icon-plus::before {
  width: 2px;
  height: 16px;
  left: 9px;
  top: 2px;
}

.icon-plus::after {
  width: 16px;
  height: 2px;
  left: 2px;
  top: 9px;
}

.faq-question.active .icon-plus::before {
  transform: rotate(90deg);
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-mid);
  font-size: 1.1rem;
  background-color: var(--white);
  border-radius: var(--radius-large);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.no-results svg {
  stroke: var(--text-mid);
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .faq-main {
    padding: 3rem 1rem;
  }

  .category-tabs {
    gap: 0.5rem;
  }

  .category-tab {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .faq-category {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .search-container {
    flex-direction: column;
  }

  .category-tabs {
    margin-top: 1rem;
  }

  .category-tab {
    flex: 1 0 48%;
    text-align: center;
  }

  .category-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}
