/* General page styles */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background: #121212; /* Inherited from shared, but for safety */
  padding-bottom: 60px; /* Space for footer */
}

.page-resources__hero-section,
.page-resources__overview-section,
.page-resources__guides-section,
.page-resources__faq-section,
.page-resources__responsible-gambling-section,
.page-resources__blog-section,
.page-resources__final-cta-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Fixed nav bar spacing */
.page-resources__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
}

.page-resources__dark-section {
  background-color: var(--primary-color, #0A2463); /* Dark blue */
  color: #ffffff;
}

.page-resources__dark-section .page-resources__cta-button--secondary {
  background: #ffffff;
  color: var(--primary-color, #0A2463);
  border: 2px solid var(--primary-color, #0A2463);
}

.page-resources__dark-section .page-resources__cta-button--secondary:hover {
  background: #f0f0f0;
  color: var(--primary-color, #0A2463);
}

.page-resources__main-title,
.page-resources__overview-title,
.page-resources__guides-title,
.page-resources__mobile-title,
.page-resources__faq-title,
.page-resources__responsible-gambling-title,
.page-resources__blog-title,
.page-resources__final-cta-title {
  font-size: 38px;
  color: var(--secondary-color, #FFD700); /* Gold headings */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__hero-description,
.page-resources__overview-content p,
.page-resources__mobile-content p,
.page-resources__responsible-gambling-content p,
.page-resources__final-cta-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.page-resources__hero-description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__overview-content p,
.page-resources__mobile-content p,
.page-resources__responsible-gambling-content p {
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__overview-content h3,
.page-resources__mobile-content h3 {
  font-size: 24px;
  color: var(--secondary-color, #FFD700);
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
}

.page-resources__overview-content ul,
.page-resources__responsible-gambling-content ul {
  list-style: disc;
  padding-left: 40px;
  max-width: 900px;
  margin: 20px auto;
}

.page-resources__overview-content li,
.page-resources__responsible-gambling-content li {
  margin-bottom: 10px;
  color: #e0e0e0;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-resources__cta-buttons--center {
  justify-content: center;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__cta-button--primary {
  background: var(--primary-color, #0A2463);
  color: #ffffff;
  border: 2px solid var(--primary-color, #0A2463);
}

.page-resources__cta-button--primary:hover {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A2463);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border-color: var(--secondary-color, #FFD700);
}

.page-resources__cta-button--secondary {
  background: transparent;
  color: var(--secondary-color, #FFD700);
  border: 2px solid var(--secondary-color, #FFD700);
}

.page-resources__cta-button--secondary:hover {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A2463);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button--large {
  padding: 18px 45px;
  font-size: 20px;
}

.page-resources__cta-button--small {
  padding: 12px 25px;
  font-size: 16px;
}

.page-resources a {
  color: var(--secondary-color, #FFD700);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-resources .highlight {
  color: var(--secondary-color, #FFD700);
}

/* Image styles */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources__overview-image {
  max-width: 800px;
}

.page-resources__mobile-image {
  max-width: 500px;
}

.page-resources__responsible-gambling-image {
  max-width: 300px;
}


/* Video Section Styles */
.page-resources__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust based on actual header height */
  background: var(--primary-color, #0A2463); /* Dark background for video section */
}

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

.page-resources__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from interfering with click event on parent link */
}

.page-resources__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-resources__video-link:hover .page-resources__video-overlay {
  opacity: 1;
}

.page-resources__video-click-hint {
  color: #0A2463; /* Dark text on gold hint */
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(255, 215, 0, 0.8); /* Gold with transparency */
  border-radius: 5px;
  white-space: nowrap;
}

.page-resources__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-resources__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color, #FFD700); /* Gold button */
  color: var(--primary-color, #0A2463); /* Dark text on gold */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__play-now-button:hover {
  background: #ffc107; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-resources__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


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

.page-resources__guide-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly visible on dark background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
  border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold border */
}

.page-resources__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__guide-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  margin: 0; /* Override default img margin */
  border-radius: 0; /* Remove image border-radius */
}

.page-resources__guide-card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--secondary-color, #FFD700);
  line-height: 1.3;
}

.page-resources__guide-card-title a {
  color: var(--secondary-color, #FFD700);
  text-decoration: none;
}

.page-resources__guide-card-title a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-resources__guide-card-excerpt {
  font-size: 16px;
  color: #c0c0c0;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-resources__guide-card-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 10px 15px;
  background: var(--primary-color, #0A2463);
  color: #ffffff;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__guide-card-button:hover {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A2463);
  transform: translateY(-2px);
}

/* FAQ Section Styles */
.page-resources__faq-section {
  background: #1a1a1a; /* Slightly lighter dark background for contrast */
  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 10px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color, #0A2463); /* Primary color for question background */
  color: #ffffff;
  border: 1px solid var(--secondary-color, #FFD700); /* Gold border */
  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: #1a3a7a; /* Slightly lighter primary on hover */
  border-color: #ffffff;
}

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

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

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Plus to X effect */
}

.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 25px;
  opacity: 0;
  background: #2a2a2a; /* Darker background for answer */
  color: #c0c0c0;
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.page-resources__faq-answer p {
  margin: 0 0 10px 0;
  color: #c0c0c0;
  text-align: left;
}
.page-resources__faq-answer p:last-child {
  margin-bottom: 0;
}


/* Blog Section Styles */
.page-resources__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__blog-item {
  background: rgba(255, 255, 255, 0.1); /* Lighter on dark background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-resources__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__blog-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-resources__blog-item-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-resources__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--secondary-color, #FFD700);
  line-height: 1.3;
}

.page-resources__blog-item-title a {
  color: var(--secondary-color, #FFD700);
  text-decoration: none;
}

.page-resources__blog-item-title a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-resources__blog-item-excerpt {
  font-size: 16px;
  color: #c0c0c0;
  padding: 0 20px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources__blog-item-date {
  font-size: 14px;
  color: #888;
  padding: 0 20px 20px;
  display: block;
}

/* Final CTA Section */
.page-resources__final-cta-section {
  text-align: center;
  background-color: #1a1a1a; /* Slightly different dark background */
  padding: 80px 20px;
}

.page-resources__final-cta-title {
  color: var(--secondary-color, #FFD700);
  margin-bottom: 20px;
}

.page-resources__final-cta-description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  font-size: 18px;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 34px;
  }
  .page-resources__hero-description {
    font-size: 17px;
  }
  .page-resources__overview-title,
  .page-resources__guides-title,
  .page-resources__mobile-title,
  .page-resources__faq-title,
  .page-resources__responsible-gambling-title,
  .page-resources__blog-title,
  .page-resources__final-cta-title {
    font-size: 32px;
  }
  .page-resources__cta-button {
    padding: 14px 28px;
    font-size: 17px;
  }
  .page-resources__cta-button--large {
    padding: 16px 40px;
    font-size: 18px;
  }
}