/* style/support.css */
.page-support {
  color: #F2FFF6; /* Main text color for dark background */
  background-color: var(--background-color, #08160F); /* Ensure body background is respected */
}

/* General container for content width */
.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-support__hero-section {
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  text-align: center;
  padding: 40px 0;
  background-color: #08160F; /* Ensure dark background for the hero section */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-support__hero-content {
  padding-top: 40px; /* Space between image and content */
  max-width: 900px; /* Constrain content width */
}

.page-support__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Light text on dark background */
}

.page-support__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary light text */
}

.page-support__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__link-button,
.page-support__link-more {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-support__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  background-color: transparent;
  color: #11A84E; /* Brand color on light background */
  border: 2px solid #11A84E;
}

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

.page-support__link-button {
  background-color: #22C768;
  color: #ffffff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
}

.page-support__link-button:hover {
  background-color: #11A84E;
}

.page-support__link-more {
  color: #22C768;
  font-weight: 600;
  text-decoration: none;
}

.page-support__link-more:hover {
  text-decoration: underline;
  color: #11A84E;
}

/* Section Styling */
.page-support__introduction-section,
.page-support__contact-options-section,
.page-support__security-section {
  padding: 60px 0;
  background-color: #08160F; /* Dark background */
  color: #F2FFF6; /* Light text */
}

.page-support__faq-section,
.page-support__guides-resources-section,
.page-support__responsible-gaming-section,
.page-support__call-to-action {
  padding: 60px 0;
  background-color: #11271B; /* Card BG color for these sections */
  color: #F2FFF6; /* Light text */
}

.page-support__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #F2FFF6; /* Main text color */
}

.page-support__section-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  color: #A7D9B8; /* Secondary text color */
}

.page-support__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #A7D9B8; /* Secondary text color */
}

.page-support__text-main {
  color: #F2FFF6;
}

.page-support__text-secondary {
  color: #A7D9B8;
}

/* FAQ Section */
.page-support__faq-list {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-support__faq-item {
  background-color: #08160F; /* Dark background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #F2FFF6; /* Light text */
  position: relative;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-support__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #2AD16F; /* Highlight color */
  transition: transform 0.3s ease;
}

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

.page-support__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #A7D9B8; /* Secondary text color */
  border-top: 1px solid #1E3A2A; /* Divider color */
}

.page-support__faq-answer p:last-child {
    margin-bottom: 0;
}

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

.page-support__contact-card,
.page-support__resource-card {
  background-color: #08160F; /* Dark background for cards */
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #F2FFF6; /* Light text */
}

.page-support__contact-card:hover,
.page-support__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-support__contact-icon,
.page-support__resource-image {
  width: 100%; /* Ensure images are responsive */
  height: auto;
  max-height: 200px; /* Limit height for contact icons */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-support__contact-icon {
  max-width: 100px; /* Smaller for icons */
  margin-left: auto;
  margin-right: auto;
}

.page-support__resource-image {
  max-height: 225px;
}

.page-support__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2FFF6; /* Main text color */
}

.page-support__card-title a {
  color: #F2FFF6; /* Link color for card title */
  text-decoration: none;
}

.page-support__card-title a:hover {
  color: #22C768; /* Hover color */
}

.page-support__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #A7D9B8; /* Secondary text color */
}

.page-support__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Responsive Styles */
@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: 20px 0;
  }

  .page-support__hero-content {
    padding-top: 20px;
  }

  .page-support__main-title {
    font-size: 2rem;
  }

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

  .page-support__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    padding: 10px 20px;
    font-size: 1rem;
  }

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

  .page-support__section-subtitle {
    font-size: 1rem;
  }

  .page-support__text-block {
    font-size: 0.95rem;
  }

  .page-support__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  .page-support__contact-grid,
  .page-support__resource-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__contact-card,
  .page-support__resource-card {
    padding: 20px;
  }

  /* Force responsive images, videos, and buttons */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-support video,
  .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support__hero-image-wrapper,
  .page-support__video-section,
  .page-support__video-container,
  .page-support__video-wrapper,
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .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__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-left: 15px;
    padding-right: 15px;
  }
  
  .page-support__cta-group {
    flex-direction: column !important;
    gap: 10px;
  }
}