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

/* Header offset - applied to the first section or main content wrapper */
.page-support__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Primary color gradient */
  color: #ffffff; /* White text for gradient background */
}

.page-support__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Constrain hero image width */
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-support__hero-content h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-support__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-support__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-support__btn-primary:hover {
  background: #d46b00;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
  background: #ffffff;
  color: #26A9E0; /* Primary color */
  border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
  background: #e0f7fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* General Section Styles */
.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-support__section-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0; /* Primary color for titles */
}

.page-support__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

/* Dark background section */
.page-support__dark-bg {
  background-color: #26A9E0; /* Primary color */
  color: #ffffff;
  padding: 60px 0;
}
.page-support__dark-bg .page-support__section-title,
.page-support__dark-bg .page-support__section-description {
  color: #ffffff;
}
.page-support__dark-bg .page-support__section-description {
  color: #f0f0f0;
}

/* Why Us Section */
.page-support__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-support__feature-card {
  background: #f0f8ff; /* Light blue background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-support__feature-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

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

/* Topics Section */
.page-support__topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-support__topic-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark bg */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__topic-card h3 {
  font-size: 1.4em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-support__topic-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-support__topic-card li {
  margin-bottom: 10px;
  color: #f0f0f0;
  padding-left: 20px;
  position: relative;
}

.page-support__topic-card li::before {
  content: '•';
  color: #EA7C07; /* Login color for bullet points */
  position: absolute;
  left: 0;
}

.page-support__topic-card a {
  color: #f0f0f0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-support__topic-card a:hover {
  color: #ffffff;
}

/* Contact Us Section */
.page-support__contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-support__method-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-support__method-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

.page-support__method-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-support__method-card p {
  margin-bottom: 25px;
  color: #555555;
}

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

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

/* FAQ default state - answer hidden */
.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;
  color: #333333;
}

/* FAQ expanded state - ⚠️ Use !important and sufficiently large max-height */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* ⚠️ Use !important for priority, value large enough */
  padding: 20px !important;
  opacity: 1;
  background: #ffffff; /* Light background for answer */
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* Question style */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #f0f8ff; /* Light blue for question background */
  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;
}

.page-support__faq-question:hover {
  background: #e6f7ff;
  border-color: #c0e0f0;
}

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

/* Question title style */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #26A9E0; /* Primary color for question title */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0; /* Primary color for toggle icon */
  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: #EA7C07; /* Login color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Feedback Section */
.page-support__feedback-section {
  text-align: center;
  padding: 80px 0;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-support__hero-content h1 {
    font-size: 2.2em;
  }
  .page-support__hero-content p {
    font-size: 1.1em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* Mobile specific header offset */
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__hero-content h1 {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-support__hero-content p {
    font-size: 0.95em;
    margin-bottom: 25px;
  }
  .page-support__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important; /* Force button to fit */
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-support__hero-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-support__container {
    padding: 30px 15px;
  }
  .page-support__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-support__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  /* Image responsive adaptation */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__feature-card,
  .page-support__topic-card,
  .page-support__method-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific padding for cards to avoid double padding */
  .page-support__feature-card,
  .page-support__topic-card,
  .page-support__method-card {
    padding: 20px;
  }

  .page-support__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-support__faq-question h3 {
    font-size: 1em;
    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;
  }
}