/* style/support.css */

/* Base styles for the support page */
.page-support {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: var(--secondary-color, #FFFFFF); /* Body background is light */
  line-height: 1.6;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: #f8f8f8; /* Light background for the section */
  padding-top: 10px; /* Small top padding, relying on body for header offset */
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px; /* Limit height of hero image */
  object-fit: cover;
  display: block;
}

.page-support__hero-content {
  max-width: 900px;
  margin-top: 30px;
  padding: 0 15px;
}

.page-support__hero-title {
  font-size: 42px;
  font-weight: 700;
  color: #26A9E0; /* Brand primary color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

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

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

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

.page-support__btn-primary:hover {
  background-color: #1a8cc7;
  border-color: #1a8cc7;
}

.page-support__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1a8cc7;
  border-color: #1a8cc7;
}

/* Section general styles */
.page-support__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-support__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 15px;
}

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

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

.page-support__faq-category {
  margin-bottom: 40px;
}

.page-support__category-title {
  font-size: 28px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 25px;
  text-align: center;
  padding: 0 15px;
}

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-support__faq-item summary.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
.page-support__faq-answer p {
  margin-bottom: 15px;
}
.page-support__faq-answer p:last-child {
  margin-bottom: 0;
}
.page-support__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 15px;
  border-radius: 5px;
}

/* Contact Section */
.page-support__contact-section {
  background-color: #26A9E0; /* Primary brand color as dark background */
  color: #FFFFFF; /* White text for dark background */
  padding: 80px 20px;
  text-align: center;
}

.page-support__contact-section .page-support__section-title {
  color: #FFFFFF; /* White title */
}

.page-support__contact-section .page-support__section-description {
  color: #f0f0f0; /* Slightly off-white for description */
}

.page-support__contact-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-support__contact-cta .page-support__btn-primary {
  background-color: #EA7C07; /* Login button color */
  border-color: #EA7C07;
}

.page-support__contact-cta .page-support__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-support__contact-cta .page-support__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #FFFFFF;
}

.page-support__contact-cta .page-support__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1a8cc7;
  border-color: #f0f8ff;
}

/* Global image and container responsive styles */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-support__section,
.page-support__card,
.page-support__container,
.page-support__hero-cta,
.page-support__contact-cta {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .page-support__hero-section {
    padding-bottom: 30px;
  }
  .page-support__hero-content {
    margin-top: 20px;
  }
  .page-support__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-support__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  .page-support__hero-cta {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    padding: 12px 20px;
    font-size: 15px;
  }

  .page-support__section-title {
    font-size: 28px;
  }
  .page-support__section-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 10px;
  }
  .page-support__container {
    padding: 30px 15px;
  }

  /* FAQ specific mobile styles */
  details.page-support__faq-item summary.page-support__faq-question { padding: 15px; }
  .page-support__faq-qtext { font-size: 15px; }
  details.page-support__faq-item .page-support__faq-answer { padding: 0 15px 15px; }
  
  .page-support__category-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  /* Contact section mobile */
  .page-support__contact-section {
    padding: 60px 15px;
  }
  .page-support__contact-cta {
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    padding: 0 15px;
  }

  /* Global image and container responsive styles for mobile */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-cta,
  .page-support__contact-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}