/* style/support.css */
.page-support {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Inherited from shared.css, explicitly set for context */
}

.page-support__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px; /* Ensure hero section has a minimum height */
}

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

.page-support__hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-support__hero-content {
  max-width: 800px;
  color: #ffffff;
}

.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;
  color: #f0f0f0;
}

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

.page-support__section {
  padding: 60px 20px;
  text-align: center;
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-support__section:nth-of-type(even) {
  background-color: #0d0d0d; /* Alternate dark background */
}

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

.page-support__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #017439; /* Brand color for titles */
}

.page-support__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

.page-support__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
  color: #ffffff;
}

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

.page-support__faq-qtext {
  flex-grow: 1;
}

.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.6;
  color: #e0e0e0;
}

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

.page-support__faq-answer img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
}

.page-support__faq-button-wrapper {
  margin-top: 20px;
  text-align: center;
}

.page-support__contact-grid, .page-support__technical-grid, .page-support__payment-grid, .page-support__game-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__contact-card, .page-support__technical-card, .page-support__payment-card, .page-support__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-support__contact-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: brightness(1.2); /* Slight brightness to stand out on dark background */
}

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

.page-support__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-support__responsible-gaming-content {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  text-align: left;
  margin-top: 40px;
}

.page-support__responsible-gaming-text {
  flex: 1;
}

.page-support__content-heading {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #017439;
}

.page-support__responsible-gaming-image-wrapper {
  flex: 0 0 400px; /* Fixed width for image on desktop */
  max-width: 40%;
  border-radius: 10px;
  overflow: hidden;
}

.page-support__responsible-gaming-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-support__payment-cta {
  margin-top: 40px;
}

.page-support__game-card a {
  margin-top: auto; /* Push button to the bottom */
}

.page-support__promotions-content {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.page-support__conclusion-cta {
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-register,
.page-support__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Primary button */
.page-support__btn-primary {
  background-color: #017439; /* Main color */
  color: #ffffff; /* White text for contrast (WCAG AA) */
  border: 2px solid #017439;
}

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

/* Secondary button */
.page-support__btn-secondary {
  background-color: #ffffff; /* Auxiliary color */
  color: #017439; /* Main color for text for contrast (WCAG AA) */
  border: 2px solid #017439;
}

.page-support__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

/* Register/Login buttons - Specific colors as per requirements, potential contrast issue */
.page-support__btn-register,
.page-support__btn-login {
  background-color: #C30808; /* Specified Register/Login color */
  color: #FFFF00; /* Specified Register/Login font color */
  border: 2px solid #C30808;
}

.page-support__btn-register:hover,
.page-support__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Links within content */
.page-support p a, .page-support li a {
  color: #017439; /* Brand color for links */
  text-decoration: underline;
}

.page-support p a:hover, .page-support li a:hover {
  color: #005a2e;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 2.8em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__responsible-gaming-content {
    flex-direction: column;
    align-items: center;
  }
  .page-support__responsible-gaming-image-wrapper {
    max-width: 60%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    min-height: 400px;
  }
  .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, .page-support__btn-register, .page-support__btn-login {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-support__section {
    padding: 40px 15px;
  }
  .page-support__container {
    padding: 0 15px;
  }
  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__section-intro {
    font-size: 0.95em;
  }
  .page-support__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
  .page-support__contact-grid, .page-support__technical-grid, .page-support__payment-grid, .page-support__game-rules-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__responsible-gaming-image-wrapper {
    max-width: 80%;
  }
  /* Mobile image and video responsive adaptation */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__video-section,
  .page-support__video-container,
  .page-support__video-wrapper,
  .page-support__hero-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; /* Ensure no horizontal scroll */
  }
  .page-support__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing for fixed header */
  }
  .page-support__conclusion-cta {
    flex-direction: column;
    gap: 15px;
  }
}