/* style/support.css */
/* Base styles for the support page */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8; /* Light background for the main content area */
}

/* 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-color: #017439; /* Dark background for hero section */
  color: #ffffff; /* Light text for dark background */
  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;
  width: 100%;
}

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

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

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

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

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

.page-support__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  color: #017439; /* Brand color for titles */
}

.page-support__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Color contrast based sections */
.page-support__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

/* CTA Button Styles */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background: #C30808; /* Red for primary action, e.g., register/contact */
  color: #FFFF00; /* Yellow for text, as per custom color rules */
  border: 2px solid transparent;
}

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

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

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

/* Channel Grid Section */
.page-support__channels-section .page-support__section-title {
  color: #ffffff;
}

.page-support__channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-support__channel-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-support__channel-item img {
  width: 100%;
  max-width: 250px; /* Adjust max-width to ensure it's not too large but still >200px */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  display: block;
  object-fit: cover;
}

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

.page-support__channel-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Make description take up available space */
}

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

.page-support__topic-item {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-support__topic-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #017439;
}

.page-support__topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-support__topic-list li {
  margin-bottom: 8px;
  font-size: 1em;
  color: #555555;
  position: relative;
  padding-left: 20px;
}

.page-support__topic-list li::before {
  content: '✓';
  color: #017439;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* FAQ Section */
.page-support__faq-section {
  text-align: center;
}

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

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

.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 20px; /* Adjusted padding for consistency */
  opacity: 0;
  color: #555555;
  background: #f9f9f9;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px !important; /* Adjusted padding for consistency */
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

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

.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: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none;
}

.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #017439; /* Brand color for toggle icon */
  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: 28px;
  height: 28px;
}

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


/* Commitment Section */
.page-support__commitment-section .page-support__section-title {
  color: #ffffff;
}
.page-support__commitment-section .page-support__text-block {
  color: #f0f0f0;
}

/* Responsive Design */
@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: 2em;
  }

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

  .page-support__hero-image img {
    border-radius: 4px;
  }

  .page-support__cta-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;
    padding-right: 15px;
    margin-top: 15px; /* Adjust margin for stacked buttons */
  }

  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }
  
  .page-support__section {
    padding: 40px 15px;
  }

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

  .page-support__text-block {
    font-size: 0.95em;
  }

  .page-support__channel-grid,
  .page-support__topic-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__channel-item,
  .page-support__topic-item {
    padding: 20px;
  }

  .page-support__channel-item img {
     /* Ensure images are still >200px if possible, but fit screen */
    width: 100%;
    height: auto;
  }

  .page-support__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-support__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-support__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-support__faq-answer {
    padding: 0 15px;
  }
  
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all content area images are responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__channel-item,
  .page-support__topic-item,
  .page-support__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}