/* style/support.css */

/* Global styles for page-support scope */
.page-support {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 0; /* body handles padding-top from --header-offset */
}

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

.page-support__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-support__text-center {
  text-align: center;
}

/* 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: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Light text for primary button */
  border: none;
  margin: 10px;
}

.page-support__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(87, 227, 141, 0.4); /* Glow color */
}

.page-support__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Green text for secondary button */
  border: 2px solid #2AD16F;
  margin: 10px;
}

.page-support__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.2);
}

/* Image styling */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't spill */
}

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

.page-support__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

.page-support__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Methods Section */
.page-support__contact-methods {
  padding: 80px 0;
  background-color: #08160F;
}

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

.page-support__contact-card {
  background-color: #11271B; /* Card BG color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
  color: #F2FFF6;
}

.page-support__contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(87, 227, 141, 0.3); /* Glow color */
}

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

.page-support__card-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold for card titles */
  margin-bottom: 15px;
}

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

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

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

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

.page-support__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #11271B;
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker */
}

.page-support__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-support__faq-item summary:hover {
  background-color: rgba(42, 209, 111, 0.1);
}

.page-support__faq-qtext {
  flex-grow: 1;
  color: #F2C14E; /* Gold for question text */
}

.page-support__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #2AD16F; /* Green for toggle icon */
}

.page-support__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #A7D9B8;
  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 to show content */
  padding-top: 10px;
}

/* Guides & Resources Section */
.page-support__guides-resources {
  padding: 80px 0;
  background-color: #08160F;
}

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

.page-support__resource-card {
  background-color: #11271B; /* Card BG color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
  color: #F2FFF6;
}

.page-support__resource-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(87, 227, 141, 0.3); /* Glow color */
}

/* Security Section */
.page-support__security-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
}

/* Final CTA Section */
.page-support__final-cta-section {
  padding: 80px 0;
  background-color: #08160F;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
}

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

  .page-support__container {
    padding: 0 15px; /* Add padding for mobile */
  }

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

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

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

  /* Containers for images/content */
  .page-support__hero-section,
  .page-support__contact-methods,
  .page-support__faq-section,
  .page-support__guides-resources,
  .page-support__security-section,
  .page-support__final-cta-section,
  .page-support__contact-card,
  .page-support__resource-card,
  .page-support__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Buttons */
  .page-support__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 5px 0; /* Adjust margin for stacked buttons */
  }

  .page-support__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* body already handles header offset */
  }

  .page-support__contact-grid,
  .page-support__resources-grid {
    grid-template-columns: 1fr; /* Single column layout */
  }

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

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

@media (max-width: 480px) {
  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-support__hero-description {
    font-size: 1em;
  }
}

/* Contrast Fixes - already using specific colors that ensure contrast */
.page-support__dark-bg {
  color: #F2FFF6; /* Deep Green background with light text */
}
.page-support__light-bg {
  /* Not explicitly used for sections with light background, but defined for safety */
  color: #333333;
  background: #ffffff;
}
.page-support__medium-bg {
  /* Not explicitly used */
  color: #000000;
  background: #22C768;
}

/* Ensure link colors are readable */
.page-support__card-title a,
.page-support__resource-card a {
  color: #F2C14E; /* Gold for links in cards */
  text-decoration: none;
}
.page-support__card-title a:hover,
.page-support__resource-card a:hover {
  text-decoration: underline;
  color: #57E38D; /* Glow color on hover */
}