.page-resources {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-resources__hero-section {
  background: linear-gradient(135deg, #000000 0%, #333333 100%); /* Dark gradient for hero */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-resources__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color for primary action */
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources__hero-button:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-resources__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-resources__section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-resources__section:nth-of-type(odd) {
  background-color: #f8f8f8;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-resources__section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: #444444;
}

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

.page-resources__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-resources__article-image {
  width: 100%;
  height: 220px; /* Enforce minimum height for card images */
  object-fit: cover;
  display: block;
}

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

.page-resources__article-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

.page-resources__article-category {
  font-size: 0.9em;
  color: #888888;
  margin-bottom: 15px;
}

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

.page-resources__article-button {
  display: inline-block;
  background-color: #000000;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: bold;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-resources__article-button:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-resources__subsection-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 900px;
}

.page-resources__numbered-list {
  list-style: decimal;
  padding-left: 25px;
  margin: 30px auto;
  max-width: 900px;
}

.page-resources__list-item {
  background-color: #f0f0f0;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}

.page-resources__list-item:hover {
  background-color: #e8e8e8;
}

.page-resources__list-item strong {
  color: #000000;
}

.page-resources__image {
  width: 100%;
  height: auto;
  min-height: 200px; /* Minimum image height */
  object-fit: cover;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-resources__image--left {
  float: left;
  margin-right: 30px;
  max-width: 45%;
}

.page-resources__image--right {
  float: right;
  margin-left: 30px;
  max-width: 45%;
}

.page-resources__security-fairness-deep-dive .page-resources__container, 
.page-resources__game-strategies-deep-dive .page-resources__container, 
.page-resources__beginner-guide-deep-dive .page-resources__container {
  text-align: left;
  overflow: hidden; /* Clear floats */
}

.page-resources__security-fairness-deep-dive .page-resources__section-text, 
.page-resources__game-strategies-deep-dive .page-resources__section-text, 
.page-resources__beginner-guide-deep-dive .page-resources__section-text {
  text-align: left;
  max-width: 100%;
}

.page-resources__security-fairness-deep-dive .page-resources__subsection-title, 
.page-resources__game-strategies-deep-dive .page-resources__subsection-title, 
.page-resources__beginner-guide-deep-dive .page-resources__subsection-title {
  text-align: left;
}

.page-resources__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 20px;
}

.page-resources__button--primary {
  background-color: #000000;
  color: #ffffff;
}

.page-resources__button--primary:hover {
  background-color: #FCBC45;
  color: #000000;
  transform: translateY(-2px);
}

.page-resources__button--secondary {
  background-color: #f0f0f0;
  color: #000000;
  border: 1px solid #cccccc;
}

.page-resources__button--secondary:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.page-resources__cta-section {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
}

.page-resources__cta-section .page-resources__section-title {
  color: #FCBC45;
}

.page-resources__cta-section .page-resources__section-text {
  color: #f0f0f0;
}

.page-resources__faq-accordion {
  max-width: 900px;
  margin: 40px auto;
}

.page-resources__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
  background-color: #f8f8f8;
  color: #000000;
  padding: 20px 25px;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-resources__faq-question.page-resources__faq-question--active::after {
  content: '-';
  transform: rotate(180deg);
}

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

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

.page-resources__faq-answer p {
  padding: 15px 0;
  margin: 0;
  font-size: 1.05em;
  color: #444444;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__subsection-title {
    font-size: 1.8em;
  }
  .page-resources__image--left, .page-resources__image--right {
    float: none;
    margin: 30px auto;
    max-width: 80%;
    width: 100%;
  }
  .page-resources__security-fairness-deep-dive .page-resources__container, 
  .page-resources__game-strategies-deep-dive .page-resources__container, 
  .page-resources__beginner-guide-deep-dive .page-resources__container {
    text-align: center;
  }
  .page-resources__security-fairness-deep-dive .page-resources__section-text, 
  .page-resources__game-strategies-deep-dive .page-resources__section-text, 
  .page-resources__beginner-guide-deep-dive .page-resources__section-text {
    text-align: center;
  }
  .page-resources__security-fairness-deep-dive .page-resources__subsection-title, 
  .page-resources__game-strategies-deep-dive .page-resources__subsection-title, 
  .page-resources__beginner-guide-deep-dive .page-resources__subsection-title {
    text-align: center;
  }
  .page-resources__list, .page-resources__numbered-list {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-text {
    font-size: 0.95em;
  }
  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__article-image {
    height: 200px; /* Adjust height for mobile */
  }
  .page-resources__article-title {
    font-size: 1.4em;
  }
  .page-resources__list-item {
    font-size: 1em;
    padding: 15px;
  }
  .page-resources__faq-question {
    font-size: 1.05em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer p {
    font-size: 0.95em;
    padding: 10px 0;
  }
  /* Ensure content images are responsive and do not overflow */
  .page-resources img {
    max-width: 100%;
    height: auto;
  }
  .page-resources__image--left, .page-resources__image--right {
    margin: 20px auto;
  }
  .page-resources__list, .page-resources__numbered-list {
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__hero-button {
    font-size: 1em;
    padding: 10px 20px;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__article-title {
    font-size: 1.2em;
  }
  .page-resources__faq-question {
    font-size: 0.95em;
  }
}