.page-resources {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Default background */
  line-height: 1.6;
}

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

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

.page-resources__heading {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-resources__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, var(--primary-color), #004d26); /* Darker gradient for hero */
  color: #ffffff;
}

.page-resources__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-resources__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources__hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-resources__cta-button:hover {
  background: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-resources__introduction-section {
  background-color: #ffffff;
  color: #333333;
}

/* Guides Section */
.page-resources__guides-section {
  background-color: #f9f9f9;
  color: #333333;
}

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

.page-resources__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-resources__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__card-content {
  padding: 25px;
}

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

.page-resources__list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.page-resources__list-item {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.6;
  position: relative;
  padding-left: 25px;
}

.page-resources__list-item::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Analysis Section */
.page-resources__analysis-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-resources__feature-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-resources__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-resources__feature-image {
  width: 100%;
  height: 200px; /* Fixed height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-resources__feature-description {
  font-size: 16px;
  color: #555555;
}

/* Advantages Section */
.page-resources__advantages-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-resources__heading--white {
  color: #ffffff;
}

.page-resources__paragraph--white {
  color: #f0f0f0;
}

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

.page-resources__advantage-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__advantage-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-resources__advantage-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__advantage-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-resources__advantage-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Responsible Gambling Section */
.page-resources__responsible-gambling-section {
  background-color: #f9f9f9;
  color: #333333;
}

.page-resources__list--checked {
  list-style-type: none;
  padding: 0;
  margin: 20px auto;
  max-width: 800px;
  text-align: left;
}

.page-resources__list--checked .page-resources__list-item {
  font-size: 17px;
  margin-bottom: 12px;
  line-height: 1.6;
  position: relative;
  padding-left: 35px;
}

.page-resources__list--checked .page-resources__list-item::before {
  content: '✅';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: normal;
}

.page-resources__responsible-gambling-section a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-resources__responsible-gambling-section a:hover {
  color: #004d26;
}

/* News Section */
.page-resources__news-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-resources__news-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-resources__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-resources__news-image {
  width: 100%;
  height: 200px; /* Fixed height */
  object-fit: cover;
  display: block;
}

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

.page-resources__news-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-resources__news-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__news-title a:hover {
  color: #004d26;
}

.page-resources__news-snippet {
  font-size: 15px;
  color: #555555;
  margin-bottom: 10px;
}

.page-resources__news-date {
  font-size: 14px;
  color: #888888;
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: #f9f9f9;
  color: #333333;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources__faq-question:active {
  background: #eeeeee;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px !important;
  opacity: 1;
}

.page-resources__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #555555;
}

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

.page-resources__faq-answer a:hover {
  color: #004d26;
}

/* Contact Section */
.page-resources__contact-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

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

.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 17px;
  font-weight: bold;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
}

.page-resources__btn-secondary:hover {
  background: #f0f0f0;
  color: #004d26;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.page-resources__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #f9f9f9;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 40px;
  }
  .page-resources__hero-description {
    font-size: 18px;
  }
  .page-resources__heading {
    font-size: 30px;
  }
  .page-resources__card-title, .page-resources__feature-title, .page-resources__advantage-title, .page-resources__news-title {
    font-size: 20px;
  }
  .page-resources__paragraph, .page-resources__list-item, .page-resources__feature-description, .page-resources__advantage-description, .page-resources__news-snippet, .page-resources__faq-question h3, .page-resources__faq-answer p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__hero-title {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .page-resources__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-resources__section {
    padding: 40px 15px;
  }
  .page-resources__heading {
    font-size: 26px;
  }
  .page-resources__paragraph {
    font-size: 15px;
  }
  .page-resources__card-grid, .page-resources__feature-grid, .page-resources__advantage-grid, .page-resources__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-resources__card-image, .page-resources__feature-image, .page-resources__advantage-image, .page-resources__news-image {
    height: 180px;
  }
  .page-resources__card-content, .page-resources__feature-item, .page-resources__advantage-item, .page-resources__news-content {
    padding: 20px;
  }
  .page-resources__card-title, .page-resources__feature-title, .page-resources__advantage-title, .page-resources__news-title {
    font-size: 18px;
  }
  .page-resources__list-item, .page-resources__feature-description, .page-resources__advantage-description, .page-resources__news-snippet, .page-resources__faq-answer p {
    font-size: 15px;
  }
  .page-resources__list--checked .page-resources__list-item {
    padding-left: 30px;
  }
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  .page-resources__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__feature-item,
  .page-resources__advantage-item,
  .page-resources__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }
}