/* style/support.css */

/* Base styles for the support page */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default light text for dark body background */
  padding-top: 120px; /* Space for fixed header on desktop */
}

@media (max-width: 768px) {
  .page-support {
    padding-top: 100px; /* Space for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }
}

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

@media (max-width: 768px) {
  .page-support__container {
    padding: 20px 15px;
  }
}

/* Section backgrounds */
.page-support__dark-bg {
  background: #0A2463;
  color: #ffffff;
}

.page-support__light-bg {
  background: #f8f9fa;
  color: #333333;
}

/* General titles and descriptions */
.page-support__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

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

@media (max-width: 768px) {
  .page-support__section-title {
    font-size: 28px;
  }
  .page-support__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
}

/* Card styles */
.page-support__card {
  background: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

@media (max-width: 768px) {
  .page-support__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
}

/* Buttons */
.page-support__btn-primary {
  display: inline-block;
  background: #E0B14A; /* Auxiliary color */
  color: #0A2463; /* Main color for text to ensure contrast */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #E0B14A;
}

.page-support__btn-primary:hover {
  background: #cc9f3a;
  color: #ffffff;
}

.page-support__btn-secondary {
  display: inline-block;
  background: #0A2463; /* Main color */
  color: #E0B14A; /* Auxiliary color for text to ensure contrast */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #0A2463;
}

.page-support__btn-secondary:hover {
  background: #071b4a;
  color: #ffd700;
}

/* Links within text */
.page-support p a, .page-support li a {
  color: #E0B14A;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-support p a:hover, .page-support li a:hover {
  color: #ffd700;
}

/* Hero Banner */
.page-support__hero-banner {
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-support__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-support__hero-description {
  font-size: 20px;
  max-width: 900px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

@media (max-width: 768px) {
  .page-support__hero-banner {
    padding: 60px 15px;
  }
  .page-support__main-title {
    font-size: 32px;
  }
  .page-support__hero-description {
    font-size: 17px;
  }
  .page-support__btn-primary {
    padding: 10px 20px;
    font-size: 15px;
  }
}

/* Contact Channels */
.page-support__contact-channels {
  padding: 60px 20px;
}

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

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

.page-support__channel-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #E0B14A;
  overflow: hidden;
}

.page-support__channel-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-support__channel-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0A2463;
}

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

@media (max-width: 768px) {
  .page-support__contact-channels {
    padding: 40px 15px;
  }
  .page-support__channel-grid {
    gap: 20px;
  }
  .page-support__channel-icon {
    width: 80px;
    height: 80px;
  }
  .page-support__channel-name {
    font-size: 18px;
  }
  .page-support__channel-text {
    font-size: 15px;
  }
  .page-support__btn-secondary {
    font-size: 14px;
    padding: 8px 15px;
  }
}

/* Quick Guides */
.page-support__quick-guides {
  padding: 60px 20px;
}

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

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

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

.page-support__guide-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0A2463;
}

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

@media (max-width: 768px) {
  .page-support__quick-guides {
    padding: 40px 15px;
  }
  .page-support__guide-grid {
    gap: 20px;
  }
  .page-support__guide-image {
    height: 180px;
  }
  .page-support__guide-title {
    font-size: 18px;
  }
  .page-support__guide-text {
    font-size: 15px;
  }
}

/* FAQ Section */
.page-support__faq-section {
  padding: 60px 20px;
}

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

/* FAQ container style */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* 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;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height to ensure it expands */
.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: #f0f0f0;
  border-radius: 0 0 5px 5px;
}

/* Question style */
.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 style */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click events */
  color: #0A2463;
}

/* 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 events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

/* Mobile adaptation */
@media (max-width: 768px) {
  .page-support__faq-section {
    padding: 40px 15px;
  }
  .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;
  }
}

/* Security Policy */
.page-support__security-policy {
  padding: 60px 20px;
}

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

.page-support__policy-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__policy-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-support__policy-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0A2463;
}

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

@media (max-width: 768px) {
  .page-support__security-policy {
    padding: 40px 15px;
  }
  .page-support__policy-cards {
    gap: 20px;
  }
  .page-support__policy-image {
    height: 180px;
  }
  .page-support__policy-title {
    font-size: 18px;
  }
  .page-support__policy-text {
    font-size: 15px;
  }
}

/* Troubleshooting */
.page-support__troubleshooting {
  padding: 60px 20px;
}

.page-support__troubleshoot-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.page-support__troubleshoot-list li {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 17px;
  color: #333333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-support__troubleshoot-list li strong {
  color: #0A2463;
}

.page-support__troubleshoot-cta {
  text-align: center;
  font-size: 18px;
  color: #333333;
}

@media (max-width: 768px) {
  .page-support__troubleshooting {
    padding: 40px 15px;
  }
  .page-support__troubleshoot-list li {
    font-size: 15px;
    padding: 12px 15px;
  }
  .page-support__troubleshoot-cta {
    font-size: 16px;
  }
}

/* Why Choose Us */
.page-support__why-choose {
  padding: 60px 20px;
  text-align: center;
}

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

.page-support__why-choose-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-support__why-choose-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-support__why-choose-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-support__why-choose-item h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E0B14A;
}

.page-support__why-choose-item p {
  font-size: 16px;
  flex-grow: 1;
}

.page-support__why-choose-footer {
  margin-top: 50px;
  font-size: 20px;
  font-weight: bold;
  color: #E0B14A;
}

@media (max-width: 768px) {
  .page-support__why-choose {
    padding: 40px 15px;
  }
  .page-support__why-choose-grid {
    gap: 20px;
  }
  .page-support__why-choose-icon {
    width: 80px;
    height: 80px;
  }
  .page-support__why-choose-item h3 {
    font-size: 20px;
  }
  .page-support__why-choose-item p {
    font-size: 15px;
  }
  .page-support__why-choose-footer {
    font-size: 18px;
    margin-top: 30px;
  }
}

/* Global image responsive styles */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-support__channel-icon img,
.page-support__guide-image,
.page-support__policy-image,
.page-support__why-choose-icon {
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile specific image and container styles */
@media (max-width: 768px) {
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__container,
  .page-support__hero-banner,
  .page-support__contact-channels,
  .page-support__quick-guides,
  .page-support__faq-section,
  .page-support__security-policy,
  .page-support__troubleshooting,
  .page-support__why-choose {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}