/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color on dark background */
  background-color: #0A0A0A; /* Background color */
  font-size: 16px;
}

/* Fixed header spacing for the first content section */
.page-faq__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default */
  background: #0A0A0A; /* Match body background */
  color: #FFF6D6;
  padding-bottom: 60px;
}

.page-faq__hero-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Default to column for image-text order */
  align-items: center;
  gap: 40px;
  padding: 0 20px;
}

.page-faq__hero-image-block {
  width: 100%;
  max-width: 100%; /* Ensure image block does not overflow */
}

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

.page-faq__hero-text-block {
  text-align: center;
  max-width: 800px;
}

.page-faq__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.page-faq__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF6D6; /* Text Main color */
}

.page-faq__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

/* General content sections */
.page-faq__content-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background color */
  color: #FFF6D6; /* Text Main color */
}

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

.page-faq__section-title {
  font-size: 2.2em;
  color: #F2C14E; /* Main color for section titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-faq__section-description {
  font-size: 1.05em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #FFF6D6;
}

/* FAQ List styles */
.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-item.active {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: #111111; /* Card BG color */
  color: #FFF6D6; /* Text Main color */
  font-weight: 600;
  font-size: 1.15em;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1); /* Slight hover effect with main color */
}

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1em; /* Keep h3 size relative to parent */
  color: #FFF6D6; /* Text Main color */
}

.page-faq__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #F2C14E; /* Main color */
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #FFD36B; /* Glow color when active */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #1a1a1a; /* Slightly lighter dark background for answer */
  color: #FFF6D6; /* Text Main color */
}

.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 25px 25px; /* Ensure padding is applied when active */
}

.page-faq__faq-answer p {
  margin-bottom: 10px;
  color: #FFF6D6; /* Text Main color */
}

.page-faq__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faq__faq-answer a {
  color: #F2C14E; /* Main color for links in answers */
  text-decoration: none;
  font-weight: bold;
}

.page-faq__faq-answer a:hover {
  text-decoration: underline;
  color: #FFD36B; /* Glow color on hover */
}

/* Call to action at the bottom */
.page-faq__cta-bottom {
  padding: 80px 0;
  background-color: #111111; /* Card BG for this section */
  text-align: center;
  color: #FFF6D6;
  border-top: 1px solid #3A2A12; /* Border color */
}

.page-faq__cta-title {
  font-size: 2.5em;
  color: #FFD36B; /* Glow color */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-faq__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #FFF6D6;
}

.page-faq__cta-buttons-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Button styles */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-faq__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for contrast */
  border: none;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

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

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

.page-faq__btn-secondary:hover {
  background: #F2C14E; /* Main color on hover */
  color: #111111; /* Dark text on hover */
  transform: translateY(-3px);
}

/* Ensure content area images are never too small */
.page-faq__content-area img,
.page-faq__general-questions img,
.page-faq__account-management img,
.page-faq__deposits-withdrawals img,
.page-faq__responsible-gaming img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-faq__hero-content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-faq__hero-text-block {
    order: 2; /* Text below image */
  }
  .page-faq__hero-image-block {
    order: 1; /* Image above text */
  }
}

@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
    padding-bottom: 40px;
  }

  .page-faq__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }

  .page-faq__intro-text {
    font-size: 1em;
  }

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

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

  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }

  .page-faq__faq-answer {
    padding: 0 20px;
  }

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 15px 20px 20px 20px;
  }

  .page-faq__cta-bottom {
    padding: 60px 0;
  }

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

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

  .page-faq__cta-buttons,
  .page-faq__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to button containers */
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary,
  .page-faq a[class*="button"],
  .page-faq 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-faq__cta-buttons,
  .page-faq__button-group,
  .page-faq__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-faq__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Image responsiveness */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-content-wrapper,
  .page-faq__hero-image-block,
  .page-faq__hero-text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}