/* style/support.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

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

.page-support a {
  color: #2AD16F; /* A bright green for links */
  text-decoration: none;
}

.page-support a:hover {
  text-decoration: underline;
}

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

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

.page-support__section-description {
  font-size: clamp(16px, 2vw, 20px);
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #08160F;
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-support__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-support__main-title {
  font-size: clamp(32px, 5vw, 60px); /* h1 font size with clamp */
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.page-support__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #A7D9B8;
  margin-bottom: 30px;
}

/* CTA Button */
.page-support__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-support__cta-button--small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-support__cta-button--center {
  display: block;
  margin: 40px auto 0 auto;
  width: fit-content;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG color */
}

.page-support__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-support__faq-item {
  background-color: #0A4B2C; /* Deep Green for FAQ items */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #11271B; /* Card BG for summary */
  border-bottom: 1px solid #1E3A2A; /* Divider color */
  list-style: none; /* Remove default marker for details summary */
}

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

.page-support__faq-item[open] .page-support__faq-question {
  border-bottom: 1px solid #2E7A4E; /* Highlight border when open */
}

.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #57E38D; /* Glow color */
  margin-left: 15px;
}

.page-support__faq-answer {
  padding: 20px;
  font-size: 16px;
  color: #A7D9B8;
  background-color: #0A4B2C; /* Deep Green for answer background */
}

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

.page-support__faq-link {
  color: #F2C14E; /* Gold color for internal links */
  text-decoration: underline;
  font-weight: 600;
}

.page-support__faq-link:hover {
  color: #57E38D;
}


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

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

.page-support__contact-card {
  background-color: #11271B; /* Card BG color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 1px solid #2E7A4E;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__contact-icon {
  width: 200px; /* Min size */
  height: 200px; /* Min size */
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%; /* Responsive image */
  height: auto;
  display: block;
}

.page-support__contact-card-title {
  font-size: 24px;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-support__contact-card-text {
  font-size: 16px;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes button to bottom */
}


/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
  padding: 80px 0;
  background-color: #11271B;
}

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

.page-support__feature-item {
  background-color: #0A4B2C;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 1px solid #2E7A4E;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__feature-icon {
  width: 200px; /* Min size */
  height: 200px; /* Min size */
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%; /* Responsive image */
  height: auto;
  display: block;
}

.page-support__feature-title {
  font-size: 22px;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-support__feature-text {
  font-size: 16px;
  color: #A7D9B8;
  flex-grow: 1;
}

/* Security Section */
.page-support__security-section {
  padding: 80px 0;
  background-color: #08160F;
}

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

/* Uses same .page-support__feature-item and children styles */


/* Payment Guide Section */
.page-support__payment-guide-section {
  padding: 80px 0;
  background-color: #11271B;
}

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

.page-support__payment-card {
  background-color: #0A4B2C;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 1px solid #2E7A4E;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__payment-icon {
  width: 200px; /* Min size */
  height: 200px; /* Min size */
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%; /* Responsive image */
  height: auto;
  display: block;
}

.page-support__payment-card-title {
  font-size: 22px;
  color: #F2FFF6;
  margin-bottom: 10px;
}

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

/* Additional Resources Section */
.page-support__additional-resources-section {
  padding: 80px 0;
  background-color: #08160F;
}

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

.page-support__resource-card {
  background-color: #11271B;
  border-radius: 10px;
  border: 1px solid #2E7A4E;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-support__resource-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, will be object-fit: cover */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure min size */
}

.page-support__resource-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-support__resource-card-title {
  font-size: 20px;
  color: #F2FFF6;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-support__resource-card-title a {
  color: #F2FFF6;
  text-decoration: none;
}

.page-support__resource-card-title a:hover {
  color: #57E38D;
  text-decoration: underline;
}

.page-support__resource-card-text {
  font-size: 15px;
  color: #A7D9B8;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Mobile responsiveness for images, videos, buttons, and containers */
@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-support__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-support__main-title {
    font-size: 36px;
  }

  .page-support__hero-description {
    font-size: 18px;
  }

  .page-support__section-title {
    font-size: 30px;
  }

  .page-support__section-description {
    font-size: 16px;
  }

  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__hero-image {
    min-height: 200px; /* Maintain min-height */
  }

  .page-support__contact-icon,
  .page-support__feature-icon,
  .page-support__payment-icon {
    width: 200px !important; /* Enforce minimum size */
    height: 200px !important;
    max-width: 100% !important;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important; /* Enforce minimum size */
  }

  .page-support__resource-image {
    height: auto !important; /* Auto height for better aspect ratio */
    min-height: 200px !important; /* Enforce minimum size */
  }

  .page-support__cta-button,
  .page-support__cta-button--small {
    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__contact-methods,
  .page-support__responsible-features,
  .page-support__security-features,
  .page-support__payment-cards,
  .page-support__resource-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__faq-question {
    font-size: 16px;
    padding: 15px;
  }

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

  .page-support__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }
}