/* style/support.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Mặc định cho nền tối của body */
}

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

.page-support__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0;
  line-height: 1.2;
}

.page-support__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  background: #0a0a0a; /* Ensure dark background for contrast */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height to prevent excessive image size */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-support__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

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

.page-support__hero-description {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-support__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1a7fb3;
  border-color: #1a7fb3;
}

/* Why Support Section */
.page-support__why-support {
  padding: 80px 0;
  background: #ffffff;
  color: #333333;
}

.page-support__why-support .page-support__section-title {
  color: #333333;
}

.page-support__why-support .page-support__section-description {
  color: #555555;
}

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

.page-support__reason-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px; /* Ensure cards are large enough */
  box-sizing: border-box;
}

.page-support__reason-icon {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-support__reason-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-support__reason-text {
  color: #555555;
  font-size: 1em;
}

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

.page-support__contact-methods .page-support__section-title {
  color: #26A9E0;
}

.page-support__contact-methods .page-support__section-description {
  color: #f0f0f0;
}

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

.page-support__contact-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 280px;
  box-sizing: border-box;
}

.page-support__contact-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-support__contact-text {
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-support__faq-section .page-support__section-title {
  color: #333333;
}

.page-support__faq-section .page-support__section-description {
  color: #555555;
}

.page-support__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-support__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #eaf6fa;
  transition: background-color 0.3s ease;
}

.page-support__faq-item summary:hover {
  background-color: #d8edf5;
}

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

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

.page-support__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  margin-left: 15px;
  color: #26A9E0;
}

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

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

.page-support__faq-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  max-width: 800px;
  border-radius: 10px;
  object-fit: cover;
}

/* Game Guides & Responsible Gaming & Feedback Sections */
.page-support__game-guides,
.page-support__responsible-gaming,
.page-support__feedback-section {
  padding: 60px 0;
  text-align: center;
}

.page-support__game-guides {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-support__game-guides .page-support__section-title {
  color: #26A9E0;
}

.page-support__game-guides .page-support__section-description {
  color: #f0f0f0;
}

.page-support__responsible-gaming {
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-support__feedback-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-support__feedback-section .page-support__section-title {
  color: #26A9E0;
}

.page-support__feedback-section .page-support__section-description {
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-support__section-title {
    font-size: 2em;
  }

  .page-support__reason-card, .page-support__contact-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section,
  .page-support__why-support,
  .page-support__contact-methods,
  .page-support__faq-section,
  .page-support__game-guides,
  .page-support__responsible-gaming,
  .page-support__feedback-section {
    padding: 40px 0;
  }

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

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

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

  .page-support__hero-description,
  .page-support__section-description {
    font-size: 1em;
  }

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

  .page-support__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

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

  .page-support__hero-image-wrapper,
  .page-support__reason-card,
  .page-support__contact-card,
  .page-support__faq-list,
  .page-support__game-guides,
  .page-support__responsible-gaming,
  .page-support__feedback-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .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__hero-section {
    padding-top: 10px !important; /* Keep small top padding */
  }
}

@media (max-width: 480px) {
  .page-support__main-title {
    font-size: 1.8em;
  }

  .page-support__section-title {
    font-size: 1.6em;
  }
}

/* Color contrast specific classes */
.page-support__dark-bg {
  color: #ffffff; /* Deep background with light text */
}

.page-support__light-bg {
  color: #333333; /* Light background with dark text */
}

/* Ensure p and li in light sections have dark text */
.page-support__light-bg p,
.page-support__light-bg li {
  color: #555555;
}

/* Ensure p and li in dark sections have light text */
.page-support__dark-bg p,
.page-support__dark-bg li {
  color: #f0f0f0;
}