/* style/support.css */
/* body đã có padding-top: var(--header-offset); nên không cần thêm vào đây */

/* General Styles for .page-support */
.page-support {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Custom main text color for dark background */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

.page-support__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: bold;
  color: #F2C14E; /* Gold color for main titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-support__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: bold;
  color: #57E38D; /* Glow color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(87, 227, 141, 0.3);
}

.page-support__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  color: #F2FFF6; /* Main text color */
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F; /* Ensure background color for hero */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-support__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px 60px;
  box-sizing: border-box;
}

.page-support__hero-title {
  font-size: clamp(32px, 5vw, 56px); /* Clamp for responsive H1 */
  font-weight: bold;
  color: #F2C14E; /* Gold for main H1 */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-support__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-support__cta-button,
.page-support__secondary-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  margin-top: 20px;
  cursor: pointer;
}

.page-support__cta-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-support__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-support__secondary-button {
  background-color: transparent;
  color: #2AD16F; /* Green for secondary button text */
  border: 2px solid #2AD16F;
  margin-left: 15px;
}

.page-support__secondary-button:hover {
  background-color: #2AD16F;
  color: #08160F;
  transform: translateY(-2px) scale(1.02);
}

/* Content Grid for sections with image and text */
.page-support__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-support__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-support__text-content {
  flex: 1;
}

.page-support__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-support__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-support__image--center {
  margin: 40px auto;
}

/* FAQ Section */
.page-support__faq-list {
  margin-top: 30px;
}

.page-support__faq-item {
  background-color: #11271B; /* Card BG color */
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #2E7A4E; /* Border color */
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  cursor: pointer;
  background-color: #11271B; /* Card BG color */
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green for hover */
}

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

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

.page-support__faq-qtext {
  flex-grow: 1;
  color: #F2FFF6; /* Main text color */
}

.page-support__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #2AD16F; /* Green for toggle icon */
  margin-left: 15px;
}

.page-support__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #A7D9B8; /* Secondary text color */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

/* Policies Section */
.page-support__policy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-support__policy-card {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-support__card-title {
  font-size: 20px;
  font-weight: bold;
  color: #F2C14E; /* Gold for card titles */
  margin-bottom: 10px;
}

.page-support__card-description {
  font-size: 15px;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 20px;
  min-height: 90px; /* Ensure consistent height for descriptions */
}

.page-support__card-link {
  color: #2AD16F; /* Green for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-support__card-link:hover {
  color: #57E38D; /* Glow color on hover */
  text-decoration: underline;
}

/* Tips Section */
.page-support__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-support__tip-card {
  background-color: #11271B; /* Card BG color */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-support__tip-title {
  font-size: 20px;
  font-weight: bold;
  color: #F2C14E; /* Gold for tip titles */
  margin-bottom: 10px;
}

.page-support__tip-description {
  font-size: 15px;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__container {
    padding: 30px 15px;
  }
  .page-support__content-grid {
    flex-direction: column;
  }
  .page-support__content-grid--reverse {
    flex-direction: column; /* Stack in reverse order for mobile */
  }
  .page-support__image-wrapper {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 15px;
  }

  .page-support__section-title {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 30px;
  }

  .page-support__sub-title {
    font-size: clamp(20px, 4vw, 26px);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-support__hero-content {
    padding: 0 15px 40px;
  }

  .page-support__hero-title {
    font-size: clamp(28px, 6vw, 48px);
  }

  .page-support__hero-description {
    font-size: clamp(16px, 3vw, 20px);
  }

  .page-support__cta-button,
  .page-support__secondary-button {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 10px;
    padding: 10px 20px;
    font-size: 16px;
  }

  .page-support__hero-content .page-support__cta-button,
  .page-support__hero-content .page-support__secondary-button {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-support__secondary-button {
    margin-top: 0;
  }

  /* Images and Videos Responsive */
  .page-support img,
  .page-support video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support__hero-image-wrapper,
  .page-support__image-wrapper,
  .page-support__video-section,
  .page-support__video-container,
  .page-support__video-wrapper,
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__policy-card,
  .page-support__tip-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-support__hero-section {
    padding-top: 10px !important;
  }

  .page-support__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-support__faq-answer {
    padding: 0 20px 15px;
    font-size: 14px;
  }

  .page-support__policy-cards,
  .page-support__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-support__card-description {
    min-height: auto; /* Remove fixed height for mobile */
  }
}