.page-resources {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #000000; /* Body background */
  --background-light: #f5f5f5;
  --card-background-dark-mode: rgba(255, 255, 255, 0.08);
  --border-color: #333333;
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  line-height: 1.6;
}

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

/* Ensure content is not hidden by fixed header */
.page-resources__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
}

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-resources__section-title .highlight {
  color: var(--text-color-dark-bg);
}

.page-resources__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-color-dark-bg);
}

.page-resources__section-description .highlight {
  color: var(--primary-color);
}

.page-resources__hero-section {
  background: var(--background-dark);
  color: var(--text-color-dark-bg);
  padding: 80px 0;
  text-align: center;
}

.page-resources__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-resources__hero-title .highlight {
  color: var(--text-color-dark-bg);
}

.page-resources__hero-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-color-dark-bg);
}

.page-resources__hero-description .highlight {
  color: var(--primary-color);
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-resources__btn-primary {
  background: var(--primary-color);
  color: var(--background-dark);
}

.page-resources__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-resources__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--background-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources__guide-section,
.page-resources__promotions-section,
.page-resources__app-section,
.page-resources__blog-section {
  background: var(--background-light);
  color: var(--text-color-light-bg);
  padding: 80px 0;
}

.page-resources__guide-section .page-resources__section-title,
.page-resources__promotions-section .page-resources__section-title,
.page-resources__app-section .page-resources__section-title,
.page-resources__blog-section .page-resources__section-title {
  color: var(--secondary-color);
}

.page-resources__guide-section .page-resources__section-title .highlight,
.page-resources__promotions-section .page-resources__section-title .highlight,
.page-resources__app-section .page-resources__section-title .highlight,
.page-resources__blog-section .page-resources__section-title .highlight {
  color: var(--text-color-light-bg);
}

.page-resources__guide-section .page-resources__section-description,
.page-resources__promotions-section .page-resources__section-description,
.page-resources__app-section .page-resources__section-description,
.page-resources__blog-section .page-resources__section-description {
  color: var(--text-color-light-bg);
}

.page-resources__guide-section .page-resources__section-description .highlight,
.page-resources__promotions-section .page-resources__section-description .highlight,
.page-resources__app-section .page-resources__section-description .highlight,
.page-resources__blog-section .page-resources__section-description .highlight {
  color: var(--secondary-color);
}

.page-resources__games-section,
.page-resources__safety-section {
  background: var(--background-dark);
  color: var(--text-color-dark-bg);
  padding: 80px 0;
}

.page-resources__games-section .page-resources__section-title .highlight,
.page-resources__safety-section .page-resources__section-title .highlight {
  color: var(--primary-color);
}

.page-resources__games-section .page-resources__section-description .highlight,
.page-resources__safety-section .page-resources__section-description .highlight {
  color: var(--primary-color);
}

.page-resources__card {
  background: var(--card-background-dark-mode);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color-dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__guide-section .page-resources__card,
.page-resources__promotions-section .page-resources__card,
.page-resources__blog-section .page-resources__card {
  background: #ffffff;
  color: var(--text-color-light-bg);
  border: 1px solid #e0e0e0;
}

.page-resources__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__guide-section .page-resources__card-title,
.page-resources__promotions-section .page-resources__card-title,
.page-resources__blog-section .page-resources__card-title {
  color: var(--secondary-color);
}

.page-resources__card-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-resources__card-text .highlight {
  color: var(--primary-color);
}

.page-resources__guide-section .page-resources__card-text .highlight,
.page-resources__promotions-section .page-resources__card-text .highlight,
.page-resources__blog-section .page-resources__card-text .highlight {
  color: var(--secondary-color);
}

.page-resources__card-button {
  margin-top: auto; /* Push button to bottom */
}

.page-resources__guide-grid,
.page-resources__games-grid,
.page-resources__promotion-grid,
.page-resources__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.page-resources__safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-resources__safety-item {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background: var(--card-background-dark-mode);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__safety-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources__item-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-resources__item-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color-dark-bg);
}

.page-resources__item-text .highlight {
  color: var(--primary-color);
}

.page-resources__app-download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.page-resources__qr-code {
  width: 200px;
  height: 200px;
  border: 5px solid var(--background-dark);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__app-button {
  margin-top: 20px;
}

.page-resources__blog-item {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-resources__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-resources__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-resources__blog-item-title .highlight {
  color: var(--text-color-light-bg);
}

.page-resources__blog-item-excerpt {
  font-size: 16px;
  line-height: 1.5;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources__blog-item-excerpt .highlight {
  color: var(--secondary-color);
}

.page-resources__blog-item-date {
  font-size: 14px;
  color: #888888;
  margin-top: auto;
}

.page-resources__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

.page-resources__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
  background: transparent;
  color: var(--secondary-color);
}

.page-resources__view-all-button:hover {
  background: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 40px;
  }
  .page-resources__section-title {
    font-size: 30px;
  }
  .page-resources__card-title {
    font-size: 20px;
  }
  .page-resources__item-title {
    font-size: 20px;
  }
  .page-resources__blog-item-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__hero-section {
    padding-top: 100px; /* Mobile: Adjust based on actual header height */
    padding-bottom: 60px;
  }
  .page-resources__hero-title {
    font-size: 32px;
  }
  .page-resources__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .page-resources__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-resources__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-resources__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-resources__guide-section,
  .page-resources__games-section,
  .page-resources__promotions-section,
  .page-resources__safety-section,
  .page-resources__app-section,
  .page-resources__blog-section {
    padding: 60px 0;
  }
  .page-resources__guide-grid,
  .page-resources__games-grid,
  .page-resources__promotion-grid,
  .page-resources__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__card-title {
    font-size: 20px;
  }
  .page-resources__card-text {
    font-size: 15px;
  }
  .page-resources__safety-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }
  .page-resources__item-title {
    font-size: 20px;
  }
  .page-resources__item-text {
    font-size: 15px;
  }
  .page-resources__qr-code {
    width: 150px;
    height: 150px;
  }
  .page-resources__blog-item-title {
    font-size: 18px;
  }
  .page-resources__blog-item-excerpt {
    font-size: 15px;
  }
  .page-resources__view-all-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px;
    font-size: 15px;
  }

  /* Image responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__guide-section,
  .page-resources__games-section,
  .page-resources__promotions-section,
  .page-resources__safety-section,
  .page-resources__app-section,
  .page-resources__blog-section,
  .page-resources__container,
  .page-resources__guide-card,
  .page-resources__game-card,
  .page-resources__promotion-card,
  .page-resources__blog-item,
  .page-resources__app-download-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}