/* style/support.css */

/* Base styles for the support page */
.page-support {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity, though body is white */
  line-height: 1.6;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
  text-align: center;
  overflow: hidden; /* To contain background image */
}

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

.page-support__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-support__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

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

.page-support__cta-button {
  display: inline-block;
  background-color: #EA7C07; /* Login color for CTA */
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-support__cta-button:hover {
  background-color: #d16b06;
}

/* General Section Styling */
.page-support__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background-color: #FFFFFF;
}

.page-support__section--dark {
  background-color: #F5F5F5; /* Light grey for alternating sections */
  color: #333333;
}

.page-support__section-title {
  font-size: 2.2em;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand primary color for titles */
  font-weight: bold;
}

.page-support__section-subtitle {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: #333333;
}

.page-support__text-block {
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.page-support__text-block p {
  margin-bottom: 15px;
}

.page-support__text-block ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.page-support__text-block li {
  margin-bottom: 8px;
}

/* Image styles */
.page-support__image-container {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__image {
  width: 100%;
  height: auto;
  display: block;
}

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

.page-support__contact-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-support__contact-icon {
  font-size: 3em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-support__contact-card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-support__contact-card-description {
  color: #555555;
  margin-bottom: 20px;
}

.page-support__contact-card-button {
  display: inline-block;
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-support__contact-card-button:hover {
  background-color: #1e87b8;
}

/* FAQ Section */
.page-support__faq-list {
  margin-top: 40px;
  text-align: left;
}

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

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #F8F8F8;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-support__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  text-align: left;
}

/* CRITICAL: Expanded state for FAQ answer */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
}

/* Resources Section */
.page-support__resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__resource-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

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

.page-support__resource-card-description {
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-support__resource-card-link {
  display: inline-block;
  color: #EA7C07; /* Login color for links */
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Push to bottom */
}

.page-support__resource-card-link:hover {
  text-decoration: underline;
}

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

.page-support__final-cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-support__final-cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #FFFFFF;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-support__btn-primary {
  display: inline-block;
  background-color: #EA7C07;
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-support__btn-primary:hover {
  background-color: #d16b06;
}

.page-support__btn-secondary {
  display: inline-block;
  background-color: #FFFFFF;
  color: #26A9E0;
  padding: 15px 30px;
  border: 2px solid #26A9E0;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

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


/* Responsive Styles */
@media (max-width: 768px) {
  .page-support__hero-title {
    font-size: 2em;
  }

  .page-support__hero-description {
    font-size: 1em;
  }

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

  .page-support__section-subtitle {
    font-size: 1.2em;
  }

  .page-support__section,
  .page-support__hero-section,
  .page-support__final-cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* CRITICAL: Mobile responsive for all images */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__image-container,
  .page-support__contact-card,
  .page-support__faq-item,
  .page-support__resource-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent content touching edges */
    padding-right: 15px;
  }
  
  /* CRITICAL: Mobile responsive for all buttons */
  .page-support__cta-button,
  .page-support__contact-card-button,
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .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 !important; /* Ensure padding for smaller buttons */
    padding-right: 15px !important;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  /* For button groups, ensure they stack or wrap correctly */
  .page-support__final-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Space between stacked buttons */
  }

  /* Video responsiveness (if any, though not explicitly in content plan, good to include) */
  .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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  /* Ensure content area images also adhere to 200px min-width if they are not full width */
  .page-support__text-block img {
    min-width: 200px !important; /* Enforce minimum size for images within text blocks */
    min-height: 200px !important;
  }
}

/* Ensure content area images are never smaller than 200px */
.page-support__text-block img,
.page-support__contact-card img,
.page-support__resource-card img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Color contrast fixes (if needed, but primary colors should be good) */
/* Example for dark background text for general page, if body was dark */
/* .page-support__dark-bg { color: #ffffff; background: #26A9E0; } */
/* .page-support__light-bg { color: #333333; background: #ffffff; } */

/* Ensure all links within the main content are readable */
.page-support a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: none;
}

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

/* Specific button styles (already defined above) */
.page-support__btn-primary {  }
.page-support__btn-secondary {  }