/* style/support.css */

.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Ensure it respects shared background */
}

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

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

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

.page-support__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.page-support__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-support__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

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

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

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

.page-support__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-support__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-support__btn-primary,
.page-support__cta-button {
  background-color: #EA7C07; /* Login color for primary actions */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-support__btn-primary:hover,
.page-support__cta-button:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

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

.page-support__btn-secondary:hover {
  background-color: #e0f4ff;
  color: #1e87b7;
}

/* Contact Methods Section */
.page-support__contact-methods {
  padding: 80px 0;
}

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

.page-support__method-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-support__method-card:hover {
  transform: translateY(-5px);
}

.page-support__method-icon {
  width: 200px; /* Min size requirement */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-support__method-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__more-contact {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

.page-support__more-contact a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-support__more-contact a:hover {
  text-decoration: underline;
}

/* Video Guide Section */
.page-support__video-guide {
  padding: 80px 0;
  text-align: center;
}

.page-support__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-support__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-support__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  cursor: pointer;
}

.page-support__video-caption {
  margin-top: 20px;
  font-size: 1em;
  color: #ffffff;
}

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

.page-support__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #eaf6ff;
  cursor: pointer;
  font-weight: bold;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

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

.page-support__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: inherit;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #333333;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Ensure it expands */
  padding: 20px 25px;
}

.page-support__faq-answer p {
  margin-bottom: 1em;
}

.page-support__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-support__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-support__faq-answer a:hover {
  text-decoration: underline;
}

/* Why Choose Section */
.page-support__why-choose {
  padding: 80px 0;
  text-align: center;
}

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

.page-support__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-support__feature-icon {
  width: 200px; /* Min size requirement */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-support__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-support__feature-description {
  font-size: 1em;
  flex-grow: 1;
}

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

.page-support__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-support__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #333333;
}

/* General Image Styles */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 2.4em;
  }
  .page-support__hero-description {
    font-size: 1.1em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-support__hero-section {
    flex-direction: column;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-support__hero-title {
    font-size: 2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__container {
    padding: 0 15px;
  }
  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-support__method-grid,
  .page-support__features-grid {
    grid-template-columns: 1fr;
  }
  .page-support__method-card,
  .page-support__feature-card {
    padding: 20px;
  }
  .page-support__video-wrapper {
    margin: 30px auto;
  }
  .page-support__faq-question {
    padding: 15px 20px;
  }
  .page-support__faq-title {
    font-size: 1.1em;
  }
  .page-support__faq-answer {
    padding: 15px 20px;
  }
  .page-support__cta-title {
    font-size: 1.8em;
  }
  .page-support__cta-description {
    font-size: 1em;
  }

  /* Force responsive for all images and videos */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-support video,
  .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-support__video-section,
  .page-support__video-container,
  .page-support__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Force responsive for all buttons */
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support__cta-button,
  .page-support a[class*="button"],
  .page-support a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-support__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}