/* style/support.css */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light body background */
  background-color: #ffffff; /* Explicitly set for content area */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-support__section {
  padding: 60px 0;
  text-align: center;
}

.page-support__section h1,
.page-support__section h2 {
  color: #017439;
  margin-bottom: 25px;
  font-size: 36px;
  font-weight: bold;
}

.page-support__section h3 {
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 600;
}

.page-support__section p {
  margin-bottom: 20px;
  font-size: 18px;
}

.page-support__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-support__dark-section h2,
.page-support__dark-section h3 {
  color: #ffffff;
}

/* 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, #e0ffe0, #ffffff); /* Light gradient background for hero */
}

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

.page-support__hero-content {
  margin-bottom: 30px;
}

.page-support__hero-content h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #017439;
}

.page-support__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #555555;
}

.page-support__hero-image {
  width: 100%;
  max-width: 800px; /* Adjust max-width for image */
  margin-top: 30px;
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-support__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For mobile button adaptation */
  box-sizing: border-box; /* For mobile button adaptation */
  white-space: normal; /* For mobile button adaptation */
  word-wrap: break-word; /* For mobile button adaptation */
}

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

.page-support__btn-primary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-support__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Channels Section */
.page-support__contact-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-support__channel-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-support__channel-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-support__channel-item h4 {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
}

.page-support__channel-item p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1; /* Ensure consistent height */
}

/* Quick Guides Section */
.page-support__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-support__guide-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.page-support__guide-item h3 {
  font-size: 22px;
  color: #017439;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-support__guide-item ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-support__guide-item li {
  font-size: 16px;
  color: #555555;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-support__guide-item li::before {
  content: '✓';
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Security & Responsible Gaming Section */
.page-support__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-support__security-item {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.page-support__security-item h3 {
  font-size: 22px;
  color: #017439;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-support__security-item ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-support__security-item li {
  font-size: 16px;
  color: #555555;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-support__security-item li::before {
  content: '🔒'; /* Changed to a lock emoji for security */
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* FAQ Section */
.page-support__faq-section {
  text-align: left;
  padding-bottom: 80px;
}

.page-support__faq-intro {
  text-align: center;
  margin-bottom: 40px;
  font-size: 18px;
  color: #555555;
}

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

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

.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 20px; /* Adjusted padding */
  opacity: 0;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important; /* Adjusted padding */
  opacity: 1;
  background: #f0f8ed; /* Light green background for active answer */
  border-radius: 0 0 8px 8px; /* Match item border-radius */
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px; /* Match item border-radius */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-item.active .page-support__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #017439; /* Highlight active question border */
}

.page-support__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-support__faq-question:active {
  background: #eeeeee;
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger font for questions */
  font-weight: 600;
  line-height: 1.5;
  color: #333333; /* Ensure dark text for question */
  pointer-events: none;
}

.page-support__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  line-height: 1;
  color: #017439; /* Brand color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger hit area */
  height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(180deg); /* Rotate for minus sign */
  color: #005a2d;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-content h1 {
    font-size: 40px;
  }
  .page-support__hero-description {
    font-size: 18px;
  }
  .page-support__section h1,
  .page-support__section h2 {
    font-size: 32px;
  }
  .page-support__section h3 {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  
  .page-support__container {
    padding: 0 15px;
  }

  .page-support__section {
    padding: 40px 0;
  }

  .page-support__hero-section {
    padding: 40px 15px;
  }

  .page-support__hero-content h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-support__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__contact-channels,
  .page-support__guide-grid,
  .page-support__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__channel-item,
  .page-support__guide-item,
  .page-support__security-item {
    padding: 20px;
  }

  .page-support__channel-item img {
    max-width: 200px; /* Adjust for smaller screens */
  }

  .page-support__section h1,
  .page-support__section h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-support__section h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-support__section p {
    font-size: 16px;
  }
  
  /* Mobile image adaptation */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__contact-channels,
  .page-support__guide-grid,
  .page-support__security-grid,
  .page-support__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Override section padding to avoid double padding with container */
  .page-support__section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-support__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__faq-question {
    padding: 15px;
    flex-wrap: wrap;
    border-radius: 6px;
  }
  
  .page-support__faq-item.active .page-support__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .page-support__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-support__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-support__faq-answer {
    padding: 0 15px;
  }
  
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
    border-radius: 0 0 6px 6px;
  }
}