/* style/support.css */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#1a2b47), so text is light */
  background-color: #1a2b47; /* Default background for main content sections */
}

.page-support__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-support__section-title {
  font-size: 36px;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* 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); /* Ensure header offset */
  background: linear-gradient(135deg, #0A192F, #1a2b47); /* Darker gradient for hero */
  overflow: hidden;
}

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

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 1000px; /* Constrain hero image width */
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

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

/* Buttons */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.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 12px rgba(0, 0, 0, 0.3);
}

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

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

/* Image wrappers */
.page-support__image-wrapper {
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.page-support__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Card styles */
.page-support__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.page-support__card p {
  font-size: 16px;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Specific section styles */
.page-support__intro-section {
  background-color: #1a2b47;
}

.page-support__contact-channels {
  background-color: #0A192F;
}

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

.page-support__channel-item .page-support__btn-secondary {
  margin-top: 20px;
  width: 100%;
}

/* FAQ Section */
.page-support__faq-section {
  background-color: #1a2b47;
}

.page-support__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.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;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 5px 5px;
}

.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.2);
  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, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

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

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-support__faq-answer p {
  color: #f0f0f0;
  font-size: 15px;
}

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

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

/* Resources Section */
.page-support__resources-section {
  background-color: #0A192F;
}

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

.page-support__resource-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-support__resource-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.page-support__resource-card .page-support__card-title {
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.page-support__resource-card p {
  font-size: 15px;
  color: #cccccc;
}

/* Security Section */
.page-support__security-section {
  background-color: #1a2b47;
}

.page-support__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.page-support__security-list li {
  font-size: 18px;
  color: #ffffff;
  text-align: center;
  max-width: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-support__security-icon {
  font-size: 24px;
  color: #FFD700;
  margin-right: 10px;
}

/* Feedback Section */
.page-support__feedback-section {
  background-color: #0A192F;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 40px;
  }
  .page-support__section-title {
    font-size: 30px;
  }
  .page-support__section-description {
    font-size: 16px;
  }
  .page-support__cta-button, .page-support__btn-primary, .page-support__btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    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__section {
    padding: 40px 15px;
  }
  .page-support__section-title {
    font-size: 26px;
  }
  .page-support__section-description {
    font-size: 15px;
  }

  .page-support__image-wrapper img {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-support__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-support__card-title {
    font-size: 18px;
  }
  .page-support__card p {
    font-size: 14px;
  }

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

  .page-support__cta-button,
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support a[class*="button"],
  .page-support a[class*="btn"] {
    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;
  }
  
  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container,
  .page-support__channel-item,
  .page-support__resource-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .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;
  }

  .page-support__resource-card img {
     /* Adjust height for mobile */
  }

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

/* Ensure all images are responsive and not smaller than 200px */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
  /* The global rules strictly forbid small icons and require min-size of 200px. */
  /* For content images, this is already handled by img tags width/height and object-fit. */
  /* No need to explicitly add min-width/height here for content images, as it would conflict with aspect ratio or layout. */
  /* Small decorative icons are forbidden. */
}

/* Dark/Light/Medium background classes for intelligent contrast, as per instructions */
.page-support__dark-bg {
  background-color: #0A192F;
  color: #ffffff;
}

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

.page-support__medium-bg {
  background-color: #FFD700;
  color: #000000;
}

/* Text colors for contrast. Default for .page-support is light text due to dark body background. */
.page-support p, .page-support li {
  color: #f0f0f0;
}
.page-support__card p {
  color: #f0f0f0;
}

/* Icon styling for security list (using emojis/font icons, not image placeholders) */
.page-support__security-icon {
  font-size: 24px;
  color: #FFD700;
  margin-right: 10px;
}