/* CSS cho trang Hỗ Trợ (support.css) */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Mặc định cho body background #B71C1C */
  background-color: #B71C1C; /* Màu nền body */
}

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

.page-support__hero-section {
  padding-top: 10px; /* Chỉ 10px vì body đã có padding-top từ shared.css */
  position: relative;
  text-align: center;
  background-color: #B71C1C; /* Đảm bảo nền khớp với body */
  padding-bottom: 40px;
}

.page-support__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Giới hạn chiều cao cho hero image */
}

.page-support__hero-content {
  max-width: 800px;
  margin: 20px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-support__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFF5E1;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-support__hero-description {
  font-size: 1.15rem;
  color: #FFF5E1;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-support__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: #C91F17; /* Mặc định cho nền sáng */
}

.page-support__section-title--light {
  color: #FFF5E1; /* Dùng cho nền tối */
}

.page-support__paragraph {
  font-size: 1rem;
  margin-bottom: 15px;
  text-align: justify;
  color: #333333; /* Mặc định cho nền sáng */
}

.page-support__paragraph--light {
  color: #FFF5E1; /* Dùng cho nền tối */
}

.page-support__intro-section, .page-support__guide-section, .page-support__faq-section, .page-support__cta-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  color: #333333;
}

.page-support__channels-section, .page-support__common-issues-section, .page-support__security-section {
  padding: 60px 0;
  background-color: #B71C1C;
  color: #FFF5E1;
}

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

.page-support__card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1; /* Text Main */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-support__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px;
}

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

.page-support__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF5E1;
  flex-grow: 1;
}

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

.page-support__btn-primary {
  background-color: #C91F17;
  color: #FFF5E1;
  border: 2px solid #C91F17;
  margin: 10px;
}

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

.page-support__btn-secondary {
  background-color: transparent;
  color: #C91F17;
  border: 2px solid #C91F17;
  margin: 10px;
}

.page-support__btn-secondary:hover {
  background-color: #C91F17;
  color: #FFF5E1;
}

.page-support__btn-gradient {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #333333; /* Dark text for gold button */
  border: none;
  margin-top: 20px;
  padding: 12px 25px;
}

.page-support__btn-gradient:hover {
  filter: brightness(1.1);
}

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

.page-support__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

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

.page-support__step-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-support__issue-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-support__list-item {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #FFF5E1;
}

.page-support__list-item::before {
  content: '✓';
  color: #FFD86A; /* Gold checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333;
}
details.page-support__faq-item summary.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
  display: none;
}
details.page-support__faq-item summary.page-support__faq-question:hover {
  background: #f5f5f5;
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-support__security-image {
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-support__link--light {
  color: #FFD86A;
  text-decoration: underline;
}

.page-support__link--light:hover {
  color: #FFF5E1;
}

.page-support__cta-box {
  text-align: center;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-support__cta-box .page-support__section-title {
  color: #C91F17;
}

.page-support__cta-box .page-support__paragraph {
  color: #333333;
}

.page-support__cta-box .page-support__btn-primary, .page-support__cta-box .page-support__btn-secondary {
  margin: 10px;
}

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

  .page-support__hero-image {
    max-height: 500px;
  }

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

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

  .page-support__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-support__channels-grid, .page-support__issues-grid, .page-support__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-support__card-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-support__hero-section {
    padding-top: 10px; /* 移动端顶距 */
    padding-bottom: 20px;
  }
  .page-support__hero-image {
    object-fit: contain !important; /* 禁止 cover, đảm bảo hình ảnh không bị cắt */
    aspect-ratio: unset !important; /* Không giữ tỷ lệ cố định */
    max-height: 300px;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__hero-content {
    padding: 0 15px;
  }
  .page-support__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-support__hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  /* 通用图片与容器 */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-support__container,
  .page-support__intro-section .page-support__container,
  .page-support__channels-section .page-support__container,
  .page-support__guide-section .page-support__container,
  .page-support__common-issues-section .page-support__container,
  .page-support__faq-section .page-support__container,
  .page-support__security-section .page-support__container,
  .page-support__cta-section .page-support__container,
  .page-support__cta-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Sản phẩm (nếu có - trang hỗ trợ thường không có) */
  .page-support__products-grid { /* Placeholder if needed */
    grid-template-columns: 1fr; /* Hoặc 2 cột nếu thẻ nhỏ */
    gap: 15px;
    overflow-x: hidden;
  }

  /* Tiêu đề chính & khu vực SEO */
  .page-support__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
    word-wrap: break-word;
  }
  .page-support__paragraph {
    font-size: 0.9rem;
    text-align: left;
  }
  .page-support__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto 15px;
  }

  /* Nút & vùng chứa nút */
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support__btn-gradient,
  .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: 12px 15px;
    margin: 8px 0;
  }
  .page-support__hero-content .page-support__btn-primary {
    margin: 15px auto;
  }
  .page-support__cta-box .page-support__btn-primary, .page-support__cta-box .page-support__btn-secondary {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .page-support__channels-grid, .page-support__issues-grid, .page-support__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* FAQ */
  details.page-support__faq-item summary.page-support__faq-question { padding: 15px; }
  .page-support__faq-qtext { font-size: 15px; }
  details.page-support__faq-item .page-support__faq-answer { padding: 0 15px 15px; }

  /* Phần đệm các section */
  .page-support__intro-section, .page-support__guide-section, .page-support__faq-section, .page-support__cta-section,
  .page-support__channels-section, .page-support__common-issues-section, .page-support__security-section {
    padding: 40px 0;
  }
}