/* style/support.css */

/* Base styles for the support page */
.page-support {
  background-color: #08160F; /* Background color from custom palette */
  color: #F2FFF6; /* Main text color from custom palette */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

.page-support__dark-section {
  background-color: #0A4B2C; /* Deep Green from custom palette */
}

.page-support__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-support__section-intro {
  font-size: clamp(16px, 2vw, 20px);
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 80px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
  text-align: center;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-support__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content up slightly, but not over the image */
}

.page-support__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-support__description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color from custom palette */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-support__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  background: #11271B; /* Card BG */
  color: #57E38D; /* Glow */
  border: 2px solid #2E7A4E; /* Border color from custom palette */
}

.page-support__btn-secondary:hover {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

/* Card styles */
.page-support__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #F2FFF6; /* Text Main */
  border: 1px solid #2E7A4E; /* Border */
}

.page-support__card-title {
  font-size: 24px;
  color: #F2FFF6; /* Text Main */
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-support__card p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
  margin-bottom: 20px;
}

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

.page-support__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-support__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  list-style: none; /* Hide default marker */
}

.page-support__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-support__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: #57E38D; /* Glow */
}

.page-support__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

/* Guide Section */
.page-support__guide-section {
  padding: 80px 0;
}

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

.page-support__guide-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Contact Section */
.page-support__contact-section {
  padding: 80px 0;
}

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

.page-support__contact-item .page-support__contact-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Security and Responsible Gaming Sections */
.page-support__security-section,
.page-support__responsible-gaming {
  padding: 80px 0;
}

.page-support__security-content,
.page-support__responsible-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-support__security-content img,
.page-support__responsible-content img {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-support__security-text,
.page-support__responsible-text {
  flex: 2;
  min-width: 300px;
}

.page-support__security-text h3,
.page-support__responsible-text h3 {
  font-size: 28px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-support__security-text p,
.page-support__responsible-text p {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

/* Why Choose Us Section */
.page-support__why-choose-us {
    padding: 80px 0;
}

.page-support__why-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    max-width: 900px;
}

.page-support__why-list li {
    background-color: #11271B;
    border: 1px solid #2E7A4E;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #F2FFF6;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.page-support__why-list li strong {
    color: #57E38D; /* Glow */
}

.page-support__why-list li::before {
    content: '✅';
    font-size: 20px;
    line-height: 1;
    color: #57E38D; /* Glow */
    flex-shrink: 0;
    margin-top: 2px;
}

/* Final CTA Section */
.page-support__final-cta {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-support__hero-content {
    margin-top: -60px;
  }

  .page-support__security-content,
  .page-support__responsible-content {
    flex-direction: column;
    text-align: center;
  }

  .page-support__security-content img,
  .page-support__responsible-content img {
    order: -1; /* Image above text on smaller screens */
    max-width: 100%;
  }

  .page-support__responsible-content img {
    order: 0; /* Maintain text then image for responsible gaming if desired, or set to -1 */
  }
}

@media (max-width: 768px) {
  .page-support__section,
  .page-support__faq-section,
  .page-support__guide-section,
  .page-support__contact-section,
  .page-support__security-section,
  .page-support__responsible-gaming,
  .page-support__why-choose-us,
  .page-support__final-cta {
    padding: 40px 0;
  }

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

  .page-support__hero-content {
    margin-top: -40px;
    padding: 20px;
  }

  .page-support__main-title {
    font-size: 32px;
  }

  .page-support__description {
    font-size: 16px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    margin-bottom: 10px; /* Add space between stacked buttons */
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-support__section-title {
    font-size: 28px;
  }

  .page-support__section-intro {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-support__faq-item summary {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-support__faq-answer {
    font-size: 14px;
    padding: 0 20px 15px;
  }

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

  .page-support__guide-image {
    height: 200px;
  }

  .page-support__card-title {
    font-size: 20px;
  }

  .page-support__security-text h3,
  .page-support__responsible-text h3 {
    font-size: 24px;
  }

  /* Mobile image responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-section,
  .page-support__faq-section,
  .page-support__guide-section,
  .page-support__contact-section,
  .page-support__security-section,
  .page-support__responsible-gaming,
  .page-support__why-choose-us,
  .page-support__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Specific padding for hero section to avoid double padding with body */
  .page-support__hero-section {
    padding-top: 10px !important;
  }
}

/* Ensure all content images meet minimum size requirements */
.page-support__guide-image, 
.page-support__contact-icon, 
.page-support__security-content img, 
.page-support__responsible-content img {
  min-width: 200px;
  min-height: 200px;
}

/* Override for contact icon as it's smaller visually but still needs to meet min size */
.page-support__contact-item .page-support__contact-icon {
  width: 200px;
  height: 150px;
  object-fit: contain; /* Ensure it scales down if needed but keeps aspect ratio */
}

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