.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Matches body background from shared.css */
}

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

/* 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); /* Fixed header offset */
  background: linear-gradient(135deg, #017439, #017439cc); /* Dark background for hero */
  color: #ffffff; /* White text for dark background */
}

.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;
  border-radius: 8px;
  overflow: hidden;
}

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

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

.page-resources__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for important titles */
  line-height: 1.2;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

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

.page-resources__dark-bg .page-resources__section-title {
  color: #FFFF00; /* Titles in dark sections */
}

.page-resources__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
  text-align: justify;
}

.page-resources__dark-bg .page-resources__text-block {
  color: #f0f0f0;
}

.page-resources__warning-text {
  color: #C30808;
  font-weight: bold;
  text-align: center;
  margin-top: 30px;
  font-size: 1.15em;
}

.page-resources__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

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

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

.page-resources__dark-bg .page-resources__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-resources__card-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-resources__dark-bg .page-resources__card-title {
  color: #FFFF00;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
}

.page-resources__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 1em;
}

.page-resources__list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #017439;
  font-weight: bold;
}

.page-resources__dark-bg .page-resources__list li::before {
  color: #FFFF00;
}

.page-resources__card-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
}

/* Steps Grid */
.page-resources__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-resources__step-card {
  background: #f0f8ff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-resources__step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-secondary:hover {
  background: #017439;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__image-full-width {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  margin-top: 40px;
  object-fit: cover;
}

/* Comparison Table */
.page-resources__comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-resources__table-row {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
}

.page-resources__table-row:last-child {
  border-bottom: none;
}

.page-resources__table-header {
  background: #017439;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
}

.page-resources__table-header .page-resources__table-cell {
  color: #FFFF00;
}

.page-resources__table-cell {
  flex: 1;
  padding: 15px 20px;
  text-align: center;
  border-left: 1px solid #e0e0e0;
}

.page-resources__table-cell:first-child {
  border-left: none;
  text-align: left;
  flex: 0.8;
}

.page-resources__table-row .page-resources__table-cell:nth-child(2) {
  background-color: #fff8f8; /* Light red background for negative points */
  color: #C30808;
}

.page-resources__table-row .page-resources__table-cell:nth-child(3) {
  background-color: #f8fff8; /* Light green background for positive points */
  color: #017439;
}

.page-resources__negative {
  color: #C30808;
  font-weight: 600;
}

.page-resources__positive {
  color: #017439;
  font-weight: 600;
}

/* Responsible Gaming List */
.page-resources__list-icon {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-resources__list-icon li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-resources__list-icon li img {
  margin-right: 15px;
  flex-shrink: 0;
  
  
  min-
  min-
  object-fit: contain;
}

/* FAQ Section */
.page-resources__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #f0f0f0;
}

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

.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: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #017439;
}

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