.page-faq {
    color: #ffffff; /* Dark body background (#121212) requires light text */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Assuming body handles the main background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-faq__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    overflow: hidden;
    background-color: #017439; /* Brand color as hero background */
}

.page-faq__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 30px;
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 1;
}

.page-faq__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__intro-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for register/login/CTA */
    color: #FFFF00; /* Custom font color for register/login */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary:hover {
    background-color: #a00606;
}

.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #1a1a1a; /* Slightly lighter dark background for content */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.page-faq__section-title {
    font-size: 2.2em;
    color: #017439; /* Brand color for section titles */
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid rgba(1, 116, 57, 0.3);
    padding-bottom: 15px;
}

.page-faq__faq-list {
    margin-bottom: 40px;
}

.page-faq__faq-item {
    background-color: #222222; /* Darker background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(1, 116, 57, 0.5);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #ffffff;
    background-color: #2c2c2c; /* Slightly different background for question */
    transition: background-color 0.3s ease;
    user-select: none;
}

.page-faq__faq-question:hover {
    background-color: #3a3a3a;
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: #017439; /* Brand color when open */
    color: #ffffff;
}

.page-faq__faq-item[open] .page-faq__faq-question:hover {
    background-color: #017439; /* Keep brand color on hover when open */
}

.page-faq__faq-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' or similar visual */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #e0e0e0;
    background-color: #222222; /* Same as item background */
    border-top: 1px solid rgba(1, 116, 57, 0.3);
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
}

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

.page-faq__faq-answer a {
    color: #017439; /* Brand color for links in answers */
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: #01a052;
}

.page-faq__image-wrapper {
    margin-top: 20px;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

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

/* Base styles for images and buttons (non-media query) */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-faq__btn-primary,
.page-faq a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Ensure no filter is used on images */
.page-faq img {
    filter: none !important;
}

/* Contrast Fixes (as per instructions) */
.page-faq__dark-bg {
    color: #ffffff;
    background: #017439;
}

.page-faq__light-bg {
    color: #333333;
    background: #ffffff;
}

.page-faq__text-block {
    color: #ffffff; /* Adjusted for dark body background */
    background: transparent;
}

.page-faq p,
.page-faq li {
    color: #e0e0e0; /* Adjusted for dark body background */
}

.page-faq__card {
    background: #222222; /* Dark background for cards */
    color: #ffffff;
    border: 1px solid rgba(1, 116, 57, 0.5);
}

.page-faq__dark-section {
    background: #017439;
    color: #ffffff;
}

/* Ensure button text contrast */
.page-faq__btn-primary {
    background: #C30808;
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid transparent;
}

.page-faq__btn-secondary {
    background: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}