.page-resources {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a; /* Body background from shared */
  --btn-register-login: #C30808;
  --btn-register-login-font: #FFFF00;

  color: var(--text-light); /* Default text color for the page content, assuming dark body bg */
  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__dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

/* Hero Section */
.page-resources__hero-section {
  padding: 100px 0;
  text-align: center;
  background-image: url('[GALLERY:hero:1920x1080:clup88,resources,overview,betting,platform,green]');
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-resources__hero-section > .page-resources__container {
  position: relative;
  z-index: 2;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-light);
  font-weight: bold;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__hero-buttons .page-resources__btn-primary,
.page-resources__hero-buttons .page-resources__btn-secondary {
  margin: 0 10px;
}

/* General Section Styling */
.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-resources__dark-section .page-resources__section-title {
  color: var(--text-light);
}

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.page-resources__btn-primary {
  background-color: var(--btn-register-login);
  color: var(--btn-register-login-font);
  border: 2px solid var(--btn-register-login);
}

.page-resources__btn-primary:hover {
  background-color: darken(var(--btn-register-login), 10%);
  border-color: darken(var(--btn-register-login), 10%);
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-resources__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.page-resources__btn-tertiary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-resources__btn-tertiary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

/* Advantages Section */
.page-resources__advantages-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-resources__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

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

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

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__card-description {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
}

/* Content Area */
.page-resources__content-area {
  padding: 80px 0;
}

.page-resources__content-area p {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-resources__content-area h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-resources__feature-item {
  text-align: center;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 30px;
  color: var(--text-dark);
}

.page-resources__feature-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__feature-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Promotions Section */
.page-resources__promotions-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__promotions-section .page-resources__section-intro {
  color: var(--text-light);
}

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

.page-resources__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__promo-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__promo-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-resources__promo-card p {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* Safety Section */
.page-resources__safety-section {
  padding: 80px 0;
}

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

.page-resources__info-block {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 30px;
  text-align: center;
  color: var(--text-dark);
}

.page-resources__info-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__info-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Guides Section */
.page-resources__guides-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources__guides-section .page-resources__section-intro {
  color: var(--text-light);
}

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

.page-resources__guide-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__guide-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__guide-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-resources__guide-card p {
  font-size: 1em;
  line-height: 1.7;
}

/* News Section */
.page-resources__news-section {
  padding: 80px 0;
}

.page-resources__news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 50px;
}

.page-resources__news-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s ease;
}

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

.page-resources__news-image {
  width: 200px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-resources__news-content {
  flex-grow: 1;
}

.page-resources__news-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-resources__news-description {
  font-size: 0.95em;
  line-height: 1.6;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 0;
}

.page-resources__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.03);
}

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

.page-resources__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}

.page-resources__faq-answer a {
  color: var(--btn-register-login-font);
  text-decoration: underline;
}

.page-resources__faq-answer a:hover {
  color: var(--text-light);
}

/* CTA Download Section */
.page-resources__cta-download-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources__cta-download-section .page-resources__section-intro {
  color: var(--text-dark);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__hero-description,
  .page-resources__section-intro {
    font-size: 1em;
  }
  .page-resources__news-image {
    width: 150px;
    height: 84px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons,
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__hero-buttons .page-resources__btn-primary,
  .page-resources__hero-buttons .page-resources__btn-secondary,
  .page-resources__cta-buttons .page-resources__btn-primary,
  .page-resources__cta-buttons .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-intro {
    font-size: 0.95em;
  }
  .page-resources__card,
  .page-resources__feature-item,
  .page-resources__promo-card,
  .page-resources__info-block,
  .page-resources__guide-card {
    padding: 20px;
  }
  .page-resources__card-title,
  .page-resources__feature-title,
  .page-resources__promo-title,
  .page-resources__info-title,
  .page-resources__guide-title {
    font-size: 1.3em;
  }
  .page-resources__news-item {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__news-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-resources__news-title {
    font-size: 1.2em;
  }
  .page-resources__news-description {
    font-size: 0.9em;
  }
  .page-resources__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px;
  }

  /* Force responsive for all images, videos, and their containers */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__container,
  .page-resources__section,
  .page-resources__card,
  .page-resources__feature-item,
  .page-resources__promo-card,
  .page-resources__info-block,
  .page-resources__guide-card,
  .page-resources__news-item,
  .page-resources__faq-item,
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  .page-resources__hero-section > .page-resources__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__cta-buttons {
    flex-wrap: wrap !important;
  }
}