/* style/support.css */

/* Base Styles for Page Support */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0a0a0a; /* Matches body background */
}

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

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

.page-support__main-title {
  font-size: 42px;
  font-weight: bold;
  color: #FFD700; /* Gold accent color */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-support__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #FFD700; /* Gold accent color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-support__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-support__text-block {
  font-size: 17px;
  color: #e0e0e0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-support__highlight-text {
  color: #FFD700;
  font-weight: bold;
}

.page-support__link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 5px;
  white-space: nowrap;
}

.page-support__btn-primary {
  background: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

.page-support__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

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

.page-support__btn-secondary:hover {
  background: #FFD700;
  color: #0A192F;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.page-support__btn-link {
  background: none;
  border: none;
  color: #FFD700;
  padding: 0;
  margin: 0;
  text-decoration: underline;
}

.page-support__btn-link:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Section Specific Styles */
.page-support__intro-section {
  background-color: #0a0a0a;
  padding-bottom: 60px;
}

.page-support__common-issues-section,
.page-support__guides-section,
.page-support__faq-section {
  background-color: #1a1a1a; /* Darker background for contrast */
  padding: 60px 0;
}

.page-support__dark-section {
  background-color: #0A192F; /* Brand primary dark color */
  color: #ffffff;
}

.page-support__card-grid,
.page-support__contact-grid,
.page-support__guide-card-grid,
.page-support__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-support__card,
.page-support__contact-item,
.page-support__guide-card,
.page-support__news-card {
  background: rgba(255, 255, 255, 0.05); /* Semi-transparent white for dark background */
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-support__card:hover,
.page-support__contact-item:hover,
.page-support__guide-card:hover,
.page-support__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.page-support__card-icon,
.page-support__contact-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-support__card-icon img,
.page-support__contact-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.page-support__card-title,
.page-support__contact-heading,
.page-support__guide-card-title,
.page-support__news-card-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-support__card-title a,
.page-support__news-card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-support__card-title a:hover,
.page-support__news-card-title a:hover {
  color: #ffffff;
  text-decoration: underline;
}

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

.page-support__contact-methods-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

.page-support__contact-item {
  justify-content: flex-start;
}

.page-support__contact-heading {
  margin-top: 0;
}

.page-support__contact-text {
  font-size: 15px;
  color: #cccccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-support__guide-image,
.page-support__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-support__guide-card-title {
  font-size: 22px;
}

.page-support__guide-text {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-support__security-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

.page-support__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-support__security-text-block {
  flex: 1;
}

.page-support__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-support__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

/* FAQ container styles */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 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 20px;
  opacity: 0;
  color: #cccccc;
  text-align: justify;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* 🚨 Ensure enough height for content */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
}

/* Question styles */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 215, 0, 0.1); /* Light gold background for question */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-support__faq-question:active {
  background: rgba(255, 215, 0, 0.3);
}

/* 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; /* Gold text for questions */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-support__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.page-support__news-section {
  padding: 60px 0;
  background-color: #0A192F;
}

.page-support__news-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-support__news-card-title {
  font-size: 20px;
  margin-bottom: 10px;
  flex-grow: 0;
}

.page-support__news-date {
  font-size: 13px;
  color: #aaaaaa;
  margin-bottom: 10px;
}

.page-support__news-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  flex-grow: 1;
  text-align: justify;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: 36px;
  }
  .page-support__section-title {
    font-size: 28px;
  }
  .page-support__security-content {
    flex-direction: column;
  }
  .page-support__security-text-block,
  .page-support__security-image-wrapper {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Mobile fixed header spacing */
  .page-support__intro-section {
    padding-top: 100px !important;
  }

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

  .page-support__main-title {
    font-size: 30px;
    margin-bottom: 20px;
  }

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

  .page-support__text-block {
    font-size: 15px;
  }

  .page-support__card-grid,
  .page-support__contact-grid,
  .page-support__guide-card-grid,
  .page-support__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__card,
  .page-support__contact-item,
  .page-support__guide-card,
  .page-support__news-card {
    padding: 25px;
  }

  .page-support__card-title,
  .page-support__contact-heading,
  .page-support__guide-card-title,
  .page-support__news-card-title {
    font-size: 18px;
  }

  .page-support__card-text,
  .page-support__contact-text,
  .page-support__guide-text,
  .page-support__news-excerpt {
    font-size: 14px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
    margin: 5px 0;
    width: 100%;
  }

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

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

  .page-support__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__security-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure all images are responsive by default */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure containers of images handle overflow */
.page-support__card-icon,
.page-support__contact-icon,
.page-support__guide-image,
.page-support__news-image,
.page-support__security-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}