/* style/support.css */
/* body đã có padding-top: var(--header-offset) từ shared.css; không lặp lại tại đây */

.page-support {
  background-color: #08160F; /* Nền tối theo màu tùy chỉnh 'Background' */
  color: #F2FFF6; /* Chữ chính theo màu tùy chỉnh 'Text Main' */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

.page-support h1,
.page-support h2,
.page-support h3 {
  color: #F2FFF6; /* Chữ chính */
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.page-support h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 theo yêu cầu clamp */
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-support h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 40px;
}

.page-support h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 30px;
}

.page-support p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Chữ phụ theo màu tùy chỉnh 'Text Secondary' */
  text-align: justify;
}

.page-support a {
  color: #2AD16F; /* Màu xanh lá cây sáng cho liên kết */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support a:hover {
  text-decoration: underline;
  color: #57E38D; /* Màu 'Glow' khi hover */
}

.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Khoảng đệm trên nhỏ, body đã xử lý khoảng cách header */
  background-color: #0A4B2C; /* Màu 'Deep Green' cho nền hero */
}

.page-support__hero-section img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-support__hero-content {
  max-width: 900px;
  margin-top: 30px;
}

.page-support__hero-content p {
    text-align: center;
}

.page-support__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nền gradient cho nút */
  color: #F2FFF6; /* Chữ chính cho nút */
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-support__cta-button:hover {
  background: linear-gradient(180deg, #57E38D 0%, #2AD16F 100%); /* Gradient sáng hơn khi hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-support__section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 30px auto;
  background-color: #11271B; /* Nền theo màu tùy chỉnh 'Card BG' */
  border-radius: 8px;
  box-sizing: border-box;
  border: 1px solid #2E7A4E; /* Viền theo màu tùy chỉnh 'Border' */
}

.page-support__section:nth-of-type(odd) {
    background-color: #0A4B2C; /* Màu 'Deep Green' cho các phần xen kẽ */
}

.page-support__section p {
    color: #A7D9B8; /* Chữ phụ */
}

.page-support__section-title {
    margin-bottom: 30px;
}

.page-support__subsection-title {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #2AD16F;
}

.page-support__section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-support__contact-methods ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-support__contact-methods li {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: #F2FFF6; /* Chữ chính */
  font-size: 1.05em;
}

.page-support__contact-methods li strong {
  margin-right: 10px;
  color: #57E38D; /* Màu 'Glow' */
  min-width: 120px;
}

.page-support__contact-methods .page-support__btn-chat {
  margin-left: 15px;
  padding: 8px 20px;
  font-size: 0.9em;
  border-radius: 20px;
  margin-top: 0;
}

.page-support__faq-section {
  background-color: #11271B; /* Nền 'Card BG' */
}

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

.page-support__faq-item {
  border-bottom: 1px solid #1E3A2A; /* Màu 'Divider' */
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-support__faq-item:last-child {
  border-bottom: none;
}

.page-support__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px 0;
  font-weight: bold;
  color: #F2FFF6; /* Chữ chính */
  list-style: none; /* Ẩn dấu mặc định */
}

.page-support__faq-item summary::-webkit-details-marker {
  display: none; /* Ẩn dấu mặc định cho trình duyệt webkit */
}

.page-support__faq-item summary:hover {
    color: #2AD16F;
}

.page-support__faq-qtext {
  flex-grow: 1;
  font-size: 1.1em;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #57E38D; /* Màu 'Glow' */
}

.page-support__faq-answer {
  padding: 10px 0 15px 0;
  color: #A7D9B8; /* Chữ phụ */
  font-size: 0.95em;
  text-align: justify;
}

.page-support__problem-list,
.page-support__management-list,
.page-support__responsible-list,
.page-support__policy-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.page-support__problem-list li,
.page-support__management-list li,
.page-support__responsible-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: #A7D9B8;
}

.page-support__problem-list li::before,
.page-support__management-list li::before,
.page-support__responsible-list li::before {
    content: '•';
    color: #57E38D;
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1.6;
}

.page-support__legal-policy ul {
  list-style: none;
  padding-left: 0;
}

.page-support__legal-policy li {
  margin-bottom: 10px;
  color: #A7D9B8; /* Chữ phụ */
  padding-left: 25px;
  position: relative;
}

.page-support__legal-policy li::before {
    content: '📄'; /* Biểu tượng tài liệu */
    position: absolute;
    left: 0;
    font-size: 1em;
    line-height: 1.6;
}

.page-support__legal-policy li a {
  color: #2AD16F;
}

/* Nút Đăng ký / Đăng nhập nổi */
.page-support__floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: none; /* Ẩn theo mặc định, JS sẽ hiển thị */
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nền gradient */
  color: #F2FFF6;
  padding: 15px 25px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-support__floating-cta:hover {
  background: linear-gradient(180deg, #57E38D 0%, #2AD16F 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Điều chỉnh responsive */
@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-support h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-support h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-support h3 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

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

  .page-support__hero-content {
    margin-top: 20px;
  }

  .page-support__section {
    padding: 20px 15px;
    margin-bottom: 20px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-support__cta-button,
  .page-support__btn-chat,
  .page-support__floating-cta {
    max-width: 100% !important;
    width: 100% !important; /* Đảm bảo nút chiếm toàn bộ chiều rộng có thể */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 0.9em;
    text-align: center;
  }

  .page-support__contact-methods li {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-support__contact-methods li strong {
    margin-bottom: 5px;
  }

  .page-support__contact-methods .page-support__btn-chat {
    margin-left: 0;
    margin-top: 10px;
  }

  .page-support__floating-cta {
    bottom: 15px;
    right: 15px;
    padding: 12px 20px;
    font-size: 0.9em;
  }

  /* Hình ảnh responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__section,
  .page-support__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Danh sách chính sách/vấn đề */
  .page-support__problem-list li,
  .page-support__management-list li,
  .page-support__responsible-list li,
  .page-support__legal-policy li {
      padding-left: 0;
  }

  .page-support__problem-list li::before,
  .page-support__management-list li::before,
  .page-support__responsible-list li::before,
  .page-support__legal-policy li::before {
      position: static;
      display: inline-block;
      margin-right: 5px;
  }
}