/* style/support.css */
/* body is assumed to have padding-top: var(--header-offset) from shared.css */

.page-support {
  background-color: #0A0A0A; /* Background color from custom palette */
  color: #FFF6D6; /* Main text color from custom palette */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Minimal top padding, relying on body for header offset */
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.8) 0%, rgba(10, 10, 10, 1) 100%);
  overflow: hidden;
}

.page-support__hero-image-container {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px;
}

.page-support__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image slightly */
  background-color: rgba(10, 10, 10, 0.7); /* Semi-transparent background for text readability */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #3A2A12; /* Border from custom palette */
}

.page-support__main-title {
  color: #FFD36B; /* Auxiliary color for titles */
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.4);
}

.page-support__intro-paragraph {
  font-size: 1.1rem;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-support__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-support__button--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient from custom palette */
  color: #111111; /* Dark text for contrast on bright button */
  border: 2px solid #FFD36B;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-support__button--primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  transform: translateY(-2px);
}

.page-support__button--secondary {
  background: transparent;
  color: #FFD36B; /* Auxiliary color for text */
  border: 2px solid #F2C14E; /* Main color for border */
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-support__button--secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  border-color: #FFD36B;
  transform: translateY(-2px);
}

.page-support__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #F2C14E; /* Main color for section titles */
  text-align: center;
  margin-bottom: 30px;
  margin-top: 60px;
  font-weight: 600;
  line-height: 1.3;
}

.page-support__section-description {
  font-size: 1.05rem;
  color: #FFF6D6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-support__quick-links-section, 
.page-support__faq-section, 
.page-support__contact-section, 
.page-support__security-section, 
.page-support__guides-section {
  padding: 60px 0;
}

.page-support__links-grid, 
.page-support__contact-options-grid, 
.page-support__security-features, 
.page-support__guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__link-card, 
.page-support__contact-card, 
.page-support__feature-item, 
.page-support__guide-card {
  background-color: #111111; /* Card BG from custom palette */
  border: 1px solid #3A2A12; /* Border from custom palette */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-support__link-card-title, 
.page-support__contact-card-title, 
.page-support__feature-title, 
.page-support__guide-title {
  color: #FFD36B;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-support__link-card p, 
.page-support__contact-card p, 
.page-support__feature-item p, 
.page-support__guide-card p {
  color: #FFF6D6;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__link-card-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin: 5px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: 1px solid #FFD36B;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__link-card-button:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  transform: translateY(-1px);
}

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

.page-support__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(242, 193, 78, 0.05);
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-support__faq-question h3 {
  color: #F2C14E; /* Main color for FAQ questions */
  font-size: 1.15rem;
  margin: 0;
  font-weight: 500;
  flex-grow: 1;
  text-align: left;
}

.page-support__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #FFD36B; /* Auxiliary color for toggle icon */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 25px 25px;
}

.page-support__contact-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px;
}

.page-support__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-support__feature-item {
  padding: 30px;
}

.page-support__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px;
}

.page-support__security-cta {
  margin-top: 40px;
}

.page-support__guides-grid {
  margin-top: 40px;
}

.page-support__guide-card {
  text-align: left;
  padding: 25px;
}

.page-support__guide-title {
  color: #F2C14E;
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-support__guide-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: 15px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: 1px solid #FFD36B;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__guide-button:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-content {
    margin-top: -100px;
    padding: 30px 20px;
  }

  .page-support__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding-bottom: 40px;
  }
  
  .page-support__hero-content {
    margin-top: -80px; /* Adjust overlap for smaller screens */
    padding: 25px 15px;
  }

  .page-support__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-support__intro-paragraph {
    font-size: 1rem;
  }

  .page-support__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-support__button,
  .page-support__link-card-button,
  .page-support__guide-button {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__links-grid,
  .page-support__contact-options-grid,
  .page-support__security-features,
  .page-support__guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-support__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-top: 40px;
    margin-bottom: 25px;
  }

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

  .page-support__faq-question {
    padding: 18px 20px;
  }

  .page-support__faq-question h3 {
    font-size: 1.05rem;
  }

  .page-support__faq-toggle {
    font-size: 1.5rem;
  }

  .page-support__faq-answer {
    padding: 0 20px;
  }

  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px 20px 20px 20px;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-image-container,
  .page-support__contact-card,
  .page-support__feature-item,
  .page-support__guide-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Adjust hero image to not be too large on mobile */
  .page-support__hero-image {
    max-height: 400px; /* Smaller max height for mobile hero */
  }

  /* Specific overrides for feature icons to meet min-size */
  .page-support__feature-icon {
    width: 100% !important; /* Take full width of its container */
    height: auto !important;
    max-width: 200px !important; /* But limit its actual display size */
    margin-left: auto;
    margin-right: auto;
  }
  
  .page-support__contact-icon {
    width: 100% !important;
    height: auto !important;
    max-width: 200px !important;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .page-support__hero-content {
    margin-top: -60px;
    padding: 20px 10px;
  }
  .page-support__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-support__intro-paragraph {
    font-size: 0.9rem;
  }
}