/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg-1); /* Inherit from shared.css */
}

/* Fixed navigation bar spacing for the first content module */
.page-faq__hero-banner {
  padding-top: 120px; /* Adjust as needed for desktop fixed header */
}

@media (max-width: 768px) {
  .page-faq__hero-banner {
    padding-top: 100px; /* Adjust as needed for mobile fixed header */
  }
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-faq__dark-section {
  background-color: var(--dark-bg-1);
  color: #ffffff;
  padding: 60px 0;
}

.page-faq__light-bg {
  background-color: #f9f9f9;
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-faq__main-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: #FFCC00; /* Accent color for main title */
}

.page-faq__description-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-faq__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-faq__btn--primary {
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

.page-faq__btn--primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 204, 0, 0.4);
}

.page-faq__btn--secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-faq__btn--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 204, 0, 0.4);
}

.page-faq__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFCC00;
}

.page-faq__section-title--dark {
  color: #003366;
}

.page-faq__general-info p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: #e0e0e0;
}

.page-faq__faq-list {
  padding: 60px 0;
}

.page-faq__faq-category {
  margin-bottom: 40px;
}

.page-faq__category-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #003366; /* Dark text for light background */
  text-align: left;
  border-bottom: 2px solid #FFCC00;
  padding-bottom: 10px;
}

.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-faq__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333; /* Dark text for light background */
  pointer-events: none;
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #003366;
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  border-top: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-faq__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 15px;
}

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

.page-faq__cta-bottom {
  text-align: center;
  margin-top: 50px;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-faq__cta-text {
  font-size: 22px;
  font-weight: bold;
  color: #003366;
  margin-bottom: 25px;
}

.page-faq__cta-subtext {
  font-size: 16px;
  color: #666666;
  margin-top: 20px;
}

.page-faq__text-link {
  color: #003366;
  text-decoration: none;
  font-weight: bold;
}

.page-faq__text-link:hover {
  text-decoration: underline;
  color: #FFCC00;
}

.page-faq__latest-news {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

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

.page-faq__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-faq__news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

.page-faq__news-title {
  font-size: 20px;
  font-weight: bold;
  margin: 15px 20px 10px;
  color: #FFCC00;
}

.page-faq__news-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin: 0 20px 15px;
  line-height: 1.6;
}

.page-faq__news-date {
  display: block;
  font-size: 13px;
  color: #999999;
  margin: 0 20px 20px;
}

.page-faq__view-all-news {
  text-align: center;
  margin-top: 50px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 32px;
  }
  .page-faq__description-text {
    font-size: 16px;
  }
  .page-faq__section-title {
    font-size: 28px;
  }
  .page-faq__category-title {
    font-size: 22px;
  }
  .page-faq__faq-question h3 {
    font-size: 17px;
  }
  .page-faq__faq-answer p {
    font-size: 15px;
  }
  .page-faq__btn {
    padding: 12px 25px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-faq__container {
    padding: 0 15px !important;
  }
  .page-faq__main-title {
    font-size: 28px;
  }
  .page-faq__description-text {
    font-size: 15px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-faq__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-faq__category-title {
    font-size: 20px;
    margin-bottom: 25px;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
  }
  .page-faq__faq-question h3 {
    font-size: 16px;
  }
  .page-faq__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
  .page-faq__faq-answer {
    padding: 0 20px;
  }
  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px !important;
  }
  .page-faq__faq-answer p {
    font-size: 14px;
  }
  .page-faq__cta-bottom {
    padding: 30px 20px;
  }
  .page-faq__cta-text {
    font-size: 20px;
  }
  .page-faq__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-faq__hero-banner, .page-faq__general-info, .page-faq__faq-list, .page-faq__latest-news {
    padding: 40px 0;
  }
  .page-faq__news-image {
    height: 180px;
  }
}

/* Global image responsive styles (important for all images) */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile forced image and container styles */
@media (max-width: 768px) {
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}