/* style/resources.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark: #333;
  --text-color-light: #f8f9fa;
  --bg-light: #ffffff;
  --bg-dark: #212529;
  --border-color: #e0e0e0;
}

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

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

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

.page-resources h1, .page-resources h2, .page-resources h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

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

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

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

.page-resources p {
  margin-bottom: 1em;
  text-align: justify;
}

.page-resources .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources .cta-button:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-resources .hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  padding: 100px 20px;
  text-align: center;
  color: var(--text-color-light);
}

.page-resources .hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources .hero-content p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 20px auto 40px;
  color: var(--text-color-light);
  text-align: center;
}

/* General Intro Section */
.page-resources .general-intro-section {
  background-color: var(--bg-light);
  text-align: center;
}

.page-resources .general-intro-section p {
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
}

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

/* Game Guides Section */
.page-resources .game-guides-section {
  background-color: #f8f9fa;
}

.page-resources .game-guides-section > p {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

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

.page-resources .guide-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources .guide-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-resources .guide-card h3 {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  text-align: left;
}

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

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

.page-resources .guide-card p {
  padding: 0 20px;
  text-align: left;
  flex-grow: 1;
}

.page-resources .guide-card .card-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  margin: 20px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.page-resources .guide-card .card-button:hover {
  background: #0056b3;
}

/* News Updates Section */
.page-resources .news-updates-section {
  background-color: var(--bg-light);
}

.page-resources .news-updates-section > p {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

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

.page-resources .news-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources .news-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-resources .news-card h3 {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  text-align: left;
}

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

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

.page-resources .news-card p {
  padding: 0 20px;
  text-align: left;
  flex-grow: 1;
}

.page-resources .news-card .card-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  margin: 20px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.page-resources .news-card .card-button:hover {
  background: #0056b3;
}

/* FAQ Section */
.page-resources .faq-section {
  background-color: #f8f9fa;
}

.page-resources .faq-section > p {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}

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

.page-resources .faq-item {
  margin-bottom: 15px;
}

.page-resources .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-resources .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
  text-align: left;
}

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

.page-resources .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.page-resources .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px;
}

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

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

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

/* Contact Support Section */
.page-resources .contact-support-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-align: center;
}

.page-resources .contact-support-section h2 {
  color: var(--secondary-color);
}

.page-resources .contact-support-section p {
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-color-light);
}

.page-resources .contact-support-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-resources .contact-support-section ul li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--text-color-light);
}

.page-resources .contact-support-section .cta-button {
  background: var(--secondary-color);
  color: var(--bg-dark);
}

.page-resources .contact-support-section .cta-button:hover {
  background: #e0a800;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources h1 {
    font-size: 2.8em;
  }
  .page-resources h2 {
    font-size: 2em;
  }
  .page-resources h3 {
    font-size: 1.6em;
  }
  .page-resources .guide-grid, .page-resources .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources section {
    padding: 40px 0;
  }
  .page-resources h1 {
    font-size: 2.2em;
  }
  .page-resources h2 {
    font-size: 1.8em;
  }
  .page-resources h3 {
    font-size: 1.4em;
  }
  .page-resources .hero-section {
    padding: 80px 15px;
  }
  .page-resources .hero-content p {
    font-size: 1em;
  }
  .page-resources .cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-resources .guide-card .card-image, .page-resources .news-card .card-image {
    height: 180px;
  }
  .page-resources .faq-question {
    padding: 12px;
  }
  .page-resources .faq-question h3 {
    font-size: 1em;
  }
  .page-resources .faq-toggle {
    font-size: 18px;
  }
}

@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 .cta-button {
    padding: 10px 20px;
    font-size: 14px;
  }
  .page-resources .guide-grid, .page-resources .news-grid {
    grid-template-columns: 1fr;
  }
  .page-resources .guide-card h3, .page-resources .news-card h3 {
    font-size: 1.3em;
  }
  .page-resources .contact-support-section ul {
    text-align: center;
  }
}