/* style/support.css */

/* Base styles for the support page content */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text color for light background */
  background-color: #f8f9fa; /* Light background for the page */
}

/* Hero Section */
.page-support__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #007bff; /* Main brand color for hero background */
  color: #ffffff; /* White text for dark background */
  position: relative;
  overflow: hidden;
  gap: 30px;
}

.page-support__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-support__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  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;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-support__btn-primary {
  background-color: #ffc107; /* Auxiliary brand color */
  color: #000000; /* Dark text for light background */
  border: 2px solid #ffc107;
}

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

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

.page-support__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.page-support__hero-image-wrapper {
  margin-top: 30px;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

/* 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.2em;
  color: #007bff;
  text-align: center;
  margin-bottom: 20px;
}

.page-support__dark-bg .page-support__section-title {
  color: #ffffff;
}

.page-support__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-support__dark-bg .page-support__section-description {
  color: #f0f0f0;
}

/* Channels Section */
.page-support__channels-section {
  background-color: #ffffff;
  padding: 60px 0;
}

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

.page-support__channel-card {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-support__channel-icon {
  width: 100%; /* Ensure image fills card width */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-support__channel-title {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-support__channel-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-support__btn-small:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Guide Section */
.page-support__guide-section {
  background-color: #007bff;
  color: #ffffff;
  padding: 60px 0;
}

.page-support__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

.page-support__guide-subtitle {
  font-size: 1.4em;
  color: #ffc107;
  margin-bottom: 15px;
}

.page-support__guide-item p {
  color: #f0f0f0;
}

/* Common Issues Section */
.page-support__common-issues-section {
  background-color: #ffffff;
  padding: 60px 0;
}

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

.page-support__issue-card {
  background-color: #f8f9fa;
  border-left: 5px solid #ffc107;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-support__issue-card:hover {
  transform: translateY(-3px);
}

.page-support__issue-title {
  font-size: 1.4em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-support__issue-card p {
  color: #555555;
}

/* Commitment Section */
.page-support__commitment-section {
  background-color: #007bff;
  color: #ffffff;
  padding: 60px 0;
}

.page-support__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

.page-support__commitment-subtitle {
  font-size: 1.4em;
  color: #ffc107;
  margin-bottom: 15px;
}

.page-support__commitment-item p {
  color: #f0f0f0;
}

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

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

.page-support__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

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

.page-support__faq-subtitle {
  font-size: 1.2em;
  color: #007bff;
  margin: 0;
}

.page-support__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #007bff;
  transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #ffffff;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-support__faq-answer p {
  margin: 0;
  color: #555555;
}

/* Conclusion Section */
.page-support__conclusion-section {
  background-color: #007bff;
  color: #ffffff;
  text-align: center;
  padding: 60px 0;
}

.page-support__conclusion-section .page-support__section-title {
  color: #ffffff;
}

.page-support__conclusion-section .page-support__section-description,
.page-support__text-block {
  color: #f0f0f0;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.page-support__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Links within content sections */
.page-support a {
  color: #ffc107; /* Auxiliary color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-support a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-support__hero-section {
    flex-direction: column;
  }
  .page-support__hero-title {
    font-size: 2.2em;
  }
  .page-support__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  /* Ensure header offset is applied to the first main section on mobile */
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support__btn-small {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important; /* Adjust padding for mobile */
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important; /* Allow text wrapping */
    word-wrap: break-word !important; /* Break long words */
  }

  /* Images responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* All containers with images/videos/buttons should also be responsive */
  .page-support__section,
  .page-support__container,
  .page-support__channel-card,
  .page-support__issue-card,
  .page-support__guide-item,
  .page-support__commitment-item,
  .page-support__faq-item,
  .page-support__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add some padding to prevent content touching edges */
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-support__hero-section,
  .page-support__channels-section,
  .page-support__guide-section,
  .page-support__common-issues-section,
  .page-support__commitment-section,
  .page-support__faq-section,
  .page-support__conclusion-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll for sections */
  }

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

  .page-support__channel-icon {
    height: auto; /* Allow height to adjust naturally on mobile */
  }

  .page-support__hero-image {
    width: 100%;
    height: auto;
  }
}

/* Ensure content area images are at least 200px wide/high */
.page-support__channels-section img,
.page-support__guide-section img,
.page-support__common-issues-section img,
.page-support__commitment-section img {
  min-width: 200px;
  min-height: 200px;
}