/* style/support.css */
/* Custom Colors */
:root {
  --rich88-primary: #11A84E;
  --rich88-secondary: #22C768;
  --rich88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --rich88-card-bg: #11271B;
  --rich88-background: #08160F;
  --rich88-text-main: #F2FFF6;
  --rich88-text-secondary: #A7D9B8;
  --rich88-border: #2E7A4E;
  --rich88-glow: #57E38D;
  --rich88-gold: #F2C14E;
  --rich88-divider: #1E3A2A;
  --rich88-deep-green: #0A4B2C;
}

/* Base styles for the support page */
.page-support {
  background-color: var(--rich88-background); /* Body background from shared.css, this is for page content */
  color: var(--rich88-text-main);
  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__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small decorative top padding */
  padding-bottom: 60px;
  background-color: var(--rich88-deep-green);
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-support__hero-content-wrapper {
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1;
  position: relative;
}

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

.page-support__description {
  font-size: 1.15rem;
  color: var(--rich88-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

.page-support__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-support__btn-secondary {
  background: transparent;
  color: var(--rich88-secondary);
  border: 2px solid var(--rich88-secondary);
}

.page-support__btn-secondary:hover {
  background-color: var(--rich88-secondary);
  color: var(--rich88-background);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-support__introduction-section,
.page-support__channels-section,
.page-support__faq-section,
.page-support__resources-section,
.page-support__commitment-section,
.page-support__tips-section,
.page-support__final-cta-section {
  padding: 60px 0;
}

.page-support__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--rich88-text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-support__text-block {
  font-size: 1rem;
  color: var(--rich88-text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.page-support__dark-section {
  background-color: var(--rich88-deep-green);
}

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

.page-support__channel-card,
.page-support__resource-card {
  background-color: var(--rich88-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: var(--rich88-text-main);
}

.page-support__channel-card:hover,
.page-support__resource-card:hover {
  transform: translateY(-5px);
}

.page-support__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

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

.page-support__card-text {
  font-size: 0.95rem;
  color: var(--rich88-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-support__faq-item {
  background-color: var(--rich88-card-bg);
  border: 1px solid var(--rich88-border);
  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.1rem;
  font-weight: 600;
  color: var(--rich88-text-main);
  cursor: pointer;
  background-color: var(--rich88-deep-green);
  border-bottom: 1px solid var(--rich88-divider);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-support__faq-question:hover {
  background-color: var(--rich88-primary);
}

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

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

.page-support__faq-item[open] .page-support__faq-question {
  border-bottom: 1px solid var(--rich88-divider);
}

.page-support__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--rich88-text-secondary);
  text-align: left;
}

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

/* Tips Section */
.page-support__tips-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-support__tips-list li {
  background-color: var(--rich88-card-bg);
  border: 1px solid var(--rich88-border);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  color: var(--rich88-text-main);
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-support__tips-list li strong {
  color: var(--rich88-secondary);
}

/* Final CTA Section */
.page-support__final-cta-section .page-support__cta-buttons {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-image-wrapper {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding-bottom: 40px;
  }

  .page-support__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .page-support__description {
    font-size: 1rem;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-support__introduction-section,
  .page-support__channels-section,
  .page-support__faq-section,
  .page-support__resources-section,
  .page-support__commitment-section,
  .page-support__tips-section,
  .page-support__final-cta-section {
    padding: 40px 0;
  }

  .page-support__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 20px;
  }

  .page-support__text-block {
    padding: 0 15px;
    margin-bottom: 15px;
  }

  .page-support__channels-grid,
  .page-support__resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-support__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
  }

  .page-support__faq-list {
    padding: 0 15px;
  }

  .page-support__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-support__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }

  .page-support__tips-list {
    padding: 0 15px;
  }

  .page-support__tips-list li {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* Ensure all image containers are responsive */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-image-wrapper,
  .page-support__channels-grid,
  .page-support__resources-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-support__hero-section {
    padding-top: 10px !important;
  }
}