/* style/support.css */

/* Base styles for the support page */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

/* Section styling */
.page-support__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-support__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #017439; /* Brand color for titles */
  font-weight: bold;
}

.page-support__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure content stacks vertically */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as per requirement */
  overflow: hidden; /* Prevent image overflow */
}

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

.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__main-title {
  color: #FFFFFF; /* White titles on dark background */
}

.page-support__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Match container width for image */
  margin-bottom: 30px; /* Space between image and text */
  text-align: center; /* Center image if smaller than wrapper */
}

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

.page-support__hero-content {
  max-width: 800px;
  text-align: center;
}

.page-support__main-title {
  /* H1 font-size not hardcoded, use weight/line-height/color for hierarchy */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF; /* White text on dark hero */
}

.page-support__description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #F0F0F0; /* Slightly off-white for description on dark background */
}

.page-support__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 600px; /* Limit button group width */
  margin-left: auto;
  margin-right: auto;
}

/* Button styles */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-support__btn-primary {
  background-color: #C30808; /* Red for primary action */
  color: #FFFF00; /* Yellow text for primary button */
  border: 2px solid #C30808;
}

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

.page-support__btn-secondary {
  background-color: #017439; /* Main brand color for secondary action */
  color: #FFFFFF; /* White text for secondary button */
  border: 2px solid #017439;
}

.page-support__btn-secondary:hover {
  background-color: #005C2D;
  border-color: #005C2D;
}

/* FAQ Section */
.page-support__faq-section {
  background-color: #F5F5F5; /* Light grey background for contrast */
  color: #333333;
  padding: 60px 0;
}

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

.page-support__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-support__faq-item.active {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #F9F9F9;
  border-bottom: 1px solid #E0E0E0;
}

.page-support__faq-item.active .page-support__faq-question {
  border-bottom: none;
}

.page-support__faq-question:hover {
  background-color: #F0F0F0;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
}

.page-support__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 20px 25px;
}

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

.page-support__link-text {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-support__link-text:hover {
  color: #005C2D;
}

/* Contact Options Section */
.page-support__contact-options {
  background-color: #017439;
  color: #FFFFFF;
  padding: 60px 0;
}

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

.page-support__option-card {
  background-color: #FFFFFF;
  color: #333333;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-support__option-icon {
  width: 200px; /* Min size 200x200px */
  height: 200px; /* Min size 200x200px */
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-support__option-text {
  font-size: 1.05em;
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

/* Resources Section */
.page-support__resources-section {
  background-color: #F5F5F5;
  color: #333333;
  padding: 60px 0;
}

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

.page-support__resource-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
}

.page-support__resource-card:hover {
  transform: translateY(-5px);
}

.page-support__resource-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency, will be adjusted by object-fit */
  object-fit: cover;
  display: block;
}

.page-support__resource-content {
  padding: 20px;
}

.page-support__resource-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-support__resource-title a:hover {
  text-decoration: underline;
  color: #005C2D;
}

.page-support__resource-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

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

  .page-support__main-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

  .page-support__main-title {
    font-size: 2em;
  }

  .page-support__description {
    font-size: 1em;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to button container on mobile */
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

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

  .page-support__section-description {
    font-size: 0.95em;
  }

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

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

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

  .page-support__options-grid,
  .page-support__resource-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px; /* Add padding to grids on mobile */
  }

  .page-support__option-card,
  .page-support__resource-card {
    padding: 20px;
  }

  .page-support__option-icon {
    width: 200px; /* Keep min size 200x200px */
    height: 200px;
  }

  .page-support__option-title {
    font-size: 1.5em;
  }

  .page-support__resource-image {
    height: 180px;
  }

  .page-support__resource-title {
    font-size: 1.2em;
  }

  /* Image responsive rules for content area */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containing elements for images and content */
  .page-support__hero-section,
  .page-support__faq-section,
  .page-support__contact-options,
  .page-support__resources-section,
  .page-support__container,
  .page-support__faq-list,
  .page-support__options-grid,
  .page-support__resource-grid,
  .page-support__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

/* Ensure images don't have filter property */
.page-support img {
  filter: none;
}