/* style/support.css */

/* Custom Colors */
:root {
  --page-support-card-bg: #11271B;
  --page-support-background: #08160F;
  --page-support-text-main: #F2FFF6;
  --page-support-text-secondary: #A7D9B8;
  --page-support-border: #2E7A4E;
  --page-support-glow: #57E38D;
  --page-support-gold: #F2C14E;
  --page-support-divider: #1E3A2A;
  --page-support-deep-green: #0A4B2C;
  --page-support-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-support {
  color: var(--page-support-text-main); /* Default text color for dark background */
  background-color: var(--page-support-background); /* Ensure consistency */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px;
}

.page-support__section {
  padding: 60px 0;
  position: relative;
}

.page-support__dark-bg {
  background-color: var(--page-support-background);
  color: var(--page-support-text-main);
}

.page-support__card-bg {
  background-color: var(--page-support-card-bg);
  color: var(--page-support-text-main);
}

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

.page-support__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  color: var(--page-support-gold);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-support__text {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--page-support-text-secondary);
}

.page-support__highlight {
  color: var(--page-support-glow);
  font-weight: bold;
}

.page-support__inline-link {
  color: var(--page-support-glow);
  text-decoration: none;
}

.page-support__inline-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 80px 20px; /* Small top padding, larger bottom */
  overflow: hidden;
  min-height: 500px;
}

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

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

.page-support__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-support__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--page-support-gold);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-support__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--page-support-text-main);
  margin-bottom: 30px;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-support__btn-primary {
  background: var(--page-support-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
}

.page-support__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  background-color: transparent;
  color: var(--page-support-glow);
  border: 2px solid var(--page-support-glow);
  margin-left: 20px;
}

.page-support__btn-secondary:hover {
  background-color: var(--page-support-glow);
  color: var(--page-support-background);
  transform: translateY(-2px);
}

.page-support__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  display: block;
}

/* Grid Layouts */
.page-support__grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

/* Cards */
.page-support__card {
  background-color: var(--page-support-deep-green);
  border: 1px solid var(--page-support-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--page-support-text-main);
}

.page-support__card-title {
  font-size: 1.5rem;
  color: var(--page-support-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__card-text {
  font-size: 1rem;
  color: var(--page-support-text-secondary);
}

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

.page-support__card-link {
  color: var(--page-support-gold);
  text-decoration: none;
}

.page-support__card-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-support__faq-list {
  margin-top: 40px;
}

.page-support__faq-item {
  background-color: var(--page-support-deep-green);
  border: 1px solid var(--page-support-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--page-support-text-main);
  cursor: pointer;
  background-color: var(--page-support-deep-green);
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

.page-support__faq-question::-webkit-details-marker {
  display: none; /* Hide Webkit details marker */
}

.page-support__faq-question:hover {
  background-color: var(--page-support-divider);
}

.page-support__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--page-support-glow);
  margin-left: 15px;
}

.page-support__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--page-support-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.page-support__faq-item[open] .page-support__faq-answer {
  max-height: 1000px; /* Sufficiently large value for content */
}

/* For JS fallback if not using <details> (though <details> is preferred) */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px; /* For JS controlled expansion */
}

/* Resources Section CTA Buttons */
.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* Security Section */
.page-support__security-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
}

/* Contact CTA Section */
.page-support__contact-cta {
  text-align: center;
  padding: 80px 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-support__hero-content {
    padding: 15px;
  }

  .page-support__btn-secondary {
    margin-left: 0;
    margin-top: 15px; /* Stack buttons on smaller screens */
  }

  .page-support__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .page-support__section {
    padding: 40px 0;
  }

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

  .page-support__section-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .page-support__text {
    font-size: 1rem;
    margin-bottom: 30px;
  }

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

  .page-support__description {
    font-size: 0.95rem;
  }

  /* Force responsive for all images */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all videos (if any) */
  .page-support video,
  .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video/Image/Button Containers */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-section,
  .page-support__video-section,
  .page-support__video-container,
  .page-support__video-wrapper,
  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons specific mobile styles */
  .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;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 15px; /* Add vertical spacing for stacked buttons */
  }

  .page-support__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Ensure consistent gap for stacked buttons */
  }

  /* FAQ specific mobile styles */
  .page-support__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-support__faq-answer {
    padding: 0 15px 15px 15px;
  }
  
  /* Hero section top padding */
  .page-support__hero-section {
    padding-top: 10px !important;
  }
}

/* Ensure content area images are never too small */
.page-support img:not(.page-support__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* No filter on images */
.page-support img {
  filter: none; /* Remove any default filters */
}

/* Special filter for hero image for readability (allowed as it's not changing original color but darkening) */
.page-support__hero-image {
  filter: brightness(0.4);
}