/* style/support.css */

:root {
  --page-support-primary-color: #11A84E;
  --page-support-secondary-color: #22C768;
  --page-support-background-color: #08160F;
  --page-support-card-bg: #11271B;
  --page-support-text-main: #F2FFF6;
  --page-support-text-secondary: #A7D9B8;
  --page-support-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-support-border-color: #2E7A4E;
  --page-support-glow-color: #57E38D;
  --page-support-gold-color: #F2C14E;
  --page-support-divider-color: #1E3A2A;
  --page-support-deep-green-color: #0A4B2C;
  --page-support-light-bg-text: #333333; /* For light background sections */
  --page-support-dark-bg-text: #F2FFF6; /* For dark background sections */
}

.page-support {
  font-family: 'Arial', sans-serif;
  color: var(--page-support-dark-bg-text); /* Default text color for dark body background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--page-support-background-color);
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Adjust as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-support__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1;
  margin-top: -80px; /* Pull content slightly over the image for visual flow */
  background-color: var(--page-support-card-bg);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-support-border-color);
}

.page-support__main-title {
  font-weight: bold;
  color: var(--page-support-gold-color);
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.page-support__hero-description {
  color: var(--page-support-text-secondary);
  margin-bottom: 30px;
  font-size: 1.1em;
}

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

/* General Section Styling */
.page-support__introduction-section, 
.page-support__contact-section,
.page-support__policies-section {
  padding: 60px 0;
  background-color: var(--page-support-background-color);
  color: var(--page-support-dark-bg-text);
}

.page-support__faq-section,
.page-support__guide-section,
.page-support__app-download-section {
  padding: 60px 0;
  background-color: var(--page-support-text-main);
  color: var(--page-support-light-bg-text);
}

.page-support__section-title {
  font-size: 2.5em;
  color: var(--page-support-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-support__introduction-section .page-support__section-title,
.page-support__contact-section .page-support__section-title,
.page-support__policies-section .page-support__section-title {
  color: var(--page-support-gold-color);
}

.page-support__faq-section .page-support__section-title,
.page-support__guide-section .page-support__section-title,
.page-support__app-download-section .page-support__section-title {
  color: var(--page-support-primary-color);
}

.page-support__sub-title {
  font-size: 1.8em;
  color: var(--page-support-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__introduction-section .page-support__sub-title,
.page-support__contact-section .page-support__sub-title,
.page-support__policies-section .page-support__sub-title {
  color: var(--page-support-text-main);
}

.page-support__faq-section .page-support__sub-title,
.page-support__guide-section .page-support__sub-title,
.page-support__app-download-section .page-support__sub-title {
  color: var(--page-support-primary-color);
}

.page-support__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-support__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-support__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-support__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--page-support-glow-color);
  font-weight: bold;
  font-size: 1.2em;
}

.page-support__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background: var(--page-support-button-gradient);
  color: var(--page-support-text-main);
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-support__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-support__btn-secondary {
  background: transparent;
  color: var(--page-support-primary-color);
  border: 2px solid var(--page-support-primary-color);
}

.page-support__btn-secondary:hover {
  background: var(--page-support-primary-color);
  color: var(--page-support-text-main);
  transform: translateY(-2px);
}

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

.page-support__faq-item {
  background-color: var(--page-support-card-bg);
  border: 1px solid var(--page-support-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-support-text-main);
}

.page-support__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--page-support-text-main);
}

.page-support__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-support__faq-qtext {
  flex-grow: 1;
  color: var(--page-support-text-main);
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-support-glow-color);
}

.page-support__faq-item[open] .page-support__faq-toggle {
  content: '−';
}

.page-support__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--page-support-text-secondary);
}

/* Contact Section */
.page-support__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__contact-card {
  background-color: var(--page-support-card-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--page-support-border-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: var(--page-support-text-main);
}

.page-support__contact-card .page-support__card-title {
  font-size: 1.5em;
  color: var(--page-support-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__contact-card .page-support__card-description {
  color: var(--page-support-text-secondary);
  margin-bottom: 25px;
}

/* Guide Section */
.page-support__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
  margin-top: 40px;
}

.page-support__guide-list .page-support__list-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
}

.page-support__guide-list .page-support__list-item::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--page-support-primary-color);
  color: var(--page-support-text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-support__guide-list .page-support__sub-title {
  margin-top: 0;
  color: var(--page-support-primary-color);
}

/* Policies Section */
.page-support__policy-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.page-support__policy-card {
  flex: 1 1 calc(50% - 15px);
  min-width: 300px;
  background-color: var(--page-support-card-bg);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--page-support-border-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: var(--page-support-text-main);
}

.page-support__policy-card .page-support__card-title {
  font-size: 1.5em;
  color: var(--page-support-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__policy-card .page-support__card-description {
  color: var(--page-support-text-secondary);
  margin-bottom: 25px;
}

/* App Download Section */
.page-support__app-download-section {
  padding: 80px 0;
  text-align: center;
}

.page-support__app-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  text-align: left;
}

.page-support__app-content {
  flex: 1;
  max-width: 600px;
}

.page-support__app-download-section .page-support__section-title {
  color: var(--page-support-primary-color);
  text-align: left;
}

.page-support__app-download-section .page-support__text-block {
  color: var(--page-support-light-bg-text);
  text-align: left;
}

.page-support__btn-download {
  margin-top: 30px;
}

.page-support__app-image-wrapper {
  flex: 0 0 auto;
  width: 300px; /* Fixed width for the phone image */
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-support__app-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: 2.2em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__sub-title {
    font-size: 1.6em;
  }
  .page-support__app-container {
    flex-direction: column;
    text-align: center;
  }
  .page-support__app-download-section .page-support__section-title,
  .page-support__app-download-section .page-support__text-block {
    text-align: center;
  }
  .page-support__app-image-wrapper {
    order: -1; /* Move image above content on smaller screens */
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .page-support__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-support__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

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

  .page-support__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-support__sub-title {
    font-size: 1.4em;
  }

  .page-support__text-block,
  .page-support__list-item,
  .page-support__faq-item summary,
  .page-support__faq-answer {
    font-size: 1em;
  }

  /* Image responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-support__hero-image-wrapper,
  .page-support__app-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-support__content-image {
    margin: 20px auto !important;
  }

  /* Button responsive */
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support a[class*="button"],
  .page-support a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
  }

  .page-support__hero-cta-buttons,
  .page-support__contact-methods,
  .page-support__policy-cards {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-support__hero-cta-buttons > a,
  .page-support__contact-methods > div,
  .page-support__policy-cards > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-support__contact-card,
  .page-support__policy-card {
    padding: 20px !important;
  }

  .page-support__app-content {
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .page-support__main-title {
    font-size: 1.5em;
  }
  .page-support__section-title {
    font-size: 1.5em;
  }
  .page-support__hero-content {
    margin-top: -40px;
  }
  .page-support__app-image-wrapper {
    width: 250px; /* Smaller fixed width for very small screens */
  }
}