/* style/support.css */

/* Base styles and fixed header spacing */
.page-support {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, but explicitly set for clarity */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Fixed navigation bar spacing for the first content module */
.page-support__hero-section {
  padding-top: 120px; /* Desktop */
}

/* Responsive spacing for mobile */
@media (max-width: 768px) {
  .page-support__hero-section {
    padding-top: 100px; /* Mobile */
  }
}

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

.page-support__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFA500; /* Accent color for titles */
}

.page-support__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Color contrast helpers */
.page-support__dark-bg {
  background-color: #0d0d0d; /* Slightly darker than body for sections */
  color: #ffffff;
}

.page-support__light-bg {
  background-color: #ffffff; /* White background for contrast */
  color: #333333;
}

.page-support__dark-text {
  color: #333333;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-support__btn-primary {
  background-color: #003366; /* Main brand color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #003366;
}

.page-support__btn-primary:hover {
  background-color: #004488;
  border-color: #004488;
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  background-color: transparent;
  color: #FFA500; /* Accent color */
  border: 2px solid #FFA500;
  margin-left: 20px;
}

.page-support__btn-secondary:hover {
  background-color: #FFA500;
  color: #003366;
  transform: translateY(-2px);
}

.page-support__btn-tertiary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  font-size: 15px;
}

.page-support__btn-tertiary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.page-support__hero-section {
  background-color: #003366; /* Dark blue background */
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-support__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-support__hero-content {
  flex: 1;
}

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

.page-support__hero-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-support__hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-support__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-support__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* Channels Section */
.page-support__channels-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-support__channel-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-support__channel-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-support__channel-icon {
  width: 100px; /* This is a placeholder for visual size, actual image will be min 200x200px */
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-support__channel-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFA500; /* Accent color */
}

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

/* Guide Section */
.page-support__guide-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
}

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

.page-support__guide-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-support__guide-card:hover {
  transform: translateY(-8px);
}

.page-support__guide-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #003366;
}

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

.page-support__guide-list {
  list-style: disc inside;
  margin-bottom: 25px;
  padding-left: 20px;
  flex-grow: 1;
}

.page-support__guide-list li {
  margin-bottom: 8px;
}

/* Alliance Section */
.page-support__alliance-section {
  padding: 80px 0;
  background-color: #003366; /* Main brand color dark background */
}

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

.page-support__alliance-text {
  flex: 1;
  color: #ffffff;
}

.page-support__alliance-subtitle {
  font-size: 28px;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFA500;
}

.page-support__alliance-paragraph {
  font-size: 17px;
  margin-bottom: 20px;
}

.page-support__alliance-list {
  list-style: disc inside;
  padding-left: 20px;
  margin-bottom: 30px;
}

.page-support__alliance-list li {
  margin-bottom: 8px;
}

.page-support__alliance-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-support__alliance-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* Security Section */
.page-support__security-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
}

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

.page-support__security-item {
  background-color: #ffffff;
  border-left: 5px solid #003366;
  border-radius: 5px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-support__security-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #003366;
}

.page-support__security-text {
  font-size: 16px;
}

.page-support__security-cta {
  text-align: center;
}

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

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

/* FAQ container styles */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 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;
  padding: 0 15px;
  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 ensure priority, value large enough */
  padding: 20px 15px !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, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-support__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

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

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

/* Toggle icon */
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFA500; /* Accent color for toggle */
  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); /* Change to X or rotate */
}

/* CTA Section */
.page-support__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #003366; /* Main brand color dark background */
}

.page-support__cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-support__hero-image-wrapper {
    margin-top: 30px;
  }

  .page-support__alliance-content {
    flex-direction: column;
  }

  .page-support__alliance-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding: 60px 0;
  }

  .page-support__hero-title {
    font-size: 36px;
  }

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

  .page-support__section-title {
    font-size: 28px;
  }

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

  .page-support__channels-section,
  .page-support__guide-section,
  .page-support__alliance-section,
  .page-support__security-section,
  .page-support__faq-section,
  .page-support__cta-section {
    padding: 60px 0;
  }

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

  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support__btn-tertiary {
    width: 100%;
    margin-left: 0;
  }

  .page-support__btn-secondary {
    margin-top: 15px;
  }

  .page-support__hero-actions {
    flex-direction: column;
  }

  .page-support__channel-card,
  .page-support__guide-card,
  .page-support__security-item {
    padding: 25px;
  }

  .page-support__channel-title,
  .page-support__guide-title,
  .page-support__security-title {
    font-size: 20px;
  }

  .page-support__alliance-subtitle {
    font-size: 24px;
  }

  /* FAQ Mobile Adaptation */
  .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;
  }
}

/* Mobile image adaptation - IMPORTANT */
@media (max-width: 768px) {
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__hero-section,
  .page-support__channels-section,
  .page-support__guide-section,
  .page-support__alliance-section,
  .page-support__security-section,
  .page-support__faq-section,
  .page-support__cta-section,
  .page-support__container,
  .page-support__channel-card,
  .page-support__guide-card,
  .page-support__security-item,
  .page-support__alliance-image-wrapper,
  .page-support__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific padding adjustments for main sections to avoid double padding */
  .page-support__channels-section .page-support__container,
  .page-support__guide-section .page-support__container,
  .page-support__alliance-section .page-support__container,
  .page-support__security-section .page-support__container,
  .page-support__faq-section .page-support__container,
  .page-support__cta-section .page-support__container {
    padding-left: 0;
    padding-right: 0;
  }
}