.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

.page-support__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF; /* White text for dark background */
}

.page-support__light-bg {
  background-color: #FFFFFF; /* White background */
  color: #333333; /* Dark text for light background */
}

.page-support__medium-bg {
  background-color: #f5f5f5; /* Light grey background */
  color: #333333; /* Dark text for light background */
}

.page-support__section-title {
  font-size: 2.5em;
  color: inherit; /* Inherit from parent section */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-support__btn-primary {
  display: inline-block;
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF; /* White text */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.page-support__btn-primary:hover {
  background-color: #005a2c;
}

.page-support__btn-secondary {
  display: inline-block;
  background-color: #FFFFFF; /* White background */
  color: #017439; /* Brand primary color text */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #017439;
  box-sizing: border-box;
}

.page-support__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2c;
}

.page-support__btn-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-support__btn-link:hover {
  color: #005a2c;
  text-decoration: underline;
}

.page-support__card {
  background: #ffffff; /* Default white background for cards */
  color: #333333; /* Dark text for cards */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  box-sizing: border-box;
}

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

/* Hero Section */
.page-support__hero-section {
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  text-align: left;
}

.page-support__hero-section .page-support__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-support__hero-content {
  flex: 1;
  min-width: 300px;
}

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

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

.page-support__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-support__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-support__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Channels Section */
.page-support__channels-section {
  padding: 80px 0;
}

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

.page-support__channel-icon {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-support__channel-text {
  font-size: 1em;
  color: #555555;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
}

.page-support__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-support__faq-item {
  padding: 20px 30px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  user-select: none; /* Prevent text selection on click */
}

.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; /* Hidden by default */
  overflow: hidden;
  padding: 0 15px; /* Adjust padding to match content */
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  color: #555555;
  margin-top: 10px; /* Space between question and answer */
}

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

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

.page-support__faq-cta {
  margin-top: 40px;
  text-align: center;
}

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

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

.page-support__guide-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-support__guide-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

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

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

.page-support__guide-text {
  font-size: 1em;
  color: #555555;
}

.page-support__guides-cta {
  margin-top: 40px;
  text-align: center;
}

/* Policies Section */
.page-support__policies-section {
  padding: 80px 0;
  text-align: center;
}

.page-support__policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__policy-card {
  text-decoration: none;
  color: inherit;
  display: block; /* Make the whole card clickable */
}

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

.page-support__policy-card.page-support__card {
  background-color: #FFFFFF;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.page-support__policy-card.page-support__card:hover {
  background-color: #f9f9f9;
  transform: translateY(-3px);
}

/* Commitment Section */
.page-support__commitment-section {
  padding: 80px 0;
}

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

.page-support__commitment-icon {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-support__commitment-text {
  font-size: 1em;
  color: #555555;
}

/* CTA Section */
.page-support__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-support__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-support__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

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

.page-support__btn-register {
  background-color: #C30808; /* Custom red for register */
  color: #FFFF00; /* Custom yellow for register text */
  border-color: #C30808;
}

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

.page-support__btn-login {
  background-color: #C30808; /* Custom red for login */
  color: #FFFF00; /* Custom yellow for login text */
  border-color: #C30808;
}

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

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

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-support__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Fixed header offset for mobile hero */
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }

  .page-support__hero-section .page-support__container {
    flex-direction: column;
    text-align: center;
  }

  .page-support__hero-content {
    min-width: unset;
  }

  .page-support__hero-image-wrapper {
    min-width: unset;
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  .page-support__hero-title {
    font-size: 2.2em;
  }

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

  .page-support__hero-buttons,
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .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;
  }

  .page-support__channels-grid,
  .page-support__guides-grid,
  .page-support__policies-grid,
  .page-support__commitment-grid {
    grid-template-columns: 1fr;
  }

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

  .page-support__section-description {
    margin-bottom: 30px;
  }

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

  .page-support__faq-question {
    font-size: 1.1em;
  }

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

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

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

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

  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__video-section,
  .page-support__video-container,
  .page-support__video-wrapper,
  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  /* Specific padding for sections on mobile to prevent overflow */
  .page-support__channels-section .page-support__container,
  .page-support__faq-section .page-support__container,
  .page-support__guides-section .page-support__container,
  .page-support__policies-section .page-support__container,
  .page-support__commitment-section .page-support__container,
  .page-support__cta-section .page-support__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 1.8em;
  }
  .page-support__section-title {
    font-size: 1.6em;
  }
  .page-support__cta-title {
    font-size: 1.6em;
  }
  .page-support__hero-buttons,
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    font-size: 0.9em;
    padding: 10px 20px;
  }
}