/* style/support.css */

/* Base Styles for the Support Page */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for the dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 500px;
  overflow: hidden;
  background-color: #017439; /* Using brand primary color for hero background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-support__hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.page-support__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

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

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

.page-support__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(50%); /* Make image subtle and dark */
}

/* General Section Styles */
.page-support__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}

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

/* Light Background Section */
.page-support__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

/* Dark Background Section */
.page-support__dark-bg {
  background-color: #1a1a2e; /* Inherited body background, or specific dark section background */
  color: #ffffff; /* Light text for dark background */
  padding: 60px 0;
}

/* Card Styles */
.page-support__card {
  background-color: #2a2a4a; /* Slightly lighter dark background for cards in dark sections */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-support__light-bg .page-support__card {
  background-color: #f8f9fa; /* Light background for cards in light sections */
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-support__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439; /* Brand color for card titles */
}

.page-support__light-bg .page-support__card-title {
  color: #017439; /* Consistent brand color for card titles */
}

.page-support__card-text {
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1; /* Make text content take available space */
  margin-bottom: 20px;
}

/* Button Styles */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

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

.page-support__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand primary color for text */
  border: 2px solid #017439;
}

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

/* Specific button style for dark sections */
.page-support__dark-bg .page-support__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

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

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

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

.page-support__faq-item {
  background-color: #2a2a4a; /* Card background for FAQ items in dark section */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439; /* Brand color for FAQ question background */
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: #005a2e; /* Slightly darker hover for brand color */
}

.page-support__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #ffffff;
}

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

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign */
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #2a2a4a; /* Card background for answer content */
  color: #f0f0f0;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

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

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

.page-support__faq-answer a {
    color: #FFFF00; /* Link color within FAQ answer */
    text-decoration: underline;
}

.page-support__faq-answer a:hover {
    color: #ffcc00;
}

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

.page-support__guide-card {
  text-align: center;
}

.page-support__guide-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-support__guide-card .page-support__card-title {
  margin-top: 0;
}

.page-support__guide-card .page-support__card-title a {
  color: #017439; /* Brand primary color for guide titles */
  text-decoration: none;
}

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

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

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

.page-support__policy-card {
  text-align: center;
  background-color: #2a2a4a; /* Card background for policies in dark section */
  color: #ffffff;
}

.page-support__policy-card .page-support__card-title {
  margin-top: 0;
}

.page-support__policy-card .page-support__card-title a {
  color: #FFFF00; /* Yellow link for policy titles in dark section */
  text-decoration: none;
}

.page-support__policy-card .page-support__card-title a:hover {
  text-decoration: underline;
}

/* Commitment Section */
.page-support__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-support__commitment-item {
  background-color: #f8f9fa; /* Light background for commitment items in light section */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-support__commitment-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-support__item-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #017439;
}

.page-support__item-text {
  font-size: 1em;
  line-height: 1.6;
}

/* Final CTA Section */
.page-support__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #017439; /* Brand primary color for final CTA */
  color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 2.8em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }
  .page-support__hero-title {
    font-size: 2.2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-support__light-bg,
  .page-support__dark-bg {
    padding: 40px 0;
  }
  .page-support__container {
    padding: 0 15px;
  }

  /* Images responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__hero-image,
  .page-support__guide-image,
  .page-support__commitment-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Override fixed height for responsiveness */
  }

  /* Card and container responsiveness */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-section,
  .page-support__channels-section,
  .page-support__faq-section,
  .page-support__guides-section,
  .page-support__policies-section,
  .page-support__commitment-section,
  .page-support__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure buttons are full width and wrap */
  .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; /* Add padding to buttons themselves */
    padding-right: 15px;
  }

  .page-support__hero-cta-group,
  .page-support__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to button containers */
  }

  /* FAQ specific mobile styles */
  .page-support__faq-question {
    padding: 15px 20px;
  }
  .page-support__faq-title {
    font-size: 1.1em;
  }
  .page-support__faq-answer {
    padding: 0 20px;
  }
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 1.8em;
  }
  .page-support__section-title {
    font-size: 1.5em;
  }
  .page-support__card-title {
    font-size: 1.3em;
  }
  .page-support__faq-question {
    padding: 12px 15px;
  }
  .page-support__faq-title {
    font-size: 1em;
  }
  .page-support__faq-answer {
    padding: 0 15px;
  }
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 12px 15px;
  }
}