/* FAQ Specific Styles */
.faq-hero {
  background: linear-gradient(rgba(1, 51, 153, 0.8), rgba(1, 162, 211, 0.7)), url("images/study-center.jpg");
  background-size: cover;
  background-position: center;
  color: var(--light-color);
  text-align: center;
  padding: 100px 0 60px;
}

.faq-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.faq-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.faq-section {
  padding: 80px 0;
  background-color: var(--gray-color);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(1, 51, 153, 0.05);
}

.faq-question h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 0;
  flex: 1;
}

.faq-icon {
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  line-height: 1.6;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
  margin-bottom: 15px;
}

.faq-answer ul,
.faq-answer ol {
  padding-left: 25px;
}

.faq-answer ul li,
.faq-answer ol li {
  margin-bottom: 8px;
  position: relative;
}

.faq-answer ul {
  list-style-type: disc;
}

.faq-answer ol {
  list-style-type: decimal;
}

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

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 25px 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .faq-hero h1 {
    font-size: 2.2rem;
  }

  .faq-question h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .faq-hero {
    padding: 80px 0 40px;
  }

  .faq-hero h1 {
    font-size: 1.8rem;
  }

  .faq-hero p {
    font-size: 1rem;
  }

  .faq-question {
    padding: 15px 20px;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 15px;
  }
}
