/* Base styles for the support page */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background: #F4F7FB; /* Background */
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding: 10px 0 50px; /* Small top padding, larger bottom */
  overflow: hidden;
  background-color: #F4F7FB; /* Ensure background matches body for seamless transition */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Desktop default */
  max-width: 100%; /* Ensure image doesn't overflow */
}

.page-support__hero-content {
  max-width: 800px;
  margin-top: 30px; /* Space between image and content */
  padding: 0 20px;
}

.page-support__hero-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-support__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #FFFFFF; /* White text for contrast */
  border: none;
}

.page-support__hero-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* General Section Styles */
.page-support__section {
  padding: 60px 0;
}

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

.page-support__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-support__section-intro {
  font-size: 17px;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Dark section variants */
.page-support__dark-section {
  background: #2F6BFF; /* Main color */
  color: #FFFFFF; /* White text for contrast */
}

.page-support__section-title--light,
.page-support__section-intro--light {
  color: #FFFFFF; /* White text for contrast on dark background */
}

/* Contact Methods Section */
.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: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

.page-support__contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.page-support__card-icon {
  width: 100%; /* Ensure image fills card width responsively */
  max-width: 250px; /* Max width for icons */
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.page-support__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-support__card-text {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 25px;
}

.page-support__card-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #FFFFFF; /* White text for contrast */
  border: none;
}

.page-support__card-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

details.page-support__faq-item summary.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
}
details.page-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
  display: none;
}
details.page-support__faq-item summary.page-support__faq-question:hover {
  background: #F4F7FB; /* Background color for hover */
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 25px 20px;
  background: #F9F9F9; /* Lighter background for answer */
  border-radius: 0 0 8px 8px;
  color: #1F2D3D; /* Text Main */
}
.page-support__faq-answer p {
  margin-bottom: 10px;
  font-size: 16px;
}
.page-support__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
  background: #2F6BFF; /* Main color */
  color: #FFFFFF; /* White text for contrast */
  text-align: center;
}

.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  background: #FFFFFF; /* White background */
  color: #2F6BFF; /* Main color text */
  border: 2px solid #2F6BFF; /* Main color border */
}

.page-support__btn-secondary:hover {
  background: #E0EFFF; /* Lighter blue hover */
  transform: translateY(-2px);
}

/* Final CTA Section */
.page-support__cta-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #FFFFFF; /* White text for contrast */
  border: none;
}

.page-support__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* General button styles for contrast */
.page-support__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}
.page-support__btn-primary:hover {
  opacity: 0.9;
}


/* --- Responsive Styles --- */

/* Mobile & Tablet (max-width: 768px) */
@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Hero Section */
  .page-support__hero-section {
    padding: 10px 0 40px; /* Adjust top padding for fixed header */
  }

  .page-support__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    width: 100% !important;
    height: auto !important;
  }

  .page-support__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-support__hero-title {
    font-size: clamp(24px, 8vw, 36px); /* Adjust clamp for smaller screens */
  }

  .page-support__hero-description {
    font-size: 16px;
  }

  .page-support__hero-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* General Section Styles */
  .page-support__section {
    padding: 40px 0;
  }

  .page-support__container {
    padding: 0 15px; /* Smaller horizontal padding */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__section-title {
    font-size: clamp(20px, 6vw, 32px);
    margin-bottom: 15px;
  }

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

  /* Contact Methods Section */
  .page-support__contact-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-support__contact-card {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__card-icon {
    max-width: 200px;
    width: 100% !important;
    height: auto !important;
  }

  .page-support__card-title {
    font-size: 20px;
  }

  .page-support__card-text {
    font-size: 15px;
  }

  .page-support__card-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 20px;
    font-size: 15px;
  }

  /* FAQ Section */
  details.page-support__faq-item {
    border-radius: 6px;
  }

  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-support__faq-qtext {
    font-size: 15px;
  }
  .page-support__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 20px 15px;
  }
  .page-support__faq-answer p {
    font-size: 15px;
  }

  /* Responsible Gaming Section */
  .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 20px;
    font-size: 16px;
  }

  /* Final CTA Section */
  .page-support__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Generic image and container responsiveness for all images/containers in .page-support */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__contact-card,
  .page-support__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Specific for buttons within flex containers */
  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container {
    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;
  }

  /* Placeholder for products grid, if it existed on this page */
  .page-support__products-grid { 
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
    overflow-x: hidden !important;
    gap: 15px;
  }

  /* Placeholder for .page-support__article-body, if it existed */
  .page-support__article-body {
    padding: 0 15px;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__article-body h3 {
    text-align: center;
  }
  .page-support__article-figure {
    margin: 20px auto !important;
    max-width: 100% !important;
  }

  /* Placeholder for .page-support__section-title-wrap if it existed */
  .page-support__section-title-wrap {
    padding: 0 15px;
    text-align: center;
  }
}