/* style/resources.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #121212; /* Assuming body background from shared.css */
  --background-light: #f5f5f5;
  --button-register-login: #C30808;
  --button-register-login-text: #FFFFFF; /* Overriding #FFFF00 for contrast */
}

.page-resources {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Ensure sections have clear backgrounds */
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  padding-bottom: 60px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.8;
}

.page-resources__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: var(--button-register-login); /* Using specific color for register/login */
  color: var(--button-register-login-text); /* Ensuring white text for contrast */
  border: 2px solid var(--button-register-login);
}

.page-resources__btn-primary:hover {
  background-color: #a40707; /* Darken #C30808 */
  border-color: #a40707;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-resources__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.page-resources__btn-centered {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 250px;
}

.page-resources__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 500px;
  border-radius: 10px;
  margin-top: 40px;
}

.page-resources__introduction-section,
.page-resources__entertainment-types-section,
.page-resources__security-support-section,
.page-resources__contact-cta-section {
  background-color: var(--background-light);
  color: var(--text-dark);
  padding: 60px 0;
  text-align: center;
}

.page-resources__getting-started-section,
.page-resources__promotions-section,
.page-resources__faq-section,
.page-resources__video-section {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 60px 0;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit;
}

.page-resources__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-resources__section-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 40px;
}

.page-resources__guide-grid,
.page-resources__game-grid,
.page-resources__promotion-grid,
.page-resources__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-resources__card {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  min-height: 200px; /* Ensure card content is not too small */
}

.page-resources__card:hover {
  transform: translateY(-5px);
}

.page-resources__guide-title,
.page-resources__game-title,
.page-resources__promotion-title,
.page-resources__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__guide-title a,
.page-resources__game-title a,
.page-resources__promotion-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources__guide-title a:hover,
.page-resources__game-title a:hover,
.page-resources__promotion-title a:hover {
  text-decoration: underline;
}

.page-resources__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-light);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;}