.page-resources-faq {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

.page-resources-faq__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

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

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

/* Hero Section */
.page-resources-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: #000080; /* Dark blue background for hero */
  color: #ffffff;
}

.page-resources-faq__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources-faq__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-resources-faq__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-faq__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources-faq__main-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFD700; /* Gold text for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-faq__intro-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-resources-faq__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Gold button */
  color: #000080; /* Dark blue text for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources-faq__cta-button:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Introduction Section */
.page-resources-faq__general-intro {
  background-color: #ffffff;
  padding: 40px 0;
  border-bottom: 1px solid #e0e0e0;
}

.page-resources-faq__general-intro p {
  font-size: 16px;
  margin-bottom: 15px;
  text-align: justify;
}

/* FAQ List Section */
.page-resources-faq__faq-list {
  background-color: #f8f8f8;
  padding-top: 40px;
  padding-bottom: 60px;
}

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

/* FAQ default state - answer hidden */
.page-resources-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 20px;
  opacity: 0;
  color: #555555;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to contain any content */
  padding: 20px !important;
  opacity: 1;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-resources-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #000080; /* Dark blue background for questions */
  color: #ffffff;
  border: 1px solid #000080;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.page-resources-faq__faq-question:hover {
  background: #000066; /* Slightly darker blue on hover */
  border-color: #000066;
}

.page-resources-faq__faq-question:active {
  background: #00004d;
}

/* Question title style */
.page-resources-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #FFD700; /* Gold text for question titles */
}

/* Toggle icon */
.page-resources-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-toggle {
  color: #ffffff; /* White color when active */
  transform: rotate(180deg);
}

.page-resources-faq__btn-link {
  display: inline-block;
  padding: 8px 20px;
  background: #FFD700;
  color: #000080;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  margin-right: 10px;
  transition: all 0.3s ease;
  border: none;
}

.page-resources-faq__btn-link:hover {
  background: #e6c200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Support CTA Section */
.page-resources-faq__support-cta {
  background-color: #FFD700; /* Gold background */
  color: #000080; /* Dark blue text */
  text-align: center;
  padding: 80px 0;
}

.page-resources-faq__support-cta .page-resources-faq__section-title {
  color: #000080;
}

.page-resources-faq__support-cta p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #000080;
}

.page-resources-faq__support-cta .page-resources-faq__cta-button {
  background: #000080;
  color: #FFD700;
}

.page-resources-faq__support-cta .page-resources-faq__cta-button:hover {
  background: #000066;
  color: #FFD700;
}

/* App Download Section */
.page-resources-faq__app-download {
  background-color: #ffffff;
  padding: 80px 0;
}

.page-resources-faq__app-flex-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-resources-faq__app-text-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-resources-faq__app-text-content .page-resources-faq__section-title {
  text-align: left;
  font-size: 30px;
  margin-bottom: 20px;
}

.page-resources-faq__app-text-content p {
  font-size: 16px;
  margin-bottom: 25px;
  text-align: justify;
}

.page-resources-faq__app-image {
  flex-shrink: 0;
  max-width: 300px;
}

.page-resources-faq__app-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-faq__main-title {
    font-size: 38px;
  }

  .page-resources-faq__intro-description {
    font-size: 17px;
  }

  .page-resources-faq__section-title {
    font-size: 28px;
  }

  .page-resources-faq__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-resources-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-faq__hero-image img {
    border-radius: 4px;
  }

  .page-resources-faq__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .page-resources-faq__intro-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-resources-faq__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-faq__section {
    padding: 40px 0;
  }

  .page-resources-faq__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-faq__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-resources-faq__faq-item {
    margin-bottom: 10px;
  }

  .page-resources-faq__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-resources-faq__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-resources-faq__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .page-resources-faq__faq-answer {
    padding: 0 15px;
  }

  .page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
    padding: 15px !important;
  }

  .page-resources-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources-faq__app-flex-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-resources-faq__app-text-content {
    text-align: center;
    max-width: 100%;
  }

  .page-resources-faq__app-text-content .page-resources-faq__section-title {
    text-align: center;
    font-size: 24px;
  }

  .page-resources-faq__app-image {
    max-width: 250px;
  }

  .page-resources-faq__btn-link {
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 10px 15px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .page-resources-faq__main-title {
    font-size: 26px;
  }
  .page-resources-faq__intro-description {
    font-size: 14px;
  }
  .page-resources-faq__section-title {
    font-size: 22px;
  }
  .page-resources-faq__faq-question h3 {
    font-size: 14px;
  }
  .page-resources-faq__faq-toggle {
    font-size: 18px;
    width: 20px;
    height: 20px;
  }
  .page-resources-faq__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
  .page-resources-faq__btn-link {
    width: 100%;
    margin-right: 0;
  }
}

/* Contrast Fixes */
.page-resources-faq__dark-bg {
  background: #000080;
  color: #ffffff;
}

.page-resources-faq__dark-bg .page-resources-faq__section-title {
  color: #FFD700;
}

.page-resources-faq__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-resources-faq__text-block {
  color: #333333;
  background: #ffffff;
}

.page-resources-faq p,
.page-resources-faq li {
  color: #333333;
}

.page-resources-faq__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}