:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-light: #F4F7FB;
  --text-main: #1F2D3D;
  --text-dark: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --white: #ffffff;
  --light-gray: #f9f9f9;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;
}

/* Base styles for the support page content */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for light background */
  background-color: var(--background-light); /* Default light background */
  padding-bottom: 60px; /* Ensure space above footer */
}

/* Container for content sections */
.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-support__section-spacing {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-support__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-support__section-description {
  font-size: 18px;
  color: var(--text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.page-support__text-center {
  text-align: center;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-support__btn-primary {
  background: var(--button-gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-support__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-support__btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-support__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: var(--background-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__hero-image {
  width: 100%;
  height: 675px; /* Fixed height for desktop, will be auto on mobile */
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

.page-support__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-support__main-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 20px;
  color: var(--text-main);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px; /* Limit button group width */
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

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

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-support__faq-item summary.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}
details.page-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
  display: none;
}
details.page-support__faq-item summary.page-support__faq-question:hover {
  background: var(--light-gray);
}
.page-support__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 25px 20px;
  background: var(--light-gray);
  border-radius: 0 0 8px 8px;
  color: var(--text-main);
}
.page-support__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Contact Methods Section */
.page-support__dark-section {
  background-color: var(--primary-color);
  color: var(--white);
}
.page-support__dark-section .page-support__section-title {
  color: var(--white);
}
.page-support__dark-section .page-support__section-description {
  color: var(--white);
}

.page-support__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-support__flex-container--reverse {
  flex-direction: row-reverse;
}

.page-support__text-content {
  flex: 1;
}

.page-support__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-support__contact-image,
.page-support__payment-image,
.page-support__technical-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: block; /* Ensure it behaves as a block element */
}

.page-support__contact-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  font-size: 18px;
}

.page-support__contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.page-support__contact-icon {
  font-size: 24px;
  color: var(--glow-color); /* Use glow color for icons */
}

.page-support__contact-link {
  color: var(--white);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-support__contact-link:hover {
  color: var(--glow-color);
}

.page-support__btn-contact {
  margin-top: 20px;
}

/* Payment Methods Section */
.page-support__payment-list {
  list-style: disc;
  padding-left: 25px;
  margin: 30px 0;
  font-size: 18px;
  color: var(--text-main);
}

.page-support__payment-item {
  margin-bottom: 10px;
}

.page-support__btn-payment {
  margin-top: 20px;
}

/* Technical Support Section */
.page-support__technical-image {
  margin: 40px auto;
  max-width: 800px;
}

.page-support__btn-technical {
  margin-top: 20px;
}

/* General image styling */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: 42px;
  }
  .page-support__section-title {
    font-size: 32px;
  }
  .page-support__hero-image {
    height: 500px;
  }
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit width for stacked buttons */
    margin: 0 auto;
  }
  .page-support__flex-container {
    flex-direction: column;
    gap: 30px;
  }
  .page-support__flex-container--reverse {
    flex-direction: column; /* Keep column for reverse on smaller screens */
  }
  .page-support__image-wrapper {
    order: -1; /* Image above text for column layout */
  }
  .page-support__contact-list,
  .page-support__payment-list {
    margin: 20px 0;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-support__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }
  .page-support__hero-image {
    height: 300px !important; /* Adjust hero image height for mobile */
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-support__hero-content {
    padding: 0 15px;
  }
  .page-support__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-support__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Sections */
  .page-support__section-spacing {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .page-support__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-support__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* FAQ Section */
  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px;
    font-size: 16px;
  }
  .page-support__faq-qtext {
    font-size: 16px;
  }
  .page-support__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 15px 15px;
  }
  .page-support__faq-answer p {
    font-size: 15px;
  }

  /* Flex containers for Contact & Payment */
  .page-support__flex-container {
    flex-direction: column;
    gap: 20px;
  }
  .page-support__flex-container--reverse {
    flex-direction: column;
  }
  .page-support__image-wrapper {
    order: -1; /* Image always above text on mobile */
  }

  /* Images */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-support__contact-image,
  .page-support__payment-image,
  .page-support__technical-image {
    box-shadow: none; /* Remove heavy shadow on mobile */
  }

  /* Lists */
  .page-support__contact-list,
  .page-support__payment-list {
    font-size: 16px;
    margin: 20px 0;
  }
  .page-support__contact-item {
    gap: 10px;
    margin-bottom: 10px;
  }
  .page-support__contact-icon {
    font-size: 20px;
  }
}