/* style/resources.css */
:root {
  --primary-color: #FF0000; /* Đỏ - Passion, Luck */
  --secondary-color: #000080; /* Xanh đậm - Professionalism, Trust */
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --background-light: #F8F8F8;
  --background-medium: #EEEEEE;
  --border-color: #E0E0E0;
  --hover-color: #CC0000;
  --active-color: #000066;
}

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

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

.page-resources .intro-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.page-resources .main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources .description {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources .inline-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

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

.page-resources .highlight-text {
  color: var(--primary-color);
  font-weight: bold;
}

.page-resources .intro-section .highlight-text {
  color: #FFD700; /* Vàng sáng cho nổi bật trên nền xanh đậm */
}

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

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

.page-resources .secondary-button {
  background-color: var(--secondary-color);
}

.page-resources .secondary-button:hover {
  background-color: var(--active-color);
}

.page-resources section {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

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

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

.page-resources .why-choose-section .grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources .card {
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-resources .card-image {
  width: 100%;
  max-width: 300px;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

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

.page-resources .card-text {
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-resources .registration-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-resources .step-item {
  flex: 1 1 300px;
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources .step-image {
  width: 100%;
  max-width: 250px;
  height: 180px;
  object-fit: contain; /* Use contain to ensure full image visibility for steps */
  margin-bottom: 20px;
}

.page-resources .step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-resources .step-text {
  font-size: 0.9em;
  color: var(--text-dark);
}

.page-resources .game-types-section .grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
}

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

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

.page-resources .game-image {
  width: 40%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
}

.page-resources .game-content {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-resources .game-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-resources .game-text {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.page-resources .read-more-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

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

.page-resources .feature-list li {
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-resources .list-text {
  font-size: 0.9em;
  color: var(--text-dark);
}

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

.page-resources .article-item {
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-resources .article-content {
  padding: 20px;
}

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

.page-resources .article-excerpt {
  font-size: 0.9em;
  color: var(--text-dark);
  margin-bottom: 15px;
}

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

/* FAQ Section */
.page-resources .faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

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

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

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

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin: 0;
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-resources .call-to-action-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 80px 0;
}

.page-resources .call-to-action-section .section-title {
  color: var(--text-light);
}

.page-resources .call-to-action-section .section-title::after {
  background-color: var(--text-light);
}

.page-resources .call-to-action-section .description {
  color: var(--text-light);
  font-size: 1.1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources .call-to-action-section .cta-button {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-resources .call-to-action-section .cta-button:hover {
  background-color: var(--active-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources .main-title {
    font-size: 2.8em;
  }
  .page-resources .section-title {
    font-size: 2em;
  }
  .page-resources .game-types-section .grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-resources .game-card {
    flex-direction: column;
  }
  .page-resources .game-image {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-resources .intro-section,
  .page-resources section {
    padding: 40px 0;
  }
  .page-resources .main-title {
    font-size: 2.2em;
  }
  .page-resources .section-title {
    font-size: 1.8em;
  }
  .page-resources .description {
    font-size: 1em;
  }
  .page-resources .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources .why-choose-section .grid-3-cols,
  .page-resources .registration-steps,
  .page-resources .feature-list,
  .page-resources .article-list {
    grid-template-columns: 1fr;
  }
  .page-resources .card-image {
    height: 180px;
  }
  .page-resources .step-image {
    height: 150px;
  }
  .page-resources .game-image {
    height: 200px;
  }
  .page-resources .article-image {
    height: 180px;
  }
  .faq-question {
    padding: 12px 15px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-answer {
    padding: 0 15px;
  }
  .faq-item.active .faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-resources .main-title {
    font-size: 1.8em;
  }
  .page-resources .section-title {
    font-size: 1.5em;
  }
  .page-resources .container {
    padding: 15px;
  }
  .page-resources .card,
  .page-resources .step-item,
  .page-resources .game-card,
  .page-resources .feature-list li,
  .page-resources .article-item {
    padding: 15px;
  }
  .page-resources .game-content {
    padding: 15px;
  }
}