/* style/support.css */

/* Base styles for the page-support scope */
.page-support {
  background-color: #08160F; /* Background color as per custom palette */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-support__section {
  padding: 60px 0;
  text-align: center;
}

.page-support__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
}

.page-support__section-description,
.page-support__paragraph,
.page-support__card-text,
.page-support p,
.page-support li {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 20px;
}

.page-support__sub-title,
.page-support__card-title {
  font-size: clamp(1.5em, 3vw, 2em);
  font-weight: 600;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, relying on body for header offset */
  overflow: hidden;
  text-align: center;
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-support__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-support__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 800;
  color: #F2FFF6;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-support__intro-text {
  font-size: 1.2em;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-support__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-support__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-support__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F;
  border: 2px solid #2E7A4E; /* Border color */
}

.page-support__btn-secondary:hover {
  background: #2E7A4E; /* Border color on hover */
  color: #F2FFF6;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 122, 78, 0.4);
}

.page-support__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Card Grid Layout */
.page-support__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__card-grid--three-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-support__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 350px;
}

.page-support__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block; /* Ensure it behaves as a block element */
}

.page-support__card-title {
  color: #F2FFF6; /* Main text color */
  margin-top: 0;
  flex-grow: 1; /* Allow title to take available space */
}

.page-support__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
}

.page-support__list li {
  color: #A7D9B8;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-support__list li::before {
  content: '✓';
  color: #2AD16F;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Two-column layout for content blocks */
.page-support__grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
  text-align: left;
}

.page-support__grid-two-col--reverse {
  direction: rtl; /* Reverse order for content and image */
}

.page-support__grid-two-col--reverse > * {
  direction: ltr; /* Reset text direction */
}

.page-support__image-block {
  width: 100%;
}

.page-support__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.page-support__content-block {
  padding: 20px 0;
}

/* FAQ Section */
.page-support__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-support__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  color: #F2FFF6; /* Main text color */
  font-size: 1.15em;
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: #1E3A2A; /* Divider color on hover */
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F;
  margin-left: 15px;
}

.page-support__faq-item[open] .page-support__faq-toggle {
  content: '−'; /* Minus sign when open */
}

.page-support__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8; /* Secondary text color */
  font-size: 1em;
  line-height: 1.7;
}

/* Video Section */
.page-support__video-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-support__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.page-support__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-support__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-support__grid-two-col {
    gap: 30px;
  }
}

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

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

  .page-support__section-description,
  .page-support__paragraph,
  .page-support__card-text,
  .page-support p,
  .page-support li {
    font-size: 1em;
  }

  .page-support__main-title {
    font-size: 2.5em;
  }

  .page-support__intro-text {
    font-size: 1.1em;
  }

  .page-support__cta-button {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  .page-support__button-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-support__card-grid {
    grid-template-columns: 1fr;
  }

  .page-support__grid-two-col {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
  }

  .page-support__grid-two-col--reverse {
    direction: ltr; /* Reset to default for mobile stacking */
  }

  .page-support__grid-two-col .page-support__image-block:first-child {
    order: 2; /* Image below content for reversed grid on mobile */
  }
  
  .page-support__grid-two-col .page-support__content-block:first-child {
    order: 1; /* Content above image for reversed grid on mobile */
  }

  .page-support__hero-image-wrapper {
    max-height: 300px;
  }

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

  .page-support__section,
  .page-support__card,
  .page-support__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video section mobile adjustments */
  .page-support__video-section {
    padding-top: 10px !important; /* body already has padding-top */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

  .page-support__sub-title,
  .page-support__card-title {
    font-size: 1.3em;
  }
}

/* Ensure content area images are never too small */
.page-support__getting-started .page-support__card-image,
.page-support__entertainment-products .page-support__image,
.page-support__support-safety .page-support__image {
    min-width: 200px;
    min-height: 150px; /* Maintain aspect ratio if possible, but ensure minimum size */
}

/* CSS for FAQ details/summary native behavior */
.page-support__faq-item summary::-webkit-details-marker,
.page-support__faq-item summary::marker {
  display: none;
  content: '';
}