/* 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%);
}

.page-support {
  background-color: var(--page-support-background); /* #08160F */
  color: var(--page-support-text-main); /* #F2FFF6 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* General Section Styling */
.page-support__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-support-text-main);
  line-height: 1.2;
}

.page-support__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--page-support-text-secondary);
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background: var(--page-support-button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
  color: #ffffff; /* Contrast with green gradient */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-support__btn-secondary {
  background: var(--page-support-deep-green); /* #0A4B2C */
  color: var(--page-support-text-main); /* #F2FFF6 */
  border: 1px solid var(--page-support-border); /* #2E7A4E */
}

.page-support__btn-secondary:hover {
  background-color: var(--page-support-border); /* #2E7A4E */
  color: #ffffff;
}

.page-support__text-link {
  color: var(--page-support-glow); /* #57E38D */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-support__text-link:hover {
  color: #ffffff;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  padding: 60px 20px 80px;
  text-align: center;
  background-color: var(--page-support-background); /* #08160F */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.page-support__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-support__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Ensure content is above image if any layering occurs */
  z-index: 1;
}

.page-support__main-title {
  color: var(--page-support-gold); /* #F2C14E */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
  /* clamp for H1 font size */
  font-size: clamp(2.2em, 4vw, 3.5em);
}

.page-support__hero-description {
  color: var(--page-support-text-secondary); /* #A7D9B8 */
  font-size: 1.15em;
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-support__hero-content .page-support__btn-primary {
  margin-top: 20px;
  padding: 15px 40px;
  font-size: 1.1em;
}

/* Channels Section */
.page-support__channels-section {
  background-color: var(--page-support-background); /* #08160F */
  padding: 80px 0;
  color: var(--page-support-text-main);
}

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

.page-support__channel-card {
  background-color: var(--page-support-card-bg); /* #11271B */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-support-border); /* #2E7A4E */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-support__channel-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-support__channel-title {
  font-size: 1.8em;
  color: var(--page-support-gold); /* #F2C14E */
  margin-bottom: 15px;
}

.page-support__channel-text {
  color: var(--page-support-text-secondary); /* #A7D9B8 */
  margin-bottom: 25px;
  flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-section {
  background-color: var(--page-support-deep-green); /* #0A4B2C */
  padding: 80px 0;
  color: var(--page-support-text-main);
}

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

.page-support__faq-item {
  background-color: var(--page-support-card-bg); /* #11271B */
  border: 1px solid var(--page-support-border); /* #2E7A4E */
  border-radius: 10px;
  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: 600;
  color: var(--page-support-text-main); /* #F2FFF6 */
  cursor: pointer;
  background-color: var(--page-support-deep-green); /* #0A4B2C */
  border-bottom: 1px solid var(--page-support-divider); /* #1E3A2A */
}

.page-support__faq-question:hover {
  background-color: var(--page-support-border); /* #2E7A4E */
}

.page-support__faq-item[open] .page-support__faq-question {
  border-bottom: 1px solid transparent; /* Hide border when open */
}

.page-support__faq-qtext {
  flex-grow: 1;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  color: var(--page-support-gold); /* #F2C14E */
}

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

.page-support__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: var(--page-support-text-secondary); /* #A7D9B8 */
  line-height: 1.7;
}

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

.page-support__faq-answer a {
  color: var(--page-support-glow);
  text-decoration: underline;
}

.page-support__faq-answer a:hover {
  color: #ffffff;
}

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

.page-support__faq-item summary {
  list-style: none;
}

/* Guides Section */
.page-support__guides-section {
  background-color: var(--page-support-background); /* #08160F */
  padding: 80px 0;
  color: var(--page-support-text-main);
}

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

.page-support__guide-card {
  background-color: var(--page-support-card-bg); /* #11271B */
  border: 1px solid var(--page-support-border); /* #2E7A4E */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.page-support__guide-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-support__guide-card h3,
.page-support__guide-card p {
  padding: 0 25px;
}

.page-support__guide-title {
  font-size: 1.5em;
  color: var(--page-support-gold); /* #F2C14E */
  margin: 20px 0 10px;
}

.page-support__guide-text {
  color: var(--page-support-text-secondary); /* #A7D9B8 */
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__guide-card .page-support__btn-secondary {
  margin: 0 25px 25px;
  width: calc(100% - 50px); /* Adjust for padding */
}

/* Contact CTA Section */
.page-support__contact-cta-section {
  background-color: var(--page-support-deep-green); /* #0A4B2C */
  padding: 80px 0;
  text-align: center;
}

.page-support__contact-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__contact-cta-section .page-support__section-title {
  color: var(--page-support-gold); /* #F2C14E */
}

.page-support__contact-cta-section .page-support__section-description {
  margin-bottom: 30px;
}

.page-support__contact-cta-section .page-support__btn-primary {
  padding: 15px 40px;
  font-size: 1.1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-support__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-support__hero-content {
    max-width: 700px;
  }

  .page-support__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

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

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

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

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

  /* Image/Video/Button containers */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-section,
  .page-support__channels-section,
  .page-support__faq-section,
  .page-support__guides-section,
  .page-support__contact-cta-section,
  .page-support__hero-image-wrapper,
  .page-support__channel-card,
  .page-support__guide-card,
  .page-support__faq-item,
  .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; /* Ensure no overflow */
  }

  .page-support__hero-section,
  .page-support__channels-section,
  .page-support__faq-section,
  .page-support__guides-section,
  .page-support__contact-cta-section {
    padding: 40px 0;
  }

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

  .page-support__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-support__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-support__section-description {
    margin-bottom: 30px;
  }

  .page-support__channels-grid,
  .page-support__guides-grid {
    grid-template-columns: 1fr;
  }

  .page-support__channel-card,
  .page-support__guide-card {
    margin-bottom: 20px;
  }

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

  .page-support__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
  }

  /* Buttons mobile adaptation */
  .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;
  }

  /* Ensure multiple buttons stack or wrap */
  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-support__guide-card .page-support__btn-secondary {
    width: calc(100% - 30px); /* Adjust for 15px padding on each side */
    margin: 0 15px 15px;
  }
}

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

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