.page-support {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #f8f8f8;
}

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

/* Hero Section */
.page-support__hero-section {
  background: linear-gradient(135deg, #017439, #02984D);
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-support__hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for hero title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

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

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-support__btn-primary:hover {
  background: #E00A0A;
  border-color: #E00A0A;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-support__btn-secondary {
  background: #FFFFFF;
  color: #017439; /* Primary brand color */
  border: 2px solid #017439;
}

.page-support__btn-secondary:hover {
  background: #f0f0f0;
  border-color: #02984D;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Section Titles and Descriptions */
.page-support__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Primary brand color */
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-bg .page-support__section-title {
  color: #FFFF00; /* Light text for dark backgrounds */
}

.page-support__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-support__dark-section .page-support__section-description,
.page-support__dark-bg .page-support__section-description {
  color: #f0f0f0;
}

/* Intro Section */
.page-support__intro-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-support__intro-section p {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

/* Contact Methods Section */
.page-support__contact-methods {
  background-color: #017439; /* Primary brand color */
  padding: 80px 0;
  color: #FFFFFF;
}

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

.page-support__method-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-support__method-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-support__method-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-support__method-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-support__method-text {
  font-size: 16px;
  margin-bottom: 25px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-support__email-link, .page-support__phone-link {
  color: #FFFF00;
  text-decoration: underline;
}

.page-support__email-link:hover, .page-support__phone-link:hover {
  color: #FFFFFF;
}

/* Quick Guide Section */
.page-support__quick-guide {
  padding: 60px 0;
  background-color: #f0f0f0;
}

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

.page-support__guide-item {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-support__guide-item:hover {
  transform: translateY(-5px);
}

.page-support__guide-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-support__guide-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-support__guide-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support__guide-title a:hover {
  color: #02984D;
}

.page-support__guide-text {
  font-size: 16px;
  color: #555555;
}

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

.page-support__faq-list {
  margin-top: 40px;
}

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Use !important and sufficient value */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-support__faq-answer p {
  font-size: 16px;
  color: #444444;
  margin-bottom: 10px;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-support__faq-question:active {
  background: #eeeeee;
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #017439;
}

.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

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

/* Responsible Gaming Promo */
.page-support__responsible-gaming-promo {
  padding: 60px 20px;
  text-align: center;
  background-color: #f0f0f0;
}

.page-support__responsible-gaming-promo .page-support__section-title {
  color: #017439;
}

.page-support__responsible-gaming-promo .page-support__section-description {
  color: #555555;
}

/* Additional Resources Section */
.page-support__additional-resources {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-support__resource-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.page-support__resource-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__resource-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-support__resource-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support__resource-title a:hover {
  color: #02984D;
}

.page-support__resource-text {
  font-size: 15px;
  color: #666666;
}

/* CTA Banner */
.page-support__cta-banner {
  background-color: #017439; /* Primary brand color */
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
}

.page-support__cta-banner-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFF00;
}

.page-support__cta-banner-text {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-support__hero-title {
    font-size: 36px;
  }
  .page-support__section-title {
    font-size: 30px;
  }
  .page-support__cta-banner-title {
    font-size: 32px;
  }
  .page-support__method-grid, .page-support__guide-grid, .page-support__resource-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-support__hero-title {
    font-size: 28px;
  }
  .page-support__hero-description,
  .page-support__section-description,
  .page-support__cta-banner-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-support__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-support__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;
    flex-wrap: wrap !important;
  }
  .page-support__method-card, .page-support__guide-item, .page-support__resource-card {
    padding: 20px;
  }
  .page-support__method-title {
    font-size: 20px;
  }
  .page-support__faq-question h3 {
    font-size: 16px;
  }
  .page-support__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  .page-support__faq-answer {
    padding: 0 15px;
  }
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
  }
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-support__cta-banner-title {
    font-size: 28px;
  }
  .page-support__intro-section, .page-support__contact-methods, .page-support__quick-guide, .page-support__faq-section, .page-support__responsible-gaming-promo, .page-support__additional-resources, .page-support__cta-banner {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 24px;
  }
  .page-support__section-title {
    font-size: 22px;
  }
  .page-support__cta-banner-title {
    font-size: 24px;
  }
  .page-support__method-icon {
    width: 150px;
    height: 150px;
  }
}