/* style/resources-online-gambling-safety-tips.css */
.page-resources-online-gambling-safety-tips {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-resources-online-gambling-safety-tips__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-online-gambling-safety-tips__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: calc(var(--header-offset, 120px) + 60px); /* Adjust for header offset */
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Brand primary color for hero */
}

.page-resources-online-gambling-safety-tips__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2;
}

.page-resources-online-gambling-safety-tips__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources-online-gambling-safety-tips__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.page-resources-online-gambling-safety-tips__subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  position: relative;
  z-index: 1;
}

.page-resources-online-gambling-safety-tips__content-area {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for main content */
  color: #333333; /* Dark text for light background */
}

.page-resources-online-gambling-safety-tips__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: #017439;
  text-align: center;
}

.page-resources-online-gambling-safety-tips__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources-online-gambling-safety-tips__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 30px;
}

.page-resources-online-gambling-safety-tips__list-item {
  margin-bottom: 10px;
}

.page-resources-online-gambling-safety-tips__list-strong {
  color: #017439;
}

.page-resources-online-gambling-safety-tips__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-resources-online-gambling-safety-tips__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-resources-online-gambling-safety-tips__card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources-online-gambling-safety-tips__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-resources-online-gambling-safety-tips__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #017439;
}

.page-resources-online-gambling-safety-tips__card-text {
  font-size: 1em;
  color: #555555;
}

.page-resources-online-gambling-safety-tips__btn-primary,
.page-resources-online-gambling-safety-tips__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-resources-online-gambling-safety-tips__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  margin-top: 20px;
}

.page-resources-online-gambling-safety-tips__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-resources-online-gambling-safety-tips__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  margin-top: 20px;
  margin-left: 15px;
}

.page-resources-online-gambling-safety-tips__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

.page-resources-online-gambling-safety-tips__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-resources-online-gambling-safety-tips__faq-container {
  margin-top: 40px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.page-resources-online-gambling-safety-tips__faq-item {
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.page-resources-online-gambling-safety-tips__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-resources-online-gambling-safety-tips__faq-question:hover {
  color: #005a2e;
}

.page-resources-online-gambling-safety-tips__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

.page-resources-online-gambling-safety-tips__faq-item.active .page-resources-online-gambling-safety-tips__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-resources-online-gambling-safety-tips__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-resources-online-gambling-safety-tips__faq-item.active .page-resources-online-gambling-safety-tips__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px;
}

/* Custom colors for Register/Login buttons */
.page-resources-online-gambling-safety-tips__btn-primary[href*="redirect"],
.page-resources-online-gambling-safety-tips__btn-secondary[href*="redirect"] {
  background-color: #C30808; /* Red for Register/Login */
  color: #FFFF00; /* Yellow text for Register/Login */
  border-color: #C30808;
}

.page-resources-online-gambling-safety-tips__btn-primary[href*="redirect"]:hover,
.page-resources-online-gambling-safety-tips__btn-secondary[href*="redirect"]:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-resources-online-gambling-safety-tips__main-title {
    font-size: 2.5em;
  }
  .page-resources-online-gambling-safety-tips__subtitle {
    font-size: 1.1em;
  }
  .page-resources-online-gambling-safety-tips__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-resources-online-gambling-safety-tips__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources-online-gambling-safety-tips__main-title {
    font-size: 2em;
  }
  .page-resources-online-gambling-safety-tips__subtitle {
    font-size: 1em;
  }
  .page-resources-online-gambling-safety-tips__content-area {
    padding: 40px 0;
  }
  .page-resources-online-gambling-safety-tips__section-title {
    font-size: 1.6em;
  }
  .page-resources-online-gambling-safety-tips__card-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-online-gambling-safety-tips__content-image,
  .page-resources-online-gambling-safety-tips__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources-online-gambling-safety-tips__container,
  .page-resources-online-gambling-safety-tips__hero-section,
  .page-resources-online-gambling-safety-tips__content-area,
  .page-resources-online-gambling-safety-tips__card,
  .page-resources-online-gambling-safety-tips__cta-buttons,
  .page-resources-online-gambling-safety-tips__faq-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-resources-online-gambling-safety-tips__btn-primary,
  .page-resources-online-gambling-safety-tips__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .page-resources-online-gambling-safety-tips__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-online-gambling-safety-tips__list {
    margin-left: 15px;
  }
  .page-resources-online-gambling-safety-tips__faq-answer {
    padding: 0 5px;
  }
  .page-resources-online-gambling-safety-tips__faq-item.active .page-resources-online-gambling-safety-tips__faq-answer {
    padding: 10px 5px;
  }
}

@media (max-width: 480px) {
  .page-resources-online-gambling-safety-tips__main-title {
    font-size: 1.8em;
  }
  .page-resources-online-gambling-safety-tips__subtitle {
    font-size: 0.9em;
  }
  .page-resources-online-gambling-safety-tips__section-title {
    font-size: 1.4em;
  }
  .page-resources-online-gambling-safety-tips__paragraph,
  .page-resources-online-gambling-safety-tips__list-item,
  .page-resources-online-gambling-safety-tips__card-text {
    font-size: 0.95em;
  }
  .page-resources-online-gambling-safety-tips__faq-question {
    font-size: 1em;
  }
}