/* style/support.css */
/* Base styles for the support page */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light background for readability */
  background-color: #f8f8f8; /* Slightly off-white background */
}

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

.page-support__heading {
  font-size: 36px;
  color: #1E90FF; /* Auxiliary color for main headings */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-support__sub-heading {
  font-size: 24px;
  color: #333333;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-support__paragraph {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-support__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-support__list-item {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-support a {
  color: #1E90FF; /* Auxiliary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support a:hover {
  color: #FFD700; /* Primary color on hover */
  text-decoration: underline;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #1E90FF; /* Auxiliary color background */
  color: #ffffff; /* White text on auxiliary color */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-support__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto; /* Center images */
}

.page-support__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-support__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFD700; /* Primary color for hero title */
}

.page-support__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700; /* Primary color for CTA button */
  color: #1E90FF; /* Auxiliary color for text on primary button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__cta-button:hover {
  background: #e6c200; /* Slightly darker primary color on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Sections */
.page-support__section {
  padding: 60px 0;
}

.page-support__introduction {
  background-color: #ffffff;
}

.page-support__topics {
  background-color: #f0f0f0;
}

.page-support__contact {
  background-color: #ffffff;
}

.page-support__faq-area {
  background-color: #f0f0f0;
}

.page-support__security-info {
  background-color: #ffffff;
}

.page-support__tips {
  background-color: #f0f0f0;
}

/* Image wrappers */
.page-support__image-wrapper {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-support__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto; /* Center images */
}

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

.page-support__card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-support__card-title {
  font-size: 22px;
  color: #1E90FF;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__card .page-support__list {
  margin-left: 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__card .page-support__list-item {
  font-size: 15px;
  line-height: 1.6;
}

.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #FFD700; /* Primary color for text on secondary button */
  border: 2px solid #FFD700; /* Primary color for border */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-secondary:hover {
  background: #FFD700;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-support__contact-item {
  text-align: center;
}

.page-support__contact-title {
  font-size: 24px;
  color: #1E90FF;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__contact-description {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: #FFD700; /* Primary color for button */
  color: #1E90FF; /* Auxiliary color for text on primary button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary:hover {
  background: #e6c200;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

/* FAQ container styles */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 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 15px;
  opacity: 0;
  background: #f9f9f9;
  color: #444444;
}

/* 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 to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  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: #fff;
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* Question title styles */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
}

/* Toggle icon */
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: #1E90FF; /* Auxiliary color for active toggle */
  transform: rotate(45deg); /* Change to minus sign visually */
}


/* Responsive design for mobile */
@media (max-width: 768px) {
  .page-support__container {
    padding: 15px;
  }

  .page-support__heading {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-support__sub-heading {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-support__paragraph,
  .page-support__list-item {
    font-size: 15px;
  }

  /* Hero Section Mobile */
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-support__hero-title {
    font-size: 32px;
  }

  .page-support__hero-description {
    font-size: 16px;
  }

  .page-support__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* 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__image-wrapper,
  .page-support__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Topic Grid Mobile */
  .page-support__topic-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__card {
    padding: 20px;
  }

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

  .page-support__btn-primary,
  .page-support__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Contact Grid Mobile */
  .page-support__contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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