/* style/support.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-support {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for readability on dark background */
  background-color: var(--primary-color); /* Inherit from shared, which is #0A1931 */
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on desktop too */
}

.page-support a {
  color: #FFD700;
  text-decoration: none;
}

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

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
  background-color: #0A1931;
}

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

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

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

.page-support__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
}

.page-support__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Use accent color for title */
  line-height: 1.2;
}

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

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

/* Section Titles and Descriptions */
.page-support__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

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

.page-support__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-support__faq-item {
  background-color: #1a2a47; /* Slightly lighter dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: #1a2a47;
  color: #FFD700;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.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;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: #0A1931; /* Dark background for answer content */
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 30px !important;
}

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

.page-support__link-more {
  display: inline-block;
  margin-top: 10px;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-support__link-more:hover {
  text-decoration: underline;
}

/* Contact Section */
.page-support__contact-section {
  padding: 80px 0;
  background-color: #0A1931; /* Primary dark background */
  color: #ffffff;
}

.page-support__dark-section .page-support__section-title {
  color: #FFD700;
}

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

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

.page-support__contact-card {
  background-color: #1a2a47; /* Slightly lighter dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__contact-icon {
  width: 100px; /* Display size for icon, min 200x200 requested for generation */
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-support__contact-card-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-support__contact-card p {
  font-size: 1.1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Additional Resources Section */
.page-support__additional-resources {
  padding: 80px 0;
  background-color: #0A1931;
}

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

.page-support__resource-card {
  background-color: #1a2a47;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.page-support__resource-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-support__resource-card .page-support__resource-title {
  font-size: 1.5em;
  color: #FFD700;
  margin: 20px 20px 10px 20px;
  line-height: 1.3;
}

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

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

.page-support__resource-description {
  font-size: 1em;
  color: #f0f0f0;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-support__btn-link {
  display: inline-block;
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0 20px 20px 20px;
  text-align: center;
}

.page-support__btn-link:hover {
  background-color: #FFD700;
  color: #0A1931;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background-color: #FFD700;
  color: #0A1931;
  border: 2px solid #FFD700;
}

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

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

.page-support__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A1931;
}

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

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

  .page-support__contact-methods,
  .page-support__resources-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

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

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

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

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

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-support__section-title {
    font-size: 1.8em;
    padding-top: 30px;
  }

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

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

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

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

  .page-support__contact-methods,
  .page-support__resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-support__contact-icon {
    width: 80px;
    height: 80px;
  }

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

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

  .page-support__resource-card .page-support__resource-title {
    font-size: 1.3em;
    margin: 15px 15px 10px 15px;
  }

  .page-support__resource-description {
    margin: 0 15px 15px 15px;
  }

  .page-support__btn-link {
    margin: 0 15px 15px 15px;
    padding: 10px 15px;
  }

  /* Ensure all images are responsive */
  .page-support img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all video elements are responsive */
  .page-support video,
  .page-support__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video containers */
  .page-support__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* All containers with images/videos/buttons */
  .page-support__hero-section,
  .page-support__faq-section,
  .page-support__contact-section,
  .page-support__additional-resources,
  .page-support__contact-methods,
  .page-support__resources-grid,
  .page-support__contact-card,
  .page-support__resource-card,
  .page-support__hero-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Important for preventing horizontal scroll */
  }
}

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

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

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

  .page-support__contact-card-title {
    font-size: 1.3em;
  }
}