.page-support {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background is white */
  line-height: 1.6;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light blue to white gradient */
  /* Fixed header spacing */
  padding-top: var(--header-offset, 120px);
}

.page-support__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure container takes full width on smaller screens */
}

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
}

.page-support__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-support__main-title {
  font-size: 3em;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-support__intro-text {
  font-size: 1.2em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* General Section Styles */
.page-support__section {
  padding: 80px 20px;
  text-align: center;
}

.page-support__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-support__section-description {
  font-size: 1.1em;
  color: #555555;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 15px; /* Add some padding for content */
}

/* Feature Items (Why Choose) */
.page-support__why-choose {
  background-color: #f8fcfd; /* Light background for this section */
}

.page-support__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-support__feature-item {
  flex: 1 1 calc(33% - 40px); /* Three items per row */
  max-width: calc(33% - 40px);
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 280px; /* Ensure minimum width for card */
  box-sizing: border-box;
}

.page-support__feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__feature-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
}

.page-support__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-support__feature-description {
  color: #666666;
  font-size: 1em;
}

/* Support Channels */
.page-support__channels {
  background-color: #ffffff;
}

.page-support__channel-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-support__channel-item {
  flex: 1 1 calc(33% - 40px); /* Three items per row */
  max-width: calc(33% - 40px);
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 280px; /* Ensure minimum width for card */
  box-sizing: border-box;
}

.page-support__channel-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__channel-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
}

.page-support__channel-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-support__channel-description {
  color: #666666;
  font-size: 1em;
  margin-bottom: 20px;
}

/* Buttons */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

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

.page-support__btn-primary:hover {
  background: #1e87c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-support__btn-secondary:hover {
  background: #f0f8ff;
  color: #1e87c2;
  border-color: #1e87c2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-support__faq {
  background-color: #f8fcfd;
}

.page-support__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.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 15px;
  opacity: 0;
  background: #f9f9f9; /* Light background for answer */
  color: #555555;
}

/* FAQ active state - ⚠️ Use !important and sufficiently large max-height */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* ⚠️ Use!important ensure priority, value large enough to accommodate any content */
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

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

.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: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #26A9E0; /* Brand color for FAQ questions */
}

.page-support__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #333;
  transform: rotate(180deg); /* Rotate for minus sign */
}

.page-support__cta-faq {
  margin-top: 50px;
}

/* Responsible Gambling Section */
.page-support__responsible-gambling {
  background-color: #ffffff;
}

.page-support__responsible-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-support__responsible-item {
  flex: 1 1 calc(33% - 40px); /* Three items per row */
  max-width: calc(33% - 40px);
  background-color: #f8fcfd;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  min-width: 280px; /* Ensure minimum width for card */
  box-sizing: border-box;
}

.page-support__responsible-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
}

.page-support__responsible-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-support__responsible-description {
  color: #666666;
  font-size: 1em;
}

.page-support__cta-responsible {
  margin-top: 50px;
}

/* Feedback Section */
.page-support__feedback {
  background-color: #26A9E0; /* Primary brand color for background */
  color: #ffffff; /* White text for dark background */
}

.page-support__feedback .page-support__section-title,
.page-support__feedback .page-support__section-description {
  color: #ffffff;
}

.page-support__feedback-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for form background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-support__form-group {
  margin-bottom: 25px;
}

.page-support__form-label {
  display: block;
  font-size: 1.1em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-support__form-input,
.page-support__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.1); /* Darker transparent background for input */
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-support__form-input::placeholder,
.page-support__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-support__form-input:focus,
.page-support__form-textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Contact CTA Section */
.page-support__contact-cta {
  background-color: #f8fcfd;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: 2.5em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__feature-item,
  .page-support__channel-item,
  .page-support__responsible-item {
    flex: 1 1 calc(50% - 30px); /* Two items per row */
    max-width: calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  /* Ensure main content area does not cause overflow */
  .page-support__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__main-title {
    font-size: 2em;
    line-height: 1.3;
  }
  .page-support__intro-text {
    font-size: 1em;
  }

  .page-support__section {
    padding: 50px 15px;
  }
  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__section-description {
    font-size: 1em;
  }

  /* Images responsive and min size */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce min size even on mobile */
    min-height: 200px !important; /* Enforce min size even on mobile */
  }

  /* Cards/Items responsive */
  .page-support__feature-item,
  .page-support__channel-item,
  .page-support__responsible-item {
    flex: 1 1 100%; /* One item per row */
    max-width: 100%;
    padding: 20px;
  }

  /* Buttons responsive */
  .page-support__cta-button,
  .page-support__btn-primary,
  .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 25px;
    font-size: 16px;
    margin-top: 15px;
  }

  /* FAQ responsive */
  .page-support__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-support__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-support__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-support__faq-answer {
    padding: 0 15px;
  }
  
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
  }

  .page-support__feedback-form {
    padding: 25px;
  }

  .page-support__form-label {
    font-size: 1em;
  }

  .page-support__form-input,
  .page-support__form-textarea {
    padding: 12px;
    font-size: 0.95em;
  }
}

/* Color Contrast Fixes (as per instructions) */
.page-support__dark-section {
  background: #26A9E0;
  color: #ffffff; /* Forced white text for dark background */
}

/* Ensure text on light backgrounds is dark */
.page-support p,
.page-support li,
.page-support__feature-description,
.page-support__channel-description,
.page-support__responsible-description {
  color: #555555;
}

.page-support__card {
  background: #ffffff; /* White background for cards */
  color: #333333; /* Dark text for cards */
  border: 1px solid #e0e0e0;
}