/* style/support.css */

:root {
  --page-support-primary-color: #11A84E;
  --page-support-secondary-color: #22C768;
  --page-support-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-support-card-bg: #11271B;
  --page-support-bg: #08160F;
  --page-support-text-main: #F2FFF6;
  --page-support-text-secondary: #A7D9B8;
  --page-support-border: #2E7A4E;
  --page-support-glow: #57E38D;
  --page-support-gold: #F2C14E;
  --page-support-divider: #1E3A2A;
  --page-support-deep-green: #0A4B2C;
}

.page-support {
  background-color: var(--page-support-bg);
  color: var(--page-support-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-support__hero-content {
  position: relative;
  z-index: 1;
  margin-top: -150px; /* Pull content up over the image slightly for visual flow */
  padding: 20px;
  max-width: 900px;
  background: rgba(8, 22, 15, 0.85); /* Slightly transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-support__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--page-support-gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.2em;
  color: var(--page-support-text-secondary);
  margin-bottom: 30px;
}

.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-support__btn-primary {
  background: var(--page-support-button-gradient);
  color: #ffffff;
  border: none;
}

.page-support__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  background: transparent;
  color: var(--page-support-primary-color);
  border: 2px solid var(--page-support-primary-color);
}

.page-support__btn-secondary:hover {
  background: var(--page-support-primary-color);
  color: #ffffff;
}

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

.page-support__about-support-section {
  background-color: var(--page-support-bg);
}

.page-support__channels-section,
.page-support__guides-section,
.page-support__contact-section.page-support__dark-bg {
  background-color: var(--page-support-card-bg);
}

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

.page-support__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--page-support-gold);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-support__section-description {
  font-size: 1.1em;
  color: var(--page-support-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__content-wrapper {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.page-support__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: var(--page-support-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-support__text-block {
  font-size: 1em;
  color: var(--page-support-text-secondary);
  margin-bottom: 20px;
}

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

.page-support__grid-2-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-support__card {
  background-color: var(--page-support-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--page-support-border);
}

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

.page-support__card-title {
  font-size: 1.4em;
  color: var(--page-support-text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-support__card-description {
  font-size: 0.95em;
  color: var(--page-support-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__faq-section .page-support__image,
.page-support__guides-section .page-support__image {
  max-width: 800px;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  display: block;
}

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

.page-support__faq-item {
  background-color: var(--page-support-card-bg);
  border: 1px solid var(--page-support-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--page-support-text-main);
  cursor: pointer;
  background-color: var(--page-support-deep-green);
  border-bottom: 1px solid transparent; /* default */
}

.page-support__faq-item[open] .page-support__faq-question {
  border-bottom-color: var(--page-support-border);
}

.page-support__faq-question::-webkit-details-marker {
  display: none;
}

.page-support__faq-question::marker {
  display: none;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--page-support-gold);
}

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

.page-support__faq-answer {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: var(--page-support-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-support__faq-item[open] .page-support__faq-answer {
  max-height: 500px; /* Arbitrary large value to allow content to expand */
  padding: 0 20px 20px;
}

/* Fallback for non-details JS implementation */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important;
}

.page-support__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-support__text-link {
  color: var(--page-support-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-support__text-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-support__contact-grid {
  align-items: center;
}

.page-support__contact-info {
  text-align: left;
}

.page-support__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-support__contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--page-support-text-secondary);
}

.page-support__icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 15px;
  background-color: var(--page-support-gold); /* Example icon color */
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.page-support__icon--email {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

.page-support__icon--phone {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.32.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
}

.page-support__icon--address {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5S10.62 6.5 12 6.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}

.page-support__contact-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-support__contact-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-support__hero-section {
    padding: 10px 15px 40px;
  }

  .page-support__hero-content {
    margin-top: -80px;
    padding: 15px;
  }

  .page-support__main-title {
    font-size: 2.2em;
  }

  .page-support__hero-description {
    font-size: 1em;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    margin-bottom: 10px;
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-support__section {
    padding: 40px 0;
  }

  .page-support__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__section-title {
    font-size: 2em;
  }

  .page-support__sub-title {
    font-size: 1.5em;
  }

  .page-support__grid-3-columns,
  .page-support__grid-2-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-support__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-section,
  .page-support__hero-image-wrapper,
  .page-support__cta-buttons,
  .page-support__contact-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-support__faq-question {
    padding: 15px;
    font-size: 1em;
  }
  
  .page-support__faq-answer {
    padding: 0 15px 15px;
  }

  .page-support__icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
}

/* Ensure content images are at least 200px on desktop */
.page-support__card-image,
.page-support__image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific rule for content area images to prevent smaller than 200px */
.page-support__content-area img,
.page-support__text-block img {
  width: auto;
  height: auto;
  max-width: 100%;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: contain; /* Adjust as needed */
}