.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Body background is white */
}

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

.page-resources__hero-section {
  position: relative;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-content {
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Custom red for register/login */
  color: #FFFF00; /* Custom yellow for register/login text */
  border-color: #C30808;
}

.page-resources__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Primary brand color */
  border-color: #ffffff;
}

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
  transform: translateY(-2px);
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(100%); /* Example of non-color-changing filter for background */
}

.page-resources__content-section,
.page-resources__casino-tips-section,
.page-resources__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-resources__analysis-section,
.page-resources__news-section,
.page-resources__cta-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

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

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: inherit;
}

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

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

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

.page-resources__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__card--dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

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

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

.page-resources__card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: inherit;
}

.page-resources__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__card-text {
  font-size: 1em;
  padding: 0 15px 15px;
  flex-grow: 1;
}

.page-resources__card-link {
  display: inline-block;
  margin: 0 15px 20px;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__card--dark .page-resources__card-link {
  background-color: #C30808;
  color: #FFFF00;
}

.page-resources__card-link:hover {
  background-color: #005a2e;
}

.page-resources__card--dark .page-resources__card-link:hover {
  background-color: #a00606;
}

.page-resources__news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.page-resources__news-item {
  display: flex;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  color: #ffffff;
}

.page-resources__news-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-resources__news-content {
  padding: 20px;
  text-align: left;
}

.page-resources__news-title {
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-resources__news-title a {
  color: inherit;
  text-decoration: none;
}

.page-resources__news-title a:hover {
  text-decoration: underline;
}

.page-resources__news-date {
  font-size: 0.9em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-resources__news-excerpt {
  font-size: 1em;
  margin-bottom: 15px;
}

.page-resources__news-link {
  display: inline-block;
  padding: 8px 15px;
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__news-link:hover {
  background-color: #a00606;
}

.page-resources__faq-list {
  margin-top: 40px;
}

.page-resources__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #ffffff;
  color: #333333;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 20px;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
  padding-bottom: 10px; /* Add some padding at the bottom of the last paragraph */
}

.page-resources__cta-section {
  text-align: center;
  padding: 80px 20px;
}

.page-resources__cta-content {
  max-width: 800px;
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__grid-2-columns {
    grid-template-columns: 1fr;
  }
  .page-resources__news-item {
    flex-direction: column;
  }
  .page-resources__news-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding: 60px 0;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
  }
  .page-resources__grid-3-columns,
  .page-resources__grid-4-columns {
    grid-template-columns: 1fr;
  }
  .page-resources__card {
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }
  .page-resources__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__news-item {
    flex-direction: column;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }
  .page-resources__news-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__news-content {
    padding: 15px;
  }
  .page-resources__news-title {
    font-size: 1.4em;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 12px 15px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 12px 15px;
  }
  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1em;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__content-section,
  .page-resources__analysis-section,
  .page-resources__casino-tips-section,
  .page-resources__news-section,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__card-link,
  .page-resources__news-link {
    width: calc(100% - 30px);
    margin-left: 15px;
    margin-right: 15px;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__cta-title {
    font-size: 1.8em;
  }
}