/* style/support.css */

/* --- General Styles --- */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-support__section-title {
  font-size: 2.5em;
  color: #ffffff; /* For dark sections, overridden for light sections */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-support__section-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Slightly lighter for descriptions */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.page-support__hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* Adjust height as needed */
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

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

.page-support__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: -1;
}

.page-support__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-support__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

/* --- Buttons --- */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-small {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-support__btn-primary {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

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

.page-support__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

.page-support__btn-register {
  background-color: #C30808; /* Custom Register color */
  border-color: #C30808;
  color: #FFFF00; /* Custom Register font color */
}

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

.page-support__btn-login {
  background-color: #C30808; /* Custom Login color */
  border-color: #C30808;
  color: #FFFF00; /* Custom Login font color */
}

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

.page-support__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #017439;
  color: #ffffff;
  border: 1px solid #017439;
  margin-top: 15px;
}

.page-support__btn-small:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* --- Channels Section --- */
.page-support__channels-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for this section */
}

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

.page-support__channel-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

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

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

.page-support__channel-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take available space */
}

/* --- FAQ Section --- */
.page-support__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for this section */
}

.page-support__faq-section .page-support__section-title {
  color: #333333; /* Dark text for light background */
}

.page-support__faq-section .page-support__section-description {
  color: #555555; /* Dark text for light background */
}

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

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

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #eee;
  border-bottom: 1px solid #ddd;
}

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

.page-support__faq-heading {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
  flex-grow: 1;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  background-color: #fff;
}

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

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

/* --- Contact Form Section --- */
.page-support__contact-form-section {
  padding: 80px 0;
  background-color: #017439; /* Main brand color background */
}

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

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

.page-support__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-support__form-group {
  margin-bottom: 20px;
}

.page-support__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffffff;
}

.page-support__form-input,
.page-support__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #005a2e;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-support__form-input::placeholder,
.page-support__form-textarea::placeholder {
  color: #cccccc;
}

.page-support__form-input:focus,
.page-support__form-textarea:focus {
  outline: none;
  border-color: #f0f0f0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.page-support__form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Safety Section --- */
.page-support__safety-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
}

.page-support__safety-section .page-support__section-title {
  color: #333333;
}

.page-support__safety-section .page-support__section-description {
  color: #555555;
}

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

.page-support__safety-item {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__safety-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

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

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

/* --- CTA Section --- */
.page-support__cta-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  text-align: center;
}

.page-support__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 3em;
  }
  .page-support__hero-description {
    font-size: 1.2em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-support__hero-content {
    padding: 15px;
  }

  .page-support__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-support__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

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

  .page-support__channels-section,
  .page-support__faq-section,
  .page-support__contact-form-section,
  .page-support__safety-section,
  .page-support__cta-section {
    padding: 40px 0;
  }

  .page-support__container {
    padding: 0 15px !important; /* Ensure padding on mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-support__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

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

  .page-support__channel-title,
  .page-support__safety-title {
    font-size: 1.5em;
  }

  .page-support__channel-text,
  .page-support__safety-text {
    font-size: 0.9em;
  }

  .page-support__faq-question {
    padding: 15px;
  }

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

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

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

  /* Image and Video responsiveness */
  .page-support img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support video,
  .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support__video-section,
  .page-support__video-container,
  .page-support__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Ensure all images in content area are >= 200px wide */
.page-support img:not(.page-support__hero-image) {
  min-width: 200px;
  min-height: 200px;
}
@media (max-width: 768px) {
  .page-support img:not(.page-support__hero-image) {
    min-width: unset;
    min-height: unset;
  }
}

/* Global Dark/Light Background Contrast Handling */
.page-support__dark-section {
  background-color: #1a1a1a; /* Body background color */
  color: #ffffff;
}

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

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

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

.page-support__light-bg .page-support__section-title,
.page-support__light-bg .page-support__faq-heading,
.page-support__light-bg .page-support__safety-title {
  color: #333333;
}

.page-support__light-bg .page-support__section-description,
.page-support__light-bg .page-support__faq-answer p,
.page-support__light-bg .page-support__safety-text {
  color: #555555;
}

/* Contact form section uses brand color, so text is white */
.page-support__contact-form-section {
  background-color: #017439;
  color: #ffffff;
}
.page-support__contact-form-section .page-support__section-title,
.page-support__contact-form-section .page-support__form-label {
  color: #ffffff;
}
.page-support__contact-form-section .page-support__section-description {
  color: #f0f0f0;
}