/* style/resources.css */
.page-resources {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0;
  font-weight: bold;
}

.page-resources__section-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__section-text a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  box-sizing: border-box;
}

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

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

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

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

.page-resources__hero-button {
  padding: 15px 30px;
  font-size: 1.2em;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Buttons */
.page-resources__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-resources__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-resources__cta-button {
  display: inline-block;
  margin: 10px;
}

/* Grid Layout */
.page-resources__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-top: 40px;
}

.page-resources__grid-layout--reverse {
  grid-template-areas: "image content";
}

.page-resources__grid-layout--reverse .page-resources__strategy-image-wrapper {
  grid-area: image;
}

.page-resources__grid-layout--reverse .page-resources__strategy-content {
  grid-area: content;
}

.page-resources__grid-layout img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__guide-list, .page-resources__strategy-list, .page-resources__responsible-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-resources__guide-list li, .page-resources__strategy-list li, .page-resources__responsible-list li {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  padding: 15px;
  border-left: 5px solid #26A9E0;
  border-radius: 5px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-resources__guide-list li a, .page-resources__strategy-list li a, .page-resources__responsible-list li a {
  color: #ffffff;
  text-decoration: none;
  display: block;
}

.page-resources__guide-list li a:hover, .page-resources__strategy-list li a:hover, .page-resources__responsible-list li a:hover {
  color: #26A9E0;
}

/* News Cards */
.page-resources__news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-resources__news-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

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

.page-resources__news-card-title {
  font-size: 1.4em;
  margin: 20px 20px 10px 20px;
  color: #26A9E0;
}

.page-resources__news-card-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-resources__news-card-excerpt {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 20px 15px 20px;
}

.page-resources__news-card-link {
  display: inline-block;
  margin: 0 20px 20px 20px;
  color: #ffffff;
  background-color: #26A9E0;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-resources__news-card-link:hover {
  background-color: #1e87b7;
}

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

/* Responsible Gambling Section */
.page-resources__responsible-content {
  text-align: left;
}

/* FAQ Section */
.page-resources__faq-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 80px 0;
}

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

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

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

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

.page-resources__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.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;
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.05);
}

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

.page-resources__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-resources__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Final CTA Section */
.page-resources__cta-final-section {
  padding: 80px 0;
}

.page-resources__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources__dark-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__dark-section .page-resources__section-text {
  color: #f0f0f0;
}

.page-resources__text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__grid-layout {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-text {
    font-size: 1em;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__grid-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .page-resources__grid-layout--reverse {
    grid-template-areas: unset; /* Reset grid-area for mobile */
  }
  .page-resources__guide-content, .page-resources__strategy-content, .page-resources__responsible-content {
    order: 2; /* Content below image by default */
  }
  .page-resources__guide-image-wrapper, .page-resources__strategy-image-wrapper, .page-resources__responsible-image-wrapper {
    order: 1;
  }
  .page-resources__news-cards {
    grid-template-columns: 1fr;
  }
  .page-resources__news-card {
    margin: 0 15px;
  }
  .page-resources__button-group {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile responsive for images, videos, buttons */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__guide-image-wrapper,
  .page-resources__strategy-image-wrapper,
  .page-resources__responsible-image-wrapper,
  .page-resources__news-card,
  .page-resources__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-resources__cta-button,
  .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;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

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

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

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__hero-button {
    font-size: 1em;
    padding: 10px 20px;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__section-text {
    font-size: 0.9em;
  }
}