.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8;
}

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

.page-resources__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #FFD700, #FFC107);
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-resources__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #1E90FF;
  color: #ffffff;
  border: 2px solid #1E90FF;
}

.page-resources__btn-primary:hover {
  background-color: #1565C0;
  border-color: #1565C0;
  transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-resources__hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-resources__hero-video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-resources__video-link {
  display: block;
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #1E90FF;
  font-weight: bold;
}

.page-resources__section-title--light {
  color: #ffffff;
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-resources__section-description--light {
  color: #f0f0f0;
}

.page-resources__about-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-resources__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-resources__image-left {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-resources__text-content {
  flex: 2;
  min-width: 300px;
}

.page-resources__text-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #444444;
}

.page-resources__categories-section {
  padding: 80px 0;
  background-color: #FFD700; /* Brand primary color */
  color: #ffffff;
}

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

.page-resources__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.page-resources__category-card .page-resources__card-title,
.page-resources__category-card .page-resources__card-text {
  padding: 0 20px;
}

.page-resources__card-title {
  font-size: 1.4em;
  margin: 20px 0 10px 0;
  color: #1E90FF;
}

.page-resources__card-title a {
  text-decoration: none;
  color: #1E90FF;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #FFD700;
}

.page-resources__card-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__latest-articles-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

.page-resources__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__article-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #1E90FF;
  flex-grow: 1;
}

.page-resources__article-title a {
  text-decoration: none;
  color: #1E90FF;
  transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
  color: #FFD700;
}

.page-resources__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
}

.page-resources__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-resources__read-more:hover {
  color: #1E90FF;
}

.page-resources__why-fb88-blog-section {
  padding: 80px 0;
  background-color: #1E90FF; /* Brand secondary color */
  color: #ffffff;
}

.page-resources__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-resources__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-resources__feature-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-resources__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-resources__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-question h3 {
  margin: 0;
  color: #1E90FF;
}

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

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

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

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

.page-resources__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}

.page-resources__cta-section {
  padding: 80px 0;
  background-color: #FFD700; /* Brand primary color */
  color: #ffffff;
  text-align: center;
}

.page-resources__cta-content {
  max-width: 800px;
}

.page-resources__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General image responsiveness */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General video responsiveness */
.page-resources video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__hero-video-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }
  .page-resources__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-resources__about-section,
  .page-resources__categories-section,
  .page-resources__latest-articles-section,
  .page-resources__why-fb88-blog-section,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 50px 0;
  }

  .page-resources__container {
    padding: 0 15px;
  }

  .page-resources__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources__image-left {
    min-width: unset;
  }
  .page-resources__text-content {
    min-width: unset;
  }

  .page-resources__category-grid,
  .page-resources__article-grid,
  .page-resources__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__card-title,
  .page-resources__article-title {
    font-size: 1.2em;
  }

  .page-resources__feature-title {
    font-size: 1.3em;
  }
  .page-resources__faq-question {
    padding: 15px;
    font-size: 1em;
  }
  .page-resources__faq-question h3 {
    font-size: 1em;
  }
  .page-resources__faq-answer {
    padding: 15px;
  }
  .page-resources__faq-answer p {
    font-size: 0.95em;
  }

  /* Force responsive for all images and videos on mobile */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__hero-video-wrapper,
  .page-resources__video-link,
  .page-resources__cta-buttons,
  .page-resources__category-grid,
  .page-resources__article-grid,
  .page-resources__features-grid,
  .page-resources__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
}

/* Ensure contrast for dark background sections */
.page-resources__dark-bg {
  background-color: #FFD700;
  color: #ffffff;
}
.page-resources__dark-section {
  background-color: #1E90FF;
  color: #ffffff;
}

/* Specific contrast fixes if needed, though general rules should apply */
.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__section-description {
  color: #ffffff;
}
.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__section-description {
  color: #ffffff;
}
.page-resources__dark-section .page-resources__feature-title {
  color: #FFD700;
}
.page-resources__dark-section .page-resources__feature-description {
  color: #f0f0f0;
}