/* style/support.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #28A745;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
}

/* Ensure content is not hidden by fixed header */
.page-support__hero-section,
.page-support__faq-section,
.page-support__contact-promo-section,
.page-support__related-resources-section {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  padding-bottom: 60px;
}

.page-support {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for main section if body is dark */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, assumed dark */
}

.page-support .highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  min-height: 300px;
}

.page-support__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-support__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-support__hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Gold-like color for CTA */
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button:hover {
  background: #FFA500;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-support__faq-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding-left: 20px;
  padding-right: 20px;
}

.page-support__faq-container {
  max-width: 1000px;
  margin: 0 auto;
}

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

.page-support__section-description {
  font-size: 1.1em;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-light);
  background: #ffffff;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-support__faq-question:active {
  background: #eeeeee;
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none;
}

.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Change '+' to 'x' visually */
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #555555;
  line-height: 1.7;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-support__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
  color: #555555;
}

.page-support__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-support__faq-answer a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Contact Promo Section */
.page-support__contact-promo-section {
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  color: var(--text-light);
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}

.page-support__contact-promo-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-support__contact-promo-content {
  flex: 1;
  text-align: left;
}

.page-support__contact-promo-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-support__contact-promo-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-support__contact-promo-button {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__contact-promo-button:hover {
  background: var(--bg-light);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-support__contact-promo-image {
  flex: 0 0 350px;
  max-width: 350px;
}

.page-support__contact-promo-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Related Resources Section */
.page-support__related-resources-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding-left: 20px;
  padding-right: 20px;
}

.page-support__related-resources-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-support__resource-card {
  display: block;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
  text-decoration: none;
  color: var(--text-dark);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__resource-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-support__resource-card h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin: 20px 20px 10px 20px;
  color: var(--primary-color);
}

.page-support__resource-card p {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px 20px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 2.8em;
  }

  .page-support__hero-subtitle {
    font-size: 1.2em;
  }

  .page-support__section-title {
    font-size: 2em;
  }

  .page-support__contact-promo-container {
    flex-direction: column;
    text-align: center;
  }

  .page-support__contact-promo-content {
    text-align: center;
  }

  .page-support__contact-promo-image {
    margin-top: 30px;
  }

  .page-support__resource-card img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  /* Fixed nav bar padding for mobile */
  .page-support__hero-section,
  .page-support__faq-section,
  .page-support__contact-promo-section,
  .page-support__related-resources-section {
    padding-top: 100px !important; /* Mobile: Adjust based on shared header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__hero-title {
    font-size: 2.2em;
  }

  .page-support__hero-subtitle {
    font-size: 1em;
  }

  .page-support__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

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

  .page-support__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  
  .page-support__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-support__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-support__faq-answer {
    padding: 0 20px;
  }
  
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px 20px !important;
  }

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

  .page-support__contact-promo-description {
    font-size: 1em;
  }

  .page-support__contact-promo-button {
    padding: 12px 25px;
    font-size: 0.95em;
  }

  .page-support__contact-promo-image {
    flex: 0 0 100%;
    max-width: 100%;
  }

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

  .page-support__resource-card img {
    height: 160px;
  }

  /* Mobile image adaptation */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__hero-section,
  .page-support__faq-section,
  .page-support__contact-promo-section,
  .page-support__related-resources-section,
  .page-support__hero-container,
  .page-support__faq-container,
  .page-support__contact-promo-container,
  .page-support__related-resources-container,
  .page-support__contact-promo-image,
  .page-support__resource-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 1.8em;
  }

  .page-support__hero-subtitle {
    font-size: 0.9em;
  }

  .page-support__section-title {
    font-size: 1.6em;
  }

  .page-support__contact-promo-title {
    font-size: 1.6em;
  }

  .page-support__faq-question h3 {
    font-size: 0.95em;
  }

  .page-support__faq-toggle {
    font-size: 22px;
    width: 24px;
    height: 24px;
  }
  .page-support__resource-card img {
    height: 140px;
  }
}