/* style/support.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #1a1a2e;
  --bg-light: #f8f9fa;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark); /* Inherited from shared.css, but for clarity */
}

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

/* Fixed Navbar Spacing */
.page-support__hero-section {
  padding-top: 120px; /* Adjust based on actual header height */
  padding-bottom: 60px;
  background-color: var(--bg-dark);
  text-align: center;
}

.page-support__main-title {
  font-size: 3.2em;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-support__description {
  font-size: 1.15em;
  color: #cccccc;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-support__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-support__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-support__cta-button--secondary {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-support__section-title {
  font-size: 2.5em;
  color: var(--text-light);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

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

.page-support__introduction-section,
.page-support__guide-section,
.page-support__faq-section,
.page-support__resources-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-support__dark-section {
  background-color: #0d0d0d; /* Slightly darker for contrast */
  color: var(--text-light);
  padding: 80px 0;
}

.page-support__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-support__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-support__image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-support__text-content {
  flex: 1;
  font-size: 1.05em;
  color: #e0e0e0;
}

.page-support__text-content p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

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

.page-support__channel-card,
.page-support__guide-item,
.page-support__resource-card {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__channel-card:hover,
.page-support__guide-item:hover,
.page-support__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.page-support__channel-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.page-support__channel-title,
.page-support__guide-subtitle,
.page-support__resource-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-support__channel-text,
.page-support__resource-text {
  font-size: 1em;
  color: #c0c0c0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__guide-item ol {
  list-style-type: decimal;
  padding-left: 25px;
  text-align: left;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-support__guide-item ol li {
  margin-bottom: 8px;
  font-size: 1em;
}

.page-support__guide-item p {
  text-align: left;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-support__cta-button--small {
  padding: 10px 25px;
  font-size: 0.9em;
  border-radius: 5px;
  box-shadow: none;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  margin-top: auto; /* Push button to bottom */
}

.page-support__cta-button--small:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-support__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--card-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  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 {
  transform: rotate(45deg); /* Optional: rotate for 'x' effect if using a plus sign */
  color: var(--secondary-color);
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #e0e0e0;
  text-align: left;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

.page-support__contact-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0d0d0d; /* Darker background for final CTA */
}

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

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

  .page-support__content-wrapper {
    flex-direction: column;
  }

  .page-support__image-wrapper {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding-top: 100px !important; /* Mobile padding-top adjustment */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-support__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-support__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-support__cta-button,
  .page-support__cta-button--primary,
  .page-support__cta-button--secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__introduction-section,
  .page-support__channels-section,
  .page-support__guide-section,
  .page-support__security-section,
  .page-support__faq-section,
  .page-support__resources-section,
  .page-support__contact-cta-section {
    padding: 50px 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-support__content-wrapper {
    gap: 30px;
    margin-top: 30px;
  }

  .page-support__text-content p {
    font-size: 0.95em;
  }

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

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

  .page-support__channel-icon {
    width: 80px;
    height: 80px;
  }

  .page-support__channel-title,
  .page-support__guide-subtitle,
  .page-support__resource-title {
    font-size: 1.4em;
  }

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

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

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

  .page-support__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px 20px !important;
  }

  .page-support img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-support__image-wrapper,
  .page-support__hero-section,
  .page-support__introduction-section,
  .page-support__channels-section,
  .page-support__guide-section,
  .page-support__security-section,
  .page-support__faq-section,
  .page-support__resources-section,
  .page-support__contact-cta-section,
  .page-support__channel-card,
  .page-support__guide-item,
  .page-support__resource-card,
  .page-support__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

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

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

  .page-support__cta-button {
    font-size: 0.95em;
    padding: 10px 20px;
  }

  .page-support__channel-title,
  .page-support__guide-subtitle,
  .page-support__resource-title {
    font-size: 1.2em;
  }

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

  .page-support__faq-toggle {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }
}