/* style/support.css */
.page-support {
  font-family: Arial, sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #ffffff;
}

.page-support__hero-section {
  padding-top: 10px; /* Adhering to the 10px top padding rule */
  position: relative;
  margin-bottom: 40px;
  overflow: hidden;
}

.page-support__hero-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-support__hero-text-content {
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly for visual flow */
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-support__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-support__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-support__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-support__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-support__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  padding: 0 15px;
}

.page-support__section-title--light {
  color: #ffffff;
}

.page-support__guide-section {
  padding: 40px 20px;
  background-color: #f8f8f8;
  margin-bottom: 40px;
}

.page-support__guide-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.page-support__guide-card {
  flex: 0 0 calc(20% - 16px); /* 5 cards per row, accounting for gap */
  max-width: calc(20% - 16px);
  text-align: center;
  box-sizing: border-box;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-support__guide-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical team images */
  object-fit: cover;
}

.page-support__guide-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Desktop specific vertical alignment for guide cards */
.page-support__guide-card--pos-1,
.page-support__guide-card--pos-5 {
  padding-top: 50px;
}

.page-support__guide-card--pos-2,
.page-support__guide-card--pos-4 {
  padding-top: 25px;
}

.page-support__channels-section {
  padding: 40px 20px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-support__channel-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__channel-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-support__channel-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__channel-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-support__faq-section {
  padding: 40px 20px;
  background-color: #f0f0f0;
  margin-bottom: 40px;
}

.page-support__faq-intro {
  text-align: center;
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-support__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  list-style: none;
}

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

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-support__faq-item[open] .page-support__faq-toggle {
  transform: rotate(45deg);
}

.page-support__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
}

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

.page-support__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-support__content-area {
  max-width: 91%;
  margin: 0 auto 40px auto;
  padding: 30px 40px;
  border: 5px solid #26A9E0; /* Using brand color for border */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(38, 169, 224, 0.5); /* Using brand color for shadow */
  height: 700px; /* Fixed height for desktop */
  overflow-y: auto; /* Scroll for desktop */
  background-color: #26A9E0; /* Dark section background */
  color: #ffffff; /* Light text for dark background */
}

.page-support__content-area p,
.page-support__content-area li {
  color: #ffffff; /* Ensure text is white on dark background */
}

.page-support__content-inner {
  height: 100%;
  overflow: hidden;
}

.page-support__sub-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-support__list li {
  margin-bottom: 8px;
}

.page-support__figure {
  margin: 30px 0;
  text-align: center;
}

.page-support__figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-support__figcaption {
  font-size: 0.9em;
  color: #f0f0f0;
  margin-top: 10px;
}

.page-support__responsible-gaming-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-support__responsible-content,
.page-support__security-content {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.page-support__responsible-text,
.page-support__security-text {
  flex: 1;
}

.page-support__responsible-image,
.page-support__security-image {
  flex: 1;
  text-align: center;
}

.page-support__responsible-image img,
.page-support__security-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-support__related-articles-section {
  padding: 40px 20px;
  background-color: #f8f8f8;
  margin-bottom: 40px;
}

.page-support__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 30px auto;
}

.page-support__blog-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

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

.page-support__blog-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9; /* Common aspect ratio for blog images */
  object-fit: cover;
}

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

.page-support__blog-card-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-support__blog-card-title a {
  color: #333333;
  text-decoration: none;
}

.page-support__blog-card-title a:hover {
  color: #26A9E0;
}

.page-support__blog-card-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 10px;
}

.page-support__blog-card-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
}

.page-support__btn-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-support__btn-link:hover {
  text-decoration: underline;
}

.page-support__view-all-posts {
  text-align: center;
  margin-top: 30px;
}

.page-support__contact-cta-section {
  background-color: #26A9E0;
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.page-support__contact-cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General image responsiveness */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-support__guide-card {
    flex: 0 0 calc(33.333% - 14px); /* 3 cards per row */
    max-width: calc(33.333% - 14px);
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-support__hero-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }

  .page-support__hero-text-content {
    margin-top: -50px; /* Adjust overlap for mobile */
    padding: 15px;
  }

  .page-support__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

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

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 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__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  /* Guide Section - 5 team vertical cards */
  .page-support__guide-section {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .page-support__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6-column grid for specific layout */
    gap: 15px;
  }

  .page-support__guide-card {
    padding-top: 0 !important; /* Reset desktop specific padding */
    flex: auto;
    max-width: 100%;
    grid-column: span 6; /* Default to 1 column for very small screens */
  }

  /* Specific '上二下三' layout for 5 cards on wider mobile/tablet */
  .page-support__guide-card--pos-1,
  .page-support__guide-card--pos-2 {
    grid-column: span 3;
  }

  .page-support__guide-card--pos-3,
  .page-support__guide-card--pos-4,
  .page-support__guide-card--pos-5 {
    grid-column: span 2;
  }

  /* Channels Section */
  .page-support__channels-section {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

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

  /* FAQ Section */
  .page-support__faq-section {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .page-support__faq-intro {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

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

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

  /* Content Area (formerly home_content-like box) */
  .page-support__content-area {
    max-width: 100% !important;
    height: auto !important; /* Full height for mobile */
    overflow-y: visible !important; /* No scroll for mobile */
    padding: 20px 15px !important;
    border: none !important; /* Remove border for mobile for cleaner look */
    box-shadow: none !important; /* Remove shadow for mobile */
    margin-bottom: 20px;
  }
  .page-support__content-inner {
    height: auto !important;
    overflow: visible !important;
  }

  .page-support__sub-title {
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  /* Responsible Gaming Section */
  .page-support__responsible-gaming-section {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .page-support__responsible-content,
  .page-support__security-content {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
  }

  .page-support__security-content {
    flex-direction: column-reverse; /* Image below text for security */
  }

  /* Related Articles / Blog Section */
  .page-support__related-articles-section {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .page-support__blog-grid {
    grid-template-columns: 1fr; /* 1 card per row */
    gap: 15px;
  }

  .page-support__blog-card-title {
    font-size: 1.1em;
  }

  /* Contact CTA Section */
  .page-support__contact-cta-section {
    padding: 40px 15px;
  }

  .page-support__contact-cta-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Universal Image Responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support__hero-content-wrapper,
  .page-support__guide-section,
  .page-support__channels-section,
  .page-support__faq-section,
  .page-support__responsible-gaming-section,
  .page-support__related-articles-section,
  .page-support__contact-cta-section,
  .page-support__channel-card,
  .page-support__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-support__hero-content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}