.page-resources {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #1A202C;
  --bg-dark: #1A202C;
  --bg-light: #f4f7f6;
  --card-bg: #2d3748;
  --border-color: #4a5568;
  --button-hover: #e6c200;
  font-family: 'Arial', sans-serif;
  color: var(--text-light);
  background-color: var(--bg-dark);
}

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

.page-resources-title {
  font-size: 3.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-subtitle {
  font-size: 1.4em;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.page-resources-heading {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-resources-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: #ccc;
}

.page-resources-description a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources-description a:hover {
  text-decoration: underline;
}

.page-resources-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-resources-cta-button:hover {
  background: var(--button-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* Hero Section */
.page-resources .hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a475e 100%);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  position: relative;
  overflow: hidden;
}

.page-resources .hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.page-resources .hero-image {
  width: 100%;
  max-width: 800px;
  margin-top: 50px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-resources .hero-content {
  width: 100%;
}

/* Guides Section */
.page-resources .guides-section,
.page-resources .games-guide-section,
.page-resources .policy-section,
.page-resources .faq-section,
.page-resources .contact-section,
.page-resources .latest-articles-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-color);
}

.page-resources .guides-section {
  background-color: #222831;
}

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

.page-resources-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.page-resources-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--secondary-color);
}

.page-resources-card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin: 20px 15px 10px;
  flex-grow: 1;
}

.page-resources-card-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-resources-card-title a:hover {
  text-decoration: underline;
}

.page-resources-card-text {
  font-size: 0.95em;
  color: #b0b0b0;
  padding: 0 15px 20px;
  line-height: 1.5;
}

.page-resources-card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources-card-button:hover {
  background-color: var(--button-hover);
  transform: translateY(-2px);
}

/* Games Guide Section */
.page-resources .games-guide-section {
  background-color: var(--primary-color);
}

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

.page-resources-category-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-category-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.page-resources-category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}

.page-resources-category-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin: 0 15px 10px;
}

.page-resources-category-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-resources-category-title a:hover {
  text-decoration: underline;
}

.page-resources-category-text {
  font-size: 0.9em;
  color: #b0b0b0;
  padding: 0 15px;
  line-height: 1.5;
}

.page-resources-text-block {
  margin-top: 60px;
  padding: 30px;
  background-color: #2d3748;
  border-radius: 10px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.page-resources-text-block p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #e0e0e0;
  text-align: left;
}

.page-resources-text-block p a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources-text-block p a:hover {
  text-decoration: underline;
}

/* Policy Section */
.page-resources .policy-section {
  background-color: #222831;
}

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

.page-resources-policy-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-policy-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

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

.page-resources-policy-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-resources-policy-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-resources-policy-title a:hover {
  text-decoration: underline;
}

.page-resources-policy-text {
  font-size: 0.95em;
  color: #b0b0b0;
  line-height: 1.6;
}

/* FAQ Section */
.page-resources .faq-section {
  background-color: var(--primary-color);
}

.page-resources-faq-list {
  margin-top: 50px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-bg);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #3a475e;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #4a5568;
}

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

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

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

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

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px 25px;
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #ccc;
  line-height: 1.6;
}

/* Contact Section */
.page-resources .contact-section {
  background-color: #222831;
  text-align: center;
}

.page-resources-contact-info {
  margin-top: 40px;
  font-size: 1.1em;
  color: #e0e0e0;
  line-height: 1.8;
}

.page-resources-contact-info p {
  margin-bottom: 10px;
}

.page-resources-contact-info a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources-contact-info a:hover {
  text-decoration: underline;
}

/* Latest Articles Section */
.page-resources .latest-articles-section {
  background-color: var(--primary-color);
}

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

.page-resources-article-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources-article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.page-resources-article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 2px solid var(--secondary-color);
}

.page-resources-article-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin: 20px 20px 10px;
  flex-grow: 1;
}

.page-resources-article-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-resources-article-title a:hover {
  text-decoration: underline;
}

.page-resources-article-summary {
  font-size: 0.95em;
  color: #b0b0b0;
  padding: 0 20px;
  line-height: 1.5;
}

.page-resources-article-date {
  font-size: 0.85em;
  color: #777;
  margin: 15px 20px 20px;
  display: block;
}

.page-resources-view-all {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-title {
    font-size: 3em;
  }
  .page-resources-heading {
    font-size: 2em;
  }
  .page-resources-guide-cards,
  .page-resources-game-categories,
  .page-resources-policy-items,
  .page-resources-articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-resources .hero-section {
    padding: 60px 15px;
  }
  .page-resources-title {
    font-size: 2.5em;
  }
  .page-resources-subtitle {
    font-size: 1.2em;
  }
  .page-resources-heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources-description {
    font-size: 1em;
    margin-bottom: 40px;
  }
  .page-resources-guide-cards,
  .page-resources-game-categories,
  .page-resources-policy-items,
  .page-resources-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources-card-image,
  .page-resources-category-image,
  .page-resources-article-image {
    height: 180px;
  }
  .page-resources-card-title,
  .page-resources-article-title {
    font-size: 1.3em;
  }
  .page-resources-category-title {
    font-size: 1.2em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-resources .guides-section,
  .page-resources .games-guide-section,
  .page-resources .policy-section,
  .page-resources .faq-section,
  .page-resources .contact-section,
  .page-resources .latest-articles-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .page-resources-title {
    font-size: 2em;
  }
  .page-resources-subtitle {
    font-size: 1em;
  }
  .page-resources-heading {
    font-size: 1.6em;
  }
  .page-resources-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources-card-image,
  .page-resources-category-image,
  .page-resources-article-image {
    height: 150px;
  }
  .page-resources-card-title,
  .page-resources-article-title {
    font-size: 1.2em;
  }
  .page-resources-category-title {
    font-size: 1.1em;
  }
  .page-resources-policy-icon {
    width: 80px;
    height: 80px;
  }
  .page-resources-policy-title {
    font-size: 1.2em;
  }
  .page-resources-contact-info {
    font-size: 1em;
  }
}