/* style/support.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho main hoặc section đầu tiên */

.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for default white body background */
  background-color: #ffffff; /* Ensure explicit white background for content */
}

.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: #f0f8ff; /* Light background for the section */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Min size */
}

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

.page-support__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: #26A9E0; /* Brand color for title */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

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

.page-support__hero-cta {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
  justify-content: center;
}

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

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

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__card-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

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

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

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

.page-support__btn-secondary:hover {
  background-color: #e0f2f7;
}

.page-support__card-button {
  background-color: #26A9E0;
  color: #ffffff;
  border: 1px solid #26A9E0;
  padding: 10px 20px;
  font-size: 0.95em;
  margin-top: 15px;
}

.page-support__card-button:hover {
  background-color: #1a8ccb;
  border-color: #1a8ccb;
}

/* Contact Methods Section */
.page-support__contact-methods {
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333;
}

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

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

.page-support__method-card .page-support__card-title {
  color: #26A9E0;
  font-size: 1.4em;
  margin-bottom: 15px;
}

.page-support__method-card .page-support__card-text {
  color: #555555;
  flex-grow: 1;
}

.page-support__section-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 60px;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Min size */
}

/* FAQ Section */
.page-support__faq-section {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff; /* White text for contrast */
}

.page-support__faq-section .page-support__section-title {
  color: #ffffff; /* White title on brand background */
}

.page-support__faq-section .page-support__section-description {
  color: #e0f2f7; /* Lighter white for description */
}

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

.page-support__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-item summary { /* For details tag */
  list-style: none; /* Remove default marker */
}

.page-support__faq-item summary::-webkit-details-marker { /* For details tag */
  display: none; /* Remove default marker for webkit browsers */
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker on hover */
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-support__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #e0f2f7;
  max-height: 0; /* For JS-based accordion if not using details */
  overflow: hidden; /* For JS-based accordion if not using details */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-support__faq-item[open] .page-support__faq-answer {
  max-height: fit-content; /* Allow content to expand */
  padding-top: 15px;
}

.page-support__faq-item.active .page-support__faq-answer { /* For JS-based accordion if not using details */
  max-height: 2000px !important; /* Sufficiently large value */
  padding-top: 15px;
}

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

.page-support__text-link {
  color: #ffffff; /* White link on dark background */
  text-decoration: underline;
}

.page-support__text-link:hover {
  color: #f0f8ff;
}

/* Guides Section */
.page-support__guides-section {
  background-color: #f8f9fa;
  color: #333333;
}

.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: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-support__guide-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Min size */
}

.page-support__guide-card .page-support__card-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin: 20px 20px 10px 20px;
  flex-grow: 0;
}

.page-support__guide-card .page-support__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-support__guide-card .page-support__card-title a:hover {
  text-decoration: underline;
}

.page-support__guide-card .page-support__card-text {
  color: #555555;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-support__guide-card .page-support__card-button {
  margin: 0 20px 20px 20px;
  padding: 10px 15px;
  font-size: 0.9em;
  align-self: center;
  width: fit-content;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff; /* White text */
}

.page-support__responsible-gaming .page-support__section-title {
  color: #ffffff;
}

.page-support__responsible-gaming .page-support__section-description {
  color: #cccccc;
}

.page-support__responsible-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-support__responsible-image {
  width: 100%;
  max-width: 500px; /* Max width for image */
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Min size */
  flex-shrink: 0;
}

.page-support__responsible-text {
  flex-grow: 1;
  flex-basis: 0;
  min-width: 300px;
}

.page-support__responsible-text p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-support__responsible-text .page-support__btn-primary {
  margin-top: 20px;
}

/* More Help Section */
.page-support__more-help {
  background-color: #f0f8ff; /* Light background */
  color: #333333;
  text-align: center;
}

.page-support__more-help-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* General image styling to ensure responsiveness and min size */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

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

  .page-support__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-support__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust for mobile */
    margin-bottom: 15px;
  }

  .page-support__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-support__hero-cta {
    flex-direction: column; /* Stack buttons vertically on mobile */
    align-items: center;
    gap: 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support__card-button,
  .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 !important;
    padding-right: 15px !important;
  }
  
  .page-support__hero-cta,
  .page-support__more-help-cta {
    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__container {
    padding: 40px 15px;
  }

  .page-support__section-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
    margin-bottom: 15px;
  }

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

  .page-support__methods-grid,
  .page-support__guides-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-support__method-card,
  .page-support__guide-card {
    padding: 20px;
  }
  
  .page-support__guide-image {
    height: 180px; /* Slightly smaller image height on mobile */
  }

  .page-support__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  .page-support__responsible-content {
    flex-direction: column; /* Stack image and text vertically */
    gap: 30px;
  }

  .page-support__responsible-image {
    max-width: 100%;
  }

  /* Ensure all images are responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all image containers are responsive */
  .page-support__hero-image-wrapper,
  .page-support__section-image,
  .page-support__guide-image,
  .page-support__responsible-image,
  .page-support__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* Specific color rules */
.page-support__btn-login {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}
.page-support__btn-login:hover {
  background-color: #d46c00;
  border-color: #d46c00;
}
.page-support__background-white {
  background-color: #FFFFFF;
}
.page-support__text-black {
  color: #000000;
}