/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f5f5f5;
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
  background-color: #0A1931; /* Main brand color */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #E0B400; /* Auxiliary brand color for emphasis */
}

.page-resources__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Section Titles */
.page-resources__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #0A1931;
}

.page-resources__dark-bg .page-resources__section-title {
  color: #E0B400;
}

.page-resources__sub-title {
  font-size: 1.6em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #0A1931;
}

.page-resources__dark-bg .page-resources__sub-title {
  color: #ffffff;
}

/* Content Grid */
.page-resources__content-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-resources__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-resources__text-block {
  flex: 1;
  min-width: 300px;
}

.page-resources__text-block p {
  margin-bottom: 15px;
}

.page-resources__image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Buttons */
.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-resources__cta-buttons--center {
  text-align: center;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #E0B400; /* Auxiliary brand color */
  color: #0A1931;
  border: 2px solid #E0B400;
}

.page-resources__btn-primary:hover {
  background-color: #ffc107;
  border-color: #ffc107;
}

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

.page-resources__dark-bg .page-resources__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-resources__btn-secondary:hover {
  background-color: #E0B400;
  color: #0A1931;
}

.page-resources__dark-bg .page-resources__btn-secondary:hover {
  background-color: #ffffff;
  color: #0A1931;
}

/* Lists */
.page-resources__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources__list li {
  margin-bottom: 8px;
}

.page-resources__list .page-resources__link {
  color: #0A1931;
  text-decoration: none;
  font-weight: bold;
}

.page-resources__dark-bg .page-resources__list .page-resources__link {
  color: #E0B400;
}

.page-resources__list .page-resources__link:hover {
  text-decoration: underline;
}

/* Section specific styles */
.page-resources__introduction-section,
.page-resources__tips-section,
.page-resources__faq-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-resources__guide-section,
.page-resources__promotions-section,
.page-resources__conclusion-section {
  padding: 60px 0;
  background-color: #0A1931; /* Dark background */
  color: #ffffff;
}

/* FAQ Section */
.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-resources__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__dark-bg .page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: #0A1931;
  background-color: #eef;
  transition: background-color 0.3s ease;
}

.page-resources__dark-bg .page-resources__faq-question {
  color: #E0B400;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-resources__faq-question:hover {
  background-color: #e0e0f0;
}

.page-resources__dark-bg .page-resources__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources__faq-title {
  margin: 0;
  font-size: 1.2em;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #E0B400;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
  color: #0A1931;
}

.page-resources__dark-bg .page-resources__faq-item.active .page-resources__faq-toggle {
  color: #E0B400;
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-resources__dark-bg .page-resources__faq-answer {
  color: #cccccc;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

/* Conclusion Section */
.page-resources__conclusion-section .page-resources__description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 30px auto;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }

  .page-resources__sub-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources__hero-title {
    font-size: 1.8em;
  }

  .page-resources__hero-description {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-resources__section-title {
    font-size: 1.5em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-resources__sub-title {
    font-size: 1.2em;
    padding: 0 15px;
  }

  .page-resources__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-resources__text-block {
    padding: 0 15px;
  }

  .page-resources__image-wrapper {
    padding: 0 15px;
  }

  .page-resources__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce min size */
    min-height: 200px !important; /* Enforce min size */
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-resources__faq-item {
    margin: 0 15px 15px 15px;
  }

  .page-resources__faq-question {
    padding: 15px 20px;
  }

  .page-resources__faq-answer {
    padding: 0 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px;
  }

  .page-resources__list {
    margin-left: 15px;
    padding: 0 15px;
  }

  .page-resources__introduction-section,
  .page-resources__guide-section,
  .page-resources__tips-section,
  .page-resources__promotions-section,
  .page-resources__faq-section,
  .page-resources__conclusion-section {
    padding: 40px 0;
  }

  .page-resources__container {
    padding: 0;
  }

  .page-resources__text-block p {
    padding: 0 15px;
  }

  .page-resources__conclusion-section .page-resources__description {
    padding: 0 15px;
  }
}