/* style/support.css */

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

/* Hero Section */
.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: #017439; /* Brand primary color for dark section */
  color: #ffffff; /* White text for dark background */
  overflow: hidden;
}

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

.page-support__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1; /* Ensure content is above image if any overlap */
}

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

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

.page-support__hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* General Section Styles */
.page-support__section {
  padding: 60px 20px;
}

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

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

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

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

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

/* FAQ Section */
.page-support__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-support__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  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.15em;
  font-weight: 600;
  cursor: pointer;
  color: #333333;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

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

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

.page-support__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #555555;
  display: none; /* Hidden by default, controlled by JS or <details> */
}

.page-support__faq-item[open] .page-support__faq-answer {
  display: block;
}

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

/* Guides Section */
.page-support__guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-support__guide-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-support__guide-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-support__guide-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-support__guide-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-support__guide-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-support__guide-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-support__view-all-button {
  text-align: center;
  margin-top: 40px;
}

/* Call to Action Section */
.page-support__contact-cta {
  text-align: center;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-support__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-support__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: #ffffff;
}

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

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

.page-support__btn-inline {
  background-color: #017439;
  color: #ffffff;
  border: 1px solid #017439;
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 10px;
}

.page-support__btn-inline:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-support__guides-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-support__hero-section,
  .page-support__section {
    padding: 40px 15px; /* Adjust padding for smaller screens */
  }

  .page-support__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-support__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-support__hero-buttons,
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Image responsive rules */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support__hero-image,
  .page-support__guide-image {
    height: auto !important; /* Allow height to adjust */
  }

  /* Container responsive rules */
  .page-support__section,
  .page-support__container,
  .page-support__hero-section,
  .page-support__faq-section,
  .page-support__guides-section,
  .page-support__contact-cta,
  .page-support__guide-card,
  .page-support__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Button responsive rules */
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support__btn-inline,
  .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__hero-buttons,
  .page-support__cta-buttons,
  .page-support__faq-answer {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-support__faq-answer .page-support__btn-inline {
    width: auto !important; /* Allow inline buttons to be smaller */
    max-width: fit-content !important;
  }
}