.page-resources {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-dark: #1A202C;
  --text-light: #FFFFFF;
  --bg-light: #F8F8F8;
  --bg-dark: #2D3748;
  --border-color: #E2E8F0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-resources section {
  padding: 60px 0;
  text-align: center;
}

.page-resources section:nth-of-type(even) {
  background-color: var(--bg-light);
}

.page-resources h1,
.page-resources h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-resources h1 {
  font-size: 2.8em;
  line-height: 1.2;
}

.page-resources h2 {
  font-size: 2.2em;
  margin-top: 40px;
}

.page-resources h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #4A5568;
}

.page-resources .cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources .cta-button:hover {
  background-color: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources .large-button {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Hero Section */
.page-resources .hero-section {
  background: linear-gradient(135deg, var(--primary-color), #2D3748);
  color: var(--text-light);
  padding: 100px 0;
}

.page-resources .hero-section h1 {
  color: var(--text-light);
  font-size: 3.5em;
  margin-bottom: 25px;
}

.page-resources .hero-section p {
  color: #CBD5E0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-resources .hero-section .cta-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-resources .hero-section .cta-button:hover {
  background-color: #FFEA80; /* Lighter gold for hover */
}

/* Guide Section */
.page-resources .guide-section {
  background-color: var(--bg-light);
}

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

.page-resources .card {
  background-color: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-resources .card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources .card h3 {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-resources .card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources .card h3 a:hover {
  color: var(--secondary-color);
}

.page-resources .card p {
  font-size: 0.95em;
  color: #6B7280;
  flex-grow: 1;
}

.page-resources .card-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-resources .card-link:hover {
  background-color: #3B4A60;
}

/* Strategy Section */
.page-resources .strategy-section {
  background-color: var(--text-light);
}

.page-resources .article-list {
  margin-top: 40px;
}

.page-resources .article-item {
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-resources .article-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-resources .article-content {
  padding: 25px;
  flex-grow: 1;
}

.page-resources .article-content h3 {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-resources .article-content h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources .article-content h3 a:hover {
  color: var(--secondary-color);
}

.page-resources .article-content p {
  font-size: 0.95em;
  color: #6B7280;
  margin-bottom: 15px;
}

.page-resources .read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources .read-more:hover {
  color: var(--primary-color);
}

/* Games Section */
.page-resources .games-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources .games-section h2,
.page-resources .games-section h3 {
  color: var(--text-light);
}

.page-resources .games-section p {
  color: #CBD5E0;
}

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

.page-resources .game-card {
  background-color: #2D3748;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .game-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-resources .game-card h3 {
  font-size: 1.25em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-resources .game-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources .game-card h3 a:hover {
  color: var(--text-light);
}

.page-resources .game-card p {
  font-size: 0.9em;
  color: #A0AEC0;
}

/* News Section */
.page-resources .news-section {
  background-color: var(--bg-light);
}

.page-resources .news-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources .news-list li {
  background-color: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: box-shadow 0.3s ease;
}

.page-resources .news-list li:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources .news-list li a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.page-resources .news-list li a:hover {
  color: var(--secondary-color);
}

.page-resources .news-date {
  font-size: 0.9em;
  color: #718096;
  margin-left: 20px;
  flex-shrink: 0;
}

/* Safety and Support Section */
.page-resources .safety-support-section {
  background-color: var(--text-light);
}

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

.page-resources .safety-item {
  background-color: var(--bg-light);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources .safety-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources .safety-item h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4em;
}

.page-resources .safety-item p {
  font-size: 0.95em;
  color: #6B7280;
  flex-grow: 1;
}

.page-resources .contact-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-resources .contact-link:hover {
  color: var(--primary-color);
}

/* FAQ Section */
.page-resources .faq-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources .faq-section h2 {
  color: var(--text-light);
}

.page-resources .faq-section p {
  color: #CBD5E0;
}

.page-resources .faq-container {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #2D3748;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--text-light);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--text-light);
  color: var(--text-dark);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.faq-answer p {
  margin: 0;
  color: #4A5568;
}

/* Final CTA Section */
.page-resources .final-cta-section {
  background: linear-gradient(135deg, #2D3748, var(--primary-color));
  color: var(--text-light);
  padding: 80px 0;
}

.page-resources .final-cta-section h2 {
  color: var(--text-light);
  font-size: 2.5em;
  margin-bottom: 20px;
}

.page-resources .final-cta-section p {
  color: #CBD5E0;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.page-resources .final-cta-section .cta-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-resources .final-cta-section .cta-button:hover {
  background-color: #FFEA80;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources h1 {
    font-size: 2.5em;
  }
  .page-resources h2 {
    font-size: 2em;
  }
  .page-resources .article-item {
    flex-direction: column;
  }
  .page-resources .article-image {
    width: 100%;
    height: 250px;
  }
  .page-resources .article-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources section {
    padding: 40px 0;
  }
  .page-resources h1 {
    font-size: 2em;
  }
  .page-resources h2 {
    font-size: 1.8em;
  }
  .page-resources h3 {
    font-size: 1.3em;
  }
  .page-resources p {
    font-size: 1em;
  }
  .page-resources .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources .hero-section {
    padding: 60px 0;
  }
  .page-resources .hero-section h1 {
    font-size: 2.8em;
  }
  .page-resources .card-grid,
  .page-resources .game-cards-grid,
  .page-resources .safety-grid {
    grid-template-columns: 1fr;
  }
  .page-resources .news-list li {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-resources .news-date {
    margin-left: 0;
    margin-top: 10px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources h1 {
    font-size: 1.8em;
  }
  .page-resources .hero-section h1 {
    font-size: 2.2em;
  }
  .page-resources .final-cta-section h2 {
    font-size: 1.8em;
  }
  .page-resources .card-image,
  .page-resources .article-image,
  .page-resources .game-card-image {
    height: 150px;
  }
}