.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--background-dark); /* Ensure it uses shared background */
}

.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;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

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

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

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

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-contact {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

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

/* Specific button colors */
.page-support__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

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

.page-support__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

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

/* General Section Styling */
.page-support__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.page-support__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

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

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

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

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

.page-support__light-bg a {
  text-decoration: underline;
}

.page-support__light-bg a:hover {
  color: #017439;
}

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

.page-support__feature-item,
.page-support__contact-item,
.page-support__guide-item,
.page-support__info-item {
  background-color: rgba(255, 255, 255, 0.1); /* For dark sections */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__feature-item:hover,
.page-support__contact-item:hover,
.page-support__guide-item:hover,
.page-support__info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-support__feature-icon,
.page-support__info-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-support__feature-title,
.page-support__contact-title,
.page-support__guide-title,
.page-support__info-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__feature-description,
.page-support__contact-description,
.page-support__guide-description,
.page-support__info-description {
  font-size: 1em;
  color: #f0f0f0; /* For dark sections */
}

.page-support__light-bg .page-support__feature-description,
.page-support__light-bg .page-support__info-description {
  color: #555555;
}

.page-support__email-link,
.page-support__phone-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-support__email-link:hover,
.page-support__phone-link:hover {
  text-decoration: underline;
}

.page-support__btn-contact {
  margin-top: 20px;
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #ffffff;
}

.page-support__btn-contact:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

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

.page-support__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.page-support__faq-question:hover {
  background-color: #f0f0f0;
}

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

.page-support__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  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: #555555;
  background-color: #f9f9f9;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px;
}

.page-support__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Call to Action Bottom */
.page-support__cta-bottom {
  text-align: center;
}

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

  .page-support__section-title {
    font-size: 2em;
  }

  .page-support__feature-grid,
  .page-support__contact-grid,
  .page-support__guide-grid,
  .page-support__info-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

  .page-support__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 350px;
  }

  .page-support__hero-title {
    font-size: 2.2em;
  }

  .page-support__hero-description {
    font-size: 1em;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-support__section-title {
    font-size: 1.8em;
  }

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

  .page-support__dark-section,
  .page-support__light-bg {
    padding: 50px 0;
  }

  .page-support__feature-grid,
  .page-support__contact-grid,
  .page-support__guide-grid,
  .page-support__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__feature-icon,
  .page-support__info-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important; /* Enforce minimum size */
  }

  .page-support__feature-item,
  .page-support__contact-item,
  .page-support__guide-item,
  .page-support__info-item {
    padding: 25px;
  }

  .page-support__faq-question {
    padding: 15px;
  }

  .page-support__faq-item-title {
    font-size: 1.1em;
  }

  .page-support__faq-answer {
    padding: 0 15px;
  }

  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px;
  }

  /* Mobile image responsiveness */
  .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__hero-section,
  .page-support__why-choose-us,
  .page-support__contact-methods,
  .page-support__faq-section,
  .page-support__troubleshooting-guide,
  .page-support__responsible-gaming,
  .page-support__feedback-section,
  .page-support__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-support__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}