/* style/support.css */

/* Base Styles */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-support__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-support__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-support__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__section-description,
.page-support__dark-section .page-support__card-title,
.page-support__dark-section .page-support__card-text,
.page-support__dark-section .page-support__contact-title,
.page-support__dark-section .page-support__contact-text,
.page-support__dark-section .page-support__commitment-item {
  color: #ffffff;
}

.page-support__light-bg .page-support__section-title,
.page-support__light-bg .page-support__section-description,
.page-support__light-bg .page-support__card-title,
.page-support__light-bg .page-support__card-text,
.page-support__light-bg .page-support__faq-qtext,
.page-support__light-bg .page-support__faq-answer {
  color: #333333;
}

/* Hero Section */
.page-support__hero-section {
  padding: 100px 20px;
  text-align: center;
  background-image: url('[GALLERY:hero:1920x1080:no_hu_doi_thuong,support,online_gaming,vietnam,blue_theme]');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-support__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-support__hero-section .page-support__container {
  position: relative;
  z-index: 2;
}

.page-support__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-support__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* CTA Buttons */
.page-support__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-support__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-support__btn-primary:hover {
  background-color: #d16b00;
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

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

/* Why Choose Us Section */
.page-support__why-choose-us,
.page-support__resources-section,
.page-support__commitment-section,
.page-support__cta-bottom {
  padding: 80px 0;
}

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

.page-support__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-support__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__card-text {
  font-size: 1em;
  color: #555555;
}

/* Contact Channels Section */
.page-support__contact-channels {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0;
}

.page-support__contact-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.page-support__contact-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

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

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
}

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

.page-support__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-support__faq-item[open] {
  background-color: #eaf7ff;
  border-color: #26A9E0;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: transparent;
  border: none;
  width: 100%;
  text-align: left;
  position: relative;
  list-style: none; /* For details/summary */
}

.page-support__faq-question::-webkit-details-marker {
  display: none;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-toggle {
  transform: rotate(45deg);
}

.page-support__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-support__faq-item[open] .page-support__faq-answer {
  max-height: 500px; /* Adjust as needed for content length */
}

.page-support__faq-answer p {
  margin: 0;
  color: #555555;
}

.page-support__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Resources Section */
.page-support__resource-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-support__resource-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-support__resource-card .page-support__card-image {
  margin-bottom: 15px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-support__resource-card .page-support__card-title {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-support__resource-card .page-support__card-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-support__resource-card .page-support__card-title a:hover {
  text-decoration: underline;
}

.page-support__resource-card .page-support__card-text {
  color: #f0f0f0;
}

/* Commitment Section */
.page-support__commitment-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 40px auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-support__commitment-item {
  background-color: #f9f9f9;
  color: #333333;
  padding: 20px;
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  font-size: 1.1em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-support__commitment-item strong {
  color: #26A9E0;
}

/* CTA Bottom Section */
.page-support__cta-bottom {
  text-align: center;
  padding: 80px 20px;
}

/* Image styles - IMPORTANT: Ensure no filter properties */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no filter is applied */
}

/* 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: 80px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-support__hero-title {
    font-size: 2.2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__section-description {
    font-size: 0.95em;
  }
  .page-support__grid {
    grid-template-columns: 1fr;
  }
  .page-support__card,
  .page-support__contact-card,
  .page-support__resource-card {
    padding: 20px;
  }
  .page-support__cta-button {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-support__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-support__faq-answer {
    padding: 0 20px 15px 20px;
  }
  /* Mobile image and container adaptation */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__container,
  .page-support__section,
  .page-support__card,
  .page-support__contact-card,
  .page-support__resource-card,
  .page-support__faq-item,
  .page-support__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }
  .page-support__hero-section .page-support__container {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 1.8em;
  }
  .page-support__section-title {
    font-size: 1.5em;
  }
  .page-support__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-support__why-choose-us,
  .page-support__contact-channels,
  .page-support__faq-section,
  .page-support__resources-section,
  .page-support__commitment-section,
  .page-support__cta-bottom {
    padding: 50px 0;
  }
  .page-support__cta-button {
    font-size: 0.95em;
  }
}