.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Body background is white, so dark text is needed */
}

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

.page-support__section-title {
  font-size: 2.5em;
  color: var(--primary-color, #017439);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-support__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-support__text-block--light {
  color: #ffffff;
}

/* 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: var(--header-offset, 120px); /* Ensure header offset */
  background: linear-gradient(135deg, #017439, #004d2b); /* Darker green gradient for hero background */
  color: #ffffff;
}

.page-support__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-support__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-support__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Yellow for prominence */
}

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

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Custom red for CTA */
  color: #FFFF00; /* Custom yellow for CTA text */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
}

.page-support__cta-button:hover {
  background: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-support__intro-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

/* Contact Channels Section */
.page-support__contact-channels {
  padding: 60px 0;
  background-color: var(--primary-color, #017439);
  color: #ffffff;
}

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

.page-support__channel-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__channel-item img {
  width: 250px; /* Recommended size for content images */
  height: 187.5px; /* Maintain 4:3 aspect ratio */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 100%; /* Ensure responsiveness */
  min-width: 200px;
  min-height: 200px;
}

.page-support__channel-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin-bottom: 15px;
}

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

.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: var(--primary-color, #017439);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
}

.page-support__btn-secondary:hover {
  background: var(--primary-color, #017439);
  color: #ffffff;
  border-color: #ffffff;
}

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

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

.page-support__guide-card {
  background: #f0fdf5; /* Light green background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.page-support__guide-title {
  font-size: 1.6em;
  color: var(--primary-color, #017439);
  margin-bottom: 15px;
}

.page-support__guide-card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-support__guide-link {
  display: inline-block;
  color: #C30808; /* Red for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-support__guide-link:hover {
  color: #a80707;
  text-decoration: underline;
}

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

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

/* FAQ容器样式 */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

/* FAQ默认状态 - 答案隐藏 */
.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 Sử dụng !important và đủ lớn max-height để đảm bảo mở rộng */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề kiểu dáng */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0; /* Thêm đường viền để phân tách câu hỏi và khu vực trả lời */
  border-radius: 5px; /* Áp dụng cho các góc trên */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-item.active .page-support__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-support__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-support__faq-question:active {
  background: #eeeeee;
}

/* Vấn đề tiêu đề kiểu dáng */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color, #017439);
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp chuột */
}

/* Chuyển đổi biểu tượng */
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color, #017439);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện nhấp chuột */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #C30808; /* Màu đỏ khi hoạt động */
  transform: rotate(45deg); /* Xoay để tạo hiệu ứng 'x' */
}

/* Commitment Section */
.page-support__commitment-section {
  padding: 60px 0;
  background-color: var(--primary-color, #017439);
  color: #ffffff;
}

.page-support__commitment-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-support__commitment-image {
  flex-shrink: 0;
  width: 400px; /* Example width */
  height: 300px; /* Example height (4:3 aspect) */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

.page-support__commitment-text {
  flex-grow: 1;
}

/* CTA Bottom Section */
.page-support__cta-bottom {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.page-support__cta-button--bottom {
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__section-title {
    font-size: 2em;
  }

  .page-support__hero-title {
    font-size: 2.5em;
  }

  .page-support__hero-description {
    font-size: 1.1em;
  }

  .page-support__commitment-content {
    flex-direction: column;
    text-align: center;
  }

  .page-support__commitment-image {
    width: 100%;
    max-width: 600px;
    height: auto;
  }
}

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

  .page-support__container {
    padding: 15px;
  }

  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-support__cta-button,
  .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__channels-grid,
  .page-support__guides-grid {
    grid-template-columns: 1fr;
  }

  .page-support__channel-item img,
  .page-support__commitment-image,
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }

  .page-support__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-support__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-support__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-support__faq-answer {
    padding: 0 15px;
  }
  
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
  }

  .page-support__dark-section,
  .page-support__intro-section,
  .page-support__guides-section,
  .page-support__faq-section,
  .page-support__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__commitment-content {
    gap: 20px;
  }

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

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

  .page-support__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-support__channel-title {
    font-size: 1.5em;
  }

  .page-support__guide-title {
    font-size: 1.3em;
  }
}