/* style/support.css */

/* Base styles for the page content, ensuring text color contrast with dark body background */
.page-support {
  color: #FFF6D6; /* Text Main - light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-support a {
  color: #F2C14E; /* Main color for links */
  text-decoration: none;
}

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

/* Container for consistent content width */
.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section padding */
.page-support__hero-section,
.page-support__why-us-section,
.page-support__contact-methods-section,
.page-support__faq-section,
.page-support__responsible-gaming-section,
.page-support__security-section,
.page-support__feedback-section,
.page-support__cta-section {
  padding: 80px 0; /* Consistent vertical spacing for sections */
}

/* Specific padding for the first section after header, body handles --header-offset */
.page-support__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure no overflow */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-support__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 1;
  position: relative; /* Ensure content is above any potential background elements */
}

/* Titles */
.page-support__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: bold;
  color: #F2C14E; /* Main color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #FFF6D6; /* Text Main */
}

.page-support__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 20px;
}

.page-support__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #FFF6D6; /* Text Main */
}

.page-support__card-title,
.page-support__feature-title,
.page-support__faq-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Main color */
  margin-bottom: 10px;
}

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

.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: 2px solid transparent;
}

.page-support__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(242, 193, 78, 0.4);
}

.page-support__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Main color for text */
  border: 2px solid #F2C14E; /* Border color */
}

.page-support__btn-secondary:hover {
  background: #F2C14E; /* Main color on hover */
  color: #111111; /* Dark text on hover */
}

.page-support__btn-center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

/* Backgrounds for sections */
.page-support__dark-section {
  background-color: #0A0A0A; /* Background color */
  color: #FFF6D6; /* Text Main */
}

/* Why Us Section */
.page-support__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-support__feature-item {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #3A2A12; /* Border color */
}

.page-support__feature-text {
  color: #FFF6D6; /* Text Main */
}

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

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

.page-support__contact-card {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #3A2A12; /* Border color */
}

.page-support__contact-card .page-support__card-text {
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  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;
  cursor: pointer;
  background-color: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
}

.page-support__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1); /* Slight highlight on hover */
}

.page-support__faq-title {
  margin: 0;
  color: #F2C14E; /* Main color */
  font-size: 1.2rem;
}

.page-support__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(0deg); /* No rotation for minus sign */
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value for expansion */
  padding: 15px 20px 20px 20px; /* Expanded padding */
}

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

/* Responsible Gaming & Security Sections */
.page-support__responsible-gaming-section .page-support__section-description,
.page-support__security-section .page-support__section-description,
.page-support__feedback-section .page-support__section-description {
  margin-bottom: 20px;
}

.page-support__responsible-gaming-section .page-support__btn-primary,
.page-support__security-section .page-support__btn-secondary {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 300px;
}

.page-support__security-section .page-support__btn-secondary:first-of-type {
  margin-bottom: 20px; /* Space between two secondary buttons */
}

/* Feedback Section */
.page-support__feedback-section .page-support__btn-primary {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 300px;
}

/* Call to Action Section */
.page-support__cta-section {
  text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

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

  .page-support__hero-section,
  .page-support__why-us-section,
  .page-support__contact-methods-section,
  .page-support__faq-section,
  .page-support__responsible-gaming-section,
  .page-support__security-section,
.page-support__feedback-section,
.page-support__cta-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-support__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-support__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .page-support__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-support__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container for buttons */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-support__btn-center {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    box-sizing: border-box !important;
  }

  .page-support__feature-item,
  .page-support__contact-card {
    padding: 20px;
  }

  .page-support__card-title,
  .page-support__feature-title,
  .page-support__faq-title {
    font-size: 1.3rem;
  }

  .page-support__faq-question {
    padding: 15px;
  }

  .page-support__faq-answer {
    padding: 0 15px;
  }
  
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px 15px 15px 15px; /* Adjusted padding for mobile */
  }

  /* Image responsiveness for mobile */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-support__hero-image-wrapper,
  .page-support__content-image {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Ensure all content containers are constrained */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__features-grid,
  .page-support__contact-grid,
  .page-support__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-support__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

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