/* style/support.css */
/* body já tem padding-top: var(--header-offset); */
/* O conteúdo da página deve ter sua própria cor de fundo e texto para garantir contraste */

.page-support {
  background-color: #140C0C; /* Custom Background */
  color: #FFF1E8; /* Custom Text Main */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-support__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; /* Pequena margem superior, body já lida com o offset do header */
  overflow: hidden;
}

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

.page-support__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Para garantir que o texto seja legível */
  filter: brightness(0.6); /* Escurece a imagem para melhor contraste com o texto claro */
}

.page-support__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background-color: rgba(20, 12, 12, 0.7); /* Fundo semi-transparente para o conteúdo */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-support__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Título responsivo */
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.1rem;
  color: #FFF1E8; /* Text Main */
  margin-bottom: 30px;
}

.page-support__search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__search-input {
  flex-grow: 1;
  padding: 12px 15px;
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 5px;
  background-color: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
  font-size: 1rem;
}

.page-support__search-input::placeholder {
  color: #FFF1E8; /* Text Main */
  opacity: 0.7;
}

.page-support__search-button {
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button */
  color: #140C0C; /* Cor escura para contraste no botão */
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-support__search-button:hover {
  background: linear-gradient(180deg, #FFC06A 0%, #E87A24 100%);
}

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button */
  color: #140C0C; /* Dark text for contrast */
  border: 2px solid transparent;
}

.page-support__btn-primary:hover {
  background: linear-gradient(180deg, #FFC06A 0%, #E87A24 100%);
}

.page-support__btn-secondary {
  background-color: transparent;
  color: #F3C54D; /* Gold */
  border: 2px solid #F3C54D; /* Gold border */
}

.page-support__btn-secondary:hover {
  background-color: #F3C54D; /* Gold background on hover */
  color: #140C0C; /* Dark text on hover */
}

/* Common Section Styles */
.page-support__section-title {
  font-size: 2.2rem;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-support__section-description {
  font-size: 1.1rem;
  color: #FFF1E8; /* Text Main */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-support__text-block {
  font-size: 1rem;
  color: #FFF1E8; /* Text Main */
  margin-bottom: 20px;
}

/* Categories Section */
.page-support__categories-section {
  padding: 80px 0;
  background-color: #1A0D0D; /* Slightly lighter dark background */
}

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

.page-support__category-card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-support__card-title {
  font-size: 1.5rem;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-support__card-text {
  font-size: 1rem;
  color: #FFF1E8; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__card-link {
  display: inline-block;
  color: #FFB04A; /* Button light color */
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #FFB04A;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-support__card-link:hover {
  color: #F3C54D; /* Gold on hover */
  border-color: #F3C54D;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background-color: #140C0C; /* Background */
}

.page-support__faq-list {
  margin-top: 40px;
}

.page-support__faq-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #F3C54D; /* Gold */
  font-weight: 600;
  background-color: #2A1212; /* Card BG */
  transition: background-color 0.3s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-support__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-support__faq-item summary {
  list-style: none;
}

.page-support__faq-question:hover {
  background-color: #3A1A1A; /* Slightly lighter hover */
}

.page-support__faq-qtext {
  flex-grow: 1;
}

.page-support__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFB04A; /* Button light color */
  margin-left: 15px;
}

.page-support__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #FFF1E8; /* Text Main */
  line-height: 1.7;
}

.page-support__faq-answer p {
  margin-bottom: 10px;
}

.page-support__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-support__faq-image {
  display: block;
  margin: 60px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
}

/* Contact Section */
.page-support__contact-section {
  padding: 80px 0;
  background-color: #1A0D0D; /* Slightly lighter dark background */
}

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

.page-support__contact-card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__contact-image {
  display: block;
  margin: 60px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
  padding: 80px 0;
  background-color: #140C0C; /* Background */
  text-align: center;
}

.page-support__responsible-gaming-section .page-support__btn-primary {
  margin-top: 30px;
}

.page-support__responsible-gaming-image {
  display: block;
  margin: 60px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
}

/* Legal Links Section */
.page-support__legal-links-section {
  padding: 60px 0;
  background-color: #1A0D0D; /* Slightly lighter dark background */
}

.page-support__legal-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 30px;
}

.page-support__legal-list li a {
  color: #FFB04A; /* Button light color */
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.page-support__legal-list li a:hover {
  color: #F3C54D; /* Gold on hover */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-support__container {
    padding: 0 15px;
  }

  .page-support__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-support__hero-content {
    padding: 20px;
  }

  .page-support__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-support__hero-description {
    font-size: 1rem;
  }

  .page-support__search-bar {
    flex-direction: column;
  }

  .page-support__search-button {
    width: 100%;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support a[class*="button"],
  .page-support a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-support__section-title {
    font-size: 1.8rem;
  }

  .page-support__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-support__categories-grid,
  .page-support__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-support__faq-answer {
    padding: 0 20px 15px;
  }

  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-section,
  .page-support__categories-section,
  .page-support__faq-section,
  .page-support__contact-section,
  .page-support__responsible-gaming-section,
  .page-support__legal-links-section,
  .page-support__categories-grid,
  .page-support__contact-methods,
  .page-support__cta-buttons,
  .page-support__search-bar {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding for sections on mobile to prevent overflow */
  .page-support__categories-section,
  .page-support__faq-section,
  .page-support__contact-section,
  .page-support__responsible-gaming-section,
  .page-support__legal-links-section {
    padding: 40px 0;
  }

  /* Ensuring content images inside sections are responsive */
  .page-support__faq-image,
  .page-support__contact-image,
  .page-support__responsible-gaming-image {
    padding-left: 0;
    padding-right: 0;
  }
}

/* WCAG AA Contrast Assurance (assuming dark body background #140C0C) */
/* All text colors are already set to #FFF1E8 or #F3C54D, which contrast well with dark backgrounds */
/* Buttons have dark text on light gradient or light text on dark background */

.page-support__dark-bg {
  color: #ffffff; /* Deep Red is dark, so white text */
  background: #7E0D0D;
}

/* No CSS filters allowed for images */
/* filter: brightness(0.6) on hero image is for background effect, not changing original image color */
.page-support__hero-image {
  filter: brightness(0.6); /* This is a background effect, not color change */
}