/* style/resources.css */
:root {
  --primary-color: #0056b3;
  --secondary-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.15);
  --hover-bg-dark: rgba(255, 255, 255, 0.15);
}

.page-resources {
  color: var(--text-light); /* Main content text color for dark body background */
  background-color: var(--bg-dark);
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

.page-resources__strong-text {
  font-weight: bold;
  color: var(--secondary-color);
}

.page-resources__hero-banner {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  text-align: center;
  background-color: #1a1a1a;
  overflow: hidden;
}

.page-resources__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-resources__hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-resources__main-title {
  font-size: 3.2em;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 1.3em;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(135deg, var(--primary-color), #004085);
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
  border: none;
  cursor: pointer;
}

.page-resources__cta-button:hover {
  background: linear-gradient(135deg, #004085, var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 86, 179, 0.6);
}

.page-resources__section {
  padding: 60px 20px;
  background-color: var(--bg-dark);
}

.page-resources__section--how-to-choose {
  background-color: #1a1a1a;
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-resources__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-resources__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

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

.page-resources__card {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-resources__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__card-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-resources__card-title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-light);
}

.page-resources__inline-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__inline-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-resources__section--game-types {
  background-color: var(--bg-dark);
}

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

.page-resources__game-category-item {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-resources__game-category-image {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-resources__game-category-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-resources__game-category-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-light);
}

.page-resources__section--tips-strategies {
  background-color: #1a1a1a;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-resources__list-item {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.page-resources__list-item:hover {
  background-color: var(--hover-bg-dark);
}

.page-resources__list-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-resources__list-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-light);
}

.page-resources__section--news {
  background-color: var(--bg-dark);
}

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

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

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

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

.page-resources__news-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__news-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-resources__news-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__news-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-resources__news-summary {
  font-size: 0.95em;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources__news-date {
  font-size: 0.85em;
  color: #aaaaaa;
  text-align: right;
  display: block;
}

.page-resources__section--faq {
  background-color: #1a1a1a;
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: var(--text-light);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--card-bg-dark);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
  border-radius: 8px;
}

.page-resources__faq-question:hover {
  background: var(--hover-bg-dark);
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--secondary-color);
  pointer-events: none;
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2.2em;
  }
  .page-resources__game-category-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__hero-banner {
    padding: 40px 15px;
  }
  
  .page-resources__hero-container {
    gap: 20px;
  }

  .page-resources__hero-image {
    border-radius: 8px;
  }

  .page-resources__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-resources__hero-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1em;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-resources__section {
    padding: 30px 15px;
  }

  .page-resources__container {
    padding: 0;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources__paragraph {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-resources__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__card {
    padding: 20px;
    border-radius: 8px;
  }

  .page-resources__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
  }

  .page-resources__card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  .page-resources__card-text {
    font-size: 0.9em;
  }

  .page-resources__game-category-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__game-category-item {
    padding: 20px;
    border-radius: 8px;
  }

  .page-resources__game-category-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
  }

  .page-resources__game-category-title {
    font-size: 1.5em;
  }

  .page-resources__list-item {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
  }

  .page-resources__list-title {
    font-size: 1.3em;
  }

  .page-resources__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__news-card {
    border-radius: 8px;
  }

  .page-resources__news-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-resources__news-title {
    font-size: 1.2em;
  }

  .page-resources__news-summary {
    font-size: 0.85em;
  }

  .page-resources__faq-list {
    padding: 0;
  }

  .page-resources__faq-item {
    border-radius: 8px;
  }

  .page-resources__faq-question {
    padding: 15px 20px;
  }

  .page-resources__faq-question h3 {
    font-size: 1em;
  }

  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-resources__faq-answer {
    padding: 0 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }

  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__hero-banner,
  .page-resources__section,
  .page-resources__container,
  .page-resources__card,
  .page-resources__game-category-item,
  .page-resources__list-item,
  .page-resources__news-card,
  .page-resources__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__hero-banner { padding-left: 0; padding-right: 0; }
  .page-resources__section { padding-left: 0; padding-right: 0; }
}