.page-resources {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --dark-background: #1a1a1a;
  --light-text: #ffffff;
  --dark-text: #333333;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-font-color: #FFFF00;

  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--light-text); /* Default text color for dark body background */
  background-color: var(--dark-background); /* Ensure consistency if not inherited */
}

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

.page-resources__section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__dark-section {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.page-resources__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  background-color: var(--primary-color);
  color: var(--light-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--light-text);
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--light-text);
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.15;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: var(--register-button-bg);
  color: var(--register-login-font-color);
  border: 2px solid var(--register-button-bg);
}

.page-resources__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

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

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-resources__btn-link {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  font-size: 1em;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--light-text);
}

.page-resources__intro-content {
  background-color: var(--dark-background);
  color: var(--light-text);
}

.page-resources__intro-content .page-resources__section-title {
  color: var(--light-text);
}

.page-resources__text-block {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: #cccccc;
}

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--light-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__feature-image,
.page-resources__game-image,
.page-resources__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce min height for images */
}

.page-resources__feature-title,
.page-resources__game-title,
.page-resources__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--light-text);
}

.page-resources__feature-title a,
.page-resources__game-title a {
  color: var(--light-text);
  text-decoration: none;
}

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

.page-resources__feature-description,
.page-resources__game-description {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__game-guides .page-resources__section-title {
  color: var(--light-text);
}

.page-resources__promotions-section {
  background-color: var(--dark-background);
  color: var(--light-text);
}

.page-resources__promotions-section .page-resources__section-title {
  color: var(--light-text);
}

.page-resources__promo-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-resources__promo-image {
  max-width: 50%;
  flex-shrink: 0;
}

.page-resources__promo-details {
  flex-grow: 1;
}

.page-resources__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  font-size: 1.1em;
  color: #cccccc;
}

.page-resources__promo-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-resources__promo-list li::before {
  content: '✔';
  color: var(--register-login-font-color);
  position: absolute;
  left: 0;
}

.page-resources__faq-section {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.page-resources__faq-section .page-resources__section-title {
  color: var(--light-text);
}

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.page-resources__faq-question::-webkit-details-marker {
  display: none;
}

.page-resources__faq-item summary {
  list-style: none;
}

.page-resources__faq-qtext {
  flex-grow: 1;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  line-height: 1;
}

.page-resources__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1.1em;
  color: #cccccc;
  line-height: 1.5;
}

.page-resources__faq-answer p {
  margin-bottom: 15px;
}

.page-resources__faq-answer .page-resources__btn-link {
  color: var(--light-text);
  border: 1px solid var(--light-text);
  padding: 8px 15px;
  font-size: 0.9em;
}

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

.page-resources__cta-bottom {
  background-color: var(--dark-background);
  color: var(--light-text);
}

.page-resources__cta-bottom-content {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-bottom-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--light-text);
}

.page-resources__cta-bottom-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #cccccc;
}

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

.page-resources__btn-register {
  background-color: var(--register-button-bg);
  color: var(--register-login-font-color);
  border: 2px solid var(--register-button-bg);
}

.page-resources__btn-register:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

.page-resources__btn-login {
  background-color: var(--login-button-bg);
  color: var(--register-login-font-color);
  border: 2px solid var(--login-button-bg);
}

.page-resources__btn-login:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

/* Base responsive image styles */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }

  .page-resources__hero-description,
  .page-resources__text-block,
  .page-resources__promo-list li,
  .page-resources__faq-answer p,
  .page-resources__cta-bottom-description {
    font-size: 1em;
  }

  .page-resources__section-title,
  .page-resources__cta-bottom-title {
    font-size: 2em;
  }

  .page-resources__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources__cta-buttons,
  .page-resources__cta-bottom-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-link,
  .page-resources__btn-register,
  .page-resources__btn-login {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-resources__promo-content {
    flex-direction: column;
    text-align: center;
  }

  .page-resources__promo-image {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .page-resources__promo-details {
    width: 100%;
  }

  .page-resources__promo-list {
    text-align: left;
  }

  .page-resources__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-resources__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 1em;
  }

  .page-resources__container,
  .page-resources__section,
  .page-resources__card,
  .page-resources__intro-content,
  .page-resources__game-guides,
  .page-resources__promotions-section,
  .page-resources__faq-section,
  .page-resources__cta-bottom,
  .page-resources__cta-bottom-content,
  .page-resources__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}