/* style/support.css */

/* Base styles for the page-support scope */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff;
}

/* Ensure the first section has correct top padding, NOT var(--header-offset) */
.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #f8f8f8; /* Light background for hero */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-support__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-support__hero-content {
  text-align: center;
  margin-top: 30px;
  max-width: 800px;
  padding: 0 15px;
}

.page-support__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive H1 font size */
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-support__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-support__btn-primary,
.page-support__btn-secondary {
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  min-width: 180px; /* Minimum width for buttons */
}

.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: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
  background-color: #e0f0f8;
  color: #1e87c0;
}

/* Section general styles */
.page-support__section {
  padding: 50px 0;
  background-color: #ffffff;
}

.page-support__section:nth-of-type(even) {
  background-color: #f9f9f9;
}

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

.page-support__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-support__text-block {
  font-size: 1em;
  color: #444444;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-support__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease;
  color: #333333; /* Ensure text is dark on light card background */
}

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

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

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

.page-support__card-image {
  width: 100%;
  height: auto;
  min-height: 200px; /* Minimum image size */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 15px;
  display: block;
}

.page-support__card a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-support__card a:hover {
  color: #1e87c0;
}

/* FAQ Section */
.page-support__faq {
  background-color: #f0f7fa; /* Light blue background for FAQ */
}

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

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

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf6fc; /* Lighter blue for question background */
  border-bottom: 1px solid #d0e7f4;
}

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

/* Remove default details marker */
.page-support__faq-item summary {
  list-style: none;
}
.page-support__faq-item summary::-webkit-details-marker {
  display: none;
}

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

.page-support__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
  background-color: #ffffff;
}

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

/* Contact CTA Section */
.page-support__contact-cta {
  background-color: #26A9E0; /* Main brand color for dark section */
  color: #ffffff; /* White text on dark background */
  padding: 60px 20px;
  text-align: center;
}

.page-support__contact-cta .page-support__section-title,
.page-support__contact-cta .page-support__text-block {
  color: #ffffff; /* Force white text */
}

.page-support__contact-cta .page-support__btn-primary {
  background-color: #EA7C07; /* Login/CTA color */
  border-color: #EA7C07;
  color: #ffffff;
  margin-top: 30px;
}

.page-support__contact-cta .page-support__btn-primary:hover {
  background-color: #d86c00;
  border-color: #d86c00;
}


/* Responsive Design */
@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-support__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for mobile */
  }

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

  .page-support__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }

  .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;
    padding-right: 15px;
    min-width: unset; /* Remove min-width on mobile */
  }

  .page-support__section,
  .page-support__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__section {
    padding: 30px 0;
  }

  .page-support__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-support__grid-2-columns {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-support__card {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px; /* Maintain minimum image size */
  }

  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

  .page-support__contact-cta {
    padding: 40px 15px;
  }
}