/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #E0E0E0;
  background-color: #1A1A1A;
  line-height: 1.6;
}

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

.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, #1A1A1A 0%, #333333 100%);
  border-bottom: 2px solid #FFD700;
}

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

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

.page-resources .hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources .hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #E0E0E0;
}

.page-resources .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700;
  color: #1A1A1A;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources .cta-button:hover {
  background: #E6C200;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-resources .cta-button-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: #333333;
  color: #FFD700;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 20px;
  border: 1px solid #FFD700;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-resources .cta-button-secondary:hover {
  background: #FFD700;
  color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.page-resources .section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-resources .introduction-section, .page-resources .game-guides-section, .page-resources .safety-responsibility-section, .page-resources .faq-section, .page-resources .latest-articles-section, .page-resources .app-download-section {
  padding: 40px 0;
  background-color: #1A1A1A;
}

.page-resources .introduction-section p, .page-resources .safety-responsibility-section p, .page-resources .faq-section p, .page-resources .latest-articles-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: #B0B0B0;
}

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

.page-resources .card, .page-resources .game-card, .page-resources .article-item {
  background-color: #2A2A2A;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #3A3A3A;
}

.page-resources .card:hover, .page-resources .game-card:hover, .page-resources .article-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: #FFD700;
}

.page-resources .card img, .page-resources .game-card img, .page-resources .article-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #444;
}

.page-resources .card h3, .page-resources .game-card h3, .page-resources .article-item h3 {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
  min-height: 60px; /* Ensure consistent height */
}

.page-resources .card h3 a, .page-resources .game-card h3 a, .page-resources .article-item h3 a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources .card h3 a:hover, .page-resources .game-card h3 a:hover, .page-resources .article-item h3 a:hover {
  color: #FFFFFF;
}

.page-resources .card p, .page-resources .game-card p, .page-resources .article-item p {
  font-size: 1em;
  color: #B0B0B0;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: left;
}

.page-resources .card-button, .page-resources .game-button, .page-resources .article-link {
  display: inline-block;
  padding: 10px 20px;
  background: #FFD700;
  color: #1A1A1A;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources .card-button:hover, .page-resources .game-button:hover, .page-resources .article-link:hover {
  background-color: #E6C200;
  color: #1A1A1A;
}

.page-resources .app-download-section {
  background-color: #222222;
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid #3A3A3A;
  border-bottom: 1px solid #3A3A3A;
}

.page-resources .app-download-section .app-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-resources .app-download-section .app-cta img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  background-color: #FFFFFF;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources .safety-responsibility-section ul {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-resources .safety-responsibility-section ul li {
  background-color: #2A2A2A;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #FFD700;
  font-size: 1.05em;
  color: #E0E0E0;
}

.page-resources .safety-responsibility-section ul li strong {
  color: #FFD700;
}

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

.page-resources .faq-item {
  margin-bottom: 15px;
  border: 1px solid #3A3A3A;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2A2A2A;
}

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

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

.page-resources .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #FFD700;
}

.page-resources .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

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

.page-resources .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background-color: #2A2A2A;
  color: #B0B0B0;
}

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

.page-resources .faq-answer p {
  margin: 0;
  text-align: left;
}

.page-resources .latest-articles-section {
  background-color: #1A1A1A;
}

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

.page-resources .article-item {
  text-align: left;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources .hero-title {
    font-size: 3em;
  }
  .page-resources .hero-description {
    font-size: 1.1em;
  }
  .page-resources .section-title {
    font-size: 2em;
  }
  .page-resources .card h3, .page-resources .game-card h3, .page-resources .article-item h3 {
    font-size: 1.3em;
  }
  .page-resources .card p, .page-resources .game-card p, .page-resources .article-item p {
    font-size: 0.95em;
  }
}

@media (max-width: 768px) {
  .page-resources .hero-section {
    padding: 60px 15px;
  }
  .page-resources .hero-title {
    font-size: 2.5em;
  }
  .page-resources .hero-description {
    font-size: 1em;
  }
  .page-resources .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources .section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 40px;
  }
  .page-resources .introduction-section p, .page-resources .safety-responsibility-section p, .page-resources .faq-section p, .page-resources .latest-articles-section p {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources .resource-cards, .page-resources .game-cards, .page-resources .article-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources .card, .page-resources .game-card, .page-resources .article-item {
    padding: 20px;
  }
  .page-resources .app-download-section .app-cta {
    flex-direction: column;
  }
  .page-resources .app-download-section .app-cta img {
    width: 200px;
    height: 200px;
  }
  .page-resources .faq-question {
    padding: 15px 20px;
  }
  .page-resources .faq-question h3 {
    font-size: 1.1em;
  }
  .page-resources .faq-answer {
    padding: 0 20px;
  }
  .page-resources .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources .hero-title {
    font-size: 2em;
  }
  .page-resources .section-title {
    font-size: 1.6em;
  }
  .page-resources .card h3, .page-resources .game-card h3, .page-resources .article-item h3 {
    font-size: 1.2em;
  }
  .page-resources .faq-question h3 {
    font-size: 1em;
  }
  .page-resources .faq-toggle {
    font-size: 20px;
  }
}