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

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

.page-support__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd); /* Using brand color for hero */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

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

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

.page-support__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #333333; /* Dark text for light background */
}

.page-support__contact-methods,
.page-support__faq-section,
.page-support__additional-resources {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for these sections */
  color: #333333; /* Dark text for light background */
}

.page-support__dark-bg {
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff; /* White text for brand color background */
  padding: 80px 0;
}

.page-support__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

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

.page-support__method-card,
.page-support__resource-card {
  background-color: #f8f8f8; /* Slightly off-white for card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #333333; /* Dark text for card background */
}

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

.page-support__method-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-support__method-title,
.page-support__resource-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for card titles */
}

.page-support__method-description,
.page-support__resource-description {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

.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, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

.page-support__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7bbd;
  border-color: #1a7bbd;
}

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

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

.page-support__video-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-support__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-support__video-caption {
  margin-top: 20px;
  font-style: italic;
  font-size: 1.1em;
}

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

.page-support__faq-item {
  background-color: #f8f8f8;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333; /* Dark text for light background */
}

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

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

.page-support__faq-title {
  margin: 0;
  color: #333333;
}

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

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

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #f8f8f8;
  color: #555555;
}

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

.page-support__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
  line-height: 1.7;
}

.page-support__responsible-gambling {
  text-align: center;
}

/* Ensure proper color contrast for titles on dark background */
.page-support__responsible-gambling .page-support__section-title,
.page-support__video-section .page-support__section-title {
  color: #ffffff;
}

.page-support__responsible-gambling .page-support__section-intro,
.page-support__video-section .page-support__section-intro {
  color: #f0f0f0;
}

.page-support__resource-card {
  text-align: left;
  padding: 25px;
  display: block; /* Make the whole card clickable */
  text-decoration: none;
}

.page-support__resource-card .page-support__resource-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-support__resource-card .page-support__resource-description {
  font-size: 0.95em;
  color: #555555;
}

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

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

  .page-support__hero-section,
  .page-support__contact-methods,
  .page-support__video-section,
  .page-support__faq-section,
  .page-support__responsible-gambling,
  .page-support__additional-resources {
    padding: 50px 0;
  }

  .page-support__hero-title {
    font-size: 2.5em;
  }

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

  .page-support__section-title {
    font-size: 2em;
  }

  .page-support__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    margin: 0;
    padding: 10px 15px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__video-wrapper {
    margin: 30px auto;
    padding-bottom: 56.25%; /* Maintain aspect ratio */
    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;
  }

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

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

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

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

  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support__method-card,
  .page-support__resource-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 2em;
  }

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

  .page-support__method-title,
  .page-support__resource-title {
    font-size: 1.3em;
  }
}