/* style/support.css */

/* Base styles for the support page */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

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

.page-support__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  color: #ffffff;
  text-align: center;
  background-color: #26A9E0; /* Brand color as background */
}

.page-support__hero-image-container {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-support__hero-content {
  position: relative; /* Ensure content is above the image but not absolutely positioned over it */
  z-index: 1;
  padding: 40px 20px 0 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-support__hero-title {
  font-size: clamp(32px, 4.5vw, 50px); /* Responsive H1 font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF; /* White text on brand color background */
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* 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: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

.page-support__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

/* Main Support Channels Section */
.page-support__channels-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* Light background */
}

.page-support__channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-support__channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-support__channel-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-support__channel-text {
  font-size: 16px;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-support__faq-list {
  margin-top: 40px;
}

.page-support__faq-item {
  background-color: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #FFFFFF;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-question {
  background-color: #e9ecef;
  border-bottom: 1px solid #ced4da;
}

.page-support__faq-question:hover {
  background-color: #e9ecef;
}

.page-support__faq-qtext {
  flex-grow: 1;
}

.page-support__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-toggle {
  transform: rotate(45deg);
}

/* Hide default marker for details */
.page-support__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-support__faq-item summary {
  list-style: none;
}

.page-support__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #555555;
  background-color: #f8f9fa;
}

.page-support__faq-answer p {
  margin-bottom: 10px;
}

.page-support__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-support__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-support__faq-answer a:hover {
  color: #1a7bb5;
}

/* Guides & Resources Section */
.page-support__resources-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
}

.page-support__resources-section .page-support__section-description {
  color: #f0f0f0;
}

.page-support__resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__resource-card {
  display: block;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-support__resource-text {
  font-size: 16px;
  color: #555555;
}

/* Commitment Section */
.page-support__commitment-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-support__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-support__commitment-list li {
  margin-bottom: 15px;
  font-size: 18px;
  color: #333333;
}

.page-support__commitment-list li strong {
  color: #26A9E0;
}

.page-support__commitment-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Bottom CTA Section */
.page-support__cta-section-bottom {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color as background */
  text-align: center;
  color: #ffffff;
}

.page-support__cta-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-support__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  .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: 10px 0 40px 0;
  }

  .page-support__hero-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-support__hero-description {
    font-size: 16px;
  }

  .page-support__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__channels-section,
  .page-support__faq-section,
  .page-support__resources-section,
  .page-support__commitment-section,
  .page-support__cta-section-bottom {
    padding: 40px 0;
  }

  .page-support__section-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-support__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-support__channels-grid,
  .page-support__resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__channel-card,
  .page-support__resource-card {
    padding: 25px;
  }

  .page-support__channel-image {
    max-width: 200px;
  }

  .page-support__channel-title,
  .page-support__resource-title {
    font-size: 20px;
  }

  .page-support__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-support__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }

  .page-support__commitment-list li {
    font-size: 16px;
  }

  .page-support__commitment-image {
    max-width: 100%;
  }

  /* Ensure all images are responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers are responsive */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-section,
  .page-support__channels-section,
  .page-support__faq-section,
  .page-support__resources-section,
  .page-support__commitment-section,
  .page-support__cta-section-bottom,
  .page-support__channel-card,
  .page-support__resource-card,
  .page-support__hero-cta-buttons,
  .page-support__button-group,
  .page-support__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific overrides for padding on sections that might be full-width */
  .page-support__hero-section .page-support__container,
  .page-support__channels-section .page-support__container,
  .page-support__faq-section .page-support__container,
  .page-support__resources-section .page-support__container,
  .page-support__commitment-section .page-support__container,
  .page-support__cta-section-bottom .page-support__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}