/* style/support.css */
.page-support {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #121212; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

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

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

.page-support__hero-title {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-support__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* General Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-text {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

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

.page-support__btn-text {
  background-color: transparent;
  color: #017439;
  border: none;
  padding: 8px 0;
  text-align: left;
}

.page-support__btn-text:hover {
  text-decoration: underline;
  color: #005f2e;
}

/* General Content Sections */
.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-support__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
}

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

/* Contact Channels */
.page-support__contact-channels {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  padding: 60px 0;
}

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

.page-support__channel-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 350px; /* Ensure cards have similar height */
}

.page-support__channel-icon {
  width: 100%;
  max-width: 250px; /* Adjust size as needed */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-support__channel-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 10px;
}

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

/* FAQ Section */
.page-support__faq-section {
  padding: 60px 0;
}

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

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

.page-support__faq-item summary {
  list-style: none; /* Hide default marker */
}

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

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
}

.page-support__faq-answer {
  padding: 0 25px 20px 25px;
  color: #cccccc;
  font-size: 1em;
}

.page-support__faq-answer p {
  margin-bottom: 10px;
}

.page-support__faq-answer ul {
  margin-left: 20px;
  list-style-type: disc;
}

.page-support__faq-answer li {
  margin-bottom: 5px;
}

.page-support__faq-answer a {
  color: #017439;
  text-decoration: none;
}

.page-support__faq-answer a:hover {
  text-decoration: underline;
}

/* Guides Section */
.page-support__guides-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

.page-support__guide-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

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

.page-support__guide-card h3 {
  padding: 20px 20px 10px 20px;
  font-size: 1.4em;
  color: #ffffff;
}

.page-support__guide-card h3 a {
  color: #ffffff;
  text-decoration: none;
}

.page-support__guide-card h3 a:hover {
  color: #017439;
}

.page-support__guide-excerpt {
  padding: 0 20px 15px 20px;
  color: #cccccc;
  font-size: 0.95em;
  flex-grow: 1;
}

.page-support__guide-card .page-support__btn-text {
  align-self: flex-start;
  margin: 0 20px 20px 20px;
}

/* Responsible Gaming & Security Sections */
.page-support__responsible-gaming-section,
.page-support__security-section {
  padding: 60px 0;
  text-align: center;
}

.page-support__responsible-gaming-section .page-support__btn-primary,
.page-support__security-section .page-support__btn-secondary {
  margin-top: 30px;
}

/* --- Responsive Design --- */

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

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

  .page-support__hero-section {
    height: auto;
    min-height: 450px;
  }

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

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

  .page-support__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px; /* Adjust padding for smaller screens */
  }

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

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

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

  .page-support__channels-grid,
  .page-support__guides-grid {
    grid-template-columns: 1fr; /* Single column layout */
  }

  .page-support__channel-card,
  .page-support__guide-card {
    padding: 20px;
    min-height: auto;
  }

  .page-support__channel-icon {
    max-width: 200px;
  }

  .page-support__channel-title {
    font-size: 1.4em;
  }

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

  .page-support__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  .page-support__guide-image {
    height: 200px;
  }

  .page-support__guide-card h3 {
    font-size: 1.2em;
    padding: 15px 15px 10px 15px;
  }

  .page-support__guide-excerpt {
    padding: 0 15px 10px 15px;
  }

  .page-support__guide-card .page-support__btn-text {
    margin: 0 15px 15px 15px;
  }

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

  /* Universal container responsiveness for mobile */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-section,
  .page-support__contact-channels,
  .page-support__faq-section,
  .page-support__guides-section,
  .page-support__responsible-gaming-section,
  .page-support__security-section,
  .page-support__channels-grid,
  .page-support__faq-list,
  .page-support__guides-grid,
  .page-support__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Only add padding if not already handled by .page-support__container */
    /* padding-left: 15px; */
    /* padding-right: 15px; */
  }

  /* Video responsiveness (if any) */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Color Contrast Safeguards */
.page-support__content-area,
.page-support__text-block {
  color: #ffffff; /* Ensure readability on dark body background */
}

.page-support p,
.page-support li {
  color: #cccccc; /* Slightly less bright than headers for body text */
}

.page-support__card {
  background: rgba(255, 255, 255, 0.08); /* White on dark background */
  color: #ffffff;
}

.page-support__dark-section {
  background: #017439; /* Brand color as background */
  color: #ffffff; /* Forced white text */
}

/* Buttons already handled with specific colors */

/* Contrast fix if needed - not actively used unless problem detected */
.page-support__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-support__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}