/* style/support.css */

/* Base styles for the page content */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--page-background-color, #FFFFFF); /* Inherit from shared, default to white */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

/* Sections */
.page-support__hero-section,
.page-support__channels-section,
.page-support__self-help-section,
.page-support__troubleshooting-section,
.page-support__commitment-section,
.page-support__cta-section {
  padding: 60px 20px;
  text-align: center;
}

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

/* Dark background sections */
.page-support__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__section-description,
.page-support__dark-section .page-support__card-title,
.page-support__dark-section .page-support__card-text,
.page-support__dark-section .page-support__faq-question,
.page-support__dark-section .page-support__faq-answer p,
.page-support__dark-section .page-support__faq-answer a,
.page-support__dark-section .page-support__resource-list li,
.page-support__dark-section .page-support__resource-list li a,
.page-support__dark-section .page-support__commitment-item h3,
.page-support__dark-section .page-support__commitment-item p {
  color: #ffffff;
}

.page-support__dark-section .page-support__text-link {
  color: #FFFF00;
}

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

/* Titles and descriptions */
.page-support__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-support__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #ffffff;
}

.page-support__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #017439;
}

.page-support__dark-section .page-support__section-title {
  color: #ffffff;
}

.page-support__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #555555;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-support__btn-primary {
  background-color: #C30808; /* Custom color for register/login type actions */
  color: #FFFF00; /* Custom 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__text-link,
.page-support__btn-text-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-support__dark-section .page-support__text-link,
.page-support__dark-section .page-support__btn-text-link {
  color: #FFFF00;
}

.page-support__text-link:hover,
.page-support__btn-text-link:hover {
  color: #004d27;
}

/* Hero Section */
.page-support__hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

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

.page-support__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-support__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-support__channel-card,
.page-support__issue-card,
.page-support__commitment-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 400px; /* Ensure cards have similar height */
}

.page-support__dark-section .page-support__channel-card,
.page-support__dark-section .page-support__issue-card,
.page-support__dark-section .page-support__commitment-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__channel-icon,
.page-support__issue-icon,
.page-support__commitment-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-support__dark-section .page-support__card-title,
.page-support__dark-section .page-support__item-title {
  color: #ffffff;
}

.page-support__card-text,
.page-support__item-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__dark-section .page-support__card-text,
.page-support__dark-section .page-support__item-text {
  color: #f0f0f0;
}

/* FAQ Section */
.page-support__faq-wrapper {
  margin-top: 50px;
  text-align: left;
}

.page-support__faq-main-title,
.page-support__resources-main-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ffffff;
  text-align: center;
}

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

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

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

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

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(45deg);
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
  text-align: left;
}

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

.page-support__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-support__faq-answer a {
  color: #FFFF00;
  text-decoration: underline;
}

/* Resources Section */
.page-support__resources-wrapper {
  margin-top: 60px;
  text-align: left;
}

.page-support__resources-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #f0f0f0;
  text-align: center;
}

.page-support__resource-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-support__resource-list li {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 1em;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-support__resource-list li a {
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
}

.page-support__resource-list li a:hover {
  text-decoration: underline;
}

/* Troubleshooting Section */
.page-support__issue-list {
  list-style: none;
  padding: 0;
  text-align: left;
  color: #555555;
}

.page-support__dark-section .page-support__issue-list {
  color: #f0f0f0;
}

.page-support__issue-list li {
  margin-bottom: 10px;
  font-size: 0.95em;
}

.page-support__issue-list strong {
  color: #017439;
}

.page-support__dark-section .page-support__issue-list strong {
  color: #FFFF00;
}

/* CTA Section */
.page-support__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Global image responsiveness */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: 2.5em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__intro-text,
  .page-support__section-description,
  .page-support__resources-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile content is below fixed header */
  }

  .page-support__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }

  .page-support__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-support__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-support__section-description,
  .page-support__resources-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-support__channels-section,
  .page-support__self-help-section,
  .page-support__troubleshooting-section,
  .page-support__commitment-section,
  .page-support__cta-section {
    padding: 40px 15px;
  }

  .page-support__channel-card,
  .page-support__issue-card,
  .page-support__commitment-item {
    padding: 25px;
    min-height: auto;
  }

  .page-support__channel-icon,
  .page-support__issue-icon,
  .page-support__commitment-icon {
    max-width: 200px;
  }

  .page-support__card-title,
  .page-support__item-title {
    font-size: 1.3em;
  }

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

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

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

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Adjust for fixed header */
  }
}

@media (max-width: 480px) {
  .page-support__main-title {
    font-size: 1.8em;
  }
  .page-support__section-title {
    font-size: 1.6em;
  }
  .page-support__hero-section {
    min-height: 350px;
  }
  .page-support__channels-grid,
  .page-support__troubleshooting-grid,
  .page-support__commitment-grid {
    grid-template-columns: 1fr;
  }
}