/* style/resources.css */
:root {
  --primary-color: #FF4500; /* Orange-Red */
  --secondary-color: #00BFFF; /* Sky Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f7f6;
  --bg-dark: #2c3e50;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --button-hover-darken: #cc3700;
  --button-hover-lighten: #0099cc;
}

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

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

.page-resources .intro-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: 60px 0;
  text-align: center;
}

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

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

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

.page-resources .description a:hover {
  color: #f0f0f0;
}

.page-resources .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  font-weight: bold;
}

.page-resources .sub-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources .content-block {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.page-resources .content-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-resources .content-block p a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-resources .content-block p a:hover {
  text-decoration: underline;
}

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

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

.page-resources .hero-image, .page-resources .content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  object-fit: cover;
}

.page-resources .hero-image {
  max-width: 800px;
  margin: 30px auto;
  display: block;
}

.page-resources .game-category {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.page-resources .game-category:nth-child(even) {
  background-color: #f9f9f9;
}

/* FAQ Section */
.page-resources .section-faq {
  background-color: var(--bg-light);
  padding-bottom: 60px;
}

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

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

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

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-dark);
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fdfdfd;
  color: var(--text-dark);
}

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

.faq-answer p {
  margin: 0;
  font-size: 1.05em;
}

.faq-answer p a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.faq-answer p a:hover {
  text-decoration: underline;
}

/* News Section */
.page-resources .section-news {
  background-color: #e8f0f2;
  padding-bottom: 60px;
}

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

.page-resources .article-card {
  background: var(--card-bg);
  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 .article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-resources .article-card .page-resources article-title {
  padding: 15px 20px 0;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-resources .article-card .page-resources article-title a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: bold;
}

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

.page-resources .article-excerpt {
  padding: 0 20px 15px;
  font-size: 1em;
  color: #666;
}

.page-resources .article-excerpt a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-resources .article-excerpt a:hover {
  text-decoration: underline;
}

.page-resources .read-more {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
  padding: 0 20px 20px;
  transition: color 0.3s ease;
}

.page-resources .read-more:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources .main-title {
    font-size: 2.8em;
  }
  .page-resources .section-title {
    font-size: 2.2em;
  }
  .page-resources .sub-title {
    font-size: 1.6em;
  }
  .page-resources .article-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources .intro-section, .page-resources .section-guide, .page-resources .section-games, .page-resources .section-safety, .page-resources .section-faq, .page-resources .section-news {
    padding: 30px 0;
  }
  .page-resources .main-title {
    font-size: 2.2em;
  }
  .page-resources .description {
    font-size: 1em;
  }
  .page-resources .section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources .sub-title {
    font-size: 1.4em;
  }
  .page-resources .content-block, .page-resources .game-category {
    padding: 20px;
    margin-bottom: 20px;
  }
  .page-resources .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources .article-list {
    grid-template-columns: 1fr;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources .main-title {
    font-size: 1.8em;
  }
  .page-resources .section-title {
    font-size: 1.6em;
  }
  .page-resources .sub-title {
    font-size: 1.2em;
  }
  .page-resources .container {
    padding: 15px;
  }
}