.page-resources-online-betting-safety {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-dark: #212529;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #343a40;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-resources-online-betting-safety a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources-online-betting-safety a:hover {
  text-decoration: underline;
}

.page-resources-online-betting-safety__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-resources-online-betting-safety__section {
  padding: 60px 0;
  text-align: center;
}

.page-resources-online-betting-safety__section:nth-of-type(even) {
  background-color: var(--bg-light);
}

.page-resources-online-betting-safety h1,
.page-resources-online-betting-safety h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: bold;
}

.page-resources-online-betting-safety h3 {
  color: var(--text-dark);
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-resources-online-betting-safety p {
  margin-bottom: 20px;
}

/* Hero Section */
.page-resources-online-betting-safety__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%); /* Slightly darker gradient for depth */
  color: var(--text-light);
}

.page-resources-online-betting-safety__hero-section h1 {
  color: var(--text-light);
  font-size: 3.2em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-online-betting-safety__hero-section p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-resources-online-betting-safety__hero-section p a {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-resources-online-betting-safety__hero-section p a:hover {
  text-decoration: underline;
}

.page-resources-online-betting-safety__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources-online-betting-safety__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-resources-online-betting-safety__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-resources-online-betting-safety__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources-online-betting-safety__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-online-betting-safety__cta-button:hover {
  background: #e0a800; /* Slightly darker secondary for hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Why Safety Section */
.page-resources-online-betting-safety__why-safety img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Golden Rules Section */
.page-resources-online-betting-safety__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-online-betting-safety__card {
  background-color: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-resources-online-betting-safety__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-resources-online-betting-safety__card img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  width: 100%;
}

.page-resources-online-betting-safety__card h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-resources-online-betting-safety__card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources-online-betting-safety__card h3 a:hover {
  text-decoration: underline;
}

.page-resources-online-betting-safety__card p {
  font-size: 0.95em;
  color: #555;
}

/* Wi88 Security Section */
.page-resources-online-betting-safety__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources-online-betting-safety__security-list li {
  background-color: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  border: 1px solid var(--border-color);
}

.page-resources-online-betting-safety__security-list li img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-resources-online-betting-safety__security-list li h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-top: 0;
}

.page-resources-online-betting-safety__security-list li p {
  font-size: 0.9em;
  color: #666;
}

/* Responsible Gambling Section */
.page-resources-online-betting-safety__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  text-align: left;
}

.page-resources-online-betting-safety__responsible-list li {
  background-color: var(--text-light);
  border-left: 5px solid var(--secondary-color);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-resources-online-betting-safety__responsible-list li h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.page-resources-online-betting-safety__button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  margin-top: 30px;
  transition: background-color 0.3s ease;
}

.page-resources-online-betting-safety__button:hover {
  background: #0056b3;
}

/* Things to Avoid Section */
.page-resources-online-betting-safety__avoid .page-resources-online-betting-safety__checklist {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-resources-online-betting-safety__avoid .page-resources-online-betting-safety__checklist li {
  background-color: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.page-resources-online-betting-safety__avoid .page-resources-online-betting-safety__checklist li::before {
  content: '❌';
  margin-right: 15px;
  font-size: 1.2em;
}

/* Final CTA Section */
.page-resources-online-betting-safety__cta-final {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: var(--text-light);
  padding: 80px 0;
}

.page-resources-online-betting-safety__cta-final h2 {
  color: var(--text-light);
  font-size: 2.5em;
}

.page-resources-online-betting-safety__cta-final p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-resources-online-betting-safety__cta-final p a {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-resources-online-betting-safety__cta-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-resources-online-betting-safety__cta-flex img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-online-betting-safety__cta-flex .page-resources-online-betting-safety__cta-content {
  flex: 1;
}

.page-resources-online-betting-safety__cta-flex .page-resources-online-betting-safety__cta-button {
  margin-top: 20px;
}

/* FAQ Section */
.page-resources-online-betting-safety__faq {
  padding-bottom: 80px;
}

.page-resources-online-betting-safety__faq .faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question:hover {
  background: #f5f5f5;
  border-color: var(--primary-color);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--text-dark);
  text-align: left;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--bg-light);
  border-radius: 0 0 8px 8px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 20px 25px;
  transition: max-height 0.4s ease-in, padding 0.4s ease-in;
}

.faq-answer p {
  margin: 0;
  text-align: left;
  color: #495057;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-online-betting-safety__hero-section h1 {
    font-size: 2.8em;
  }
  .page-resources-online-betting-safety__cta-flex {
    flex-direction: column;
    text-align: center;
  }
  .page-resources-online-betting-safety__cta-flex img {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-resources-online-betting-safety__hero-section {
    padding: 60px 15px;
  }
  .page-resources-online-betting-safety__hero-section h1 {
    font-size: 2.2em;
  }
  .page-resources-online-betting-safety__hero-section p {
    font-size: 1em;
  }
  .page-resources-online-betting-safety__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources-online-betting-safety__section {
    padding: 40px 0;
  }
  .page-resources-online-betting-safety h2 {
    font-size: 1.8em;
  }
  .page-resources-online-betting-safety h3 {
    font-size: 1.2em;
  }
  .page-resources-online-betting-safety__card-grid,
  .page-resources-online-betting-safety__security-list,
  .page-resources-online-betting-safety__responsible-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources-online-betting-safety__card,
  .page-resources-online-betting-safety__security-list li,
  .page-resources-online-betting-safety__responsible-list li {
    padding: 20px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-resources-online-betting-safety__cta-flex img {
    order: -1; /* Image first on mobile */
  }
}

@media (max-width: 480px) {
  .page-resources-online-betting-safety__hero-section h1 {
    font-size: 1.8em;
  }
  .page-resources-online-betting-safety__hero-image img {
    border-radius: 8px;
  }
  .page-resources-online-betting-safety__cta-button {
    font-size: 0.9em;
    padding: 10px 25px;
  }
  .page-resources-online-betting-safety__card img {
    height: 150px;
  }
  .page-resources-online-betting-safety__section {
    padding: 30px 0;
  }
  .page-resources-online-betting-safety__avoid .page-resources-online-betting-safety__checklist li {
    font-size: 0.9em;
    padding: 12px 15px;
  }
  .page-resources-online-betting-safety__cta-final h2 {
    font-size: 1.8em;
  }
}