/* style/support.css */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Inherited from shared.css body, but explicitly set for sections */
}

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

.page-support__hero-section {
  position: relative;
  padding: 100px 0 50px; /* Adjust padding-top to account for fixed header */
  background: linear-gradient(135deg, #26A9E0, #1a7bbd); /* Brand colors gradient */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-support__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Subtle background image */
}

.page-support__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-support__btn-primary:hover {
  background-color: #d16b06;
  transform: translateY(-2px);
}

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

.page-support__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.page-support__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #f0f0f0;
}

/* Contact Methods Section */
.page-support__contact-methods {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

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

.page-support__contact-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__contact-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-support__contact-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  width: 200px; /* Display size */
  height: 200px; /* Display size */
}

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

.page-support__card-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

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

.page-support__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-support__faq-title {
  font-size: 1.3em;
  margin: 0;
  color: #ffffff;
}

.page-support__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(45deg);
  color: #EA7C07; /* Highlight toggle when active */
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px 25px;
}

.page-support__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* Resources Section */
.page-support__resources-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

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

.page-support__resource-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
  color: #ffffff; /* Ensure text is white */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__resource-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-support__resource-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  width: 200px; /* Display size */
  height: 200px; /* Display size */
}

/* Commitment Section */
.page-support__commitment-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
  text-align: center;
}

.page-support__commitment-section .page-support__section-title {
  color: #ffffff; /* White title on blue background */
}

.page-support__commitment-section .page-support__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: 2.8em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-support__main-title {
    font-size: 2.2em;
  }
  .page-support__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-support__btn-primary, .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-support__contact-methods, .page-support__faq-section, .page-support__resources-section, .page-support__commitment-section {
    padding: 50px 0;
  }
  .page-support__contact-grid, .page-support__resources-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-support__contact-card, .page-support__resource-card {
    padding: 20px;
  }
  .page-support__faq-question {
    padding: 15px 20px;
  }
  .page-support__faq-title {
    font-size: 1.1em;
  }
  .page-support__faq-answer {
    padding: 0 20px;
  }
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Mobile image responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__hero-image {
    position: relative;
    height: 300px;
    opacity: 0.2;
  }
  .page-support__contact-icon, .page-support__resource-icon {
    min-width: 150px !important;
    min-height: 150px !important;
    width: 150px !important;
    height: 150px !important;
  }

  /* Containers for mobile overflow prevention */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-section,
  .page-support__contact-methods,
  .page-support__faq-section,
  .page-support__resources-section,
  .page-support__commitment-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-support__main-title {
    font-size: 1.8em;
  }
  .page-support__section-title {
    font-size: 1.5em;
  }
  .page-support__contact-icon, .page-support__resource-icon {
    min-width: 120px !important;
    min-height: 120px !important;
    width: 120px !important;
    height: 120px !important;
  }
}

/* Color contrast fixes based on dark body background */
.page-support p, .page-support li, .page-support__hero-description, .page-support__section-description, .page-support__card-text, .page-support__faq-answer p {
  color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-support__hero-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-support__contact-methods {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-support__faq-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-support__resources-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-support__commitment-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-support__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
}

.page-support__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-support__contact-card, .page-support__faq-item, .page-support__resource-card {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-support__faq-question {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-support__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}