/* style/support.css */
/* body đã padding-top: var(--header-offset); trang này không được lặp lại biến đó */

.page-support {
  color: #ffffff; /* Vì body là nền tối #000000 */
  background-color: transparent; /* Nền sẽ được kế thừa từ body hoặc các section */
}

.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Nhỏ top padding, lớn bottom padding */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Giới hạn chiều cao để không quá chiếm màn hình */
  overflow: hidden;
  position: relative;
  margin-bottom: 20px; /* Khoảng cách giữa ảnh và nội dung */
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Làm tối ảnh một chút để chữ dễ đọc */
}

.page-support__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 15px;
}

.page-support__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.page-support__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-tertiary,
.page-support__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-support__btn-primary {
  background: #C30808; /* Màu Đăng ký/Đăng nhập */
  color: #FFFF00; /* Màu chữ Đăng ký/Đăng nhập */
  border: 2px solid #C30808;
}

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

.page-support__btn-secondary {
  background: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  margin-left: 15px;
}

.page-support__btn-secondary:hover {
  background: #005a2e;
  border-color: #005a2e;
}

.page-support__btn-tertiary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-support__btn-tertiary:hover {
  background: #f0f0f0;
}

.page-support__btn-text {
  background: transparent;
  color: #017439;
  border: none;
  padding: 5px 10px;
  text-decoration: underline;
  font-weight: 500;
}

.page-support__btn-text:hover {
  color: #005a2e;
}

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

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

.page-support__section-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333333;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-support__dark-bg {
  background: #017439;
  color: #ffffff;
}

.page-support__light-bg {
  background: #ffffff;
  color: #333333;
}

/* Channels Section */
.page-support__channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-support__channel-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-support__channel-card .page-support__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-support__channel-card .page-support__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guides Section */
.page-support__guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-support__guide-card {
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-support__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__guide-card .page-support__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-support__guide-card .page-support__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Policies Section */
.page-support__policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-support__policy-item {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-support__policy-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-support__policy-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: #333333;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background: #f0fdf5; /* Nền nhẹ cho câu hỏi */
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Dành cho details/summary */
}

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

.page-support__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-toggle {
  transform: rotate(45deg);
}

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

/* CTA Section */
.page-support__cta-section {
  text-align: center;
  padding: 60px 20px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-support__container {
    padding: 30px 15px;
  }

  .page-support__channels-grid,
  .page-support__guides-grid,
  .page-support__policies-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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

  .page-support__description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding: 10px 15px 40px;
  }
  
  .page-support__hero-image-wrapper {
    max-height: 50vh;
  }

  .page-support__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

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

  .page-support__channels-grid,
  .page-support__guides-grid,
  .page-support__policies-grid {
    grid-template-columns: 1fr;
  }

  .page-support__channel-card,
  .page-support__guide-card,
  .page-support__policy-item {
    padding: 25px;
  }

  .page-support__channel-card .page-support__card-title,
  .page-support__guide-card .page-support__card-title {
    font-size: 1.3rem;
  }

  .page-support__policy-title {
    font-size: 1.25rem;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100%;
    margin-left: 0;
    margin-bottom: 15px;
  }

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

  /* 强制图片适配移动端 */
  .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__channels-section,
  .page-support__guides-section,
  .page-support__policies-section,
  .page-support__faq-section,
  .page-support__cta-section,
  .page-support__channel-card,
  .page-support__guide-card,
  .page-support__policy-item,
  .page-support__faq-item,
  .page-support__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-support__hero-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-support__video-section {
    padding-top: 10px !important;
  }

  /* 强制按钮适配移动端 */
  .page-support__cta-button,
  .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;
  }
}