/* style/support.css */

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  text-align: center;
  overflow: hidden; /* Ensure no overflow from image */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure wrapper fits */
  margin-bottom: 30px; /* Space between image and text */
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-support__hero-content {
  max-width: 900px;
  width: 100%; /* Ensure it takes full width within max-width */
  z-index: 1; /* Ensure content is above any potential background layers */
}

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

.page-support__tagline {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support a[class*="button"],
.page-support a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure button minimum width */
  text-align: center;
  box-sizing: border-box; /* Include padding in width calculation */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

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

.page-support__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  background: transparent;
  color: #11A84E; /* Main brand color for text */
  border: 2px solid #11A84E; /* Border with main brand color */
}

.page-support__btn-secondary:hover {
  background: #11A84E;
  color: #ffffff;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-support__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Categories Section */
.page-support__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-support__card {
  background-color: #11271B; /* Custom card background color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Custom border color */
  display: flex; /* Ensure card content aligns */
  flex-direction: column;
  align-items: center;
}

.page-support__card:hover {
  transform: translateY(-5px);
}

.page-support__card-image {
  width: 100%;
  max-width: 400px; /* Adjust as needed for card layout */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-support__card-title {
  font-size: 1.5rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-support__card-title a {
  color: #F2FFF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support__card-title a:hover {
  color: #57E38D; /* Glow color on hover */
}

.page-support__card-text {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take available space */
}

.page-support__btn-text {
  color: #57E38D; /* Glow color for text link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom of card */
}

.page-support__btn-text:hover {
  text-decoration: underline;
  color: #2AD16F;
}

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

.page-support__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  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: #F2FFF6;
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green for question background */
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: #13994A; /* Darker green on hover */
}

.page-support__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D;
}

.page-support__faq-item[open] .page-support__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-support__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #A7D9B8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* For details tag, native open/close handles max-height */
.page-support__faq-item[open] .page-support__faq-answer {
  max-height: 1000px; /* Large enough to contain content */
  padding-top: 15px;
}

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


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

.page-support__contact-card {
  background-color: #11271B;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__contact-icon {
  width: 100%;
  max-width: 300px; /* Adjust size for contact icons */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-support__contact-title {
  font-size: 1.5rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-support__contact-text {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Resources Section */
.page-support__resources-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-support__resources-list li {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 15px 20px;
  font-size: 1.1rem;
  color: #A7D9B8;
  display: flex;
  align-items: center;
}

.page-support__resources-list li a {
  color: #57E38D;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-support__resources-list li a:hover {
  color: #2AD16F;
  text-decoration: underline;
}

.page-support__read-more-btn {
  text-align: center;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-support__container {
    padding: 30px 15px;
  }
  .page-support__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-support__tagline {
    font-size: 1rem;
  }
  .page-support__section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body already handles offset */
  }
  .page-support__container {
    padding: 20px 15px;
  }
  .page-support__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-support__tagline {
    font-size: 0.95rem;
  }
  .page-support__section-title {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  }
  .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__categories-grid,
  .page-support__contact-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile image and container responsive rules */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__hero-image-wrapper,
  .page-support__card,
  .page-support__contact-card,
  .page-support__faq-item,
  .page-support__resources-list li,
  .page-support__container,
  .page-support__categories-section,
  .page-support__faq-section,
  .page-support__contact-section,
  .page-support__resources-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-support__categories-section,
  .page-support__faq-section,
  .page-support__contact-section,
  .page-support__resources-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure minimum image sizes are applied */
.page-support img {
  min-width: 200px;
  min-height: 200px;
}

/* Text contrast fixes */
.page-support p,
.page-support li {
  color: #A7D9B8; /* Secondary text color for general content */
}

/* Specific text color for titles on dark background */
.page-support__card-title,
.page-support__contact-title,
.page-support__faq-question .page-support__faq-qtext {
  color: #F2FFF6;
}

/* Ensure any video elements also follow responsive rules */
.page-support video,
.page-support__video { /* Assuming a class for video if it were present */
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-support__video-section, /* Assuming this would wrap a video */
.page-support__video-container,
.page-support__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-support video,
  .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__video-section,
  .page-support__video-container,
  .page-support__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-support__video-section {
    padding-top: 10px !important;
  }
}