.page-support {
  background-color: var(--dark-bg-1); /* Assuming --dark-bg-1 is defined in shared.css and is dark */
  color: #ffffff; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Fixed navbar spacing for the first content section */
.page-support__intro-section {
  padding-top: 120px; /* Desktop: ~120px to clear fixed header */
  padding-bottom: 60px;
  background-color: #1A2E4E; /* Use primary brand color for intro */
}

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

.page-support__main-title {
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary gold color for main title */
}

.page-support__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-support__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary gold color for section titles */
}

.page-support__section-description {
  font-size: 16px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #cccccc;
}

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

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-tertiary,
.page-support__btn-small {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure button doesn't exceed container width */
}

.page-support__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #1A2E4E; /* Dark blue text */
  border: 2px solid #FFD700;
}

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

.page-support__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

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

.page-support__btn-tertiary {
  background-color: #1A2E4E; /* Dark blue background */
  color: #FFD700; /* Gold text */
  border: 2px solid #1A2E4E;
  padding: 10px 20px;
  font-size: 14px;
}

.page-support__btn-tertiary:hover {
  background-color: #FFD700;
  color: #1A2E4E;
  border-color: #FFD700;
}

.page-support__btn-small {
  background-color: #FFD700;
  color: #1A2E4E;
  border: 2px solid #FFD700;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
}

.page-support__btn-small:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-support__link-text {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-support__link-text:hover {
  color: #e6c200;
}

/* Contact Channels Section */
.page-support__contact-channels-section {
  padding: 80px 0;
  background-color: #0e1a2d; /* Slightly lighter dark background */
}

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

.page-support__channel-card {
  background-color: #1A2E4E; /* Dark blue card background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-support__channel-icon {
  width: 100%; /* Ensure images are responsive */
  height: auto;
  max-width: 150px; /* Max width for icons */
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px; /* Slightly rounded corners for images */
}

.page-support__channel-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-support__channel-text {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 25px;
  flex-grow: 1; /* Allows text to take available space */
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
}

.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;
  background-color: #1A2E4E; /* Dark blue background for FAQ item */
}

/* 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, opacity 0.4s ease;
  padding: 0 20px; /* Adjust padding for consistency */
  opacity: 0;
  background-color: #0e1a2d; /* Slightly lighter dark background for answer */
  color: #cccccc;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的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 mọi nội dung */
  padding: 20px !important; /* Điều chỉnh padding cho phù hợp */
  opacity: 1;
  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-color: #1A2E4E;
  border: 1px solid #2e4a77; /* Lighter border for contrast */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* White text for question */
}

.page-support__faq-question:hover {
  background-color: #2e4a77; /* Slightly lighter dark blue on hover */
  border-color: #4a6fa8;
}

.page-support__faq-question:active {
  background-color: #3a5c90;
}

/* Tiêu đề câu hỏi kiểu dáng */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
  color: #FFD700; /* Gold text for question title */
}

/* Chuyển đổi biểu tượng */
.page-support__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold color for toggle icon */
  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 click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger icon area */
  height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(45deg); /* Xoay để tạo hiệu ứng 'x' */
  color: #FFD700; /* Giữ màu vàng */
}

/* Issues Section */
.page-support__issues-section {
  padding: 80px 0;
  background-color: #0e1a2d;
}

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

.page-support__issue-card {
  background-color: #1A2E4E;
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-support__issue-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-support__issue-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 25px;
  color: #cccccc;
  flex-grow: 1;
}

.page-support__issue-list li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* Security Section */
.page-support__security-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
}

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

.page-support__security-image {
  flex: 1;
  min-width: 300px;
}

.page-support__security-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-support__security-text {
  flex: 1.5;
}

.page-support__security-subtitle {
  font-size: 24px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-support__security-text p {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Responsible Gambling Section */
.page-support__responsible-gambling-section {
  padding: 80px 0;
  background-color: #0e1a2d;
}

.page-support__responsible-gambling-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-direction: row-reverse; /* Image on right */
}

.page-support__responsible-gambling-image {
  flex: 1;
  min-width: 300px;
}

.page-support__responsible-gambling-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-support__responsible-gambling-text {
  flex: 1.5;
}

.page-support__responsible-gambling-subtitle {
  font-size: 24px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-support__responsible-gambling-text p {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Feedback Section */
.page-support__feedback-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
  text-align: center;
}

.page-support__feedback-text {
  font-size: 18px;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: 38px;
  }
  .page-support__section-title {
    font-size: 32px;
  }
  .page-support__security-content,
  .page-support__responsible-gambling-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-support__responsible-gambling-content {
    flex-direction: column-reverse; /* Keep image on top for mobile */
  }
}

@media (max-width: 768px) {
  .page-support__intro-section {
    padding-top: 100px; /* Mobile: ~100px to clear fixed header */
    padding-bottom: 40px;
  }
  .page-support__container {
    padding: 0 15px;
  }
  .page-support__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-support__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support__btn-tertiary,
  .page-support__btn-small {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-support__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-support__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-support__contact-channels-section,
  .page-support__faq-section,
  .page-support__issues-section,
  .page-support__security-section,
  .page-support__responsible-gambling-section,
  .page-support__feedback-section {
    padding: 50px 0;
  }

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

  .page-support__channel-icon {
    max-width: 120px;
  }
  .page-support__channel-title {
    font-size: 20px;
  }
  .page-support__channel-text {
    font-size: 15px;
  }

  /* FAQ mobile */
  .page-support__faq-question {
    padding: 15px;
  }
  .page-support__faq-question h3 {
    font-size: 16px;
  }
  .page-support__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
  }
  .page-support__faq-answer p {
    font-size: 15px;
  }

  .page-support__issue-title,
  .page-support__security-subtitle,
  .page-support__responsible-gambling-subtitle {
    font-size: 20px;
  }
  .page-support__issue-list li,
  .page-support__security-text p,
  .page-support__responsible-gambling-text p,
  .page-support__feedback-text {
    font-size: 15px;
  }

  /* Universal image responsiveness for mobile */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* Containers for images and content in mobile */
  .page-support__container,
  .page-support__channel-card,
  .page-support__issue-card,
  .page-support__security-image,
  .page-support__security-text,
  .page-support__responsible-gambling-image,
  .page-support__responsible-gambling-text {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure no CSS filters are used for images */
.page-support img {
  filter: none !important;
}