/* style/support.css */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Body background from shared.css */
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px; /* Base padding */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

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

.page-support__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #ffffff;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Slightly darker background for text */
  border-radius: 10px;
}

.page-support__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Highlighted title color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* General Section Styles */
.page-support__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-support__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #666666; /* Darker grey for intro text on light background */
}

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

.page-support__btn-primary {
  background-color: #C30808; /* Custom Register/Login color */
  color: #FFFF00; /* Custom 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 color for secondary button text */
  border: 2px solid #017439;
}

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

.page-support__btn-text {
  display: inline-block;
  color: #017439; /* Brand color for text links */
  text-decoration: underline;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-support__btn-text:hover {
  color: #005a2d;
}

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

.page-support__faq-section .page-support__section-title {
  color: #017439; /* Brand color for titles on light background */
}

.page-support__faq-section .page-support__section-intro {
  color: #333333;
}

.page-support__faq-list {
  margin-top: 40px;
}

.page-support__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #f0f0f0;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

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

.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); /* Plus sign becomes cross */
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

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

.page-support__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
  display: block;
}

/* Technical Support Section */
.page-support__technical-support {
  background-color: #017439; /* Brand color background */
  color: #ffffff; /* White text for brand color background */
  padding: 60px 0;
}

.page-support__technical-support .page-support__section-title {
  color: #ffffff;
}

.page-support__technical-support .page-support__section-intro {
  color: #f0f0f0;
}

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

.page-support__troubleshooting-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__troubleshooting-item h3 {
  font-size: 1.4em;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #FFFF00; /* Highlighted text color */
}

.page-support__troubleshooting-item p {
  color: #f0f0f0;
  flex-grow: 1;
}

.page-support__troubleshooting-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-support__troubleshooting-item .page-support__btn-text {
  color: #FFFF00; /* Highlighted text color for links */
}

.page-support__troubleshooting-item .page-support__btn-text:hover {
  color: #ffcc00;
}

/* Rules & Safety Section */
.page-support__rules-safety {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-support__rules-safety .page-support__section-title {
  color: #017439;
}

.page-support__rules-safety .page-support__section-intro {
  color: #333333;
}

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

.page-support__safety-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__safety-item h3 {
  font-size: 1.4em;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #017439;
}

.page-support__safety-item p {
  color: #555555;
  flex-grow: 1;
}

.page-support__safety-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-support__safety-item .page-support__btn-text {
  color: #017439;
}

.page-support__safety-item .page-support__btn-text:hover {
  color: #005a2d;
}

/* Contact Section */
.page-support__contact-section {
  background-color: #0a0a0a; /* Dark body background */
  color: #ffffff;
  padding: 60px 0;
}

.page-support__contact-section .page-support__section-title {
  color: #FFFF00; /* Highlighted title color */
}

.page-support__contact-section .page-support__section-intro {
  color: #f0f0f0;
}

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

.page-support__contact-method {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__contact-method h3 {
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #017439;
}

.page-support__contact-method p {
  color: #f0f0f0;
  flex-grow: 1;
}

.page-support__contact-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 15px auto;
  display: block; /* Ensure no smaller than 200px requirement applies to content images, not icons in this context */
}

.page-support__contact-method .page-support__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

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

.page-support__call-to-action {
  background-color: rgba(1, 116, 57, 0.9); /* Darker brand color */
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-support__call-to-action p {
  font-size: 1.3em;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-support__call-to-action .page-support__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
  font-size: 1.1em;
  padding: 15px 35px;
}

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

/* Media Queries for Responsiveness */
@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 {
    min-height: 450px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

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

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

  .page-support__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .page-support__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-support__troubleshooting-grid,
  .page-support__safety-grid,
  .page-support__contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__troubleshooting-item,
  .page-support__safety-item,
  .page-support__contact-method {
    padding: 20px;
  }

  /* Mobile image responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers with images/content are responsive */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-image-wrapper,
  .page-support__hero-content,
  .page-support__faq-item,
  .page-support__troubleshooting-item,
  .page-support__safety-item,
  .page-support__contact-method,
  .page-support__call-to-action {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  /* Specific overrides for padding if needed */
  .page-support__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__call-to-action p {
    font-size: 1.1em;
  }

  .page-support__call-to-action .page-support__btn-primary {
    font-size: 1em;
    padding: 12px 25px;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 1.8em;
  }

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

  .page-support__hero-section {
    min-height: 350px;
  }
}