/* style/support.css */

/* Base Styles for Page Support */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

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

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

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

.page-support__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-support__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

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

.page-support__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-support__btn-faq {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
  margin-top: 15px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-faq:hover {
  background-color: #c96706;
  border-color: #c96706;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
  background-color: #26A9E0; /* Use brand color for hero background */
}

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

.page-support__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-support__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Contact Methods Section */
.page-support__contact-methods {
  padding: 80px 20px;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333;
}

.page-support__contact-methods .page-support__section-title,
.page-support__contact-methods h3 {
  color: #26A9E0;
}

.page-support__contact-methods .page-support__card-text {
  color: #555555;
}

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

.page-support__card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

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

.page-support__card-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 20px;
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

.page-support__faq-section .page-support__section-title {
  color: #ffffff;
}

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

.page-support__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-support__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  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;
  color: #f0f0f0;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-support__sub-faq-item {
  margin-bottom: 20px;
}

.page-support__sub-faq-item:last-child {
  margin-bottom: 0;
}

.page-support__sub-faq-item h4 {
  font-size: 1.1em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-support__sub-faq-item p {
  margin-bottom: 10px;
  color: #e0e0e0;
}

/* Video Section */
.page-support__video-section {
  padding: 80px 20px;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333;
  text-align: center;
}

.page-support__video-section .page-support__section-title {
  color: #26A9E0;
}

.page-support__video-section .page-support__description {
  color: #555555;
}

.page-support__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-support__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
}

/* Policy & Promotion Section */
.page-support__policy-promo-section {
  padding: 80px 20px;
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

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

.page-support__dark-card {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__dark-card .page-support__card-title {
  color: #26A9E0;
}

.page-support__dark-card .page-support__card-text {
  color: #e0e0e0;
}

/* Resources Section */
.page-support__resources-section {
  padding: 80px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-support__resources-section .page-support__section-title {
  color: #26A9E0;
}

.page-support__resources-section .page-support__card-title {
  color: #26A9E0;
}

.page-support__resources-section .page-support__card-text {
  color: #555555;
}

/* Final CTA Section */
.page-support__final-cta {
  padding: 80px 20px;
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  text-align: center;
}

.page-support__final-cta .page-support__section-title {
  color: #ffffff;
}

.page-support__final-cta .page-support__description {
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-support__main-title {
    font-size: 2.5em;
  }

  .page-support__section-title {
    font-size: 2em;
  }

  .page-support__description {
    font-size: 1em;
  }

  .page-support__hero-section {
    padding: 60px 20px;
    min-height: 400px;
  }

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

  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support__btn-faq,
  .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__contact-methods,
  .page-support__faq-section,
  .page-support__video-section,
  .page-support__policy-promo-section,
  .page-support__resources-section,
  .page-support__final-cta {
    padding: 40px 15px;
  }

  .page-support__container {
    padding: 0 15px;
  }

  .page-support__grid-3-cols,
  .page-support__grid-2-cols {
    grid-template-columns: 1fr;
  }

  .page-support__card {
    padding: 20px;
  }

  .page-support__card-image {
    height: 200px;
  }

  /* Ensure all images are responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers must be responsive */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__video-section,
  .page-support__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video specific mobile adjustments */
  .page-support__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Ensure video fills wrapper */
  }

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

  .page-support__faq-question h3 {
    font-size: 1.1em;
  }

  .page-support__faq-answer {
    padding: 0 20px;
  }

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

  .page-support__sub-faq-item h4 {
    font-size: 1em;
  }
}

/* Color Contrast Adjustments for specific sections */
.page-support__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-support__light-bg .page-support__section-title {
  color: #26A9E0;
}

.page-support__light-bg .page-support__description,
.page-support__light-bg .page-support__card-text {
  color: #555555;
}

.page-support__dark-bg {
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

.page-support__dark-bg .page-support__section-title {
  color: #ffffff;
}

.page-support__dark-bg .page-support__description,
.page-support__dark-bg .page-support__card-text {
  color: #e0e0e0;
}

.page-support__dark-card {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.page-support__dark-card .page-support__card-title {
  color: #26A9E0;
}

.page-support__dark-card .page-support__card-text {
  color: #e0e0e0;
}

/* Ensure content area images are not too small */
.page-support__contact-methods img,
.page-support__policy-promo-section img,
.page-support__resources-section img {
  min-width: 200px;
  min-height: 200px;
}