/* style/resources.css */
:root {
  --primary-color: #0A2239;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark: #1a1a1a;
  --border-color: #e0e0e0;
}

.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 section {
  padding: 60px 0;
  margin-bottom: 20px;
}

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

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

.page-resources section.hero-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a4a6b 100%);
  color: var(--text-light);
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.page-resources .hero-banner .banner-image {
  width: 100%;
  height: 400px; /* Adjusted for better visual impact */
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-resources .banner-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources .cta-button:hover {
  background-color: #ffe84d;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-resources .text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-resources .guide-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-resources .card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  padding: 15px 20px 10px;
  margin: 0;
}

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

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

.page-resources .card-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-resources .read-more-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
}

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

/* Strategies Section */
.page-resources .strategies-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-top: 30px;
}

.page-resources .strategy-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-resources .strategy-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources .strategy-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources .strategy-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

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

.page-resources .news-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-resources .news-card .card-title {
  font-size: 1.3em;
  color: var(--primary-color);
  padding: 15px 20px 10px;
  margin: 0;
}

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

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

.page-resources .news-card .card-description {
  font-size: 0.9em;
  color: #666666;
  padding: 0 20px;
  flex-grow: 1;
}

.page-resources .news-date {
  font-size: 0.85em;
  color: #999999;
  padding: 10px 20px;
}

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

.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 25px;
  background-color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-resources .faq-question-title {
  font-size: 1.25em;
  color: var(--primary-color);
  margin: 0;
  flex-grow: 1;
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-left: 20px;
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background-color: #f9f9f9;
  border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-answer {
  max-height: 600px; /* Sufficient height for content */
  padding: 25px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.page-resources .faq-answer-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

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

.page-resources .faq-answer-text .text-link:hover {
  color: var(--secondary-color);
}

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

.page-resources .term-item {
  background-color: #ffffff;
  border-left: 5px solid var(--secondary-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-resources .term-description {
  font-size: 0.95em;
  color: #666666;
}

/* Useful Links Section */
.page-resources .link-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.page-resources .link-list li {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources .link-list li:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

.page-resources .link-item {
  display: block;
  padding: 15px 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources .banner-title {
    font-size: 2.5em;
  }
  .page-resources .banner-description {
    font-size: 1.1em;
  }
  .page-resources .section-title {
    font-size: 2em;
  }
  .page-resources .guides-grid, .page-resources .news-grid, .page-resources .glossary-grid, .page-resources .link-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources section {
    padding: 40px 0;
  }
  .page-resources .hero-banner {
    padding: 60px 15px;
  }
  .page-resources .hero-banner .banner-image {
    height: 300px;
  }
  .page-resources .banner-title {
    font-size: 2em;
  }
  .page-resources .banner-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;
  }
  .page-resources .text-block {
    font-size: 1em;
  }
  .page-resources .card-title, .page-resources .strategy-title, .page-resources .news-card .card-title, .page-resources .faq-question-title, .page-resources .term-title {
    font-size: 1.2em;
  }
  .page-resources .faq-question {
    padding: 15px 20px;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .page-resources .faq-answer {
    padding: 20px;
  }
  .page-resources .read-more-button {
    margin: 0 15px 15px;
  }
  .page-resources .link-item {
    font-size: 1em;
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .page-resources .hero-banner .banner-image {
    height: 250px;
  }
  .page-resources .banner-title {
    font-size: 1.8em;
  }
  .page-resources .banner-description {
    font-size: 0.95em;
  }
  .page-resources .section-title {
    font-size: 1.5em;
  }
  .page-resources .guides-grid, .page-resources .news-grid, .page-resources .glossary-grid, .page-resources .link-list {
    grid-template-columns: 1fr;
  }
  .page-resources .faq-question-title {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.3em;
  }
}