/* style/responsible-gambling-safety.css */

:root {
  --primary-color: #004AAD;
  --secondary-color: #FFD700;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --background-dark: #000000; /* Body background from shared.css */
  --background-light: #f8f8f8;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --card-background-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-responsible-gambling-safety {
  color: var(--text-on-dark); /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Desktop: Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-responsible-gambling-safety__hero-section {
  background: var(--primary-color);
  color: var(--text-on-dark);
  padding: 80px 0;
  text-align: center;
}

.page-responsible-gambling-safety__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-on-dark);
  font-weight: bold;
  line-height: 1.2;
}

.page-responsible-gambling-safety__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gambling-safety__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* General Content Section */
.page-responsible-gambling-safety__content-section {
  padding: 60px 0;
}

.page-responsible-gambling-safety__content-section.page-responsible-gambling-safety__light-bg {
  background: var(--background-light);
  color: var(--text-on-light);
}

.page-responsible-gambling-safety__content-section.page-responsible-gambling-safety__dark-bg {
  background: var(--primary-color);
  color: var(--text-on-dark);
}

.page-responsible-gambling-safety__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit;
}

.page-responsible-gambling-safety__subsection-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-responsible-gambling-safety__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-responsible-gambling-safety__list,
.page-responsible-gambling-safety__numbered-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-responsible-gambling-safety__list-item,
.page-responsible-gambling-safety__numbered-list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-responsible-gambling-safety__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-responsible-gambling-safety__numbered-list-item::before {
  counter-increment: list-counter;
  content: counter(list-counter) '.';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Card Grid for Problem Signs */
.page-responsible-gambling-safety__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-responsible-gambling-safety__card {
  background: var(--card-background-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-on-dark);
}

.page-responsible-gambling-safety__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling-safety__card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gambling-safety__card-text {
  font-size: 1em;
  line-height: 1.6;
}

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

.page-responsible-gambling-safety__feature-item {
  background: var(--card-background-light);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--text-on-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-responsible-gambling-safety__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.page-responsible-gambling-safety__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-responsible-gambling-safety__feature-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-responsible-gambling-safety__feature-description {
  font-size: 0.95em;
  line-height: 1.6;
}

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

.page-responsible-gambling-safety__support-card {
  background: var(--card-background-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-responsible-gambling-safety__support-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-responsible-gambling-safety__support-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-responsible-gambling-safety__support-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Conclusion Section */
.page-responsible-gambling-safety__conclusion-section {
  text-align: center;
  padding: 80px 0;
  background: var(--background-light);
  color: var(--text-on-light);
}

.page-responsible-gambling-safety__cta-final {
  margin-top: 40px;
}

/* Buttons */
.page-responsible-gambling-safety__btn-primary,
.page-responsible-gambling-safety__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-responsible-gambling-safety__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-responsible-gambling-safety__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-responsible-gambling-safety__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-responsible-gambling-safety__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-on-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Links within text */
.page-responsible-gambling-safety__link-inline {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-responsible-gambling-safety__link-inline:hover {
  color: #e6c200;
}

/* Image Styling */
.page-responsible-gambling-safety__image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-responsible-gambling-safety__image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  width: 100%;
}

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

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

@media (max-width: 768px) {
  .page-responsible-gambling-safety {
    padding-top: 100px !important; /* Mobile: Ensure content is not hidden by fixed header */
    font-size: 16px;
    line-height: 1.5;
  }

  .page-responsible-gambling-safety__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-responsible-gambling-safety__hero-section {
    padding: 60px 0;
  }

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

  .page-responsible-gambling-safety__hero-description {
    font-size: 1em;
  }

  .page-responsible-gambling-safety__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-responsible-gambling-safety__btn-primary,
  .page-responsible-gambling-safety__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-responsible-gambling-safety__content-section {
    padding: 40px 0;
  }

  .page-responsible-gambling-safety__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-responsible-gambling-safety__subsection-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-responsible-gambling-safety__paragraph {
    font-size: 1em;
  }

  .page-responsible-gambling-safety__list-item,
  .page-responsible-gambling-safety__numbered-list-item {
    font-size: 1em;
    padding-left: 25px;
  }

  .page-responsible-gambling-safety__card-grid,
  .page-responsible-gambling-safety__feature-grid,
  .page-responsible-gambling-safety__support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-responsible-gambling-safety__card,
  .page-responsible-gambling-safety__feature-item,
  .page-responsible-gambling-safety__support-card {
    padding: 25px;
  }

  .page-responsible-gambling-safety__card-title,
  .page-responsible-gambling-safety__feature-title,
  .page-responsible-gambling-safety__support-title {
    font-size: 1.3em;
  }
  
  .page-responsible-gambling-safety__image-wrapper {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to prevent image from touching screen edges */
  }
  
  .page-responsible-gambling-safety__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-responsible-gambling-safety__conclusion-section {
    padding: 60px 0;
  }
}

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

  .page-responsible-gambling-safety__section-title {
    font-size: 1.6em;
  }
}