/* style/support.css */

/* Base Styles for Page Support */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background #f0f2f5 */
  background-color: #f0f2f5;
}

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

.page-support__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-support__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* 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;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

.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.6); /* Dark overlay for text readability */
  z-index: 2;
}

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

.page-support__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-support__btn-register,
.page-support__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  text-align: center;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-register {
  background-color: #C30808; /* Register color */
  color: #FFFFFF; /* White text for contrast on red */
}

.page-support__btn-register:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-support__btn-login {
  background-color: #C30808; /* Login color */
  color: #FFFFFF; /* White text for contrast on red */
}

.page-support__btn-login:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

/* Contact Channels Section */
.page-support__contact-channels {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-support__channel-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__channel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__channel-icon {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-support__channel-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-support__btn-contact {
  display: inline-block;
  padding: 12px 25px;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-contact:hover {
  background-color: #005f2f;
}

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

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

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

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: #f1f1f1;
}

.page-support__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333333;
  font-weight: bold;
}

.page-support__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  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: #666666;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

.page-support__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Guides & Resources Section */
.page-support__guides-resources {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-support__resource-card {
  display: block;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333333;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__resource-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  min-width: 200px;
  min-height: 200px;
}

.page-support__resource-card h3 {
  font-size: 1.4em;
  color: #017439;
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-support__resource-card p {
  font-size: 0.95em;
  color: #666666;
  margin: 0 20px 20px;
}

/* Commitment & Security Section */
.page-support__commitment-security {
  padding: 80px 0;
  background-color: #f0f2f5;
}

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

.page-support__commitment-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__commitment-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__commitment-icon {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 25px;
  min-width: 200px;
  min-height: 200px;
}

.page-support__commitment-heading {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__commitment-text {
  font-size: 1em;
  color: #666666;
}

/* Video Section */
.page-support__video-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  text-align: center;
}

.page-support__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  box-sizing: border-box;
}

.page-support__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-support__video-description {
  font-size: 1em;
  color: #666666;
  max-width: 800px;
  margin: 0 auto;
}

/* Final CTA Section */
.page-support__final-cta {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF;
  text-align: center;
}

.page-support__final-cta .page-support__section-title {
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-support__final-cta .page-support__section-intro {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-support__btn-primary {
  display: inline-block;
  padding: 15px 35px;
  background-color: #FFFFFF;
  color: #017439; /* Brand primary color for text */
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary:hover {
  background-color: #e0e0e0;
  color: #005f2f;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 2.8em;
  }
  .page-support__hero-description {
    font-size: 1.1em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__hero-section {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-support__hero-title {
    font-size: 2.2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__btn-register,
  .page-support__btn-login,
  .page-support__btn-contact,
  .page-support__btn-primary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto;
  }

  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__section-intro {
    font-size: 0.95em;
  }

  .page-support__channels-grid,
  .page-support__resource-grid,
  .page-support__commitment-grid {
    grid-template-columns: 1fr;
  }

  .page-support__channel-card,
  .page-support__resource-card,
  .page-support__commitment-item {
    padding: 25px;
  }

  .page-support__channel-title,
  .page-support__commitment-heading {
    font-size: 1.5em;
  }

  .page-support__faq-question h3 {
    font-size: 1.1em;
  }

  .page-support__faq-answer p {
    font-size: 0.95em;
  }

  /* Image and Video Responsive Fixes */
  .page-support img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-support__video-section,
  .page-support__video-container,
  .page-support__video-wrapper,
  .page-support__section,
  .page-support__card,
  .page-support__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-support__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    position: relative;
    height: 0;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 1.8em;
  }
  .page-support__hero-description {
    font-size: 0.9em;
  }
  .page-support__section-title {
    font-size: 1.5em;
  }
}