/* style/responsible-gaming.css */
.page-responsible-gaming {
  color: #333333; /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f8f8f8; /* Light background for contrast */
}

.page-responsible-gaming__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-responsible-gaming__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px; /* Minimum height for hero */
  background-color: #1a1a1a; /* Dark background for hero */
  color: #ffffff;
  overflow: hidden;
}

.page-responsible-gaming__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Subtle overlay for text readability */
}

.page-responsible-gaming__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
}

.page-responsible-gaming__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold main color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-responsible-gaming__hero-button {
  display: inline-block;
  background-color: #8B0000; /* Dark red auxiliary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  margin: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #8B0000;
}

.page-responsible-gaming__hero-button:hover {
  background-color: #FFD700; /* Gold on hover */
  color: #1a1a1a; /* Dark text on gold */
  transform: translateY(-3px);
  border-color: #FFD700;
}

/* General Section Styling */
.page-responsible-gaming__commitment-section,
.page-responsible-gaming__tools-section,
.page-responsible-gaming__signs-section,
.page-responsible-gaming__help-section,
.page-responsible-gaming__minor-protection-section,
.page-responsible-gaming__faq-section,
.page-responsible-gaming__cta-section {
  padding: 60px 0;
}

.page-responsible-gaming__commitment-section {
  background-color: #ffffff;
}

.page-responsible-gaming__tools-section {
  background-color: #f0f0f0;
}

.page-responsible-gaming__signs-section {
  background-color: #ffffff;
}

.page-responsible-gaming__help-section {
  background-color: #f0f0f0;
}

.page-responsible-gaming__minor-protection-section {
  background-color: #ffffff;
}

.page-responsible-gaming__faq-section {
  background-color: #f0f0f0;
}

.page-responsible-gaming__cta-section {
  background-color: #8B0000; /* Dark red background */
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-responsible-gaming__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Dark red auxiliary color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-responsible-gaming__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold accent */
  border-radius: 2px;
}

.page-responsible-gaming__cta-section .page-responsible-gaming__section-title {
  color: #FFD700; /* Gold title on dark red background */
}

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

.page-responsible-gaming__button {
  display: inline-block;
  background-color: #FFD700; /* Gold main color */
  color: #1a1a1a;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
}

.page-responsible-gaming__button:hover {
  background-color: #8B0000; /* Dark red on hover */
  color: #ffffff;
  transform: translateY(-3px);
  border-color: #8B0000;
}

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

.page-responsible-gaming__tool-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 450px;
}

.page-responsible-gaming__tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.page-responsible-gaming__tool-icon {
  width: 200px; /* Min size 200x200px */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-responsible-gaming__tool-card-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gaming__tool-card-description {
  font-size: 1em;
  color: #555555;
  text-align: justify;
  flex-grow: 1;
}

.page-responsible-gaming__action-center {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: #FFD700;
  border-radius: 12px;
  color: #1a1a1a;
}

.page-responsible-gaming__action-center .page-responsible-gaming__text-block {
  color: #1a1a1a;
}

.page-responsible-gaming__action-center .page-responsible-gaming__button {
  background-color: #8B0000;
  color: #ffffff;
  border-color: #8B0000;
}

.page-responsible-gaming__action-center .page-responsible-gaming__button:hover {
  background-color: #1a1a1a;
  color: #FFD700;
  border-color: #1a1a1a;
}

/* Signs Section */
.page-responsible-gaming__sign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-responsible-gaming__sign-card {
  background-color: #fefefe;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.page-responsible-gaming__sign-card-title {
  font-size: 1.4em;
  color: #8B0000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-responsible-gaming__sign-card-description {
  font-size: 0.95em;
  color: #666666;
}

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

.page-responsible-gaming__resource-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 380px;
}

.page-responsible-gaming__resource-logo {
  width: 200px; /* Min size 200x200px */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-responsible-gaming__resource-card-title {
  font-size: 1.6em;
  color: #8B0000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gaming__resource-card-description {
  font-size: 1em;
  color: #555555;
  text-align: justify;
  flex-grow: 1;
}

.page-responsible-gaming__resource-link {
  display: inline-block;
  background-color: #FFD700;
  color: #1a1a1a;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-responsible-gaming__resource-link:hover {
  background-color: #8B0000;
  color: #ffffff;
}

/* Minor Protection Section */
.page-responsible-gaming__subsection-title {
  font-size: 1.8em;
  color: #8B0000; /* Dark red color */
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-responsible-gaming__list {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0;
  margin-top: 20px;
}

.page-responsible-gaming__list-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #444444;
}

/* FAQ Section */
.page-responsible-gaming__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.page-responsible-gaming__faq-question {
  font-size: 1.3em;
  color: #8B0000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-responsible-gaming__faq-answer {
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

/* CTA Section */
.page-responsible-gaming__cta-content {
  text-align: center;
}

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

.page-responsible-gaming__button--contact {
  background-color: #FFD700;
  color: #1a1a1a;
  border-color: #FFD700;
}

.page-responsible-gaming__button--contact:hover {
  background-color: #ffffff;
  color: #8B0000;
  border-color: #ffffff;
}

.page-responsible-gaming__button--register {
  background-color: #8B0000;
  color: #ffffff;
  border-color: #8B0000;
}

.page-responsible-gaming__button--register:hover {
  background-color: #FFD700;
  color: #1a1a1a;
  border-color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-responsible-gaming__hero-title {
    font-size: 2.8em;
  }

  .page-responsible-gaming__section-title {
    font-size: 2em;
  }

  .page-responsible-gaming__tool-icon,
  .page-responsible-gaming__resource-logo {
    width: 200px; /* Ensure minimum size */
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-responsible-gaming__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }

  .page-responsible-gaming__hero-title {
    font-size: 2.2em;
  }

  .page-responsible-gaming__hero-description {
    font-size: 1.1em;
  }

  .page-responsible-gaming__hero-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 8px;
  }

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

  .page-responsible-gaming__text-block {
    font-size: 1em;
  }

  .page-responsible-gaming__tool-grid,
  .page-responsible-gaming__sign-grid,
  .page-responsible-gaming__resource-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-responsible-gaming__tool-card,
  .page-responsible-gaming__resource-card {
    min-height: auto;
  }

  .page-responsible-gaming__button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-responsible-gaming__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Critical: Ensure images are responsive and don't overflow */
  .page-responsible-gaming img {
    max-width: 100%;
    height: auto;
  }

  .page-responsible-gaming__tool-icon,
  .page-responsible-gaming__resource-logo {
    width: 200px; /* Maintain minimum size */
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-responsible-gaming__hero-title {
    font-size: 1.8em;
  }

  .page-responsible-gaming__hero-button {
    width: 100%;
    margin: 5px 0;
  }

  .page-responsible-gaming__section-title {
    font-size: 1.5em;
  }

  .page-responsible-gaming__tool-card-title,
  .page-responsible-gaming__sign-card-title,
  .page-responsible-gaming__resource-card-title,
  .page-responsible-gaming__faq-question {
    font-size: 1.2em;
  }
}