/* Hero Section */
.hero {
  background-color: var(--primary-light);
  padding: var(--space-xl) 0;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.hero h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

/* Main Content Layout */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-md);
}

.content-container {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

/* Main Content Area */
.main-content {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
}

.content-section {
  border-radius: var(--radius-md);
  background: var(--white);
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section h1 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--primary-light);
}

.content-section h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  padding-bottom: var(--space-xs);
}

.content-section p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--dark);
}

/* FAQ Section Specific Styles */
.faq-section {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
}

.faq-search {
  display: flex;
  margin-bottom: var(--space-lg);
}

.faq-search .search-input {
  flex-grow: 1;
  padding: var(--space-md);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: 1rem;
}

.faq-search .search-button {
  padding: 0 var(--space-md);
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-search .search-button:hover {
  background-color: var(--primary-dark);
}

/* FAQ Categories Styles */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.category-btn {
  padding: var(--space-xs) var(--space-md);
  background-color: var(--light-gray);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.875rem;
}

.category-btn:hover,
.category-btn.active {
  background-color: var(--primary);
  color: var(--white);
}

/* FAQ Item Styles */
.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item.active {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary-light);
}

.faq-question {
  width: 100%;
  padding: var(--space-md);
  background-color: var(--white);
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background: #f9f9f9;
}

.faq-question span {
  font-weight: 600;
  color: var(--dark);
}

.faq-question i {
  color: var(--gray);
  transition: var(--transition-fast);
}

/* FAQ Answer Styles */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-normal);
  padding: 0 var(--space-md);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 var(--space-md) var(--space-md);
}

/* FAQ Answer Content Styles */

.faq-answer p {
  color: var(--gray);
  line-height: 1.6;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Document Cards (if needed for FAQ page) */
.document-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e2e8f0;
}

.document-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.document-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.document-size {
  color: #666;
  font-size: 0.9rem;
  flex: 1;
}

.document-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Section Tabs (if needed for FAQ page) */
.section-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.section-tab {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.section-tab:hover {
  background-color: #f5f5f5;
}

.section-tab.active {
  border-bottom-color: #3498db;
  font-weight: 600;
}

.document-section {
  display: none;
}

.document-section.active {
  display: block;
}

/* Accessibility Focus Styles */
/* Skip Link Styles */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #2c3e50;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 1001;
  text-decoration: none;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

.skip-link:active {
  background: #34495e;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-container {
    flex-direction: column;
  }
  
  .faq-search {
    flex-direction: column;
  }

  .faq-search .search-input {
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
  }

  .faq-search .search-button {
    border-radius: var(--radius-md);
    padding: var(--space-sm);
  }

  .faq-categories {
    flex-direction: column;
  }

  .category-btn {
    width: 100%;
  }
  
  .document-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .document-actions {
    width: 100%;
  }
  
  .section-tabs {
    flex-direction: column;
    border-bottom: none;
  }
  
  .section-tab {
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  
  .section-tab.active {
    border-bottom: none;
    border-left-color: #3498db;
  }
}

@media (max-width: 576px) {
  .faq-section {
    padding: var(--space-md);
  }
  
  .main-wrapper {
    padding: var(--space-sm);
  }
}