.page-resources-hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color-light), var(--secondary-color-light));
  color: #333333; /* Đảm bảo độ tương phản */
}

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

.page-resources-hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources-hero-content h1 {
  font-size: 3.5em;
  color: var(--primary-text-color-dark);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.page-resources-hero-content p {
  font-size: 1.2em;
  color: var(--secondary-text-color-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

.page-resources-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  color: #333333;
  border-bottom: 1px solid #eeeeee;
}

.page-resources-section:nth-of-type(even) {
  background-color: #ffffff;
}

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

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

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

.page-resources-section h3 {
  font-size: 1.8em;
  color: var(--secondary-color-dark);
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
}

.page-resources-section p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-resources-section ul li {
  background: #e9f5ff; /* Màu nền nhẹ */
  border-left: 5px solid var(--secondary-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-resources-content-image {
  width: 100%;
  height: auto;
  max-width: 900px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

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

.page-resources-card, .page-resources-blog-post {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

.page-resources-card-image, .page-resources-blog-image {
  width: 100%;
  height: 220px; /* Chiều cao cố định cho hình ảnh */
  object-fit: cover;
  display: block;
}

.page-resources-card h3, .page-resources-blog-post h3 {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  text-align: left;
  color: var(--primary-color-dark);
}

.page-resources-card-link, .page-resources-blog-link {
  text-decoration: none;
  color: var(--primary-color-dark);
  transition: color 0.3s ease;
}

.page-resources-card-link:hover, .page-resources-blog-link:hover {
  color: var(--secondary-color);
}

.page-resources-card p, .page-resources-blog-post p {
  font-size: 1em;
  padding: 0 20px;
  margin-bottom: 15px;
  flex-grow: 1;
  text-align: left;
}

.page-resources-btn {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources-btn:hover {
  background: var(--primary-color);
}

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

.page-resources-game-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources-game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-resources-game-item h3 {
  font-size: 1.6em;
  color: var(--primary-color-dark);
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
}

.page-resources-game-link {
  text-decoration: none;
  color: var(--primary-color-dark);
  transition: color 0.3s ease;
}

.page-resources-game-link:hover {
  color: var(--secondary-color);
}

.page-resources-game-item p {
  font-size: 1em;
  padding: 0 15px;
  margin-bottom: 15px;
  text-align: center;
}

.page-resources-blog-date {
  display: block;
  font-size: 0.85em;
  color: #777777;
  margin: 0 20px 15px;
  text-align: left;
}

/* FAQ styles */
.page-resources-faq-list {
  margin-top: 40px;
}

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

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

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

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: inherit;
  text-align: left;
}

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

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

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

.faq-item.active .faq-answer {
  max-height: 500px; /* Đủ cao để chứa nội dung */
  padding: 15px 25px 25px;
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-hero-content h1 {
    font-size: 2.8em;
  }
  .page-resources-section h2 {
    font-size: 2em;
  }
  .page-resources-section h3 {
    font-size: 1.6em;
  }
  .page-resources-card h3, .page-resources-blog-post h3, .page-resources-game-item h3 {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-resources-hero-section {
    padding: 40px 15px;
  }
  .page-resources-hero-content h1 {
    font-size: 2.2em;
  }
  .page-resources-hero-content p {
    font-size: 1em;
  }
  .page-resources-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources-section {
    padding: 40px 0;
  }
  .page-resources-section h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources-section h3 {
    font-size: 1.4em;
  }
  .page-resources-section ul li {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  .page-resources-guide-cards, .page-resources-blog-grid, .page-resources-game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources-card-image, .page-resources-blog-image, .page-resources-game-image {
    height: 180px;
  }
  .page-resources-card h3, .page-resources-blog-post h3, .page-resources-game-item h3 {
    font-size: 1.2em;
    margin: 15px 15px 8px;
  }
  .page-resources-card p, .page-resources-blog-post p, .page-resources-game-item p {
    font-size: 0.95em;
    padding: 0 15px;
    margin-bottom: 10px;
  }
  .page-resources-btn {
    padding: 8px 20px;
    font-size: 0.85em;
    margin: 0 15px 15px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 10px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources-hero-content h1 {
    font-size: 1.8em;
  }
  .page-resources-section h2 {
    font-size: 1.6em;
  }
  .page-resources-section h3 {
    font-size: 1.2em;
  }
  .page-resources-hero-image {
    border-radius: 4px;
  }
  .page-resources-card, .page-resources-blog-post, .page-resources-game-item {
    border-radius: 8px;
  }
}

/* Custom color variables for better contrast */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Dodger Blue */
  --primary-color-dark: #B8860B; /* Darker Gold for headings */
  --secondary-color-dark: #007BFF; /* Darker Blue for subheadings */
  --primary-color-light: #FFFACD; /* Light Gold for backgrounds */
  --secondary-color-light: #ADD8E6; /* Light Blue for backgrounds */
  --primary-text-color-dark: #222222; /* Very dark grey for main text on light background */
  --secondary-text-color-dark: #444444; /* Dark grey for secondary text on light background */
  --light-text-color: #ffffff; /* White for text on dark background */
}