:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f5f5f5;
  --background-dark: #222222;
  --border-color: #e0e0e0;
}

.page-faq {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark);
  line-height: 1.6;
}

.page-faq .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-faq .hero-faq {
  position: relative;
  width: 100%;
  min-height: 450px; /* Adjusted min-height for FAQ banner */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--text-color-light);
  padding: 60px 0;
}

.page-faq .hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-faq .hero-image-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-faq .hero-content-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  padding: 30px;
  border-radius: 10px;
  max-width: 900px;
  margin: 0 20px;
}

.page-faq .hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-faq .hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-faq .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-faq .cta-button:hover {
  background: #FFC107; /* Lighter gold */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Section Titles and Descriptions */
.page-faq .section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.page-faq .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-faq .section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
}

/* FAQ Section */
.page-faq .faq-section {
  padding: 60px 0;
  background: var(--background-light);
}

.page-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq .faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-faq .faq-question:hover {
  background: #f0f0f0;
  color: var(--secondary-color);
}

.page-faq .faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--text-color-dark);
  flex-grow: 1;
  text-align: left;
}

.page-faq .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-faq .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.page-faq .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: #555;
}

.page-faq .faq-item.active .faq-answer {
  max-height: 1000px; /* Sufficient height for content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.page-faq .faq-answer p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-faq .faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq .faq-answer ul,
.page-faq .faq-answer ol {
  margin: 15px 0;
  padding-left: 25px;
}

.page-faq .faq-answer li {
  margin-bottom: 8px;
  list-style-type: disc;
  color: #555;
}

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

.page-faq .faq-answer .inline-link {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-faq .faq-answer .inline-link:hover {
  color: var(--primary-color);
}

/* Call to Action at bottom of FAQ */
.page-faq .cta-bottom {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background: linear-gradient(45deg, var(--secondary-color), #a00);
  border-radius: 10px;
  color: var(--text-color-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq .cta-bottom p {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: var(--text-color-light);
}

.page-faq .cta-bottom .cta-button {
  background: var(--primary-color);
  color: var(--text-color-dark);
}

.page-faq .cta-bottom .cta-button:hover {
  background: #FFC107;
}

/* Latest News Section */
.page-faq .latest-news-section {
  padding: 60px 0;
  background: #f0f2f5;
}

.page-faq .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-faq .news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq .news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-faq .news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-faq .news-content {
  padding: 20px;
}

.page-faq .news-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-faq .news-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-faq .news-title a:hover {
  color: var(--primary-color);
}

.page-faq .news-excerpt {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 15px;
  min-height: 70px; /* Ensure consistent card height */
}

.page-faq .read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-faq .read-more:hover {
  color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-faq .hero-title {
    font-size: 2.8em;
  }
  .page-faq .hero-description {
    font-size: 1.1em;
  }
  .page-faq .section-title {
    font-size: 2.2em;
  }
  .page-faq .faq-question h3 {
    font-size: 1.15em;
  }
}

@media (max-width: 768px) {
  .page-faq .hero-faq {
    min-height: 350px;
    padding: 40px 0;
  }
  .page-faq .hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-faq .hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-faq .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-faq .section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-faq .section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq .faq-question {
    padding: 15px 20px;
  }
  .page-faq .faq-question h3 {
    font-size: 1.1em;
  }
  .page-faq .faq-toggle {
    font-size: 1.5em;
  }
  .page-faq .faq-answer {
    padding: 0 20px;
  }
  .page-faq .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-faq .cta-bottom {
    padding: 25px;
  }
  .page-faq .cta-bottom p {
    font-size: 1.1em;
  }
  .page-faq .news-grid {
    grid-template-columns: 1fr;
  }
  .page-faq .news-image {
    height: 200px;
  }
  .page-faq .news-excerpt {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .page-faq .hero-faq {
    min-height: 300px;
    padding: 30px 0;
  }
  .page-faq .hero-title {
    font-size: 1.8em;
  }
  .page-faq .hero-content-overlay {
    padding: 20px;
  }
  .page-faq .section-title {
    font-size: 1.8em;
  }
  .page-faq .faq-question {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 15px;
  }
  .page-faq .faq-question h3 {
    margin-bottom: 5px;
    font-size: 1em;
  }
  .page-faq .faq-toggle {
    align-self: flex-end;
    margin-top: -25px;
    margin-right: 0;
  }
  .page-faq .cta-button {
    font-size: 0.9em;
    padding: 10px 25px;
  }
  .page-faq .faq-answer {
    padding: 0 15px;
  }
  .page-faq .faq-item.active .faq-answer {
    padding: 10px 15px;
  }
  .page-faq .news-content {
    padding: 15px;
  }
  .page-faq .news-title {
    font-size: 1.2em;
  }
}