/* style/support.css */
/* body đã padding-top: var(--header-offset)；trang này không được thêm lại biến đó */

/* Base styles for the support page */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main for dark background */
  background-color: #08160F; /* Background color from custom palette */
  padding-bottom: 60px;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #11271B; /* Card BG for this section */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-support__hero-content {
  max-width: 900px;
  margin-top: 20px;
  padding: 0 15px;
}

.page-support__hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-support__hero-content p {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-support__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 600px; /* Limit max width for button group */
  margin: 0 auto;
}

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

.page-support__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

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

.page-support__btn-secondary:hover {
  background-color: #2AD16F;
  color: #ffffff;
  transform: translateY(-2px);
}

/* General Content Sections */
.page-support__intro-section,
.page-support__faq-section,
.page-support__contact-methods-section,
.page-support__responsible-gambling-section,
.page-support__cta-section-final {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  overflow: hidden;
}

.page-support__intro-section h2,
.page-support__faq-section h2,
.page-support__contact-methods-section h2,
.page-support__responsible-gambling-section h2,
.page-support__cta-section-final h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 25px;
  text-align: center;
}

.page-support__intro-section p,
.page-support__contact-methods-section p,
.page-support__responsible-gambling-section p,
.page-support__cta-section-final p {
  font-size: 1.05rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

/* Feature Image */
.page-support__feature-image-wrapper,
.page-support__security-image-wrapper {
  width: 100%;
  max-width: 800px; /* Adjust max-width as needed */
  margin: 30px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.page-support__feature-image,
.page-support__security-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* FAQ Section */
.page-support__faq-list {
  list-style: none;
  padding: 0;
}

.page-support__faq-item {
  background-color: #0A4B2C; /* Deep Green for FAQ item background */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-item details {
  padding: 15px 20px;
}

.page-support__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  list-style: none; /* Hide default marker */
  padding: 0;
}

.page-support__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-support__faq-qtext {
  flex-grow: 1;
}

.page-support__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 24px;
  text-align: center;
}

.page-support__faq-answer {
  padding-top: 10px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: justify;
}

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

.page-support__contact-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

.page-support__contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-support__contact-item h3 {
  font-size: 1.4rem;
  color: #57E38D; /* Glow */
  margin-bottom: 10px;
}

.page-support__contact-item p {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-support__contact-item a {
  color: #F2C14E; /* Gold */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-support__contact-item a:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

/* Responsible Gambling & Security Section */
.page-support__responsible-gambling-section .page-support__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-support__responsible-gambling-section .page-support__links a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #22C768; /* Auxiliary color */
  color: #08160F; /* Dark text for light background */
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-support__responsible-gambling-section .page-support__links a:hover {
  background-color: #11A84E; /* Main color */
  color: #F2FFF6; /* Text Main */
}

/* Final CTA Section */
.page-support__cta-section-final {
  text-align: center;
  margin-bottom: 60px;
}

/* Divider */
.page-support__divider {
  border: none;
  border-top: 1px solid #1E3A2A; /* Divider color */
  margin: 60px auto;
  max-width: 80%;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-support__hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .page-support__intro-section h2,
  .page-support__faq-section h2,
  .page-support__contact-methods-section h2,
  .page-support__responsible-gambling-section h2,
  .page-support__cta-section-final h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-support__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  
  .page-support__hero-content {
    padding: 0;
  }

  .page-support__hero-content h1 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

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

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    padding: 12px 15px;
  }

  .page-support__intro-section,
  .page-support__faq-section,
  .page-support__contact-methods-section,
  .page-support__responsible-gambling-section,
  .page-support__cta-section-final {
    margin: 30px auto;
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__intro-section h2,
  .page-support__faq-section h2,
  .page-support__contact-methods-section h2,
  .page-support__responsible-gambling-section h2,
  .page-support__cta-section-final h2 {
    font-size: 1.8rem;
  }

  .page-support__faq-item summary {
    font-size: 1rem;
  }

  .page-support__faq-answer {
    font-size: 0.95rem;
  }

  .page-support__contact-list {
    grid-template-columns: 1fr;
  }

  /* Image responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__hero-image-wrapper,
  .page-support__feature-image-wrapper,
  .page-support__security-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to prevent overflow from content */
  }

  .page-support__responsible-gambling-section .page-support__links {
    flex-direction: column;
    gap: 10px;
  }
  .page-support__responsible-gambling-section .page-support__links a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-support__hero-content h1 {
    font-size: clamp(1.2rem, 7vw, 1.8rem);
  }
  .page-support__intro-section h2,
  .page-support__faq-section h2,
  .page-support__contact-methods-section h2,
  .page-support__responsible-gambling-section h2,
  .page-support__cta-section-final h2 {
    font-size: 1.5rem;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    font-size: 0.95rem;
  }
}