.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f9f9f9;
}

.page-resources__section-spacing {
  padding: 60px 0;
}

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

.page-resources__section-title {
  font-size: 32px;
  color: #8B0000; /* Secondary color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-resources__cta-button--primary {
  background: #FFD700; /* Primary color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-resources__cta-button--primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button--secondary {
  background: #ffffff;
  color: #8B0000; /* Secondary color */
  border: 2px solid #8B0000;
}

.page-resources__cta-button--secondary:hover {
  background: #f0f0f0;
  color: #660000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 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 content is below fixed header */
  background: linear-gradient(135deg, #FFD700, #8B0000);
  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: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

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

/* Intro Section */
.page-resources__intro-section {
  background-color: #ffffff;
}

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

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

.page-resources__guide-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources__guide-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-resources__card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-resources__card-title a {
  color: #8B0000; /* Secondary color for link titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #FFD700; /* Primary color on hover */
}

.page-resources__guide-card p {
  font-size: 15px;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 15px;
  flex-grow: 1;
}

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

.page-resources__card-link:hover {
  background: #e6c200;
}

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

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

.page-resources__news-card {
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
}

.page-resources__news-card img {
  width: 100%;
   /* Fixed height for news images */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-resources__news-card .page-resources__card-title {
  font-size: 18px;
}

.page-resources__news-card .page-resources__card-title a {
  color: #333333;
}

.page-resources__news-card .page-resources__card-title a:hover {
  color: #FFD700;
}

.page-resources__news-card p {
  font-size: 14px;
  color: #666666;
  padding: 0 15px;
  flex-grow: 1;
}

.page-resources__news-date {
  font-size: 13px;
  color: #999999;
  margin-top: 10px;
  margin-bottom: 15px;
  display: block;
}

.page-resources__view-all-news {
  text-align: center;
}

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

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

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

.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: #f9f9f9;
  border-top: 1px solid #e0e0e0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  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 h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none;
}

.page-resources__faq-toggle {
  font-size: 28px;
  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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #8B0000;
  transform: rotate(180deg);
}

.page-resources__view-all-faq {
  text-align: center;
  margin-top: 40px;
}

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

.page-resources__responsible-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-resources__responsible-image {
  flex: 1; /* Allow image to grow/shrink */
  min-width: 300px; /* Minimum width for image */
  max-width: 600px; /* Max width for image */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-resources__responsible-text {
  flex: 2; /* Allow text to grow/shrink */
  min-width: 300px; /* Minimum width for text */
}

.page-resources__responsible-text .page-resources__cta-button {
  margin-top: 20px;
}

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

.page-resources__contact-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: center;
}

.page-resources__contact-list li {
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555555;
}

.page-resources__icon {
  font-size: 24px;
  color: #FFD700;
  margin-right: 15px;
}

/* Placeholder for actual icons (e.g., Font Awesome) */
.page-resources__icon--chat::before { content: '💬'; }
.page-resources__icon--email::before { content: '📧'; }
.page-resources__icon--phone::before { content: '📞'; }

.page-resources__contact-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-resources__container {
    padding: 0 15px;
  }

  .page-resources__section-spacing {
    padding: 40px 0;
  }

  .page-resources__section-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  /* Hero Section Mobile */
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-resources__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-resources__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Grid Layout Mobile */
  .page-resources__grid-layout, .page-resources__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__guide-card img,
  .page-resources__news-card img {
     /* Adjust height for mobile */
  }

  .page-resources__card-title {
    font-size: 18px;
  }

  .page-resources__faq-question {
    padding: 15px;
  }
  
  .page-resources__faq-question h3 {
    font-size: 15px;
  }
  
  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-resources__faq-answer {
    padding: 0 15px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  .page-resources__responsible-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-resources__responsible-image {
    width: 100%;
    max-width: 100%;
  }

  .page-resources__contact-list li {
    font-size: 16px;
    flex-direction: column;
    text-align: center;
  }

  .page-resources__icon {
    margin-right: 0;
    margin-bottom: 5px;
  }

  .page-resources__contact-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure all images and containers are responsive on mobile */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__grid-layout,
  .page-resources__news-grid,
  .page-resources__responsible-content,
  .page-resources__contact-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}