.faq-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 40px;
  background: transparent;
  padding: 40px 0 20px;
}

.faq-hero-text h1 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  color: var(--text);
  margin-bottom: 16px;
}

.faq-hero-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
}

.faq-hero-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(58, 39, 23, 0.1);
  margin-left: auto;
  transform: rotate(2deg); 
  border: 4px solid #fff;
}

.faq-search-wrapper {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(58, 39, 23, 0.05);
  backdrop-filter: blur(5px);
}

.faq-search-box {
  position: relative;
  max-width: 100%;
}

.faq-search-input {
  width: 100%;
  padding: 18px 24px;
  padding-right: 140px; 
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 16px;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(58, 39, 23, 0.05);
  transition: all 0.3s ease;
}

.faq-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(230, 180, 54, 0.15);
  outline: none;
}

.faq-search-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  padding: 0 24px;
  background: linear-gradient(135deg, #f8ce66, var(--accent));
  border-radius: 12px;
  font-weight: 700;
  color: #2b1b0b;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}

.faq-search-btn:hover {
  transform: translateY(-1px);
}

.faq-tab-btn:hover {
  background: #fff;
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(230, 180, 54, 0.15);
  transform: translateY(-2px);
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.faq-item:hover {
  box-shadow: 0 8px 20px rgba(58, 39, 23, 0.06);
  border-color: rgba(230, 180, 54, 0.4);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-strong);
}

.faq-item.active .faq-question {
  background: rgba(230, 180, 54, 0.05);
  color: #2b1b0b;
}


@media (max-width: 768px) {
  .faq-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 20px;
  }
  
  .faq-hero-text p {
    margin: 0 auto;
  }
  
  .faq-hero-img {
    display: none; 
  }

  .faq-search-input {
    padding-right: 20px; 
  }
  
  .faq-search-btn {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
}

.faq-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: -1px;
  padding-left: 20px;
}

.faq-tab-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-tab-btn.active {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 -4px 10px rgba(58, 39, 23, 0.03);
  transform: translateY(-2px);
}

.faq-paper {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px; 
  padding: 40px;
  min-height: 400px;
}

.faq-group {
  display: none;
}

.faq-group.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.faq-category-header {
  margin-bottom: 24px;
}

.faq-category-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: var(--text);
  margin: 0;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(230, 180, 54, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  background: #fffdf9;
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(230, 180, 54, 0.1);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  background: transparent;
  border: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-strong);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

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

@media (max-width: 768px) {
  .faq-tabs { padding-left: 0; overflow-x: auto; white-space: nowrap; }
  .faq-paper { padding: 24px; border-radius: 16px; }
}
