/* style/support.css */

/* Base styles for the page content */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly set for content area if needed, but body handles global */
  padding-bottom: 40px; /* Add some padding at the bottom */
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, text below on mobile/smaller screens */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #ffffff;
  color: #333333;
}

.page-support__hero-image {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  height: auto;
  margin-bottom: 30px; /* Space between image and text */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__main-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
  /* No fixed font-size, rely on natural flow and responsive scaling */
}

.page-support__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
}

/* Section titles */
.page-support__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for section titles */
}

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

/* Buttons - General styles */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Important for responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
  text-align: center;
}

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

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

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

.page-support__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c2;
  border-color: #1e87c2;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background for contrast */
}

.page-support__faq-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto 40px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

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

.page-support__faq-item[open] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #26A9E0;
}

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

.page-support__faq-item.active .page-support__faq-question {
  color: #26A9E0;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-support__faq-answer {
  padding: 0 25px 25px 25px;
  font-size: 1em;
  color: #555555;
}

.page-support__faq-answer p {
  margin-bottom: 15px;
}

/* Contact CTA Section */
.page-support__contact-cta {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background with primary brand color */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden; /* For image positioning */
}

.page-support__contact-cta .page-support__section-title,
.page-support__contact-cta .page-support__section-description {
  color: #ffffff; /* White text on dark background */
}

.page-support__contact-image {
  position: absolute;
  bottom: 0;
  right: -50px; /* Partially off-screen for visual effect */
  width: 400px; /* Fixed width for decorative image */
  height: auto;
  opacity: 0.2;
  z-index: 0;
  display: none; /* Hide by default on smaller screens, show on larger */
}

.page-support__contact-cta .page-support__container {
  position: relative;
  z-index: 1;
}

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px; /* Spacing between buttons */
  margin-top: 30px;
}

.page-support__cta-buttons .page-support__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  border-color: #EA7C07;
}

.page-support__cta-buttons .page-support__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-support__cta-buttons .page-support__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-support__cta-buttons .page-support__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c2;
  border-color: #f0f0f0;
}

/* Info Links Section */
.page-support__info-links {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-support__info-card {
  display: block;
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 8px;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-support__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border-color: #26A9E0;
}

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

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

/* Responsive Styles */
@media (min-width: 769px) {
  .page-support__hero-section {
    flex-direction: row; /* Text on left, image on right for larger screens */
    text-align: left;
    justify-content: space-between;
    align-items: center;
    padding: 80px 0;
  }

  .page-support__hero-section .page-support__container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-support__hero-image {
    width: 50%; /* Adjust width for desktop layout */
    max-width: 800px;
    margin-bottom: 0;
    margin-left: 40px;
  }

  .page-support__contact-image {
    display: block; /* Show decorative image on larger screens */
  }
}

@media (max-width: 768px) {
  .page-support__main-title {
    font-size: 1.8em;
  }

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

  .page-support__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, small top padding for section */
  }

  .page-support__hero-section .page-support__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__faq-section,
  .page-support__contact-cta,
  .page-support__info-links {
    padding: 40px 15px;
  }

  .page-support__faq-section .page-support__container,
  .page-support__contact-cta .page-support__container,
  .page-support__info-links .page-support__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-support__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important; /* Remove horizontal margins for stacked buttons */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__info-card {
    padding: 20px;
  }

  .page-support__contact-image {
    display: none; /* Hide decorative image on mobile */
  }
}

/* Ensure all images and videos are responsive */
.page-support img,
.page-support video {
  max-width: 100%;
  height: auto;
  display: block; /* Prevent extra space below images */
}

/* Ensure all image/video containers are responsive */
.page-support__section,
.page-support__card,
.page-support__container,
.page-support__video-section,
.page-support__video-container,
.page-support__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

/* Specific mobile overrides for images/videos */
@media (max-width: 768px) {
  .page-support img,
  .page-support video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support__section,
  .page-support__card,
  .page-support__container,
  .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;
  }
}

/* Color contrast adjustments for specific elements */
.page-support__dark-bg {
  background-color: #26A9E0; /* Primary brand color as dark background */
  color: #ffffff; /* White text for contrast */
}
.page-support__light-bg {
  background-color: #ffffff;
  color: #333333;
}
.page-support__medium-bg { /* Not used in this page, but as per template */
  background-color: #f0f0f0;
  color: #000000;
}

/* Ensure button text allows wrapping */
.page-support a[class*="button"],
.page-support a[class*="btn"] {
  white-space: normal;
  word-wrap: break-word;
}