.page-resources {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #26A9E0;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

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

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

.page-resources__hero-section .page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.7;
}

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

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

.page-resources__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-resources__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

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

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

.page-resources__subsection-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: inherit;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-resources__content-section,
.page-resources__security-section,
.page-resources__benefits-section,
.page-resources__strategies-section,
.page-resources__responsible-gambling-section,
.page-resources__faq-section,
.page-resources__cta-section {
  padding: 60px 0;
}

.page-resources__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-resources__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-resources__light-bg a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-resources__light-bg a:hover {
  color: darken(var(--primary-color), 10%);
}

.page-resources__dark-bg a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-resources__dark-bg a:hover {
  color: lighten(var(--primary-color), 20%);
}

.page-resources__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-resources__image-text-layout--reverse {
  flex-direction: row-reverse;
}

.page-resources__image-left,
.page-resources__image-right {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__text-content {
  flex: 1;
  max-width: 50%;
}

.page-resources__text-content ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources__text-content li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

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

.page-resources__card {
  background-color: var(--background-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-resources__card-title--inverted {
  color: var(--secondary-color);
}

.page-resources__card p {
  font-size: 1em;
  line-height: 1.6;
}

.page-resources__text-inverted {
  color: var(--text-light);
}

.page-resources__bullet-list {
  list-style: disc outside;
  margin-left: 20px;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.page-resources__bullet-list li {
  margin-bottom: 10px;
}

.page-resources__content-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-light);
  background-color: rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.page-resources__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-light);
}

.page-resources__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--text-light);
}

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

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 15px 25px;
}

.page-resources__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

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

.page-resources__cta-section .page-resources__section-title {
  color: var(--primary-color);
}

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

.page-resources__btn-primary--large,
.page-resources__btn-secondary--large {
  padding: 18px 40px;
  font-size: 1.1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__subsection-title {
    font-size: 1.5em;
  }
  .page-resources__image-text-layout {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__image-left,
  .page-resources__image-right,
  .page-resources__text-content {
    max-width: 100%;
    width: 100%;
  }
  .page-resources__image-text-layout--reverse {
    flex-direction: column;
  }
  .page-resources__image-left,
  .page-resources__image-right {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }
  .page-resources__subsection-title {
    font-size: 1.3em;
    padding: 0 15px;
  }
  .page-resources__text-block,
  .page-resources__bullet-list {
    padding: 0 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    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__hero-buttons,
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-resources__card-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-resources__card {
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-resources__content-image,
  .page-resources__image-left,
  .page-resources__image-right {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-resources__faq-item,
  .page-resources__faq-question,
  .page-resources__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .page-resources__faq-question {
    padding: 15px;
  }
  .page-resources__faq-answer {
    padding: 10px 15px;
  }
  .page-resources__container,
  .page-resources__content-section,
  .page-resources__security-section,
  .page-resources__benefits-section,
  .page-resources__strategies-section,
  .page-resources__responsible-gambling-section,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__image-text-layout,
  .page-resources__image-text-layout--reverse {
    padding: 0 15px;
  }
}