/* style/faq.css */

/* Base styles for .page-faq, assuming dark body background */
.page-faq {
    color: #ffffff; /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Inherit from body */
}

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

.page-faq__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #FFD700; /* Gold color for titles */
    line-height: 1.2;
}

.page-faq__main-title {
    font-size: 42px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD700; /* Gold color for main title */
    line-height: 1.2;
}

.page-faq__description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for body text */
}

/* Buttons */
.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
}

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

.page-faq__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #1a1a1a; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-faq__btn-secondary:hover {
    background-color: #FFD700;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    margin-top: 0;
    overflow: hidden;
}

.page-faq__hero-container {
    position: relative;
    margin: 0 auto;
}

.page-faq__hero-image {
    width: 100%;
    margin: 0;
}

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

/* Intro Section */
.page-faq__intro-section {
    padding: 60px 0;
    background-color: #0a0a0a; /* Match body background */
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background for contrast */
}

/* FAQ items */
.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ default state - answer hidden */
.page-faq__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: #f0f0f0; /* Light text for answer */
  background: #2a2a2a; /* Darker background for answer */
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-faq__faq-item.active .page-faq__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important, value large enough */
  padding: 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #333333; /* Dark gray for question background */
  border: 1px solid #444444;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* White text for question */
}

.page-faq__faq-question:hover {
  background: #4a4a4a;
  border-color: #555555;
}

.page-faq__faq-question:active {
  background: #555555;
}

/* Question title style */
.page-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #FFD700; /* Gold color for question titles */
}

/* Toggle icon */
.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-faq__faq-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-start;
}

.page-faq__faq-buttons .page-faq__btn-primary,
.page-faq__faq-buttons .page-faq__btn-secondary {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
}

/* Inline images within answers */
.page-faq__image-inline {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__image-center {
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsible Gambling Promo Section */
.page-faq__responsible-gambling-promo {
    padding: 80px 0;
    background-color: #1E90FF; /* Auxiliary color for a different section */
    color: #ffffff; /* White text for blue background */
}

.page-faq__responsible-gambling-promo .page-faq__section-title {
    color: #FFD700; /* Gold title on blue background */
}

.page-faq__responsible-gambling-promo .page-faq__description {
    color: #f0f0f0;
}

.page-faq__responsible-gambling-promo .page-faq__btn-primary {
    background-color: #FFD700;
    color: #1a1a1a;
    border-color: #FFD700;
}

.page-faq__responsible-gambling-promo .page-faq__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

/* Contact Promo Section */
.page-faq__contact-promo {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

.page-faq__contact-promo .page-faq__section-title {
    color: #FFD700;
}

.page-faq__contact-promo .page-faq__description {
    color: #f0f0f0;
}

.page-faq__contact-promo .page-faq__btn-primary {
    background-color: #FFD700;
    color: #1a1a1a;
    border-color: #FFD700;
}

.page-faq__contact-promo .page-faq__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-faq__contact-promo .page-faq__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border-color: #FFD700;
}

.page-faq__contact-promo .page-faq__btn-secondary:hover {
    background-color: #FFD700;
    color: #1a1a1a;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 36px;
    }
    .page-faq__section-title {
        font-size: 30px;
    }
    .page-faq__description {
        font-size: 16px;
    }
    .page-faq__faq-question h3 {
        font-size: 16px;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-faq__faq-question {
        padding: 18px 20px;
    }
    .page-faq__faq-answer {
        padding: 0 20px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 20px !important;
    }
    .page-faq__faq-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Mobile image responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box; /* Added for consistency */
    }

    /* All containers that hold images or content */
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__intro-section,
    .page-faq__faq-list-section,
    .page-faq__responsible-gambling-promo,
    .page-faq__contact-promo {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero section specific padding-top for mobile - if shared.css doesn't apply it to body */
    .page-faq__hero-section {
        padding-top: 0 !important; /* Assuming shared.css handles body padding-top */
    }

    .page-faq__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-faq__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-faq__description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        margin-bottom: 30px;
        padding: 0 15px; /* Add padding to container */
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 6px;
    }

    /* FAQ specific mobile styles */
    .page-faq__faq-question {
        padding: 15px 18px;
    }
    .page-faq__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px); /* Adjust width for toggle */
    }
    .page-faq__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-faq__faq-answer {
        padding: 0 18px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 18px !important;
    }
    .page-faq__faq-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0; /* Remove padding here as container already has it */
    }
    .page-faq__faq-buttons .page-faq__btn-primary,
    .page-faq__faq-buttons .page-faq__btn-secondary {
        width: 100%;
    }
    .page-faq__image-center {
        margin: 30px auto 0 auto;
    }
}