/* style/support.css */

/* --- General Page Styling --- */
.page-support {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light background (var(--secondary-color) is #FFFFFF) */
  background-color: var(--secondary-color); /* Matches body background from shared.css */
}

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

.page-support__section-title {
  font-size: 36px;
  color: #017439; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-support__section-title--light {
  color: #FFFFFF;
}

.page-support__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-support__section-description--light {
  color: #f0f0f0;
}

/* --- Hero Section --- */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background: linear-gradient(135deg, #017439, #004d2b); /* Darker green gradient */
  overflow: hidden; /* Prevent image overflow */
}

.page-support__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-support__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff;
}

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

.page-support__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure buttons have a minimum width */
  text-align: center;
  box-sizing: border-box;
}

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

.page-support__btn-primary:hover {
  background: #a80707;
  border-color: #a80707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-support__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-item.active .page-support__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #017439; /* Highlight active question */
  background-color: #f0f8f0; /* Slightly different background for active question */
}

.page-support__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-support__faq-question:active {
  background: #eeeeee;
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none;
}

.page-support__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  line-height: 1;
  color: #017439; /* Primary color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger hit area */
  height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #C30808; /* Highlight active toggle */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  color: #555555;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-support__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* --- Contact Section --- */
.page-support__contact-section {
  padding: 80px 0;
  background-color: #017439; /* Primary color background */
  color: #ffffff;
}

.page-support__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-support__contact-card {
  background: #004d2b; /* Slightly darker green */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-support__contact-card img {
  width: 100%;
  max-width: 250px; /* Constrain image size */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 4px;
  object-fit: cover;
}

.page-support__contact-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-support__contact-card p {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1; /* Allow paragraph to grow and push button down */
}

.page-support__contact-card .page-support__btn-primary,
.page-support__contact-card .page-support__btn-secondary {
  width: 100%;
  max-width: 200px;
  margin-top: auto; /* Push button to the bottom */
  font-size: 16px;
  padding: 12px 25px;
}

.page-support__contact-card .page-support__btn-secondary {
  color: #FFFF00; /* Use font color for secondary buttons on dark background */
  border-color: #FFFF00;
}
.page-support__contact-card .page-support__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFF00;
}


/* --- Guides Section --- */
.page-support__guides-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-support__guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-support__guide-card {
  background: #fdfdfd;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-support__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.page-support__guide-card h3 {
  font-size: 20px;
  margin: 20px 20px 10px 20px;
  color: #017439;
  flex-grow: 1; /* Allow title to grow */
}

.page-support__guide-card h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-support__guide-card h3 a:hover {
  color: #C30808; /* Hover color for links */
}

.page-support__guide-card p {
  font-size: 15px;
  color: #555555;
  margin: 0 20px 20px 20px;
}

/* --- Bottom CTA Section --- */
.page-support__cta-bottom {
  padding: 60px 0;
  background-color: #004d2b; /* Darker green */
  text-align: center;
}

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

.page-support__cta-bottom .page-support__cta-button:hover {
  background: #a80707;
  border-color: #a80707;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 40px;
  }
  .page-support__hero-description {
    font-size: 18px;
  }
  .page-support__section-title {
    font-size: 32px;
  }
  .page-support__section-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-support__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-support__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-support__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__container {
    padding: 0 15px;
  }
  .page-support__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-support__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-support__faq-section,
  .page-support__contact-section,
  .page-support__guides-section,
  .page-support__cta-bottom {
    padding: 50px 0;
  }

  .page-support__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-support__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px); /* Adjust for toggle icon */
    margin-bottom: 0;
  }
  .page-support__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-support__faq-answer {
    padding: 0 20px;
  }
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px 20px !important;
  }
  .page-support__faq-answer p {
    font-size: 15px;
  }

  .page-support__contact-methods,
  .page-support__guide-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__contact-card,
  .page-support__guide-card {
    padding: 25px;
  }

  .page-support__guide-card img {
    
  }

  /* Ensure all images are responsive and do not overflow */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__hero-image,
  .page-support__contact-card,
  .page-support__guide-card,
  .page-support__container,
  .page-support__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-support__contact-section .page-support__container,
  .page-support__guides-section .page-support__container,
  .page-support__faq-section .page-support__container,
  .page-support__cta-bottom .page-support__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__contact-card .page-support__btn-primary,
  .page-support__contact-card .page-support__btn-secondary {
    max-width: 100%;
  }

  .page-support__hero-cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Global image style to ensure responsiveness and no small icons */
.page-support img {
  min-width: 200px;
  min-height: 200px;
}
.page-support__contact-card img {
  min-width: unset; /* Override for smaller icons in cards if needed, but still > 200px*/
  min-height: unset;
  width: 100%; /* Ensure it fills card width */
  max-width: 250px; /* Max size for card images */
  height: auto;
}
.page-support__guide-card img {
  min-width: unset;
  min-height: unset;
  width: 100%;
  height: 200px; /* Fixed height for guide cards */
}

/* No CSS filters allowed for images */
.page-support img {
  filter: none !important;
}