.page-resources-online-gambling-safety-guide {
  --primary-color: #FF0000;
  --secondary-color: #000000;
  --accent-color: #FFD700; /* Gold for highlight */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f4f4f4;
  --bg-dark: #1a1a1a;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.page-resources-online-gambling-safety-guide .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-online-gambling-safety-guide h1,
.page-resources-online-gambling-safety-guide h2,
.page-resources-online-gambling-safety-guide h3,
.page-resources-online-gambling-safety-guide h4 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources-online-gambling-safety-guide h1 {
  font-size: 3.2em;
  text-align: center;
  color: var(--text-light);
}

.page-resources-online-gambling-safety-guide h2 {
  font-size: 2.5em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.page-resources-online-gambling-safety-guide h3 {
  font-size: 1.8em;
  color: var(--primary-color);
}

.page-resources-online-gambling-safety-guide h4 {
  font-size: 1.4em;
  color: var(--secondary-color);
}

.page-resources-online-gambling-safety-guide p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

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

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

.page-resources-online-gambling-safety-guide .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources-online-gambling-safety-guide .cta-button:hover {
  background: var(--accent-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-online-gambling-safety-guide .button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.page-resources-online-gambling-safety-guide .button:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-1px);
}

/* Hero Section */
.page-resources-online-gambling-safety-guide .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.page-resources-online-gambling-safety-guide .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-gambling-safety-guide .hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Adjust max-width for image */
}

.page-resources-online-gambling-safety-guide .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-online-gambling-safety-guide .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources-online-gambling-safety-guide .hero-content p {
  color: var(--text-light);
  font-size: 1.2em;
  max-width: 800px;
  margin: 20px auto 0 auto;
}

/* General Section Styles */
.page-resources-online-gambling-safety-guide .intro-section,
.page-resources-online-gambling-safety-guide .selection-guide-section,
.page-resources-online-gambling-safety-guide .finance-management-section,
.page-resources-online-gambling-safety-guide .scam-prevention-section,
.page-resources-online-gambling-safety-guide .responsible-gambling-section,
.page-resources-online-gambling-safety-guide .faq-section,
.page-resources-online-gambling-safety-guide .conclusion-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-resources-online-gambling-safety-guide .selection-guide-section,
.page-resources-online-gambling-safety-guide .scam-prevention-section {
  background-color: #fff;
}

.page-resources-online-gambling-safety-guide .finance-management-section,
.page-resources-online-gambling-safety-guide .responsible-gambling-section {
  background-color: var(--bg-light);
}

/* Feature Grid */
.page-resources-online-gambling-safety-guide .feature-grid,
.page-resources-online-gambling-safety-guide .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-online-gambling-safety-guide .feature-item,
.page-resources-online-gambling-safety-guide .card-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid var(--primary-color);
}

.page-resources-online-gambling-safety-guide .feature-item:hover,
.page-resources-online-gambling-safety-guide .card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-online-gambling-safety-guide .feature-item img,
.page-resources-online-gambling-safety-guide .card-item img {
  width: 100%;
  max-width: 300px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-online-gambling-safety-guide .feature-item h3,
.page-resources-online-gambling-safety-guide .card-item h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
}

/* Content Block for Finance Management */
.page-resources-online-gambling-safety-guide .content-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-resources-online-gambling-safety-guide .content-block.reverse {
  flex-direction: row-reverse;
}

.page-resources-online-gambling-safety-guide .content-block img {
  flex: 1;
  max-width: 45%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-online-gambling-safety-guide .content-block > div {
  flex: 1;
}

/* Responsibility List */
.page-resources-online-gambling-safety-guide .responsibility-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-online-gambling-safety-guide .responsibility-list li {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-bottom: 5px solid var(--primary-color);
}

.page-resources-online-gambling-safety-guide .responsibility-list li img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-resources-online-gambling-safety-guide .responsibility-list li h4 {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-resources-online-gambling-safety-guide .responsibility-list li p {
  color: var(--text-dark);
}

/* FAQ Section */
.page-resources-online-gambling-safety-guide .faq-list {
  margin-top: 40px;
}

.page-resources-online-gambling-safety-guide .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
}

.page-resources-online-gambling-safety-guide .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-resources-online-gambling-safety-guide .faq-question:hover {
  background: #f5f5f5;
}

.page-resources-online-gambling-safety-guide .faq-question h3 {
  margin: 0;
  color: var(--secondary-color);
  font-size: 1.2em;
}

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

.page-resources-online-gambling-safety-guide .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.page-resources-online-gambling-safety-guide .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: var(--bg-light);
}

.page-resources-online-gambling-safety-guide .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px;
  border-top: 1px solid var(--border-color);
}

.page-resources-online-gambling-safety-guide .faq-answer p {
  color: var(--text-dark);
  margin-bottom: 0;
}

/* Conclusion Section */
.page-resources-online-gambling-safety-guide .conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-resources-online-gambling-safety-guide .conclusion-section p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-online-gambling-safety-guide h1 {
    font-size: 2.8em;
  }
  .page-resources-online-gambling-safety-guide h2 {
    font-size: 2em;
  }
  .page-resources-online-gambling-safety-guide .content-block {
    flex-direction: column;
    text-align: center;
  }
  .page-resources-online-gambling-safety-guide .content-block.reverse {
    flex-direction: column;
  }
  .page-resources-online-gambling-safety-guide .content-block img {
    max-width: 80%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-resources-online-gambling-safety-guide .hero-section {
    padding: 40px 15px;
  }
  .page-resources-online-gambling-safety-guide .hero-image img {
    border-radius: 4px;
  }
  .page-resources-online-gambling-safety-guide .hero-content h1 {
    font-size: 2.2em;
  }
  .page-resources-online-gambling-safety-guide .hero-content p {
    font-size: 1em;
  }
  .page-resources-online-gambling-safety-guide .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-resources-online-gambling-safety-guide h2 {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-resources-online-gambling-safety-guide h3 {
    font-size: 1.5em;
  }
  .page-resources-online-gambling-safety-guide .feature-grid,
  .page-resources-online-gambling-safety-guide .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources-online-gambling-safety-guide .feature-item,
  .page-resources-online-gambling-safety-guide .card-item,
  .page-resources-online-gambling-safety-guide .responsibility-list li {
    padding: 20px;
  }
  .page-resources-online-gambling-safety-guide .content-block img {
    max-width: 100%;
  }
  .page-resources-online-gambling-safety-guide .faq-question h3 {
    font-size: 1.1em;
    padding-right: 10px; /* Prevent text from overlapping toggle */
  }
  .page-resources-online-gambling-safety-guide .faq-toggle {
    font-size: 20px;
  }
  .page-resources-online-gambling-safety-guide .responsibility-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-resources-online-gambling-safety-guide h1 {
    font-size: 1.8em;
  }
  .page-resources-online-gambling-safety-guide h2 {
    font-size: 1.5em;
  }
  .page-resources-online-gambling-safety-guide .hero-content p {
    font-size: 0.9em;
  }
  .page-resources-online-gambling-safety-guide .cta-button {
    padding: 10px 25px;
    font-size: 14px;
  }
}