/* style/support.css */

/* Variables from shared.css are assumed to be available */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Dodger Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --border-light: #e0e0e0;
  --dark-bg-1: #0d0d0d; /* Assuming a dark body background from shared.css */
}

.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherit from body or shared.css */
}

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

/* --- General Section Styles --- */
.page-support__intro-section, 
.page-support__channels-section, 
.page-support__faq-section,
.page-support__guides-section,
.page-support__contact-form-section {
  padding: 60px 0;
  margin-bottom: 0;
}

/* Padding for fixed header */
.page-support__intro-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

.page-support__dark-bg {
  background-color: var(--dark-bg-1);
  color: var(--text-light);
}

.page-support__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-support__main-title {
  font-size: 3.2em;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-support__section-title,
.page-support__main-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__description,
.page-support__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-support__description a,
.page-support__section-description a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-support__description a:hover,
.page-support__section-description a:hover {
  text-decoration: underline;
}

.page-support__card {
  background-color: #ffffff; /* Light background for cards */
  color: var(--text-dark); /* Dark text for light background */
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, var(--primary-color), #FFC107);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button:hover {
  background: linear-gradient(135deg, #FFC107, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- Intro Section --- */
.page-support__intro-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-support__channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.page-support__channel-icon {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.page-support__channel-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__channel-text {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-support__channel-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-support__channel-text a:hover {
  text-decoration: underline;
}

/* --- FAQ Section --- */
.page-support__faq-list {
  margin-top: 40px;
}

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff; /* Light background for question */
  color: var(--text-dark); /* Dark text for question */
  border: 1px solid var(--border-light);
  border-radius: 10px;
  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;
  pointer-events: none;
  color: var(--text-dark); /* Ensure dark text */
}

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

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
  background-color: rgba(var(--primary-color), 0.1);
}

.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;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: var(--text-dark); /* Dark text for answer content */
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-support__faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
  color: var(--text-dark); /* Dark text for answer paragraphs */
}

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

.page-support__faq-answer a:hover {
  text-decoration: underline;
}

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

.page-support__guide-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.page-support__guide-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__guide-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__guide-text {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-support__guide-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-support__guide-text a:hover {
  text-decoration: underline;
}

/* --- Contact Form Section --- */
.page-support__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  padding: 40px;
}

.page-support__form-group {
  margin-bottom: 20px;
}

.page-support__form-label {
  display: block;
  font-size: 1.1em;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-dark); /* Dark text for labels */
}

.page-support__form-input,
.page-support__form-textarea {
  width: calc(100% - 24px);
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 1em;
  color: var(--text-dark);
  background-color: #f5f5f5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-support__form-input:focus,
.page-support__form-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2);
  outline: none;
}

.page-support__form-textarea {
  resize: vertical;
}

.page-support__submit-button {
  width: 100%;
  padding: 15px 30px;
  font-size: 1.2em;
}

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

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

  .page-support__intro-section, 
  .page-support__channels-section, 
  .page-support__faq-section,
  .page-support__guides-section,
  .page-support__contact-form-section {
    padding: 50px 0;
  }
}

@media (max-width: 768px) {
  .page-support__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__container {
    padding: 0 15px;
  }

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

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

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

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

  .page-support__channel-card,
  .page-support__guide-card,
  .page-support__contact-form {
    padding: 25px;
  }

  .page-support__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  
  .page-support__faq-question h3 {
    font-size: 1em;
    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__form-input,
  .page-support__form-textarea {
    width: calc(100% - 20px); /* Adjust for padding */
  }

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

  /* Ensure all images are responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__intro-section,
  .page-support__channels-section,
  .page-support__faq-section,
  .page-support__guides-section,
  .page-support__contact-form-section,
  .page-support__container,
  .page-support__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

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

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

  .page-support__cta-button {
    width: 100%;
    padding: 12px 15px;
  }
  
  .page-support__channel-card .page-support__cta-button,
  .page-support__guide-card .page-support__cta-button {
    width: auto;
  }

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

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