/* style/support.css */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background sections */
  background-color: var(--dark-bg); /* Inherit from shared.css */
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-support__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-support__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-support__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Default for light backgrounds */
}

.page-support__light-bg .page-support__section-title {
  color: #017439;
}

.page-support__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-support__dark-section .page-support__section-title {
  color: #ffffff;
}

.page-support__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-support__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
}

.page-support__light-bg .page-support__text-block {
  color: #333333;
}

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

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

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

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

.page-support__light-bg .page-support__card-title {
  color: #017439;
}

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

.page-support__light-bg .page-support__card-text {
  color: #333333;
}

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

.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-support__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login text color */
  border: 2px solid #C30808;
}

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

.page-support__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

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

/* Image Styling */
.page-support__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-top: 30px;
}

.page-support__image--centered {
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-support__faq-list {
  margin-top: 30px;
}

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

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

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-support__light-bg .page-support__faq-question {
  color: #333333;
  background-color: #f0f0f0;
}

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

.page-support__light-bg .page-support__faq-question:hover {
  background-color: #e0e0e0;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(45deg);
}

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

.page-support__light-bg .page-support__faq-answer {
  color: #333333;
}

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

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

/* Contact Section */
.page-support__contact-section {
  text-align: center;
  padding-bottom: 80px;
}

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

@media (max-width: 768px) {
  .page-support__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-support__hero-title {
    font-size: 2em;
  }
  .page-support__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__grid {
    grid-template-columns: 1fr;
  }
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-support__image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }
  .page-support__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-support__dark-section, .page-support__light-bg {
    padding: 40px 0;
  }
  .page-support p, .page-support li {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 1.8em;
  }
  .page-support__section-title {
    font-size: 1.5em;
  }
  .page-support__card-title {
    font-size: 1.3em;
  }
  .page-support__faq-question {
    font-size: 1em;
  }
}

/* Ensure content images are at least 200x200px and responsive */
.page-support img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Content area image CSS dimensions lower bound */
.page-support__overview-section img,
.page-support__account-section img,
.page-support__betting-guide-section img,
.page-support__technical-support-section img,
.page-support__faq-section img {
  max-width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-support__overview-section img,
  .page-support__account-section img,
  .page-support__betting-guide-section img,
  .page-support__technical-support-section img,
  .page-support__faq-section img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow smaller on mobile if container is small */
    min-height: unset !important;
  }
}ro-buttons,
  .page-support__cta-final-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  /* Mobile image and video responsive rules */
  .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-content,
  .page-support__feature-item,
  .page-support__contact-card,
  .page-support__safety-item,
  .page-support__faq-list,
  .page-support__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-support__hero-section,
  .page-support__why-choose-section,
  .page-support__contact-methods-section,
  .page-support__faq-section,
  .page-support__safety-responsibility-section,
  .page-support__cta-final-section {
    padding: 40px 0 !important;
  }

  .page-support__hero-image-wrapper {
    display: none; /* Hide background image on small screens for better performance */
  }
}

/* Ensure content images are not too small */
/* This rule targets all img elements within .page-support and enforces a minimum display size */
.page-support img:not(.page-support__hero-image) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Specific overrides for color contrast */
.page-support__dark-section .page-support__section-title,
.page-support__dark-section h3 {
  color: #ffffff;
}

.page-support__light-bg .page-support__section-title,
.page-support__light-bg h3,
.page-support__light-bg p {
  color: #333333;
}

/* FAQ toggle icon adjustment */
.page-support__faq-toggle {
  transition: transform 0.3s ease; /* Ensure smooth transition */
}

/* Prevent image filter usage */
.page-support img {
  filter: none !important;
}

/* Ensure buttons and their containers are responsive on mobile */
@media (max-width: 768px) {
  .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;
    padding-right: 15px;
  }

  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container,
  .page-support__hero-buttons,
  .page-support__cta-final-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column !important; /* Stack buttons vertically on mobile */
  }
}