/* style/support.css */
/* 
  Màu sắc chính: #FFD700 (Vàng)
  Màu sắc phụ: #8B0000 (Đỏ sẫm)
  Màu nền body (từ shared.css): #1a1a2e (Tối)
  Màu chữ mặc định cho nền tối: #ffffff
*/

.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Mặc định chữ trắng cho nền tối */
  background-color: #1a1a2e; /* Đảm bảo màu nền chính */
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Đảm bảo không bị header che */
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(255, 215, 0, 0.6)), url('[GALLERY:support_hero:1920x1080:18win11,support,customer_service,helpdesk,professional_team,online_betting]') no-repeat center center/cover;
  color: #ffffff;
  text-align: center;
  min-height: 500px;
  overflow: hidden; /* Prevent content overflow */
}

.page-support__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-support__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Vàng kim */
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-support__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Cho phép xuống dòng trên di động */
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Cho phép chữ xuống dòng */
  word-wrap: break-word; /* Đảm bảo chữ không tràn */
  text-align: center;
}

.page-support__cta-button--primary {
  background-color: #FFD700; /* Vàng kim */
  color: #1a1a2e; /* Chữ đen cho nền vàng */
  border: 2px solid #FFD700;
}

.page-support__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-support__cta-button--secondary {
  background-color: transparent;
  color: #FFD700; /* Chữ vàng */
  border: 2px solid #FFD700;
}

.page-support__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #1a1a2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-support__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-support__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Làm mờ ảnh nền */
}


/* General Section Styles */
.page-support__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Vàng kim */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-support__section-description {
  font-size: 1.1em;
  color: #cccccc;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Methods Section */
.page-support__contact-methods-section {
  padding: 80px 0;
  background-color: #2a2a3e; /* Nền tối hơn một chút */
}

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

.page-support__contact-card {
  background-color: #1a1a2e;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-support__contact-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-support__contact-card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__contact-card-text {
  color: #cccccc;
  font-size: 1em;
  margin-bottom: 25px;
}

.page-support__contact-button {
  background-color: #8B0000; /* Đỏ sẫm */
  color: #ffffff;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 5px;
  border: none;
}

.page-support__contact-button:hover {
  background-color: #a00000;
  color: #FFD700;
}


/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

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

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a3e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #3a3a4e;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

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

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  color: #FFD700; /* Vàng kim */
  line-height: 1.5;
  pointer-events: none; /* Ngăn h3 chặn sự kiện click */
}

.page-support__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Ngăn icon chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg); /* Xoay thành dấu X hoặc dùng - */
}

.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;
  opacity: 0;
  color: #e0e0e0;
  background-color: #2a2a3e;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Đảm bảo đủ lớn để chứa nội dung */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-support__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 1em;
}

/* Resources Section */
.page-support__resources-section {
  padding: 80px 0;
  background-color: #2a2a3e;
}

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

.page-support__resource-card {
  display: block;
  background-color: #1a1a2e;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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