/* style/support.css */

/* --- General Page Styles --- */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #000000; /* Body background from shared.css */
}

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

.page-support__section-title {
  font-size: 38px;
  font-weight: bold;
  color: #FFD700; /* Accent color for titles */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__section-intro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.page-support__hero-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('[GALLERY:hero:1920x1080:mcw67_support_hero,customer_service,gaming_assistance]') no-repeat center center/cover;
  color: #ffffff;
  text-align: center;
  /* Fixed header spacing */
  padding-top: var(--header-offset, 120px);
}

.page-support__main-title {
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.page-support__description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  color: #f0f0f0;
}

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

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-support__cta-button--primary {
  background: #FFD700; /* Accent color */
  color: #1A202C; /* Main color for text */
}

.page-support__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button--secondary {
  background: #1A202C; /* Main color */
  color: #ffffff; /* Light text */
  border: 2px solid #FFD700;
}

.page-support__cta-button--secondary:hover {
  background: #0d1016;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- Contact Info Section --- */
.page-support__contact-info-section {
  padding: 80px 0;
  background-color: #1A202C; /* 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 background for cards */
  padding: 30px;
  border-radius: 10px;
  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;
  align-items: center;
  justify-content: space-between;
}

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

.page-support__contact-icon {
  width: 100px; /* Adjust as needed, but not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px; /* Ensure images are not tiny icons */
  object-fit: cover;
}

.page-support__contact-card .page-support__card-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-support__contact-card .page-support__card-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 15px;
  flex-grow: 1; /* Allow text to take up available space */
}

.page-support__contact-card .page-support__card-text--email,
.page-support__contact-card .page-support__card-text--phone {
  font-size: 18px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-support__card-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: #FFD700;
  color: #1A202C;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 15px;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-support__card-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

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

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ default state - answer hidden */
.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 30px;
  opacity: 0;
  color: #f0f0f0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important, value large enough to contain any content */
  padding: 20px 30px !important;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.05); /* Even lighter background for open answer */
  border-radius: 0 0 10px 10px;
}

/* Question style */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter background for question */
  border: 1px solid rgba(255, 255, 255, 0.15);
  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-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

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

/* Question title style */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Accent color for question text */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Optional: rotate for 'x' effect, or keep '-' */
}

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

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

.page-support__resource-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__resource-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__resource-card .page-support__card-title {
  font-size: 20px;
  color: #FFD700;
  padding: 15px 20px 10px;
}

.page-support__resource-card .page-support__card-text {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* --- About Support Section --- */
.page-support__about-support-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background */
  color: #ffffff;
}

.page-support__about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-support__about-image {
  flex-shrink: 0;
  width: 45%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__about-text {
  flex-grow: 1;
}

.page-support__about-text p {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #f0f0f0;
}

/* --- Final CTA Section --- */
.page-support__final-cta-section {
  padding: 80px 0;
  background-color: #1A202C; /* Main color background */
  color: #ffffff;
  text-align: center;
}


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

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

  .page-support__hero-section {
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-support__main-title {
    font-size: 36px;
    line-height: 1.2;
  }

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

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent buttons from touching edges */
  }

  .page-support__cta-button {
    width: 100% !important; /* Ensure buttons take full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-support__section-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

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

  .page-support__contact-info-section,
  .page-support__faq-section,
  .page-support__resources-section,
  .page-support__about-support-section,
  .page-support__final-cta-section {
    padding: 50px 0;
  }

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

  .page-support__contact-card,
  .page-support__resource-card {
    padding: 20px;
  }

  .page-support__contact-card .page-support__card-title {
    font-size: 20px;
  }

  .page-support__contact-card .page-support__card-text {
    font-size: 15px;
  }

  .page-support__contact-card .page-support__card-text--email,
  .page-support__contact-card .page-support__card-text--phone {
    font-size: 16px;
  }

  .page-support__faq-list {
    padding: 0 15px; /* Add padding to prevent FAQ items from touching edges */
  }

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

  .page-support__faq-question h3 {
    font-size: 16px;
  }

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

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

  .page-support__resource-image {
    height: 180px;
  }

  .page-support__resource-card .page-support__card-title {
    font-size: 18px;
  }

  .page-support__resource-card .page-support__card-text {
    font-size: 14px;
  }

  .page-support__about-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-support__about-image {
    width: 100%;
    height: auto;
  }

  .page-support__about-text p {
    font-size: 15px;
  }

  /* Image responsive enforcement */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-section,
  .page-support__contact-info-section,
  .page-support__faq-section,
  .page-support__resources-section,
  .page-support__about-support-section,
  .page-support__final-cta-section,
  .page-support__contact-grid,
  .page-support__resource-grid,
  .page-support__about-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}