/* style/support.css */
/* 
 * Trang Hỗ Trợ - Phong cách CSS riêng
 * Tất cả các bộ chọn phải sử dụng quy tắc đặt tên BEM: .page-support__element-name
 * Hạn chế phạm vi kiểu dáng trong .page-support
 */

.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f5f5f5; /* Light background for contrast */
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  padding: 80px 0;
  color: #ffffff; /* White text for dark background */
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-support__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 1;
}

.page-support__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-support__hero-section .page-support__container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-support__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-support__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

/* General Section Styling */
.page-support__section {
  padding: 60px 0;
}

.page-support__dark-section {
  background-color: #1A1A1A; /* Dark background */
  color: #ffffff; /* White text */
}

.page-support__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text */
}

.page-support__section-title {
  font-size: 2.5em;
  color: #1A1A1A; /* Dark text for light backgrounds */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-support__dark-section .page-support__section-title {
  color: #FFD700; /* Gold text for dark backgrounds */
}

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

.page-support__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Why Choose Section */
.page-support__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-support__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333; /* Dark text for light card background */
}

.page-support__feature-item:hover {
  transform: translateY(-5px);
}

.page-support__feature-title {
  font-size: 1.5em;
  color: #FFD700; /* Gold for feature titles */
  margin-bottom: 15px;
}

.page-support__feature-description {
  font-size: 1em;
  color: #555555;
}

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

.page-support__channel-item {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  background-color: #2a2a2a; /* Dark background for channel cards */
  color: #ffffff; /* White text for dark card background */
}

.page-support__channel-item.page-support__dark-bg {
  background-color: #2a2a2a;
}

.page-support__channel-title {
  font-size: 1.8em;
  color: #FFD700; /* Gold for channel titles */
  margin-bottom: 15px;
}

.page-support__channel-description {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 25px;
}

.page-support__contact-info {
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  color: #ffffff;
}

.page-support__contact-info a {
  color: #FFD700;
  text-decoration: none;
}

.page-support__contact-info a:hover {
  text-decoration: underline;
}

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

.page-support__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: #333333; /* Dark text for light card background */
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: #f0f0f0;
}

.page-support__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #1A1A1A;
}

.page-support__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to become an X/minus */
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #555555;
  text-align: left;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to reveal content */
  padding: 15px 25px;
}

.page-support__faq-answer p {
  margin: 0;
  padding-bottom: 10px; /* Space between paragraphs if any */
}

/* Security Section */
.page-support__security {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  overflow: hidden;
}

.page-support__security::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay */
  z-index: 1;
}

.page-support__security-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-support__security .page-support__container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-support__security .page-support__section-title {
  color: #FFD700;
}

.page-support__security .page-support__text-block {
  color: #f0f0f0;
}

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

/* Commitment Section */
.page-support__commitment {
  text-align: center;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-support__btn-primary {
  background-color: #FFD700;
  color: #1A1A1A; /* Dark text on gold button */
  border-color: #FFD700;
}

.page-support__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: #1A1A1A;
}

.page-support__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text on transparent/dark background */
  border-color: #FFD700;
}

.page-support__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

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

@media (max-width: 768px) {
  .page-support__hero-section {
    padding: 60px 0;
    min-height: 400px;
  }
  .page-support__hero-title {
    font-size: 2.2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__section {
    padding: 40px 0;
  }
  .page-support__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-support__feature-list,
  .page-support__channel-grid {
    grid-template-columns: 1fr;
  }
  .page-support__cta-buttons,
  .page-support__links {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    padding: 12px 20px;
  }

  /* Mobile image responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile content container responsiveness */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__cta-buttons,
  .page-support__links,
  .page-support__faq-list,
  .page-support__channel-grid,
  .page-support__feature-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Fixed header offset for mobile, if shared doesn't handle body */
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 1.8em;
  }
  .page-support__hero-description {
    font-size: 0.9em;
  }
  .page-support__section-title {
    font-size: 1.5em;
  }
  .page-support__faq-title {
    font-size: 1em;
  }
  .page-support__faq-question {
    padding: 15px 20px;
  }
  .page-support__faq-answer {
    padding: 0 20px;
  }
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 10px 20px;
  }
}

/* Ensure content area images are not small icons */
.page-support img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Maintain aspect ratio without distorting */
}

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

/* Ensure no video filter */
.page-support video {
  filter: none !important; /* Absolutely no filter */
}