/* style/resources-security-responsible-gaming.css */

/* Base styles for the page content */
.page-resources-security-responsible-gaming {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: 0; /* Handled by hero section or main container */
}

.page-resources-security-responsible-gaming__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-security-responsible-gaming__section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-security-responsible-gaming__section-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #017439; /* Brand green for titles */
  font-weight: bold;
}

.page-resources-security-responsible-gaming__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-resources-security-responsible-gaming__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-resources-security-responsible-gaming__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 1;
}

.page-resources-security-responsible-gaming__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
  padding: 0 20px;
}

.page-resources-security-responsible-gaming__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff; /* White for hero title */
}

.page-resources-security-responsible-gaming__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-resources-security-responsible-gaming__hero-cta-buttons,
.page-resources-security-responsible-gaming__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-resources-security-responsible-gaming__btn-primary,
.page-resources-security-responsible-gaming__btn-secondary,
.page-resources-security-responsible-gaming__btn-register,
.page-resources-security-responsible-gaming__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-security-responsible-gaming__btn-primary {
  background-color: #017439; /* Brand green */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-resources-security-responsible-gaming__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-resources-security-responsible-gaming__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand green */
  border: 2px solid #017439;
}

.page-resources-security-responsible-gaming__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Custom colors for Register/Login buttons (on white background for contrast) */
.page-resources-security-responsible-gaming__btn-register {
  background-color: #C30808; /* Custom Red */
  color: #FFFF00; /* Custom Yellow */
  border: 2px solid #C30808;
}

.page-resources-security-responsible-gaming__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-resources-security-responsible-gaming__btn-login {
  background-color: #C30808; /* Custom Red */
  color: #FFFF00; /* Custom Yellow */
  border: 2px solid #C30808;
}

.page-resources-security-responsible-gaming__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Security Overview Section */
.page-resources-security-responsible-gaming__security-overview {
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-resources-security-responsible-gaming__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-resources-security-responsible-gaming__feature-card:hover {
  transform: translateY(-10px);
}

.page-resources-security-responsible-gaming__feature-icon {
  width: 100%;
  max-width: 400px; /* Ensure images are not too wide */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-security-responsible-gaming__feature-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439; /* Brand green for feature titles */
}

.page-resources-security-responsible-gaming__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Fair Play Section */
.page-resources-security-responsible-gaming__fair-play {
  background-color: #0d0d0d;
}

.page-resources-security-responsible-gaming__content-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.page-resources-security-responsible-gaming__content-block:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image/text layout */
}

.page-resources-security-responsible-gaming__content-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px; /* Ensure images are not too wide */
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-resources-security-responsible-gaming__text-content {
  flex: 1;
  color: #ffffff;
}

.page-resources-security-responsible-gaming__content-heading {
  font-size: 2em;
  margin-bottom: 15px;
  color: #017439; /* Brand green for content headings */
}

.page-resources-security-responsible-gaming__text-content p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-resources-security-responsible-gaming__responsible-gaming {
  background-color: #017439; /* Brand green background */
  color: #ffffff; /* White text for brand green background */
}

.page-resources-security-responsible-gaming__responsible-gaming .page-resources-security-responsible-gaming__section-title {
  color: #ffffff;
}

.page-resources-security-responsible-gaming__responsible-gaming .page-resources-security-responsible-gaming__section-description {
  color: #f0f0f0;
}

.page-resources-security-responsible-gaming__responsible-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources-security-responsible-gaming__tool-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-resources-security-responsible-gaming__tool-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-resources-security-responsible-gaming__tool-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-resources-security-responsible-gaming__cta-block {
  margin-top: 60px;
}

.page-resources-security-responsible-gaming__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

/* FAQ Section */
.page-resources-security-responsible-gaming__faq-section {
  background-color: #1a1a1a;
}

.page-resources-security-responsible-gaming__faq-list {
  margin-top: 50px;
  text-align: left;
}

.page-resources-security-responsible-gaming__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources-security-responsible-gaming__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-resources-security-responsible-gaming__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-security-responsible-gaming__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-security-responsible-gaming__faq-item.active .page-resources-security-responsible-gaming__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-security-responsible-gaming__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-resources-security-responsible-gaming__faq-item.active .page-resources-security-responsible-gaming__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 30px 30px; /* Adjust padding for active state */
}

.page-resources-security-responsible-gaming__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-resources-security-responsible-gaming__final-cta-section {
  background-color: #0d0d0d;
  padding-bottom: 80px;
}

/* Image styles */
.page-resources-security-responsible-gaming img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-security-responsible-gaming__hero-title {
    font-size: 3em;
  }
  .page-resources-security-responsible-gaming__hero-description {
    font-size: 1.2em;
  }
  .page-resources-security-responsible-gaming__section-title {
    font-size: 2.5em;
  }
  .page-resources-security-responsible-gaming__content-block {
    flex-direction: column;
  }
  .page-resources-security-responsible-gaming__content-block:nth-child(even) {
    flex-direction: column;
  }
  .page-resources-security-responsible-gaming__content-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources-security-responsible-gaming {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources-security-responsible-gaming__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }
  .page-resources-security-responsible-gaming__hero-title {
    font-size: 2.5em;
  }
  .page-resources-security-responsible-gaming__hero-description {
    font-size: 1em;
  }
  .page-resources-security-responsible-gaming__section {
    padding: 60px 0;
  }
  .page-resources-security-responsible-gaming__section-title {
    font-size: 2em;
  }
  .page-resources-security-responsible-gaming__section-description {
    font-size: 0.95em;
  }
  .page-resources-security-responsible-gaming__feature-grid,
  .page-resources-security-responsible-gaming__responsible-tools-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-security-responsible-gaming__content-block {
    flex-direction: column;
    gap: 20px;
  }
  .page-resources-security-responsible-gaming__content-block:nth-child(even) {
    flex-direction: column;
  }
  .page-resources-security-responsible-gaming__content-image {
    margin-bottom: 20px;
  }
  .page-resources-security-responsible-gaming__content-heading {
    font-size: 1.5em;
  }
  .page-resources-security-responsible-gaming__hero-cta-buttons,
  .page-resources-security-responsible-gaming__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-security-responsible-gaming__btn-primary,
  .page-resources-security-responsible-gaming__btn-secondary,
  .page-resources-security-responsible-gaming__btn-register,
  .page-resources-security-responsible-gaming__btn-login {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-resources-security-responsible-gaming img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-security-responsible-gaming__section,
  .page-resources-security-responsible-gaming__card,
  .page-resources-security-responsible-gaming__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-security-responsible-gaming__faq-question,
  .page-resources-security-responsible-gaming__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-security-responsible-gaming__faq-item.active .page-resources-security-responsible-gaming__faq-answer {
    padding: 15px 15px 30px; /* Adjust padding for active state on mobile */
  }
}