/* style/support.css */

/* General styles for the support page content */
.page-support {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  line-height: 1.6;
  background-color: #F4F7FB; /* Body background color */
}

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

.page-support__section-title {
  font-size: 2.5em;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-support__text-block {
  font-size: 1em;
  margin-bottom: 1em;
  text-align: justify;
}

.page-support__text-block--white {
  color: #f0f0f0;
}

/* Button styles */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to wrap */
  box-sizing: border-box;
  max-width: 100%;
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

.page-support__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

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

.page-support__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.2);
}

.page-support__btn-link {
  background: none;
  color: #2F6BFF;
  border: none;
  padding: 0;
  text-align: left;
  justify-content: flex-start;
}

.page-support__btn-link:hover {
  text-decoration: underline;
}

.page-support__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding-bottom: 50px;
  background-color: #F4F7FB; /* Consistent with body */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-support__hero-content {
  text-align: center;
  max-width: 800px;
  margin-top: 30px;
  padding: 0 20px;
}

.page-support__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: #1F2D3D;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

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

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

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

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

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

.page-support__channel-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  min-height: 350px; /* Ensure consistent height */
}

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

.page-support__channel-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Make icons round */
  background-color: rgba(255, 255, 255, 0.2);
  padding: 10px;
}

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

.page-support__channel-description {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1; /* Push button to bottom */
  margin-bottom: 20px;
}

/* Guide Box Section (Five vertical cards) */
.page-support__guide-box {
  padding: 60px 0;
  background-color: #F4F7FB; /* Light background */
}

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

.page-support__guide-card {
  flex: 0 0 calc(20% - 16px); /* 5 cards per row with gap */
  max-width: calc(20% - 16px);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-support__guide-card a {
  display: block;
  text-decoration: none;
}

.page-support__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical cards */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-support__guide-card:hover img {
  transform: scale(1.03);
}

/* Vertical alignment for guide cards */
.page-support__guide-card--pos-1, .page-support__guide-card--pos-5 {
  padding-top: 50px;
}

.page-support__guide-card--pos-2, .page-support__guide-card--pos-4 {
  padding-top: 25px;
}

/* Home Content Box (FAQ section) */
.page-support__home-content-box {
  max-width: 91%; /* Adjusted for desktop */
  margin: 60px auto;
  padding: 30px;
  border: 5px solid #D6E2FF; /* Border color */
  border-radius: 15px;
  box-shadow: 0 0 20px #A5C4FF; /* Glow color */
  height: 700px; /* Fixed height for desktop */
  background-color: #ffffff;
}

.page-support__home-content-inner {
  height: 100%;
  overflow-y: auto; /* Scrollable content for desktop */
  padding-right: 15px; /* Space for scrollbar */
}

/* Scrollbar styles for home-content-inner */
.page-support__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-support__home-content-inner::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.page-support__home-content-inner::-webkit-scrollbar-thumb {
  background: #2F6BFF;
  border-radius: 10px;
}

.page-support__home-content-inner::-webkit-scrollbar-thumb:hover {
  background: #4A8BFF;
}

/* FAQ styles */
.page-support__faq-item {
  margin-bottom: 15px;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fcfdff;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #e8f0ff;
  color: #1F2D3D;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* Hide default marker for details summary */
}

.page-support__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for WebKit browsers */
}

.page-support__faq-question .page-support__faq-qtext {
  flex-grow: 1;
  font-size: 1.1em;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  line-height: 1;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' or similar */
}

.page-support__faq-answer {
  padding: 15px 20px;
  background-color: #ffffff;
  color: #333333;
  font-size: 0.95em;
}

.page-support__faq-answer p {
  margin-bottom: 0;
}

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

.page-support__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
  gap: 30px;
  margin-top: 40px;
}

.page-support__blog-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-support__blog-card a {
  text-decoration: none;
  color: inherit;
}

.page-support__blog-thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 450;
  object-fit: cover;
  display: block;
}

.page-support__blog-content {
  padding: 20px;
}

.page-support__blog-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1F2D3D;
}

.page-support__blog-title a:hover {
  color: #2F6BFF;
}

.page-support__blog-meta {
  font-size: 0.85em;
  color: #666666;
  margin-bottom: 15px;
}

.page-support__blog-excerpt {
  font-size: 0.95em;
  color: #333333;
  margin-bottom: 20px;
}

.page-support__view-all {
  text-align: center;
  margin-top: 40px;
}

/* CTA Section */
.page-support__cta-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Dark background */
  color: #ffffff;
}

.page-support__cta-section .page-support__container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-support__cta-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-support__cta-content {
  flex: 1;
  text-align: left;
}

.page-support__cta-content .page-support__section-title {
  text-align: left;
  margin-bottom: 20px;
}

.page-support__cta-content .page-support__text-block {
  text-align: left;
  margin-bottom: 30px;
}

.page-support__cta-content .page-support__cta-buttons {
  justify-content: flex-start;
}

/* --- Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-support__container {
    padding: 15px;
  }

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

  /* Hero */
  .page-support__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  /* Channels */
  .page-support__channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Guide Box */
  .page-support__guide-card {
    flex: 0 0 calc(33.333% - 13.333px); /* 3 cards per row */
    max-width: calc(33.333% - 13.333px);
  }

  .page-support__guide-card--pos-1, .page-support__guide-card--pos-5,
  .page-support__guide-card--pos-2, .page-support__guide-card--pos-4 {
    padding-top: 0; /* Reset padding for smaller screens */
  }

  /* Blog */
  .page-support__blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
  }

  /* CTA */
  .page-support__cta-section .page-support__container {
    flex-direction: column;
    text-align: center;
  }

  .page-support__cta-image {
    max-width: 80%;
    margin-bottom: 30px;
  }

  .page-support__cta-content {
    text-align: center;
  }

  .page-support__cta-content .page-support__section-title,
  .page-support__cta-content .page-support__text-block {
    text-align: center;
  }

  .page-support__cta-content .page-support__cta-buttons {
    justify-content: center;
  }
}