:root {
    --page-faq-primary-color: #FF8C1A;
    --page-faq-secondary-color: #FFA53A;
    --page-faq-card-bg: #17191F;
    --page-faq-background: #0D0E12;
    --page-faq-text-main: #FFF3E6;
    --page-faq-border-color: #A84F0C;
    --page-faq-glow-color: #FFB04D;
    --page-faq-deep-orange: #D96800;
}

/* General styles for the page-faq container */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-faq-text-main); /* Default text color for the page */
    background: var(--page-faq-background); /* Overall page background */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above content for desktop */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    padding-bottom: 40px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--page-faq-background) 0%, var(--page-faq-card-bg) 100%);
    min-height: 600px; /* Ensure sufficient height */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 20px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__hero-content {
    position: relative; /* Ensure content is above image in stacking context if needed */
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
    margin-top: -100px; /* Pull content up slightly over image for visual flow */
    color: var(--page-faq-text-main);
}

.page-faq__main-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--page-faq-secondary-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 165, 58, 0.5);
}

.page-faq__description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-faq-text-main);
}

/* CTA Buttons in Hero */
.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure container takes full width for responsive */
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent buttons from touching edges */
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button itself is responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, var(--page-faq-secondary-color) 0%, var(--page-faq-deep-orange) 100%);
    color: #ffffff; /* White text for contrast */
    border: none;
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-faq__btn-secondary {
    background: var(--page-faq-card-bg);
    color: var(--page-faq-secondary-color);
    border: 2px solid var(--page-faq-secondary-color);
}

.page-faq__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--page-faq-secondary-color);
    color: var(--page-faq-card-bg);
}

/* Content Section (FAQ list) */
.page-faq__content-section {
    padding: 60px 0;
    background: var(--page-faq-card-bg); /* Darker background for content section */
    color: var(--page-faq-text-main); /* Light text on dark background */
}

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

.page-faq__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--page-faq-secondary-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(255, 165, 58, 0.3);
}

.page-faq__section-intro {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-faq-text-main);
}

/* FAQ Item Styles (using <details> and <summary>) */
details.page-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--page-faq-border-color);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

details.page-faq__faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

details.page-faq__faq-item summary.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Hide default marker */
  transition: background-color 0.3s ease;
  background: rgba(255, 255, 255, 0.08); /* Slightly darker for question */
  color: var(--page-faq-text-main);
  font-size: 17px; /* Ensure contrast for question text */
}

details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
  display: none; /* Hide Chrome/Safari default marker */
}

details.page-faq__faq-item summary.page-faq__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-faq__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-faq-text-main);
}

.page-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--page-faq-secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
  padding: 15px 25px 25px;
  background: rgba(255, 255, 255, 0.03); /* Lighter background for answer */
  border-top: 1px solid var(--page-faq-border-color);
  border-radius: 0 0 10px 10px;
  color: var(--page-faq-text-main); /* Light text for answer */
}

.page-faq__faq-answer p {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--page-faq-text-main);
}
.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Bottom CTA Section */
.page-faq__cta-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--page-faq-card-bg) 0%, var(--page-faq-background) 100%);
    color: var(--page-faq-text-main);
}

.page-faq__cta-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--page-faq-secondary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(255, 165, 58, 0.3);
}

.page-faq__cta-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-faq-text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 42px;
    }
    .page-faq__description,
    .page-faq__section-intro,
    .page-faq__cta-text {
        font-size: 17px;
    }
    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 32px;
    }
    .page-faq__faq-qtext {
        font-size: 17px;
    }
    .page-faq__faq-answer p {
        font-size: 15px;
    }
    .page-faq__hero-content {
        margin-top: -80px;
    }
}

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-faq__hero-section {
        padding-top: 10px; /* Keep small top padding */
        padding-bottom: 30px;
        min-height: auto;
    }
    .page-faq__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain; /* Ensure full image is visible */
        border-radius: 0;
        box-shadow: none;
    }
    .page-faq__hero-content {
        margin-top: -40px; /* Adjust pull-up for smaller screens */
        padding: 0 15px;
    }
    .page-faq__main-title {
        font-size: clamp(28px, 8vw, 36px); /* Use clamp for H1 */
        margin-bottom: 10px;
    }
    .page-faq__description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* CTA Buttons in Hero */
    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important; /* Full width for mobile buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Content Section */
    .page-faq__content-section,
    .page-faq__cta-section {
        padding: 40px 0;
    }
    .page-faq__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-faq__section-intro,
    .page-faq__cta-text {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* FAQ Item Styles */
    details.page-faq__faq-item {
        margin-bottom: 10px;
        border-radius: 8px;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px 20px;
    }
    .page-faq__faq-qtext {
        font-size: 16px;
        line-height: 1.4;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 10px 20px 20px;
    }
    .page-faq__faq-answer p {
        font-size: 14px;
    }

    /* Ensure all images are responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}