/* style/support.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000; /* Body background */
  --bg-card-light: #ffffff;
  --bg-card-dark: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  --border-light: #e0e0e0;
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-support {
  background-color: var(--bg-dark); /* Inherited from body, but reinforce */
  color: var(--text-light); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Desktop: Adjust for fixed header */
}

/* General container for content sections */
.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-support__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--primary-color); /* Use primary color for main titles */
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.page-support__section-description {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Card styles for general use */
.page-support__card {
  background: var(--bg-card-light); /* Default light background for cards */
  color: var(--text-dark); /* Dark text for light card background */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  box-sizing: border-box;
}

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

/* Dark card style for dark sections */
.page-support__card--dark {
  background: var(--bg-card-dark); /* Semi-transparent white for dark sections */
  color: var(--text-light); /* Light text for dark card background */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-support__card--dark .page-support__advantage-title,
.page-support__card--dark .page-support__method-title {
  color: var(--primary-color); /* Highlight titles in dark cards */
}

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

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
}

.page-support__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-dark); /* Dark text on gold button for contrast */
}

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

.page-support__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-light); /* Light text on dark red button */
}

.page-support__cta-button--secondary:hover {
  background: #6e0000; /* Slightly darker red */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  padding-bottom: 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-dark) 100%); /* Gradient for hero */
}

.page-support__hero-section .page-support__container {
  position: relative;
  z-index: 1;
  padding-top: 0; /* Container padding, hero section handles top padding */
}

.page-support__main-title {
  font-size: 56px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.page-support__hero-description {
  font-size: 20px;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-support__hero-image-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2; /* Subtle background image */
  z-index: 0;
}

.page-support__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Advantages Section */
.page-support__advantages-section {
  padding: 80px 0;
  background-color: var(--bg-dark); /* Ensure section background */
}

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

.page-support__advantage-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); /* Allowed shadow, not color filter */
}

.page-support__advantage-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* Dark red for sub-titles on light card */
  margin-bottom: 10px;
}

.page-support__advantage-text {
  font-size: 16px;
  color: var(--text-dark);
}

/* Contact Methods Section */
.page-support__contact-methods-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Use secondary color for a prominent section */
  color: var(--text-light);
}

.page-support__contact-methods-section .page-support__section-title {
  color: var(--primary-color); /* Gold title on dark red background */
}

.page-support__contact-methods-section .page-support__section-description {
  color: var(--text-light);
}

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

.page-support__method-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); /* Allowed shadow */
}

.page-support__method-title {
  font-size: 26px;
  font-weight: bold;
  color: var(--primary-color); /* Gold title on dark card background */
  margin-bottom: 15px;
}

.page-support__method-text {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 25px;
}

.page-support__method-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  background: var(--primary-color); /* Gold button on dark card */
  color: var(--text-dark); /* Dark text on gold button */
}

.page-support__method-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-support__faq-section .page-support__section-title {
  color: var(--primary-color);
}

.page-support__faq-section .page-support__section-description {
  color: var(--text-light);
}

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

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

/* 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 25px;
  opacity: 0;
  color: var(--text-dark); /* Dark text for light answer background */
  background: var(--bg-card-light); /* Light background for answer */
  font-size: 16px;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.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 25px !important;
  opacity: 1;
  background: var(--bg-card-light); /* Light background for answer */
  border-radius: 0 0 10px 10px;
}

/* Vấn đề style */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--bg-card-dark); /* Dark card background for question */
  color: var(--text-light); /* Light text for question */
  border-radius: 10px; /* Only top corners rounded by default */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  border-bottom: 1px solid transparent; /* No bottom border by default */
}

.page-support__faq-item.active .page-support__faq-question {
  border-bottom-color: rgba(255, 255, 255, 0.2); /* Border when active */
  border-radius: 10px 10px 0 0; /* Only top corners rounded when active */
}

.page-support__faq-question:hover {
  background: rgba(255, 255, 255, 0.15); /* Slightly lighter dark background on hover */
}

/* Vấn đề tiêu đề style */
.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 h3 tag chặn sự kiện click */
  color: var(--text-light);
}

/* Toggle icon */
.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* 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 icon chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--primary-color); /* Gold color when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* Responsible Gambling Section */
.page-support__responsible-gambling-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Use secondary color for this section */
  color: var(--text-light);
}

.page-support__responsible-gambling-section .page-support__section-title {
  color: var(--primary-color);
}

.page-support__responsible-gambling-section .page-support__section-description {
  color: var(--text-light);
}

.page-support__responsible-gambling-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-support__responsible-gambling-image {
  flex: 0 0 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-support__responsible-gambling-text {
  flex: 1;
  text-align: left;
}

.page-support__responsible-gambling-text p {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-support__responsible-gambling-text a {
  color: var(--primary-color); /* Gold links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-support__responsible-gambling-text a:hover {
  color: #e6c200;
}

/* Call to Action Section */
.page-support__cta-section {
  padding: 80px 0;
  background-color: var(--bg-dark); /* Ensure section background */
  text-align: center;
}

.page-support__cta-section .page-support__section-title {
  color: var(--primary-color);
}

.page-support__cta-section .page-support__section-description {
  color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: 48px;
  }
  .page-support__section-title {
    font-size: 32px;
  }
  .page-support__hero-description,
  .page-support__section-description {
    font-size: 17px;
  }
  .page-support__advantage-title,
  .page-support__method-title {
    font-size: 22px;
  }
  .page-support__advantage-text,
  .page-support__method-text {
    font-size: 15px;
  }
  .page-support__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-support__responsible-gambling-content {
    flex-direction: column;
    text-align: center;
  }
  .page-support__responsible-gambling-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-support {
    padding-top: 10px !important; /* Mobile: Adjust for fixed header */
  }
  .page-support__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__hero-section {
    padding-top: 10px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 60px;
  }

  .page-support__main-title {
    font-size: 36px;
  }
  .page-support__section-title {
    font-size: 28px;
  }
  .page-support__hero-description,
  .page-support__section-description {
    font-size: 16px;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-support__responsible-gambling-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  /* Image responsive rules */
  .page-support img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* All containers with images/content */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-image-wrapper,
  .page-support__responsible-gambling-content,
  .page-support__responsible-gambling-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-support__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Keep height for hero image wrapper */
    object-fit: cover !important;
  }
}

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