:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --border-color: #e0e0e0;
  --login-color: #EA7C07;
}

.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Ensures a light background for the page content */
}

/* 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); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color) 0%, #36baf0 100%); /* Adjusted gradient for visual appeal */
  color: var(--text-light);
  overflow: hidden; /* Ensures no overflow from image */
}

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

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Constrain hero image width for better layout */
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-support__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-support__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  margin-top: 30px;
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure button minimum width */
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background: var(--login-color); /* Using login color for primary CTA for contrast */
  color: var(--text-light);
  border: 2px solid var(--login-color);
}

.page-support__btn-primary:hover {
  background: #c26706; /* Darken on hover */
  border-color: #c26706;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-support__btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-support__btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* General Section Styling */
.page-support__section {
  padding: 80px 20px;
  text-align: center;
}

.page-support__section-title {
  font-size: 2.2em;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.page-support__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

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

.page-support__text-block {
  max-width: 900px;
  margin: 20px auto 30px auto;
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-dark);
}

/* Card Styling */
.page-support__card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-support__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-support__card-description {
  font-size: 1em;
  color: #555;
  flex-grow: 1; /* Allow description to take available space */
}

/* Specific Section Styles */
.page-support__introduction-section {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-support__contact-channels-section {
  background: linear-gradient(135deg, #1a8cc2, var(--primary-color)); /* Darker gradient for contrast */
  color: var(--text-light);
}

.page-support__contact-channels-section .page-support__section-title {
  color: var(--text-light);
}
.page-support__contact-channels-section .page-support__section-title::after {
  background-color: var(--text-light);
}
.page-support__contact-channels-section .page-support__text-block {
  color: rgba(255, 255, 255, 0.9);
}
.page-support__contact-channels-section .page-support__card {
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent card background */
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
}
.page-support__contact-channels-section .page-support__card-title {
  color: var(--text-light);
}
.page-support__contact-channels-section .page-support__card-description {
  color: rgba(255, 255, 255, 0.8);
}
.page-support__contact-channels-section .page-support__btn-primary {
  background: var(--text-light);
  color: var(--primary-color);
  border-color: var(--text-light);
}
.page-support__contact-channels-section .page-support__btn-primary:hover {
  background: #e0e0e0;
  border-color: #e0e0e0;
  color: var(--primary-color);
}
.page-support__contact-channels-section .page-support__btn-secondary {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}
.page-support__contact-channels-section .page-support__btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
}

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

.page-support__channel-card img,
.page-support__safety-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-support__contact-note {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 40px;
}

.page-support__safety-section {
  background: var(--primary-color); /* Using primary color for safety section */
  color: var(--text-light);
}
.page-support__safety-section .page-support__section-title {
  color: var(--text-light);
}
.page-support__safety-section .page-support__section-title::after {
  background-color: var(--text-light);
}
.page-support__safety-section .page-support__text-block {
  color: rgba(255, 255, 255, 0.9);
}
.page-support__safety-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}
.page-support__safety-text {
  flex: 1;
  min-width: 300px;
}
.page-support__safety-text p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}
.page-support__safety-text .page-support__sub-title {
  font-size: 1.4em;
  color: var(--text-light);
  margin-bottom: 15px;
  margin-top: 30px;
}
.page-support__safety-image {
  flex: 1;
  min-width: 250px;
  text-align: center;
}
.page-support__safety-image img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.page-support__safety-text .page-support__btn-secondary {
  margin-right: 15px;
  margin-top: 15px;
  display: inline-block;
  color: var(--text-light);
  border-color: var(--text-light);
}
.page-support__safety-text .page-support__btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
}

.page-support__feedback-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #36baf0 100%); /* Adjusted gradient for visual appeal */
  color: var(--text-light);
}
.page-support__feedback-section .page-support__section-title {
  color: var(--text-light);
}
.page-support__feedback-section .page-support__section-title::after {
  background-color: var(--text-light);
}
.page-support__feedback-section .page-support__text-block {
  color: rgba(255, 255, 255, 0.9);
}
.page-support__feedback-section .page-support__btn-primary {
  margin-top: 30px;
  background: var(--login-color);
  border-color: var(--login-color);
  color: var(--text-light);
}
.page-support__feedback-section .page-support__btn-primary:hover {
  background: #c26706;
  border-color: #c26706;
}

/* FAQ Section */
.page-support__faq-section {
  background-color: var(--background-light);
}
.page-support__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

/* FAQ容器样式 */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* FAQ默认状态 - 答案 ẩn */
.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, opacity 0.4s ease;
  padding: 0 25px; /* Điều chỉnh padding */
  opacity: 0;
}

/* FAQ trạng thái mở rộng - 🚨 Sử dụng!important và đủ lớn max-height */
.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 bất kỳ nội dung nào */
  padding: 20px 25px !important; /* Điều chỉnh padding */
  opacity: 1;
  background: var(--secondary-color);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 10px 10px;
}

/* Vấn đề FAQ */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px; /* Điều chỉnh padding */
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-question:hover {
  background: var(--background-light);
  border-color: var(--primary-color);
}

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

/* Tiêu đề câu hỏi */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none; /* Ngăn h3 chặn sự kiện nhấp */
}

/* Biểu tượng chuyển đổi */
.page-support__faq-toggle {
  font-size: 28px; /* Biểu tượng chuyển đổi lớn hơn */
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Sử dụng màu chính cho biểu tượng chuyển đổi */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Vùng nhấp lớn hơn */
  height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--login-color); /* Thay đổi màu khi hoạt động */
  transform: rotate(45deg); /* Xoay để tạo thành hình 'X' hoặc tương tự */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 2.5em;
  }
  .page-support__hero-description {
    font-size: 1.1em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__text-block {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .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;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-support__section {
    padding: 50px 15px;
  }
  .page-support__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-support__text-block {
    font-size: 0.95em;
  }

  .page-support__channels-grid,
  .page-support__guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__card {
    padding: 25px;
  }
  .page-support__card-title {
    font-size: 1.3em;
  }
  .page-support__card-description {
    font-size: 0.95em;
  }

  .page-support__safety-content {
    flex-direction: column;
    text-align: center;
  }
  .page-support__safety-text {
    min-width: unset;
    width: 100%;
  }
  .page-support__safety-text .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .page-support__safety-image {
    min-width: unset;
    width: 100%;
  }

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

  /* Ensure all images are responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-container,
  .page-support__cta-buttons,
  .page-support__channels-grid,
  .page-support__guides-grid,
  .page-support__safety-content,
  .page-support__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no filter on images */
.page-support img {
  filter: none !important;
}