/* style/support.css */

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

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

.page-support__section {
  padding: 60px 0;
  text-align: center;
}

.page-support__dark-bg {
  background-color: #0a0a0a; /* Match body background for consistency */
  color: #ffffff;
}

.page-support__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-support__section-title {
  font-size: clamp(2em, 2.5vw, 2.8em);
  font-weight: bold;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
}

.page-support__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: inherit; /* Inherit from section for contrast */
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-support__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  text-align: center;
  position: relative; /* Ensure content is above image in stacking context if needed */
  z-index: 2;
  background-color: #0a0a0a; /* Explicit dark background for text for contrast */
  width: 100%;
  box-sizing: border-box;
}

.page-support__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

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

.page-support__grid--three-cols {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card Styles */
.page-support__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff; /* Default for dark background */
}

.page-support__light-bg .page-support__card {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

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

.page-support__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-support__card-title a:hover {
  text-decoration: underline;
}

.page-support__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
  color: inherit;
}

.page-support__card-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

/* Contact Channels Section */
.page-support__contact-channels-section .page-support__card--contact {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

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

.page-support__social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.page-support__social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #FFFFFF;
  font-size: 1.2em;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-support__social-icon-link:hover {
  background-color: #1a8cc7;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section .page-support__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

.page-support__responsible-gaming-section .page-support__text-content {
  flex: 1;
}

.page-support__responsible-gaming-section .page-support__image-wrapper {
  flex: 0 0 400px; /* Fixed width for image on desktop */
  max-width: 400px;
}

.page-support__responsible-gaming-section .page-support__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* FAQ Section */
.page-support__faq-section {
  text-align: left;
}

.page-support__faq-section .page-support__container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-support__faq-list {
  flex: 2;
  width: 100%;
}

.page-support__faq-image-wrapper {
  flex: 1;
  max-width: 400px;
  position: sticky;
  top: 100px; /* Adjust based on header height */
}

.page-support__faq-image-wrapper .page-support__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page-support__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-support__light-bg .page-support__faq-item {
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0;
  list-style: none; /* For details/summary */
}

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

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
}

.page-support__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  line-height: 1.8;
  color: inherit;
}

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

/* Why Choose Section */
.page-support__why-choose-section {
  padding-bottom: 80px;
}

.page-support__why-choose-section .page-support__cta-button {
  margin-top: 30px;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-image-wrapper {
    max-height: 500px;
  }
  .page-support__responsible-gaming-section .page-support__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-support__responsible-gaming-section .page-support__image-wrapper {
    flex: none;
    max-width: 100%;
  }
  .page-support__faq-section .page-support__container {
    flex-direction: column;
    align-items: center;
  }
  .page-support__faq-image-wrapper {
    position: static;
    max-width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-support__section {
    padding: 40px 0;
  }
  .page-support__container {
    padding: 0 15px !important;
  }
  .page-support__hero-image-wrapper {
    max-height: 300px;
  }
  .page-support__hero-content {
    padding: 30px 15px;
  }
  .page-support__main-title {
    font-size: 2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-support__text-block {
    font-size: 0.95em;
  }
  .page-support__card {
    padding: 20px;
  }
  .page-support__card-title {
    font-size: 1.3em;
  }
  .page-support__card-text {
    font-size: 0.9em;
  }
  .page-support__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__grid--three-cols {
    grid-template-columns: 1fr;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 0.95em;
    margin-bottom: 10px; /* Add margin for stacked buttons */
  }
  .page-support__social-icons {
    flex-wrap: wrap;
    gap: 15px;
  }
  .page-support__social-icon-link {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }
  
  /* Mobile responsive image adaptation */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__hero-image-wrapper,
  .page-support__responsible-gaming-section .page-support__image-wrapper,
  .page-support__faq-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 15px;
  }
  /* Ensure content sections have padding */
  .page-support__section,
  .page-support__container,
  .page-support__card,
  .page-support__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__hero-section { /* No additional padding-top for hero section */
    padding-top: 0 !important;
  }
  .page-support__introduction-section, .page-support__common-issues-section, .page-support__contact-channels-section, .page-support__responsible-gaming-section, .page-support__faq-section, .page-support__why-choose-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-support__main-title {
    font-size: 1.8em;
  }
  .page-support__section-title {
    font-size: 1.5em;
  }
  .page-support__hero-description {
    font-size: 0.9em;
  }
  .page-support__hero-image-wrapper {
    max-height: 200px;
  }
}