/* style/resources.css */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from body, but defined for clarity */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  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: 1;
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-resources__section {
  padding: 60px 20px;
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
}

.page-resources__overview .page-resources__section-title,
.page-resources__casino-tips .page-resources__section-title,
.page-resources__promotions-news .page-resources__section-title,
.page-resources__cta .page-resources__section-title {
  color: #017439; /* Use brand color for titles on light background */
}

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

.page-resources__overview .page-resources__text-block,
.page-resources__casino-tips .page-resources__text-block,
.page-resources__promotions-news .page-resources__text-block,
.page-resources__cta .page-resources__text-block {
  color: #333333; /* Dark text on light background */
}

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

.page-resources__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark sections */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff; /* Light text on dark card background */
}

.page-resources__light-bg .page-resources__card {
  background: #ffffff; /* White background for light sections */
  color: #333333; /* Dark text on light card background */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-resources__light-bg .page-resources__card-title {
  color: #017439; /* Brand color for titles on light card background */
}

.page-resources__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-resources__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-resources__card-link:hover {
  background-color: #005a2e;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-resources__btn-primary {
  background: #C30808;
  color: #FFFF00; /* Register/Login button text color */
  border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(195, 8, 8, 0.4);
}

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

.page-resources__secondary-cta-button {
  background: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-resources__btn-secondary:hover,
.page-resources__secondary-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(1, 116, 57, 0.4);
}

/* Background color specific styles */
.page-resources__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

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

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

.page-resources__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-resources__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background: #017439; /* Brand color for FAQ question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-resources__faq-item summary::marker {
  display: none;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-resources__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  background: rgba(255, 255, 255, 0.03);
  color: #f0f0f0;
}

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

.page-resources__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-resources__faq-more {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-resources__faq-more a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-resources__cta-content {
  text-align: center;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-resources__hero-buttons,
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources__card {
    padding: 20px;
  }

  .page-resources__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__card-title {
    font-size: 1.3em;
  }

  .page-resources__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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

/* Ensure images within content area are not too small via CSS */
.page-resources img {
  min-width: 200px;
  min-height: 200px;
}

/* Override min-size for card images for better mobile display, while still meeting overall min-size for content images. This is a tricky balance. */
@media (max-width: 768px) {
  .page-resources__card-image {
    min-width: unset;
    min-height: unset;
  }
}