/* style/support.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không được viết lại padding-top cho section đầu tiên */

.page-support {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #ffffff; /* Explicitly set for clarity, though body is white */
  line-height: 1.6;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  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 */
  background-color: #f0f8ff; /* Light background for hero section */
  overflow: hidden;
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-support__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above any potential background effects */
}

.page-support__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-support__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  text-align: center;
}

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

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

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

.page-support__btn-secondary:hover {
  background-color: #e0f2ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

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

.page-support__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-support__section-description {
  font-size: 1.05rem;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Contact Methods Section */
.page-support__contact-methods {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-support__method-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__method-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-support__method-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-support__method-text {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

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

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

.page-support__faq-item {
  background-color: #f0f8ff;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-support__faq-item[open] {
  background-color: #e0f2ff;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* For <details> tag */
  outline: none;
}

.page-support__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <details> */
}

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

.page-support__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #1e87c0;
}

.page-support__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #555555;
}

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

.page-support__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-support__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

.page-support__cta-text {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 25px;
}

/* Guides Section */
.page-support__guides-section {
  padding: 80px 0;
  background-color: #f0f8ff;
}

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

.page-support__guide-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-support__guide-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-support__guide-card h3 {
  padding: 20px 25px 10px;
  font-size: 1.3rem;
  color: #26A9E0;
  font-weight: 600;
}

.page-support__guide-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-support__guide-card h3 a:hover {
  color: #1e87c0;
}

.page-support__guide-excerpt {
  padding: 0 25px;
  font-size: 1rem;
  color: #666666;
  flex-grow: 1;
  margin-bottom: 15px;
}

.page-support__read-more {
  display: inline-block;
  padding: 10px 25px 20px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-support__read-more:hover {
  color: #1e87c0;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-support__responsible-content {
  text-align: center;
  margin-top: 40px;
}

.page-support__responsible-content p {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__responsible-content a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-support__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }

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

  .page-support__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
  }

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

  .page-support__contact-methods,
  .page-support__faq-section,
  .page-support__guides-section,
  .page-support__responsible-gaming {
    padding: 50px 0;
  }

  .page-support__methods-grid,
  .page-support__guides-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-support__method-card,
  .page-support__guide-card {
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-support__method-icon,
  .page-support__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-support__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }

  /* All images and their containers */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-support__hero-image-wrapper,
  .page-support__method-card,
  .page-support__guide-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* Ensure no filter on images */
.page-support img {
  filter: none;
}