/* style/resources.css */
:root {
  --primary-color: #FF0000; /* Đỏ */
  --secondary-color: #FFA500; /* Cam */
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --background-light: #F8F8F8;
  --background-medium: #EEEEEE;
  --border-color: #E0E0E0;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

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

.page-resources section {
  padding: 60px 0;
  margin-bottom: 20px;
}

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

.page-resources .section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
}

.page-resources .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-resources p {
  font-size: 16px;
  margin-bottom: 15px;
  text-align: justify;
}

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

.page-resources a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Hero Section */
.page-resources .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  overflow: hidden;
}

.page-resources .hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-resources .hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-resources .hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-resources .hero-description a {
  color: var(--text-light);
  text-decoration: underline;
}

.page-resources .hero-description a:hover {
  color: var(--background-light);
}

.page-resources .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--text-light);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Introduction Section */
.page-resources .introduction-section .image-wrapper {
  text-align: center;
  margin: 30px 0;
}

.page-resources .introduction-section .section-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 400px;
  min-height: 300px;
  object-fit: cover;
}

/* Guide Section */
.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: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-resources .guide-card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-resources .guide-card-description {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-resources .guide-card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

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

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

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

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

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

.page-resources .game-category-title {
  font-size: 22px;
  color: var(--primary-color);
  margin: 20px 15px 10px;
  font-weight: bold;
}

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

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

.page-resources .game-category-description {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 15px 20px;
}

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

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

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

.page-resources .promo-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  min-width: 200px;
  min-height: 220px;
}

.page-resources .promo-card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin: 20px 15px 10px;
  font-weight: bold;
}

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

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

.page-resources .promo-card-description {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 15px 20px;
}

.page-resources .promo-card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

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

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

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

.page-resources .security-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 80px;
  min-height: 80px;
}

.page-resources .security-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-resources .security-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-resources .security-description {
  font-size: 15px;
  color: var(--text-dark);
}

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

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

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

.page-resources .faq-question:hover {
  background: var(--background-medium);
}

.page-resources .faq-question h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text-dark);
  font-weight: bold;
}

.page-resources .faq-question h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.page-resources .faq-question h3 a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

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

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

.page-resources .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  background: var(--background-light);
  color: var(--text-dark);
}

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

.page-resources .faq-answer p {
  margin: 0;
  font-size: 16px;
}

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

.page-resources .blog-card {
  background-color: #fff;
  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;
}

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

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

.page-resources .blog-card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin: 20px 15px 10px;
  font-weight: bold;
}

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

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

.page-resources .blog-card-description {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 15px 20px;
}

.page-resources .blog-card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  margin: 0 15px 20px;
  transition: all 0.3s ease;
}

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

/* Final CTA Section */
.page-resources .cta-final-section {
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: var(--text-light);
  padding: 80px 20px;
}

.page-resources .cta-final-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-resources .cta-final-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-resources .cta-final-description a {
  color: var(--text-light);
  text-decoration: underline;
}

.page-resources .cta-final-description a:hover {
  color: var(--background-light);
}

.page-resources .cta-final-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--text-light);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 22px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources .cta-final-button:hover {
  background: var(--background-medium);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources .hero-title {
    font-size: 40px;
  }
  .page-resources .section-title {
    font-size: 30px;
  }
  .page-resources .guide-card-grid, .page-resources .game-category-grid, .page-resources .promo-grid, .page-resources .security-grid, .page-resources .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-resources .cta-final-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-resources section {
    padding: 40px 0;
  }
  .page-resources .hero-section {
    padding: 60px 15px;
  }
  .page-resources .hero-title {
    font-size: 32px;
  }
  .page-resources .hero-description, .page-resources p {
    font-size: 15px;
  }
  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-resources .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-resources .guide-card, .page-resources .game-category-card, .page-resources .promo-card, .page-resources .security-item, .page-resources .blog-card {
    padding: 20px;
  }
  .page-resources .guide-card-title, .page-resources .game-category-title, .page-resources .promo-card-title, .page-resources .security-title, .page-resources .blog-card-title {
    font-size: 20px;
  }
  .page-resources .security-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
  }
  .page-resources .faq-question {
    padding: 15px;
  }
  .page-resources .faq-question h3 {
    font-size: 16px;
  }
  .page-resources .faq-toggle {
    font-size: 20px;
  }
  .page-resources .faq-answer {
    padding: 15px;
  }
  .page-resources .cta-final-section {
    padding: 60px 15px;
  }
  .page-resources .cta-final-title {
    font-size: 28px;
  }
  .page-resources .cta-final-button {
    padding: 15px 35px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .page-resources .hero-title {
    font-size: 28px;
  }
  .page-resources .cta-button {
    padding: 10px 25px;
    font-size: 16px;
  }
  .page-resources .section-title {
    font-size: 24px;
  }
  .page-resources .guide-card-grid, .page-resources .game-category-grid, .page-resources .promo-grid, .page-resources .security-grid, .page-resources .blog-grid {
    grid-template-columns: 1fr;
  }
  .page-resources .faq-question h3 {
    font-size: 15px;
  }
  .page-resources .cta-final-title {
    font-size: 24px;
  }
  .page-resources .cta-final-button {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-resources .introduction-section .section-image {
    min-width: 200px;
    min-height: 200px;
  }
  .page-resources .guide-card-image {
    min-width: 200px;
    min-height: 150px;
  }
  .page-resources .game-category-image {
    min-width: 200px;
    min-height: 150px;
  }
  .page-resources .promo-card-image {
    min-width: 200px;
    min-height: 180px;
  }
  .page-resources .blog-card-image {
    min-width: 200px;
    min-height: 150px;
  }
}