.page-resources {
  --primary-color: #FFD700; /* Vàng */
  --secondary-color: #8B0000; /* Đỏ rượu */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f5f5f5;
  --background-dark: #222222;
  --border-color: #e0e0e0;
  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;
  margin-bottom: 20px;
}

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

.page-resources h1,
.page-resources h2 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources h1 {
  font-size: 3.2em;
  color: var(--text-light);
}

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

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

.page-resources p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

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

.page-resources .hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.page-resources .hero-content {
  order: 2; /* Content below image on mobile */
  margin-top: 30px;
}

.page-resources .hero-content h1 {
  color: var(--primary-color);
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

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

.page-resources .hero-image {
  order: 1; /* Image above content on mobile */
  width: 100%;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-resources .hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-resources .cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 18px 45px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.page-resources .cta-button:hover {
  background-color: #FFC400;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Guide Cards */
.page-resources .section-guides .container > p {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

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

.page-resources .guide-card {
  background-color: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-resources .guide-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-resources .guide-card h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

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

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

.page-resources .guide-card p {
  font-size: 1em;
  color: var(--text-dark);
  flex-grow: 1;
  margin-bottom: 25px;
}

.page-resources .btn-small {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources .btn-small:hover {
  background-color: #FFC400;
}

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

.page-resources .section-games h2 {
  color: var(--primary-color);
}

.page-resources .section-games p {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
  color: var(--text-light);
}

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

.page-resources .game-card {
  background-color: #333333;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources .game-card .card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.page-resources .game-card h3 {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  color: var(--primary-color);
}

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

.page-resources .game-card h3 .card-link:hover {
  color: #FFC400;
}

.page-resources .game-card p {
  font-size: 0.95em;
  color: #cccccc;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

/* Promotion Section */
.page-resources .section-promotions .container > p {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

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

.page-resources .promotion-item {
  background-color: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources .promotion-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.page-resources .promotion-item .promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-resources .promotion-item h3 {
  color: var(--secondary-color);
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-resources .promotion-item p {
  font-size: 1.05em;
  color: var(--text-dark);
  flex-grow: 1;
  margin-bottom: 30px;
}

.page-resources .btn-promo {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-transform: uppercase;
}

.page-resources .btn-promo:hover {
  background-color: #a02020;
  transform: translateY(-2px);
}

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

.page-resources .section-safety .container > p {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

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

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

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

.page-resources .safety-item .safety-icon {
  width: 150px; /* Larger icon size */
  height: 150px;
  object-fit: contain;
  margin-bottom: 25px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources .safety-item h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-resources .safety-item p {
  font-size: 1em;
  color: var(--text-dark);
}

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

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

.page-resources .section-faq p {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
  color: var(--text-light);
}

.page-resources .faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #333333; /* Darker background for question */
  color: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

.faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-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: #282828; /* Slightly lighter than question for answer */
  color: #cccccc;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 25px;
  border-top: 1px solid var(--primary-color);
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #cccccc;
}

/* Blog Section */
.page-resources .section-blog {
  background-color: var(--background-light);
}

.page-resources .section-blog .container > p {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

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

.page-resources .blog-card {
  background-color: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-resources .blog-card h3 {
  font-size: 1.5em;
  margin: 20px 20px 10px 20px;
  color: var(--secondary-color);
}

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

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

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

.page-resources .blog-card .blog-date {
  display: block;
  font-size: 0.9em;
  color: #888888;
  margin: 15px 20px 20px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources h1 {
    font-size: 2.8em;
  }
  .page-resources h2 {
    font-size: 2.2em;
  }
  .page-resources h3 {
    font-size: 1.6em;
  }
  .page-resources .hero-content p {
    font-size: 1.2em;
  }
  .page-resources .cta-button {
    padding: 15px 35px;
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-resources section {
    padding: 40px 0;
  }
  .page-resources h1 {
    font-size: 2.2em;
  }
  .page-resources h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources h3 {
    font-size: 1.4em;
  }
  .page-resources p {
    font-size: 1em;
  }
  .page-resources .hero-container {
    flex-direction: column;
  }
  .page-resources .hero-content {
    order: 2;
    margin-top: 20px;
  }
  .page-resources .hero-image {
    order: 1;
    margin-bottom: 20px;
  }
  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 1.1em;
  }
  .page-resources .guide-card-grid,
  .page-resources .game-card-grid,
  .page-resources .promotion-grid,
  .page-resources .safety-grid,
  .page-resources .blog-card-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-resources .guide-card,
  .page-resources .game-card,
  .page-resources .promotion-item,
  .page-resources .safety-item,
  .page-resources .blog-card {
    padding: 25px;
  }
  .page-resources .guide-card .card-image,
  .page-resources .promotion-item .promo-image,
  .page-resources .blog-card .card-image {
    height: 180px;
  }
  .page-resources .game-card .card-image {
    height: 150px;
  }
  .page-resources .safety-item .safety-icon {
    width: 120px;
    height: 120px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.8em;
  }
  .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources h1 {
    font-size: 1.8em;
  }
  .page-resources h2 {
    font-size: 1.6em;
  }
  .page-resources h3 {
    font-size: 1.2em;
  }
  .page-resources .hero-content p {
    font-size: 1em;
  }
  .page-resources .cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-resources .guide-card h3,
  .page-resources .game-card h3,
  .page-resources .promotion-item h3,
  .page-resources .safety-item h3,
  .page-resources .blog-card h3 {
    font-size: 1.3em;
  }
  .page-resources .btn-small,
  .page-resources .btn-promo {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
}