/* style/support.css */

/* Base Styles */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--bg-color, #FFFFFF); /* Inherit or default to white */
}

/* 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;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
}

.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;
  color: #FFFFFF;
  max-width: 800px;
  padding: 20px;
}

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

.page-support__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

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

.page-support__container--narrow {
  max-width: 800px;
}

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

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

/* Contact Methods Section */
.page-support__contact-methods {
  background-color: #F8F8F8;
  padding: 60px 0;
}

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

.page-support__contact-card {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  min-height: 450px; /* Ensure cards have enough space for images and text */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__contact-card:hover {
  transform: translateY(-5px);
}

.page-support__contact-icon {
  width: 100%; /* Ensure image fills card width */
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Contain to show full image, or cover */
  margin-bottom: 20px;
}

.page-support__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-support__card-text {
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

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

.page-support__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #FFFFFF;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-support__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

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

.page-support__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'minus' effect */
}


.page-support__faq-answer {
  padding: 0 20px 20px 20px;
  color: #555555;
  font-size: 1.05em;
}

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

.page-support__faq-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-support__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
  background-color: #26A9E0; /* Brand color as background */
  color: #FFFFFF; /* White text for contrast */
  padding: 80px 0;
  text-align: center;
}

.page-support__responsible-gaming .page-support__section-title,
.page-support__responsible-gaming .page-support__section-description {
  color: #FFFFFF; /* Ensure white text */
}

/* Security & Fairness Section */
.page-support__security-fairness {
  background-color: #F8F8F8;
  padding: 60px 0;
  text-align: center;
}

.page-support__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

/* Payment Support Section */
.page-support__payment-support {
  background-color: #1a8ccb; /* Slightly darker brand blue */
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.page-support__payment-support .page-support__section-title,
.page-support__payment-support .page-support__section-description {
  color: #FFFFFF;
}

/* Technical Support Section */
.page-support__technical-support {
  background-color: #FFFFFF;
  padding: 60px 0;
  text-align: center;
}

/* Buttons */
.page-support__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box; /* Crucial for responsiveness */
}

.page-support__btn-primary {
  background-color: #26A9E0; /* Brand primary */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-support__btn-primary:hover {
  background-color: #1e87c2; /* Slightly darker on hover */
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
  background-color: #e0f2f7; /* Light blue on hover */
  transform: translateY(-2px);
}

.page-support__text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-support__text-link:hover {
  text-decoration: underline;
}

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

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

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

  .page-support__card-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

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

  .page-support__contact-grid {
    grid-template-columns: 1fr;
  }

  .page-support__contact-card {
    min-height: auto; /* Allow cards to resize */
  }

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

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

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

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

  /* Mobile image responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers that might hold images or other content */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__contact-methods,
  .page-support__faq-section,
  .page-support__responsible-gaming,
  .page-support__security-fairness,
  .page-support__payment-support,
  .page-support__technical-support,
  .page-support__faq-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Buttons mobile responsiveness */
  .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; /* Add padding to prevent text touching edges */
    padding-right: 15px; /* Add padding to prevent text touching edges */
  }

  /* Button groups mobile adaptation */
  .page-support__button-group,
  .page-support__cta-buttons { /* Assuming these classes might be used for groups */
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px; /* Space between stacked buttons */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Ensure contrast for specific sections */
.page-support__dark-bg {
  color: #ffffff; /* Deep blue background, white text */
  background: #26A9E0;
}

.page-support__light-bg {
  color: #333333; /* Light background, dark text */
  background: #FFFFFF;
}

.page-support__medium-bg {
  color: #000000;
  background: #F0F0F0;
}

/* Ensure all p and li elements within page-support are readable */
.page-support p,
.page-support li {
  color: #333333; /* Default for light sections */
}

/* Override for dark sections */
.page-support__dark-bg p,
.page-support__dark-bg li {
  color: #FFFFFF;
}