/* style/support.css */
/* Base styles for the page-support scope */
.page-support {
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --bg-primary: #08160F; /* Background */
  --bg-card: #11271B; /* Card BG */
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;

  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--bg-primary); /* Page background */
  line-height: 1.6;
  font-size: 16px;
}

/* Section common styles */
.page-support__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden; /* Prevent content overflow for sections */
}

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

.page-support__section-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-support__section-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area */
}

.page-support__hero-content {
  max-width: 900px;
  text-align: center;
  padding-bottom: 60px;
}

.page-support__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.3em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-support__btn-primary {
  background: var(--btn-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
}

.page-support__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
  background: transparent;
  color: var(--glow-color); /* Using glow color for secondary button text */
  border: 2px solid var(--glow-color);
}

.page-support__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--bg-primary); /* Dark text on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-support__btn-text {
  background: none;
  border: none;
  color: var(--glow-color);
  padding: 5px 10px;
  text-decoration: underline;
}

.page-support__btn-text:hover {
  color: var(--gold-color);
}

/* Image content styles */
.page-support__image-content {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 40px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

/* FAQ Section */
.page-support__faq-section {
  background-color: var(--bg-card); /* Card BG for FAQ section */
}

.page-support__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-support__faq-item {
  background-color: var(--bg-primary); /* Primary BG for individual FAQ item */
  border: 1px solid var(--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;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-support__faq-item[open] > .page-support__faq-question {
  background-color: var(--deep-green);
}

.page-support__faq-question::-webkit-details-marker {
  display: none;
}
.page-support__faq-question::marker {
  display: none;
}

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

.page-support__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: left;
}

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

.page-support__faq-answer .page-support__btn-text {
  margin-top: 10px;
  display: inline-block;
}

/* Guide Section */
.page-support__guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px; /* Ensure cards have some height */
}

.page-support__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-support__card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow paragraph to take available space */
}

/* Contact Section */
.page-support__contact-section {
  background-color: var(--deep-green);
}

.page-support__contact-container {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-support__contact-content {
  flex: 1;
}

.page-support__contact-methods {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-support__contact-methods li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--text-secondary);
}

.page-support__contact-methods strong {
  color: var(--text-main);
}

.page-support__email-link {
  color: var(--glow-color);
  text-decoration: underline;
}

.page-support__email-link:hover {
  color: var(--gold-color);
}

.page-support__contact-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Security Section */
.page-support__security-section {
  background-color: var(--bg-primary);
}

.page-support__security-container {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-support__security-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-support__security-content {
  flex: 1;
}

.page-support__security-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-support__security-features li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--text-secondary);
  position: relative;
  padding-left: 25px;
}

.page-support__security-features li::before {
  content: '✓';
  color: var(--glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Blog/News Section */
.page-support__blog-news-section {
  background-color: var(--bg-card);
}

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

.page-support__blog-card {
  text-align: left;
  border: 1px solid var(--divider-color);
}

.page-support__blog-card .page-support__card-title {
  margin-bottom: 10px;
}

.page-support__blog-card .page-support__card-title a {
  color: var(--text-main);
  text-decoration: none;
}

.page-support__blog-card .page-support__card-title a:hover {
  color: var(--glow-color);
}

.page-support__card-date {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-support__cta-full-width {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* Final CTA Section */
.page-support__cta-final-section {
  background-color: var(--bg-primary);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-support__section-title {
    font-size: 2.5em;
  }
  .page-support__hero-description {
    font-size: 1.1em;
  }
  .page-support__contact-container,
  .page-support__security-container {
    flex-direction: column;
    text-align: center;
  }
  .page-support__contact-image-wrapper,
  .page-support__security-image-wrapper {
    order: -1; /* Image above text on mobile */
  }
  .page-support__security-features li {
    text-align: left;
    padding-left: 0;
  }
  .page-support__security-features li::before {
    left: -25px; /* Adjust checkmark position */
  }
}

@media (max-width: 768px) {
  .page-support__section {
    padding: 40px 10px;
  }
  .page-support__container {
    padding: 0 15px !important; /* Force padding for mobile */
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__section-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-support__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-support__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__cta-buttons {
    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__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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Image responsiveness */
  .page-support img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__hero-image-wrapper,
  .page-support__contact-image-wrapper,
  .page-support__security-image-wrapper,
  .page-support__image-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-left: auto;
    margin-right: auto;
  }
  .page-support__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-support__faq-answer {
    font-size: 1em;
    padding: 0 20px 15px;
  }
  .page-support__guide-cards,
  .page-support__blog-cards {
    grid-template-columns: 1fr;
  }
  .page-support__card {
    padding: 20px;
  }
  .page-support__cta-full-width {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }
}

/* Ensure content area images are not smaller than 200px */
.page-support img:not(.page-support__hero-image) {
  min-width: 200px;
  min-height: 200px;
}
.page-support__image-content {
  min-width: 200px;
  min-height: 200px;
}
.page-support__card img {
  min-width: 200px;
  min-height: 200px;
}