.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  
  background-color: #3DE6ED;
  padding: 1rem;
  border-radius: 8px;
}

.site-title {
  font-family: 'Staatliches', sans-serif;
  font-size: 2rem;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #e67e22;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --text-dark: #333333;
  --text-light: #7f8c8d;
  --border-color: #dcdde1;
  --category-underline: #ecf0f1;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  padding: 2rem;
}

.faq-container {
  max-width: 800px;
  margin: auto;
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.25rem;
}

.last-updated {
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1.5rem;
}

.search-wrapper {
  position: relative;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

#faq-search {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#faq-search:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 5px rgba(230, 126, 34, 0.3);
}

.search-wrapper .search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.1rem;
}

.no-results {
  text-align: center;
  font-family: 'Roboto', sans-serif;
  color: var(--secondary-color);
  margin: 0.5rem 0 1.5rem 0;
  font-size: 1rem;
}

.no-results.hidden {
  display: none;
}

.faq-category {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--category-underline);
  transition: opacity 0.3s ease;
}

.faq-category.hidden {
  display: none;
}

.faq-item {
  background: var(--bg-white);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.faq-question {
  padding: 1rem 1.5rem;
  cursor: pointer;
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--primary-color);
  background-color: #fff;
  transition: background-color 0.2s ease;
  outline: none;
}

.faq-question:hover,
.faq-question:focus {
  background-color: #f0f3f5;
}

.faq-question::after {
  content: '';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.4s ease;
  padding: 0 1.5rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1rem 1.5rem;
  opacity: 1;
}

.faq-item.active .faq-question::after {
  content: '';
}

.faq-item.hidden {
  display: none;
}

mark {
  background-color: #fff176;
  padding: 0 2px;
}

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#back-to-top:hover {
  background-color: #d35400;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  .faq-question {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  .faq-answer {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
  #back-to-top {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}