/* style/resources.css */

/* --- General Page Styling --- */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  line-height: 1.6;
  background-color: #f8f8f8; /* Slightly off-white background for sections */
}

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

.page-resources__section {
  padding: 60px 0;
  margin-bottom: 20px;
  background-color: #ffffff; /* White background for most sections */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources__section:last-of-type {
  margin-bottom: 0;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Secondary color for main titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  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-bottom: 60px; /* Adjust padding-bottom as needed */
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Gradient background for visual appeal */
  color: #ffffff; /* White text for dark/gradient background */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-resources__hero-image {
  width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-resources__hero-image img:hover {
  transform: scale(1.02);
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff; /* White text for contrast */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: #FFD700; /* Primary color for CTA */
  color: #8B0000; /* Dark red text for contrast */
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid #FFD700;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Guide Cards --- */
.page-resources__betting-guides-section {
  background-color: #fefefe;
}

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

.page-resources__guide-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-resources__guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources__guide-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__guide-card .page-resources__card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 20px 20px 10px;
  color: #8B0000; /* Secondary color for card titles */
  flex-grow: 1; /* Allow title to take available space */
}

.page-resources__guide-card .page-resources__card-title a {
  color: #8B0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__guide-card .page-resources__card-title a:hover {
  color: #FFD700; /* Gold on hover */
  text-decoration: underline;
}

.page-resources__guide-card .page-resources__card-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 15px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-resources__read-more-button {
  display: inline-block;
  background: #FFD700;
  color: #8B0000;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 0 20px 20px;
  align-self: flex-start; /* Align button to start */
}

.page-resources__read-more-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources__more-guides-text {
  text-align: center;
  margin-top: 50px;
  font-size: 1.1em;
  color: #444444;
}

.page-resources__inline-link {
  color: #8B0000;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__inline-link:hover {
  color: #FFD700;
}

/* --- Promotions Insights Section --- */
.page-resources__promotions-insights-section {
  background: #8B0000; /* Secondary color for section background */
  color: #ffffff; /* White text for dark background */
  padding: 80px 0;
}

.page-resources__promotions-insights-section .page-resources__section-title {
  color: #FFD700; /* Gold title for dark background */
}

.page-resources__promotions-insights-section .page-resources__section-intro {
  color: #f0f0f0;
}

.page-resources__promotions-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-resources__promotions-text {
  flex: 1;
}

.page-resources__promotions-text h3 {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-resources__promotions-text h3 a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-resources__promotions-text p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-resources__promotions-image {
  flex: 1;
  text-align: center;
}

.page-resources__promotions-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: #FFD700; /* Primary color */
  color: #8B0000; /* Dark red text for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

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

.page-resources__responsible-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-resources__responsible-image {
  flex: 1;
  text-align: center;
}

.page-resources__responsible-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-resources__responsible-text {
  flex: 1;
}

.page-resources__responsible-text h3 {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-resources__responsible-text h3 a {
  color: #8B0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__responsible-text h3 a:hover {
  color: #FFD700;
  text-decoration: underline;
}

.page-resources__responsible-text p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #555555;
}

.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  color: #8B0000; /* Secondary color for text */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: 2px solid #8B0000; /* Border in secondary color */
}

.page-resources__btn-secondary:hover {
  background: #8B0000;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-resources__faq-list {
  margin-top: 40px;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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-item.active .page-resources__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: #FFD700; /* Gold background when active */
  color: #8B0000; /* Dark red text when active */
  border-color: #FFD700;
}

.page-resources__faq-item.active .page-resources__faq-question h3 {
  color: #8B0000;
}

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

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

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #8B0000;
  transform: rotate(180deg); /* Rotate for minus sign */
}

.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: #fff;
  color: #555555;
  font-size: 1em;
  line-height: 1.7;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Ensures content expands fully */
  padding: 20px 25px !important;
  opacity: 1;
  background: #fff;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e0e0e0;
  border-top: none;
}

/* --- Latest News Section --- */
.page-resources__latest-news-section {
  background-color: #fefefe;
}

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

.page-resources__news-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-resources__news-card .page-resources__card-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #8B0000;
  flex-grow: 1;
}

.page-resources__news-card .page-resources__card-title a {
  color: #8B0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-resources__news-card .page-resources__card-description {
  font-size: 0.95em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__news-footer {
  text-align: center;
  margin-top: 50px;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
  .page-resources__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-resources__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-resources__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-resources__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }

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

  .page-resources__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
    width: 100% !important;
    max-width: 300px !important; /* Constrain button width on small screens */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Guides Grid Mobile */
  .page-resources__guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__guide-card img {
    
  }

  .page-resources__guide-card .page-resources__card-title {
    font-size: 1.2em;
  }

  .page-resources__guide-card .page-resources__card-description {
    font-size: 0.9em;
  }

  .page-resources__read-more-button {
    width: calc(100% - 40px);
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center;
  }

  /* Promotions & Responsible Gambling Sections Mobile */
  .page-resources__promotions-content,
  .page-resources__responsible-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-resources__promotions-text h3,
  .page-resources__responsible-text h3 {
    font-size: 1.5em;
  }

  .page-resources__promotions-text p,
  .page-resources__responsible-text p {
    font-size: 1em;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 300px !important; /* Constrain button width on small screens */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* FAQ Section Mobile */
  .page-resources__faq-question {
    padding: 15px 20px;
  }

  .page-resources__faq-question h3 {
    font-size: 1.1em;
  }

  .page-resources__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
    margin-left: 15px;
  }

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

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

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

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

  .page-resources__news-card .page-resources__card-title {
    font-size: 1.2em;
  }

  .page-resources__news-card .page-resources__card-description {
    font-size: 0.9em;
  }

  .page-resources__news-footer .page-resources__btn-primary {
    width: 100% !important;
    max-width: 300px !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Global image and container responsive styles for mobile */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-container,
  .page-resources__guides-grid,
  .page-resources__promotions-content,
  .page-resources__responsible-content,
  .page-resources__news-grid,
  .page-resources__faq-list,
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no filter on images */
.page-resources img {
  filter: none !important;
}

/* Color contrast fixes if needed, though designed for good contrast */
.page-resources__dark-section {
  background: #8B0000;
  color: #ffffff;
}
.page-resources__dark-section .page-resources__section-title {
  color: #FFD700;
}
.page-resources__dark-section .page-resources__section-intro {
  color: #f0f0f0;
}
.page-resources__dark-section .page-resources__promotions-text h3 {
  color: #FFD700;
}
.page-resources__dark-section .page-resources__promotions-text h3 a {
  color: #FFD700;
}
.page-resources__dark-section .page-resources__promotions-text h3 a:hover {
  color: #ffffff;
}
.page-resources__dark-section .page-resources__promotions-text p {
  color: #f0f0f0;
}

.page-resources__btn-primary {
  background: #FFD700;
  color: #8B0000;
}
.page-resources__btn-secondary {
  background: #ffffff;
  color: #8B0000;
  border-color: #8B0000;
}
.page-resources__btn-secondary:hover {
  background: #8B0000;
  color: #ffffff;
}

.page-resources__faq-item.active .page-resources__faq-question {
  background-color: #FFD700;
  color: #8B0000;
  border-color: #FFD700;
}
.page-resources__faq-item.active .page-resources__faq-question h3 {
  color: #8B0000;
}
.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #8B0000;
}