/* style/support.css */

/* --- Base 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 is handled by shared.css */
}

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

.page-support__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* --- 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure button does not overflow */
}

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

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

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

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

/* Login/Register Specific Buttons (Overriding for contrast) */
.page-support__login-button {
  background-color: #C30808; /* Red */
  color: #FFFFFF; /* White for contrast, overriding #FFFF00 */
  border: 2px solid #C30808;
}
.page-support__login-button:hover {
  background-color: #d82c2c;
  border-color: #d82c2c;
}

.page-support__register-button {
  background-color: #C30808; /* Red */
  color: #FFFFFF; /* White for contrast, overriding #FFFF00 */
  border: 2px solid #C30808;
}
.page-support__register-button:hover {
  background-color: #d82c2c;
  border-color: #d82c2c;
}

/* --- Hero Section --- */
.page-support__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

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

.page-support__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

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

.page-support__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

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

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

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

.page-support__channel-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.page-support__channel-card:hover {
  transform: translateY(-10px);
}

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

.page-support__card-text {
  color: #cccccc;
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

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

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

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

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

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

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

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

.page-support__faq-heading {
  font-size: 1.25em;
  color: #333333;
  margin: 0;
  font-weight: 600;
}

.page-support__faq-toggle {
  font-size: 1.8em;
  color: #017439;
  font-weight: bold;
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(45deg); /* Change + to X (or similar) */
  content: "−"; /* Visually change to minus sign */
}

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

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

.page-support__faq-answer p {
  color: #555555;
  margin: 0;
  font-size: 1em;
}

/* --- Self-Help Section (Video & Articles) --- */
.page-support__self-help-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
}

.page-support__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  margin-bottom: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-support__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-support__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Make sure it's above the video for click event */
  cursor: pointer;
}

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

.page-support__article-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-support__article-card:hover {
  transform: translateY(-10px);
}

.page-support__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-support__article-title {
  font-size: 1.4em;
  color: #ffffff;
  margin: 20px 20px 10px 20px;
  font-weight: bold;
  flex-grow: 1; /* Allow title to take up available space */
}

.page-support__article-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support__article-title a:hover {
  color: #017439;
}

.page-support__article-text {
  color: #cccccc;
  font-size: 0.95em;
  margin: 0 20px 20px 20px;
}

.page-support__read-more-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  padding: 0 20px 20px 20px;
  transition: color 0.3s ease;
}

.page-support__read-more-link:hover {
  color: #02944b;
}

/* --- Commitment Section --- */
.page-support__commitment-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
  color: #333333; /* Dark text for light background */
}

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

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

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

.page-support__commitment-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__commitment-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-support__commitment-heading {
  font-size: 1.5em;
  color: #333333;
  margin-bottom: 10px;
  font-weight: bold;
}

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

/* --- Contact Form Section --- */
.page-support__contact-form-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
}

.page-support__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-support__form-input,
.page-support__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #2a2a3e;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-support__contact-form .page-support__btn-primary {
  width: auto; /* Override full width for form button */
  padding: 15px 30px;
  font-size: 1.1em;
  display: block; /* Make it block level to take full width of form max-width */
  margin: 0 auto;
}

/* --- Responsive Adjustments --- */
@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;
  }
}

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

  .page-support__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

  .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-section,
  .page-support__faq-section,
  .page-support__self-help-section,
  .page-support__commitment-section,
  .page-support__contact-form-section {
    padding: 60px 0;
  }

  .page-support__container {
    padding: 0 15px;
  }

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

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

  .page-support__channel-card,
  .page-support__article-card,
  .page-support__commitment-item,
  .page-support__contact-form {
    padding: 25px;
  }

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

  .page-support__faq-question {
    padding: 18px 20px;
  }

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

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

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

  /* Mobile specific image, video, button container rules */
  .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__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,
  .page-support__contact-form-section { /* Added form section for mobile padding */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Specific rule for the video wrapper's padding-bottom to maintain aspect ratio */
  .page-support__video-wrapper {
    padding-bottom: 56.25% !important; /* Re-apply aspect ratio */
  }

  .page-support__contact-form .page-support__btn-primary {
    width: 100%;
  }
}