/* style/support.css */

/* Base styles for the support page */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Matches body background */
}

/* Fixed header offset */
.page-support__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-support__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-support__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-support__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-support__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-support__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Default for dark sections */
  text-align: center;
  margin-bottom: 20px;
}

.page-support__section-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Default for dark sections */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Background colors for sections */
.page-support__dark-bg {
  background-color: #0a0a0a; /* Body background */
  color: #ffffff;
}

.page-support__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-tertiary,
.page-support__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-support__btn-primary {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-support__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

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

.page-support__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Specific button styles for register/login as per custom color rules */
.page-support__btn-register,
.page-support__btn-login {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-support__btn-register:hover,
.page-support__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-support__btn-tertiary {
  background-color: #017439;
  color: #ffffff;
  border: 1px solid #017439;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-support__btn-tertiary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-support__btn-link {
  color: #017439;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font-size: 1em;
}

.page-support__btn-link:hover {
  color: #005f2e;
}

/* Overview Section */
.page-support__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-support__feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-support__feature-icon {
  width: 200px; /* Adjusted to meet minimum size requirement */
  height: 200px; /* Adjusted to meet minimum size requirement */
  object-fit: cover; /* Ensure they still look good */
  margin-bottom: 20px;
}

.page-support__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-support__feature-text {
  color: #cccccc;
}

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

.page-support__channel-item {
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-support__channel-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-support__channel-text {
  color: #cccccc;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-list {
  margin-top: 50px;
}

.page-support__faq-item {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: rgba(1, 116, 57, 0.2); /* Semi-transparent brand color */
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: rgba(1, 116, 57, 0.4);
}

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

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-support__faq-answer {
  padding: 15px 25px 25px 25px;
  background-color: rgba(0, 0, 0, 0.6); /* Darker background for answer */
  font-size: 1em;
  color: #cccccc;
}

.page-support__faq-answer p {
  margin-bottom: 10px;
}
.page-support__faq-answer p:last-child {
  margin-bottom: 0;
}
.page-support__faq-answer a {
  color: #017439;
  text-decoration: underline;
}
.page-support__faq-answer a:hover {
  color: #005f2e;
}


/* Guides Section */
.page-support__guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-support__guide-card {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-support__guide-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-support__guide-title {
  font-size: 1.4em;
  color: #017439;
  margin: 20px 15px 10px 15px;
}

.page-support__guide-title a {
  color: #017439;
  text-decoration: none;
}

.page-support__guide-title a:hover {
  text-decoration: underline;
  color: #005f2e;
}

.page-support__guide-text {
  color: #cccccc;
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-support__guide-card .page-support__btn-tertiary {
  margin: 0 15px 20px 15px;
}

/* Policy Section */
.page-support__policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-support__policy-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__policy-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-support__policy-title a {
  color: #017439;
  text-decoration: none;
}

.page-support__policy-title a:hover {
  text-decoration: underline;
  color: #005f2e;
}

.page-support__policy-text {
  color: #cccccc;
  margin-bottom: 20px;
}

/* Commitment Section */
.page-support__commitment-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-support__commitment-item {
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__commitment-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-support__commitment-text {
  color: #cccccc;
}

/* Call to Action Section */
.page-support__cta-section {
  text-align: center;
  padding: 80px 20px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 2.5em;
  }
  .page-support__hero-description {
    font-size: 1.1em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__section-description {
    font-size: 1em;
  }
}

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

  /* Fixed header offset for mobile */
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-support__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Section */
  .page-support__hero-section {
    height: 450px;
  }
  .page-support__hero-title {
    font-size: 2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  /* Buttons mobile responsiveness */
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support__btn-tertiary,
  .page-support__btn-link,
  .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 {
    flex-direction: column;
    gap: 15px;
  }

  /* Image responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container max-width for mobile */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__overview-section,
  .page-support__channels-section,
  .page-support__faq-section,
  .page-support__guides-section,
  .page-support__policy-section,
  .page-support__commitment-section,
  .page-support__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__feature-title,
  .page-support__channel-title,
  .page-support__guide-title,
  .page-support__policy-title,
  .page-support__commitment-title {
    font-size: 1.3em;
  }
}