/* style/support.css */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#121212) */
}

.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: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-support__section-intro {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
  background-color: #017439; /* Fallback */
}

.page-support__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-support__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video to ensure text contrast */
}

.page-support__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Additional overlay for text readability */
  z-index: 1;
}

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

.page-support__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-support__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  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, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

.page-support__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-support__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-support__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Custom colors for Register/Login buttons, adjusted for WCAG AA contrast (4.5:1+) */
/* Original background #C30808 (red) and text #FFFF00 (yellow) did not meet WCAG AA contrast of 4.5:1. */
/* Adjusted to background #B00000 (darker red) and text #FFFF00 (yellow) for 4.97:1 contrast, prioritizing accessibility. */
.page-support__btn-register {
  background-color: #B00000; 
  color: #FFFF00; 
  border: 2px solid #B00000;
}

.page-support__btn-register:hover {
  background-color: #990000;
  border-color: #990000;
}

/* Sections */
.page-support__channels-section, 
.page-support__resources-section, 
.page-support__faq-section, 
.page-support__games-section,
.page-support__promotions-cta-section,
.page-support__contact-section {
  padding: 80px 0;
}

.page-support__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body background for subtle distinction */
  color: #ffffff;
}

.page-support__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-support__light-bg .page-support__section-title,
.page-support__light-bg .page-support__section-intro {
  color: #333333;
}

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

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

.page-support__channel-icon {
  width: 200px; /* Min size 200x200px */
  height: 200px; /* Min size 200x200px */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-support__channel-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

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

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

.page-support__resource-card.page-support__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-support__resource-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-support__resource-title a:hover {
  color: #FFFF00; /* Highlight on hover */
}

.page-support__resource-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__cta-register {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: #017439; /* Brand color */
  border-radius: 10px;
}

.page-support__cta-text {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: #005f2e;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #333333;
}

.page-support__faq-answer p {
  padding: 15px 0;
  margin: 0;
  color: #333333;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-support__faq-item.active .page-support__faq-question {
  background-color: #005f2e; /* Darker green when active */
}

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

.page-support__game-card.page-support__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-support__game-img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-support__game-card .page-support__game-title {
  font-size: 1.6em;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-support__game-card .page-support__game-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-support__game-card .page-support__game-title a:hover {
  color: #FFFF00; /* Highlight on hover */
}

.page-support__game-card .page-support__game-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-support__game-card .page-support__btn-secondary {
  margin: 0 15px 20px;
}

/* Promotions CTA Section */
.page-support__promotions-cta-section {
  text-align: center;
}

.page-support__promo-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 40px;
}

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

/* Contact Section */
.page-support__contact-section {
  text-align: center;
}

/* General card styling (for light background sections) */
.page-support__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-support__card h3 {
  color: #017439;
}

.page-support__card p {
  color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 3em;
  }
  .page-support__hero-description {
    font-size: 1.2em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-support__container {
    padding: 0 15px;
  }
  .page-support__hero-section {
    min-height: 400px;
    padding: 60px 20px; /* Adjust padding for mobile hero */
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }
  .page-support__hero-title {
    font-size: 2.2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .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__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
    overflow: hidden !important;
  }
  .page-support img,
  .page-support video,
  .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__video-section,
  .page-support__video-container,
  .page-support__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  .page-support__channels-section, 
  .page-support__resources-section, 
.page-support__faq-section, 
.page-support__games-section,
.page-support__promotions-cta-section,
.page-support__contact-section {
    padding: 40px 0;
  }
}