/* style/help-center.css */
.page-help-center {
  background-color: var(--background-color, #f5f5f5); /* Fallback to light gray if --background-color is not set */
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-help-center__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-help-center__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-help-center__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-help-center__hero-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-help-center__hero-description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
}

.page-help-center__section-spacing {
  padding: 60px 20px;
}

.page-help-center__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-help-center__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-help-center__section-title--light {
  color: #FFFFFF;
}

.page-help-center__section-subtitle {
  font-size: 1.1em;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
}

.page-help-center__section-subtitle--light {
  color: #f0f0f0;
}

.page-help-center__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.page-help-center__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-help-center__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-help-center__faq-question:hover {
  background-color: #f0f0f0;
}

.page-help-center__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
}

.page-help-center__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

.page-help-center__faq-item[open] .page-help-center__faq-question {
  background-color: #f0f0f0;
  border-bottom: none;
}

.page-help-center__faq-item[open] .page-help-center__faq-toggle {
  content: '−';
}

.page-help-center__faq-answer p {
  margin-bottom: 15px;
}

.page-help-center__faq-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-help-center__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-help-center__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-help-center__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-help-center__step-card:hover {
  transform: translateY(-5px);
}

.page-help-center__step-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-help-center__step-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-help-center__getting-started-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-help-center__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-help-center__contact-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-help-center__contact-card:hover {
  transform: translateY(-5px);
}

.page-help-center__contact-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-help-center__contact-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-help-center__contact-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-help-center__responsible-gambling-section {
  text-align: center;
  background-color: #f0f0f0;
  border-top: 1px solid #e0e0e0;
}

/* Buttons */
.page-help-center__btn-primary,
.page-help-center__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-help-center__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-help-center__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-help-center__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-help-center__btn-secondary:hover {
  background-color: #e6f5ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

/* Ensure buttons within cards/sections have appropriate margins */
.page-help-center__faq-answer .page-help-center__btn-secondary {
  margin-top: 15px;
}

.page-help-center__step-card .page-help-center__btn-primary {
  margin-top: 15px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-help-center__hero-content {
    padding: 20px;
  }

  .page-help-center__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-help-center__hero-description {
    font-size: 0.95em;
  }

  .page-help-center__section-spacing {
    padding: 40px 15px;
  }

  .page-help-center__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-help-center__section-subtitle {
    font-size: 0.9em;
  }

  /* Images responsive */
  .page-help-center img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers responsive */
  .page-help-center__hero-section,
  .page-help-center__faq-section,
  .page-help-center__getting-started-section,
  .page-help-center__contact-section,
  .page-help-center__responsible-gambling-section,
  .page-help-center__container,
  .page-help-center__faq-list,
  .page-help-center__steps-grid,
  .page-help-center__contact-methods {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-help-center__btn-primary,
  .page-help-center__btn-secondary,
  .page-help-center a[class*="button"],
  .page-help-center a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Make buttons full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }

  /* Button containers for stacking */
  .page-help-center__hero-content,
  .page-help-center__faq-answer,
  .page-help-center__step-card,
  .page-help-center__contact-card,
  .page-help-center__responsible-gambling-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .page-help-center__contact-methods {
    flex-direction: column;
  }
}