.page-resources {
  --primary-color: #FFD700; /* Vàng kim */
  --secondary-color: #1A202C; /* Xám đậm */
  --text-color-light: #F5F5F5; /* Gần trắng */
  --text-color-dark: #1A202C; /* Xám đậm */
  --accent-color: #E6B800; /* Vàng đậm hơn */
  --background-light: #FFFFFF;
  --background-dark: #2A303C;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
}

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

/* Hero Section */
.page-resources .hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #3a4759 100%);
  color: var(--text-color-light);
  padding: 80px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-resources .hero-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources .hero-content {
  flex: 1;
  text-align: left;
}

.page-resources .hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-resources .hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-resources .hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources .hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 300px;
  min-height: 200px;
  object-fit: cover;
}

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

.page-resources .cta-button:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-resources section {
  padding: 60px 0;
}

.page-resources section:nth-of-type(odd) {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

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

.page-resources h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-resources section:nth-of-type(odd) h2 {
  color: var(--secondary-color);
}

.page-resources section:nth-of-type(even) h2 {
  color: var(--primary-color);
}

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

.page-resources section:nth-of-type(odd) h3 {
  color: var(--secondary-color);
}

.page-resources section:nth-of-type(even) h3 {
  color: var(--primary-color);
}

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

/* Intro Section */
.page-resources .intro-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-resources .feature-item {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
}

.page-resources section:nth-of-type(even) .feature-item {
  background-color: var(--background-dark);
  color: var(--text-color-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources .feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources .feature-item h3 {
  color: var(--secondary-color);
  margin-top: 20px;
}

.page-resources section:nth-of-type(even) .feature-item h3 {
  color: var(--primary-color);
}

.page-resources .feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 100px;
  min-height: 100px;
}

/* Quick Access Section */
.page-resources .quick-access-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-resources .quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-resources .quick-link-card {
  background-color: var(--background-dark);
  color: var(--text-color-light);
  padding: 30px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 2px solid var(--primary-color);
  min-width: 280px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-resources .quick-link-card:hover {
  transform: translateY(-8px);
  background-color: #3a4759;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources .quick-link-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-resources .quick-link-card p {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--text-color-light);
}

/* Guide Section */
.page-resources .guide-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-resources .step-item {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-color-dark);
}

.page-resources .step-item h3 {
  color: var(--secondary-color);
  margin-top: 20px;
}

.page-resources .step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 250px;
  min-height: 150px;
  object-fit: cover;
}

/* Games Intro Section */
.page-resources .games-intro-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-resources .game-card {
  background-color: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
}

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

.page-resources .game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  min-width: 280px;
  min-height: 200px;
}

.page-resources .game-card h3 {
  color: var(--secondary-color);
  padding: 20px 15px 10px;
}

.page-resources .game-card p {
  font-size: 0.95em;
  padding: 0 15px 20px;
  color: var(--text-color-dark);
}

.page-resources .read-more-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  padding-bottom: 20px;
  transition: color 0.3s ease;
}

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

/* Promotions Section */
.page-resources .promotions-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-resources .promo-card {
  background-color: var(--background-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-light);
  border: 2px solid var(--primary-color);
}

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

.page-resources .promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  min-width: 300px;
  min-height: 220px;
}

.page-resources .promo-card h3 {
  color: var(--primary-color);
  padding: 20px 15px 10px;
}

.page-resources .promo-card p {
  font-size: 0.95em;
  padding: 0 15px 20px;
  color: var(--text-color-light);
}

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

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

/* Safety & Support Section */
.page-resources .safety-support-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-resources .info-block {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-color-dark);
}

.page-resources .info-block h3 {
  color: var(--secondary-color);
  margin-top: 20px;
}

.page-resources .info-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 100px;
  min-height: 100px;
}

/* FAQ Section */
.page-resources .faq-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--background-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.faq-item.active .faq-question {
  background-color: #f0f0f0; /* Slightly different background when active */
}

.faq-question:hover {
  background-color: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--secondary-color);
}

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

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

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

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border-top: 1px solid #e0e0e0;
}

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

/* Blog Preview Section */
.page-resources .blog-preview-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-resources .blog-card {
  background-color: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
}

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

.page-resources .blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  min-width: 300px;
  min-height: 200px;
}

.page-resources .blog-card h3 {
  padding: 15px 20px 5px;
  color: var(--secondary-color);
}

.page-resources .blog-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.page-resources .blog-card p {
  font-size: 0.95em;
  padding: 0 20px 10px;
  color: var(--text-color-dark);
}

.page-resources .blog-date {
  display: block;
  font-size: 0.85em;
  color: #888;
  padding: 0 20px 20px;
}

.page-resources .secondary-btn {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-top: 40px;
}

.page-resources .secondary-btn:hover {
  background: #3a4759;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-resources .hero-content {
    text-align: center;
  }

  .page-resources .hero-content h1 {
    font-size: 2.5em;
  }

  .page-resources .hero-image {
    margin-top: 40px;
  }

  .page-resources h2 {
    font-size: 2em;
  }

  .page-resources h3 {
    font-size: 1.5em;
  }

  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-resources .features-grid, .page-resources .quick-links-grid, .page-resources .guide-steps, .page-resources .games-grid, .page-resources .promo-cards-grid, .page-resources .safety-support-grid, .page-resources .blog-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources section {
    padding: 40px 0;
  }

  .page-resources .hero-section {
    padding: 60px 0;
  }

  .page-resources .hero-content h1 {
    font-size: 2em;
  }

  .page-resources .hero-content p {
    font-size: 1em;
  }

  .page-resources h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources h3 {
    font-size: 1.3em;
  }

  .page-resources .feature-icon, .page-resources .info-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
  }

  .page-resources .game-card img, .page-resources .promo-card img, .page-resources .blog-card img {
    height: 180px;
    min-height: 180px;
  }

  .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;
  }
}

@media (max-width: 480px) {
  .page-resources .container {
    padding: 0 15px;
  }

  .page-resources .hero-content h1 {
    font-size: 1.8em;
  }

  .page-resources .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }

  .page-resources h2 {
    font-size: 1.5em;
  }

  .page-resources h3 {
    font-size: 1.2em;
  }

  .page-resources p {
    font-size: 0.9em;
  }

  .page-resources .quick-link-card, .page-resources .game-card, .page-resources .promo-card, .page-resources .blog-card {
    min-width: unset;
  }
}