/* FAQ Styles matching the homepage preview section */

/* Page Header */
.page-header {
    background-color: var(--background-alt);
    padding: 8rem 0 4rem;
    text-align: center;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--title-color);
  }
  
  .page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-color);
  }
  
  /* Main FAQ Section */
  .faq {
    padding: 4rem 0;
    background-color: white;
  }
  
  .faq-grid {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .faq-item {
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: white;
  }
  
  .faq-item h2 {
    width: 100%;
    background-color: var(--background-alt);
    border: none;
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--title-color);
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-normal);
    margin-bottom: 0;
  }
  
  .faq-item h2:hover {
    background-color: var(--primary-light);
  }
  
  .faq-item h2:after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
  }
  
  .faq-item h2.active {
    background-color: var(--primary-color);
    color: white;
  }
  
  .faq-item h2.active:after {
    content: '-';
  }
  
  .faq-item p, 
  .faq-item address, 
  .faq-item ul {
    padding: 0 var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
    margin: 0;
  }
  
  .faq-item h2.active + p,
  .faq-item h2.active + p + p,
  .faq-item h2.active + p + ul,
  .faq-item h2.active + p + address,
  .faq-item h2.active + p + p + p,
  .faq-item h2.active + p + p + ul,
  .faq-item h2.active + p + p + address {
    max-height: 1000px;
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }
  
  .faq-item p {
    line-height: 1.6;
  }
  
  .faq-item ul {
    padding-left: calc(var(--space-md) + 1.5rem);
  }
  
  .faq-item li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
  }
  
  .faq-cta {
    text-align: center;
    margin-top: 3rem;
  }
  
  /* Related Content Section */
  .related-content {
    background-color: var(--background-alt);
    padding: 4rem 0;
  }
  
  .related-content h2 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .related-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .related-post {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  }
  
  .related-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  
  .related-post h3 {
    margin-bottom: 1rem;
  }
  
  .related-post h3 a {
    color: var(--title-color);
    text-decoration: none;
  }
  
  .related-post h3 a:hover {
    color: var(--primary-color);
  }
  
  .related-post p {
    margin-bottom: 1.5rem;
  }
  
  .read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
  }
  
  .read-more:hover {
    color: var(--primary-dark);
  }
  
  /* Responsive Styles */
  @media (max-width: 767px) {
    .page-header {
      padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
      font-size: 2rem;
    }
    
    .faq-item h2 {
      font-size: 1rem;
      padding: 1rem;
    }
    
    .faq-item p, 
    .faq-item ul {
      padding: 0 1rem;
    }
    
    .faq-item h2.active + p,
    .faq-item h2.active + p + p,
    .faq-item h2.active + p + ul,
    .faq-item h2.active + p + address {
      padding: 1rem;
    }
    
    .related-posts {
      grid-template-columns: 1fr;
    }
  }
  
  /* Animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .faq-item {
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
  }
  
  .faq-item:nth-child(1) { animation-delay: 0.1s; }
  .faq-item:nth-child(2) { animation-delay: 0.15s; }
  .faq-item:nth-child(3) { animation-delay: 0.2s; }
  .faq-item:nth-child(4) { animation-delay: 0.25s; }
  .faq-item:nth-child(5) { animation-delay: 0.3s; }
  .faq-item:nth-child(6) { animation-delay: 0.35s; }
  .faq-item:nth-child(7) { animation-delay: 0.4s; }
  .faq-item:nth-child(8) { animation-delay: 0.45s; }
  .faq-item:nth-child(9) { animation-delay: 0.5s; }
  .faq-item:nth-child(10) { animation-delay: 0.55s; }