/* style/support.css */

.page-support {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #FFFFFF; /* Default body background */
}

/* --- Global Container and Section Styles --- */
.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-support__section-title {
  font-size: 2.5rem;
  color: #26A9E0; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* --- Hero Section --- */
.page-support__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #26A9E0, #1a7bbd); /* Gradient with primary color */
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

.page-support__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-support__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFFFF;
}

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

.page-support__hero-image {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-support__hero-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- Buttons --- */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  box-sizing: border-box;
}

.page-support__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #FFFFFF;
  border-color: #EA7C07;
}

.page-support__btn-primary:hover {
  background-color: #d86c00;
  border-color: #d86c00;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Primary color for secondary CTA text */
  border-color: #26A9E0;
}

.page-support__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
  border-color: #26A9E0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-support__btn-text {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-support__btn-text:hover {
  color: #1a7bbd;
  text-decoration: underline;
}

.page-support__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* --- Info Section (Why Choose) --- */
.page-support__info-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
}

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

.page-support__feature-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__feature-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__feature-text {
  font-size: 1rem;
  color: #555555;
}

/* --- Channels Section --- */
.page-support__channels-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark section with primary color */
  color: #FFFFFF;
}

.page-support__channels-section .page-support__section-title,
.page-support__channels-section .page-support__section-description {
  color: #FFFFFF;
}

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

.page-support__channel-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on primary */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__channel-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.25);
}

.page-support__channel-title {
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__channel-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- Video Section --- */
.page-support__video-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-support__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer; /* Indicate clickable */
}

/* --- Common Issues Section --- */
.page-support__common-issues-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

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

.page-support__issue-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__issue-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__issue-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__issue-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
}

/* --- FAQ Section --- */
.page-support__faq-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark section with primary color */
  color: #FFFFFF;
}

.page-support__faq-section .page-support__section-title,
.page-support__faq-section .page-support__section-description {
  color: #FFFFFF;
}

.page-support__faq-item {
  background-color: rgba(255, 255, 255, 0.15);
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.page-support__faq-question h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #FFFFFF;
  font-weight: bold;
}

.page-support__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #FFFFFF;
  transition: transform 0.3s ease;
}

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

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: #f0f0f0;
}

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

.page-support__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  font-size: 1rem;
}

/* --- Responsible Gaming Section --- */
.page-support__responsible-gaming-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Using primary color as dark background */
  color: #FFFFFF;
  text-align: center;
}

.page-support__responsible-gaming-section .page-support__section-title,
.page-support__responsible-gaming-section .page-support__section-description {
  color: #FFFFFF;
}

.page-support__responsible-gaming-section .page-support__btn-primary {
  margin-top: 30px;
  background-color: #EA7C07;
  border-color: #EA7C07;
}

/* --- Final CTA Section --- */
.page-support__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  text-align: center;
}

.page-support__cta-section .page-support__section-title {
  color: #26A9E0;
}

.page-support__cta-section .page-support__section-description {
  color: #555555;
}

.page-support__cta-section .page-support__btn-primary {
  margin-top: 30px;
  background-color: #EA7C07;
  border-color: #EA7C07;
}

/* --- Image specific styles --- */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-support__image-full-width {
  width: 100%;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fixed header offset for mobile, ensure it's here */
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-support__hero-title {
    font-size: 2.2rem;
  }

  .page-support__hero-description {
    font-size: 1rem;
  }

  .page-support__section-title {
    font-size: 1.8rem;
  }

  .page-support__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-support__features-grid,
  .page-support__channels-grid,
  .page-support__issues-grid {
    grid-template-columns: 1fr;
  }

  .page-support__feature-card,
  .page-support__channel-card,
  .page-support__issue-card,
  .page-support__faq-item {
    padding: 20px;
    margin: 0 15px 20px 15px; /* Add horizontal padding to cards */
  }

  /* Ensure all content containers are constrained */
  .page-support__container {
    padding: 0 15px;
  }

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

  /* Mobile video responsiveness */
  .page-support__video-wrapper {
    margin: 30px auto 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile button responsiveness */
  .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; /* Make buttons full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 20px !important;
    margin-bottom: 15px;
  }
  
  .page-support__channels-section .page-support__channel-card .page-support__btn-secondary {
    width: auto !important; /* Allow secondary buttons in cards to be auto width */
    max-width: 100% !important;
  }

  .page-support__btn-large {
    font-size: 1.1rem;
  }

  /* Ensure sections themselves don't overflow */
  .page-support__hero-section,
  .page-support__info-section,
  .page-support__channels-section,
  .page-support__video-section,
  .page-support__common-issues-section,
  .page-support__faq-section,
  .page-support__responsible-gaming-section,
  .page-support__cta-section {
    padding: 40px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 1.8rem;
  }
  .page-support__section-title {
    font-size: 1.5rem;
  }
  .page-support__faq-question h3 {
    font-size: 1.1rem;
  }
  .page-support__faq-toggle {
    font-size: 1.5rem;
  }
}

/* --- Color Contrast Safeguards --- */
/* Dark background sections */
.page-support__dark-section {
  background-color: #26A9E0; /* Primary color as dark background */
  color: #FFFFFF;
}
.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__hero-title,
.page-support__dark-section .page-support__feature-title,
.page-support__dark-section .page-support__channel-title,
.page-support__dark-section .page-support__issue-title,
.page-support__dark-section .page-support__faq-question h3 {
  color: #FFFFFF;
}
.page-support__dark-section .page-support__section-description,
.page-support__dark-section .page-support__hero-description,
.page-support__dark-section .page-support__feature-text,
.page-support__dark-section .page-support__channel-text,
.page-support__dark-section .page-support__issue-text,
.page-support__dark-section .page-support__faq-answer p {
  color: #f0f0f0;
}

/* Light background sections */
.page-support__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}
.page-support__light-bg .page-support__section-title,
.page-support__light-bg .page-support__feature-title,
.page-support__light-bg .page-support__issue-title {
  color: #26A9E0; /* Primary color for titles on light background */
}
.page-support__light-bg .page-support__section-description,
.page-support__light-bg .page-support__feature-text,
.page-support__light-bg .page-support__issue-text {
  color: #555555;
}

/* Card backgrounds on light sections */
.page-support__feature-card,
.page-support__issue-card {
  background-color: #FFFFFF;
  color: #333333;
}