/* style/support.css */

/* --- Base Styles & Typography --- */
.page-support {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: transparent; /* Body background from shared.css */
  line-height: 1.6;
  font-size: 16px;
}

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

.page-support__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-support__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #22C768; /* Auxiliary color */
  border-radius: 2px;
}

.page-support__item-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  text-align: center;
}

.page-support__text-block {
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
  text-align: justify;
}

.page-support__ordered-list,
.page-support__unordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-support__ordered-list li,
.page-support__unordered-list li {
  margin-bottom: 10px;
}

/* --- Hero Section --- */
.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center content vertically */
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  min-height: 500px; /* Ensure visibility even with short content */
}

.page-support__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-support__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-support__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- CTA Buttons --- */
.page-support__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Slight inverse gradient on hover */
}

.page-support__btn-secondary {
  background: transparent;
  border: 2px solid #22C768; /* Auxiliary color */
  color: #22C768;
}

.page-support__btn-secondary:hover {
  background: #22C768;
  color: #F2FFF6;
}

/* --- Card Styles --- */
.page-support__card {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-support__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

/* --- Section Specific Layouts --- */
.page-support__introduction-section,
.page-support__download-section,
.page-support__registration-login-section,
.page-support__transaction-section,
.page-support__games-section,
.page-support__security-section,
.page-support__customer-support-section,
.page-support__faq-section,
.page-support__contact-section,
.page-support__conclusion-section {
  padding: 60px 0;
}

.page-support__download-grid,
.page-support__guide-steps,
.page-support__transaction-methods,
.page-support__game-grid,
.page-support__security-features,
.page-support__support-channels {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-support__download-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-support__guide-steps,
.page-support__transaction-methods {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-support__game-grid,
.page-support__security-features,
.page-support__support-channels {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-support__game-item .page-support__cta-button {
  margin-top: auto; /* Push button to bottom */
}

/* --- FAQ Section --- */
.page-support__faq-list {
  margin-top: 30px;
}

.page-support__faq-item {
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  margin-bottom: 15px;
  padding: 0; /* Remove padding from card as summary will have it */
  border: 1px solid #2E7A4E; /* Border color */
}

.page-support__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  outline: none;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

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

.page-support__faq-item summary:hover {
  background-color: rgba(34, 199, 104, 0.1); /* Auxiliary color with transparency */
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
}

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

.page-support__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #22C768; /* Auxiliary color */
}

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

.page-support__faq-answer {
  padding: 15px 25px 20px;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #2E7A4E; /* Divider color */
  text-align: left;
}

/* --- Contact Section --- */
.page-support__contact-info {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-support__contact-text {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
}

.page-support__contact-text strong {
  color: #F2FFF6; /* Text Main */
}

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

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

.page-support__video-section,
.page-support__video-container,
.page-support__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .page-support {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-support__container {
    padding: 0 15px;
  }

  .page-support__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-support__item-title {
    font-size: 1.3em;
  }

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

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

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

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

  /* Force images to be responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Force video to be responsive */
  .page-support video,
  .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Container padding for mobile to prevent overflow */
  .page-support__section,
  .page-support__card,
  .page-support__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Video section top padding */
  .page-support__video-section {
    padding-top: 10px !important;
  }
  
  /* Button responsiveness */
  .page-support__cta-button,
  .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: 12px 20px !important; /* Adjust padding for smaller screens */
    font-size: 1em !important;
  }

  /* Button group responsiveness */
  .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;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

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

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

  .page-support__download-grid,
  .page-support__guide-steps,
  .page-support__transaction-methods,
  .page-support__game-grid,
  .page-support__security-features,
  .page-support__support-channels {
    grid-template-columns: 1fr; /* Single column layout for grids */
  }

  .page-support__card {
    padding: 20px;
  }
}

/* Ensure no image filters */
.page-support img,
.page-support__card img,
.page-support__download-image,
.page-support__game-image,
.page-support__feature-image,
.page-support__channel-image {
  filter: none !important; /* Absolutely no filters */
}

/* Content area image CSS dimensions lower bound */
.page-support__download-image,
.page-support__game-image,
.page-support__feature-image,
.page-support__channel-image {
  min-width: 200px;
  min-height: 200px;
}