/* style/support.css */

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

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

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

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

.page-support__paragraph {
  margin-bottom: 1em;
  color: #f0f0f0; /* Slightly off-white for readability */
}

.page-support__paragraph--center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

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

.page-support__btn-primary:hover {
  background-color: #1e87b7; /* Slightly darker on hover */
  border-color: #1e87b7;
}

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

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

.page-support__btn-link {
  background: none;
  border: none;
  color: #26A9E0;
  padding: 0;
  text-decoration: underline;
}

.page-support__btn-link:hover {
  color: #1e87b7;
}

.page-support__btn-primary--large,
.page-support__btn-secondary--large {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Images */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Consistent rounded corners */
}

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

.page-support__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 0; /* Hero image usually full width, no rounded corners */
}

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

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

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

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

.page-support__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Why Us Section */
.page-support__why-us-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
}

.page-support__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-support__text-content {
  color: #f0f0f0;
}

.page-support__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-support__list-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-support__list-item::before {
  content: "✔";
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Contact Methods Section */
.page-support__contact-methods-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Same as body background */
}

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

.page-support__contact-card {
  background-color: rgba(255, 255, 255, 0.08); /* Transparent white for cards */
  padding: 30px;
  border-radius: 12px;
  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; /* Push button to bottom */
  min-height: 380px; /* Ensure cards have similar height */
}

.page-support__contact-icon {
  width: 250px; /* Adjusted to meet min size requirement */
  height: 180px; /* Adjusted to meet min size requirement */
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-support__contact-card-description {
  color: #f0f0f0;
  flex-grow: 1; /* Allow description to take available space */
}

.page-support__contact-card .page-support__btn-primary,
.page-support__contact-card .page-support__btn-secondary {
  margin-top: 20px;
  width: 100%; /* Full width button in card */
  max-width: 250px; /* Max width for aesthetics */
}


/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-support__faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: flex-start; /* Align image and list top */
  margin-top: 40px;
}

.page-support__faq-image {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
  height: auto;
  min-width: 200px; /* Ensure image is not too small */
  min-height: 200px;
}

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

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

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15); /* Slightly darker for question */
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-support__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #ffffff;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(45deg); /* Plus to X/Minus */
  /* content is handled by JS for '+' and '−' */
}

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

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

/* Resources Section */
.page-support__resources-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-support__resource-card {
  display: block; /* Make the whole card clickable */
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 180px; /* Consistent height for cards */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-support__resource-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-support__resource-description {
  color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

/* CTA Section */
.page-support__cta-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  text-align: center;
}

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap */
}

.page-support__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
  min-width: 200px; /* Ensure image is not too small */
  min-height: 200px;
}

/* General image styling for content areas to meet min-size requirement */
.page-support__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 200px; /* Ensure images are not too small */
  min-height: 200px;
}

.page-support__image {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 3em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__grid-two-cols {
    grid-template-columns: 1fr;
  }
  .page-support__faq-grid {
    grid-template-columns: 1fr;
  }
  .page-support__faq-image {
    order: -1; /* Move image above FAQ list on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    min-height: 400px;
  }
  .page-support__hero-title {
    font-size: 2.2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .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;
    padding-right: 15px;
  }
  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container,
  .page-support__hero-actions {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__why-us-section,
  .page-support__contact-methods-section,
  .page-support__faq-section,
  .page-support__resources-section,
  .page-support__responsible-gaming-section,
  .page-support__cta-section {
    padding: 40px 0;
  }
  .page-support__container {
    padding: 0 15px;
  }
  .page-support img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-section,
  .page-support__contact-card,
  .page-support__resource-card,
  .page-support__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-support__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-support__faq-question {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-support__image-wrapper {
    min-width: unset;
    min-height: unset;
  }
  .page-support__image {
    min-width: unset;
    min-height: unset;
  }
  .page-support__contact-icon {
    width: 100% !important;
    height: auto !important;
    max-width: 200px !important; /* Ensure it doesn't get too wide on small screens but still meets min size */
    max-height: 150px !important;
  }
}