/* style/support.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07; /* Login button color */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #26A9E0;
  --border-color: #e0e0e0;
}

/* Helper function for darkening color - conceptual, will not be directly in CSS */
/* function darken(color, percentage) { return 'darkened_color'; } */

.page-support {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--bg-light); /* Default body background is white */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Hero Section --- */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #30baf2 70%, var(--bg-light) 100%); /* Blend primary color with white, slightly lighter blue in between */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  color: var(--text-light); /* Light text for dark background */
}

.page-support__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-support__hero-content {
  text-align: center;
  width: 100%;
}

.page-support__hero-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  opacity: 0.9;
}

.page-support__hero-image {
  width: 100%;
  max-width: 600px; /* Limit image width in hero */
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Use login color for CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button:hover {
  background: #c76706; /* Darkened secondary color */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-support__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 700;
}

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

.page-support__introduction-section {
  padding: 60px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-support__introduction-section p {
  margin-bottom: 1em;
  text-align: justify;
}

.page-support__dark-bg {
  background-color: var(--bg-dark); /* Primary color as background */
  color: var(--text-light);
  padding: 60px 0;
}

.page-support__dark-bg .page-support__section-title,
.page-support__dark-bg .page-support__section-description,
.page-support__dark-bg h3 {
  color: var(--text-light);
}

.page-support__light-bg {
  background-color: var(--bg-light); /* White background */
  color: var(--text-dark);
  padding: 60px 0;
}

.page-support__card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-dark);
}

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

.page-support__card img {
  max-width: 100%; /* Ensure images don't overflow cards */
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
  object-fit: cover;
}

.page-support__card h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-support__card p {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Make paragraphs take available space */
}

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

/* --- Guides Section --- */
.page-support__guides-grid,
.page-support__policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax for more flexibility */
  gap: 30px;
}

.page-support__guide-item img,
.page-support__policy-item img {
  width: 100%;
  height: auto;
  max-width: 300px; /* Specific width for these images */
  max-height: 225px; /* Maintain aspect ratio for 400x300 or 200x200 */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum image size */
  min- /* For 400x300 ratio */
}

/* --- Buttons --- */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.page-support__btn-primary:hover {
  background: #1e87b7; /* Darkened primary color */
  border-color: #1e87b7;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.page-support__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

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

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-support__faq-question:hover {
  background: #f8f8f8;
  border-color: #d5d5d5;
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-support__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent toggle from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

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

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: var(--text-dark);
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: #fcfcfc;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.page-support__faq-answer p {
  margin-bottom: 0;
  font-size: 0.95em;
  line-height: 1.7;
  text-align: justify;
}

/* --- CTA Bottom Section --- */
.page-support__cta-bottom {
  text-align: center;
  padding: 80px 20px;
}

.page-support__cta-bottom .page-support__section-title {
  color: var(--text-light);
}

.page-support__cta-bottom .page-support__section-description {
  color: var(--text-light);
}

.page-support__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Responsive button container */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-support__hero-content h1 {
    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) {
  .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;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-support__hero-container {
    flex-direction: column;
    gap: 20px;
  }

  .page-support__hero-content h1 {
    font-size: 2em;
  }

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

  .page-support__hero-image img {
    border-radius: 8px;
  }

  .page-support__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    width: 100% !important; /* Mobile button full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__container {
    padding: 30px 15px;
  }

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

  .page-support__section-description {
    font-size: 0.95em;
  }

  .page-support__channels-grid,
  .page-support__guides-grid,
  .page-support__policies-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__card {
    padding: 20px;
  }

  .page-support__card h3 {
    font-size: 1.3em;
  }
  
  .page-support__card img {
    min-width: 200px !important;
    min- /* For 400x300 ratio */
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary,
  .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__button-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Mobile */
  .page-support__faq-question {
    padding: 15px 20px;
  }
  .page-support__faq-question h3 {
    font-size: 1em;
  }
  .page-support__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* Ensure all content area containers and images are responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__channels-grid,
  .page-support__guides-grid,
  .page-support__policies-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Remove explicit padding-left/right here to avoid double padding if container already has it */
    /* For example, if .page-support__container has it, don't repeat on children */
  }
}

/* No CSS filters on images */
.page-support img {
  filter: none !important;
}

/* Ensure content area images are not smaller than 200px */
.page-support img {
    min-width: 200px;
    min-height: 200px;
}

/* Specific overrides for card images to ensure min size */
.page-support__channel-item img,
.page-support__guide-item img,
.page-support__policy-item img {
    min-width: 200px;
    min- /* For 400x300 ratio */
}