/* style/news-responsible-gaming-tips.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #0a0a0a;
  --btn-register-bg: #C30808;
  --btn-login-bg: #C30808;
  --btn-font-color: #FFFF00;
}

.page-news-responsible-gaming-tips {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so use light text */
  background-color: var(--bg-dark); /* Inherited from shared, but explicit for clarity */
}

.page-news-responsible-gaming-tips__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: var(--primary-color);
  color: var(--text-light);
  overflow: hidden;
}

.page-news-responsible-gaming-tips__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-news-responsible-gaming-tips__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-news-responsible-gaming-tips__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-news-responsible-gaming-tips__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-news-responsible-gaming-tips__btn-primary,
.page-news-responsible-gaming-tips__btn-secondary {
  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;
  white-space: normal;
  word-wrap: break-word;
}

.page-news-responsible-gaming-tips__btn-primary {
  background-color: var(--btn-login-bg); /* Custom color for login/register */
  color: var(--btn-font-color);
  border: 2px solid var(--btn-login-bg);
}

.page-news-responsible-gaming-tips__btn-primary:hover {
  background-color: darken(#C30808, 10%);
  border-color: darken(#C30808, 10%);
}

.page-news-responsible-gaming-tips__btn-secondary {
  background-color: transparent;
  color: var(--btn-font-color);
  border: 2px solid var(--btn-font-color);
}

.page-news-responsible-gaming-tips__btn-secondary:hover {
  background-color: var(--btn-font-color);
  color: var(--btn-login-bg);
}

.page-news-responsible-gaming-tips__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-news-responsible-gaming-tips__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-news-responsible-gaming-tips__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-news-responsible-gaming-tips__section-container {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for sections */
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 40px;
  color: var(--text-light);
}

.page-news-responsible-gaming-tips__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 25px;
  text-align: center;
}

.page-news-responsible-gaming-tips p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-light);
}

.page-news-responsible-gaming-tips p a {
  color: var(--btn-font-color);
  text-decoration: underline;
}

.page-news-responsible-gaming-tips p a:hover {
  color: lighten(#FFFF00, 10%);
}

.page-news-responsible-gaming-tips__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-news-responsible-gaming-tips__feature-list,
.page-news-responsible-gaming-tips__tip-list,
.page-news-responsible-gaming-tips__resource-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-news-responsible-gaming-tips__feature-item,
.page-news-responsible-gaming-tips__tip-item,
.page-news-responsible-gaming-tips__resource-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-news-responsible-gaming-tips__feature-item:hover,
.page-news-responsible-gaming-tips__tip-item:hover,
.page-news-responsible-gaming-tips__resource-item:hover {
  transform: translateY(-5px);
}

.page-news-responsible-gaming-tips__feature-title,
.page-news-responsible-gaming-tips__tip-title,
.page-news-responsible-gaming-tips__resource-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-news-responsible-gaming-tips__faq-list {
  margin-top: 40px;
}

.page-news-responsible-gaming-tips__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news-responsible-gaming-tips__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--secondary-color);
  cursor: pointer;
  background-color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.page-news-responsible-gaming-tips__faq-question:hover {
  background-color: darken(#017439, 10%);
}

.page-news-responsible-gaming-tips__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news-responsible-gaming-tips__faq-item.active .page-news-responsible-gaming-tips__faq-toggle {
  transform: rotate(45deg);
}

.page-news-responsible-gaming-tips__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-news-responsible-gaming-tips__faq-item.active .page-news-responsible-gaming-tips__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 25px;
}

.page-news-responsible-gaming-tips__faq-answer p {
  color: var(--text-light);
  margin-bottom: 0;
}

.page-news-responsible-gaming-tips__cta-section {
  text-align: center;
  padding: 50px 40px;
  background-color: var(--primary-color);
  border-radius: 10px;
}

.page-news-responsible-gaming-tips__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-news-responsible-gaming-tips__hero-title {
    font-size: 2.5em;
  }
  .page-news-responsible-gaming-tips__section-title {
    font-size: 2em;
  }
  .page-news-responsible-gaming-tips__feature-list,
  .page-news-responsible-gaming-tips__tip-list,
  .page-news-responsible-gaming-tips__resource-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news-responsible-gaming-tips__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-news-responsible-gaming-tips__hero-title {
    font-size: 2em;
  }
  .page-news-responsible-gaming-tips__hero-description {
    font-size: 1em;
  }
  .page-news-responsible-gaming-tips__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news-responsible-gaming-tips__btn-primary,
  .page-news-responsible-gaming-tips__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-news-responsible-gaming-tips__content-area {
    padding: 30px 15px;
  }
  .page-news-responsible-gaming-tips__section-container {
    padding: 25px;
    margin-bottom: 30px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news-responsible-gaming-tips__section-title {
    font-size: 1.8em;
  }
  .page-news-responsible-gaming-tips p,
  .page-news-responsible-gaming-tips li {
    font-size: 1em;
  }
  .page-news-responsible-gaming-tips__feature-list,
  .page-news-responsible-gaming-tips__tip-list,
  .page-news-responsible-gaming-tips__resource-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news-responsible-gaming-tips__feature-item,
  .page-news-responsible-gaming-tips__tip-item,
  .page-news-responsible-gaming-tips__resource-item {
    padding: 20px;
  }
  .page-news-responsible-gaming-tips__feature-title,
  .page-news-responsible-gaming-tips__tip-title,
  .page-news-responsible-gaming-tips__resource-title {
    font-size: 1.3em;
  }
  .page-news-responsible-gaming-tips__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-news-responsible-gaming-tips__faq-answer {
    padding: 15px 20px;
  }
  .page-news-responsible-gaming-tips__cta-section {
    padding: 40px 25px;
  }
  .page-news-responsible-gaming-tips__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Image responsive rules */
  .page-news-responsible-gaming-tips img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news-responsible-gaming-tips__hero-image-wrapper,
  .page-news-responsible-gaming-tips__content-area,
  .page-news-responsible-gaming-tips__section-container,
  .page-news-responsible-gaming-tips__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-news-responsible-gaming-tips__hero-image-wrapper {
    position: relative;
    height: 250px;
  }
  .page-news-responsible-gaming-tips__hero-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .page-news-responsible-gaming-tips__hero-title {
    font-size: 1.8em;
  }
  .page-news-responsible-gaming-tips__section-title {
    font-size: 1.5em;
  }
  .page-news-responsible-gaming-tips__faq-question {
    font-size: 1em;
  }
}