/* style/support.css */

/* --- General Styles for .page-support --- */
.page-support {
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background, #08160F); /* Ensure consistency with body 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;
}

.page-support__section-title,
.page-support__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-main, #F2FFF6);
  line-height: 1.2;
}

.page-support__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary, #A7D9B8);
}

.page-support__cta-button {
  display: block;
  width: fit-content;
  margin: 30px auto 0 auto;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-support__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-support__card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border, #2E7A4E);
}

/* --- Hero Section --- */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small padding, body takes care of header offset */
  background-color: var(--background, #08160F);
  overflow: hidden;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 70vh; /* Limit height for hero image */
}

.page-support__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  box-sizing: border-box;
}

.page-support__hero-content .page-support__main-title {
  margin-bottom: 20px;
}

.page-support__hero-content .page-support__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
}

/* --- About Support Section --- */
.page-support__about-support .page-support__text-block {
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
}

/* --- Channels Section --- */
.page-support__channels {
  background-color: var(--deep-green, #0A4B2C);
}

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

.page-support__channel-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-support__channel-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-support__channel-description {
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes button to bottom */
}

.page-support__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffffff;
  color: var(--primary-color, #11A84E);
  border: 2px solid var(--primary-color, #11A84E);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-support__btn-secondary:hover {
  background-color: var(--primary-color, #11A84E);
  color: #ffffff;
}

/* --- FAQ Section --- */
.page-support__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-support__faq-item {
  position: relative;
  overflow: hidden;
}

.page-support__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: var(--text-main, #F2FFF6);
  outline: none;
}

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

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-support__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold, #F2C14E);
}

.page-support__faq-answer {
  padding: 0 20px 15px 20px;
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  text-align: left;
}

.page-support__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
}

.page-support__faq-answer a {
  color: var(--primary-color, #11A84E);
  text-decoration: underline;
}

/* --- Guides Section --- */
.page-support__guides {
  background-color: var(--divider, #1E3A2A);
}

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

.page-support__guide-item {
  text-align: center;
}

.page-support__guide-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-support__guide-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-support__guide-title a {
  color: var(--text-main, #F2FFF6);
  text-decoration: none;
}

.page-support__guide-title a:hover {
  color: var(--gold, #F2C14E);
}

.page-support__guide-description {
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
}

/* --- Commitment Section --- */
.page-support__commitment {
  text-align: center;
}

.page-support__commitment .page-support__text-block {
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
}

.page-support__cta-button--bottom {
  margin-top: 40px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-support__hero-image {
    max-height: 60vh;
  }
}

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

  .page-support__section-title,
  .page-support__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 20px;
  }

  .page-support__text-block,
  .page-support__intro-text {
    font-size: 15px;
    text-align: left; /* Adjust for better mobile readability */
  }

  .page-support__cta-button {
    width: 100% !important;
    max-width: 300px !important; /* Max width for button */
    padding: 12px 20px;
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__hero-image {
    max-height: 40vh;
  }

  .page-support__hero-content {
    padding: 30px 15px;
  }

  .page-support__channel-grid,
  .page-support__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__channel-icon,
  .page-support__guide-image {
    max-width: 100%;
    height: auto; /* Allow height to adjust */
  }

  .page-support__faq-item summary {
    padding: 12px 15px;
    font-size: 16px;
  }

  .page-support__faq-answer {
    padding: 0 15px 12px 15px;
    font-size: 14px;
  }

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

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

  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__channel-item,
  .page-support__guide-item,
  .page-support__hero-section,
  .page-support__faq-list,
  .page-support__faq-item,
  .page-support__channel-grid,
  .page-support__guide-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-support__video-section { /* If video section exists */
    padding-top: 10px !important;
  }

  .page-support__cta-buttons, /* For multiple 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;
  }
  .page-support__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}