/* style/resources.css */
:root {
  --primary-color: #007bff; /* Deep blue */
  --secondary-color: #dc3545; /* Bright red */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #343a40;
  --border-color: #e0e0e0;
}

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

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

.page-resources .hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

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

.page-resources .hero-image {
  width: 100%;
  height: auto;
  max-height: 450px; /* Adjust as needed */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.page-resources .hero-content {
  color: var(--text-color-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  position: relative; /* Ensure content is above image overlay if any */
  z-index: 2;
}

.page-resources .hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: var(--text-color-light);
  font-weight: bold;
}

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

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

.page-resources .cta-button:hover {
  background-color: #e65261; /* Slightly darker red */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-resources .section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #555;
}

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

.page-resources .guide-card {
  background-color: #ffffff;
  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 .guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-resources .card-content {
  padding: 25px;
}

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

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

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

.page-resources .card-text {
  font-size: 1em;
  color: #666;
  margin-bottom: 20px;
}

.page-resources .card-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

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

.page-resources .cta-bottom {
  text-align: center;
  margin-top: 50px;
}

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

.page-resources .strategy-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .strategy-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources .item-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources .item-description {
  font-size: 1.05em;
  color: #555;
}

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

.page-resources .game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources .game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-resources .game-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
  font-weight: bold;
}

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

.page-resources .game-title a:hover {
  color: var(--secondary-color);
}

.page-resources .game-description {
  font-size: 0.95em;
  color: #666;
  padding: 0 15px;
}

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

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

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

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

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
  font-weight: bold;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  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: #f9f9f9;
  color: #444;
}

.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: 1em;
  line-height: 1.7;
}

.faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.faq-answer a:hover {
  color: var(--secondary-color);
}

.page-resources .section-cta-final {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color-light);
  text-align: center;
}

.page-resources .section-cta-final .section-title,
.page-resources .section-cta-final .section-text {
  color: var(--text-color-light);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.page-resources .section-cta-final .cta-button {
  background-color: #ffffff;
  color: var(--secondary-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources .section-cta-final .cta-button:hover {
  background-color: var(--background-light);
  color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources .hero-title {
    font-size: 2.5em;
  }
  .page-resources .hero-description {
    font-size: 1.1em;
  }
  .page-resources .section-title {
    font-size: 2em;
  }
  .page-resources .strategy-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-resources .hero-banner {
    padding: 40px 0;
  }
  .page-resources .hero-image {
    max-height: 300px;
  }
  .page-resources .hero-title {
    font-size: 2em;
  }
  .page-resources .hero-description {
    font-size: 1em;
  }
  .page-resources .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources section {
    padding: 40px 0;
  }
  .page-resources .section-title {
    font-size: 1.8em;
  }
  .page-resources .section-text {
    font-size: 0.95em;
  }
  .page-resources .grid-layout,
  .page-resources .game-cards-grid {
    grid-template-columns: 1fr;
  }
  .page-resources .card-title,
  .page-resources .item-title,
  .page-resources .game-title {
    font-size: 1.4em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-resources .hero-title {
    font-size: 1.7em;
  }
  .page-resources .hero-description {
    font-size: 0.9em;
  }
  .page-resources .section-title {
    font-size: 1.5em;
  }
  .page-resources .cta-button {
    font-size: 0.9em;
    padding: 10px 20px;
  }
  .page-resources .card-title,
  .page-resources .item-title,
  .page-resources .game-title {
    font-size: 1.2em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
}