/* style/faq.css */

.page-faq {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #000000; /* Ensure dark background for hero */
    padding-bottom: 60px; /* Add some padding below content */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly darken image for text readability */
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-faq__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    width: 90%;
    z-index: 10;
}

.page-faq__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-faq__hero-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 10px;
    min-width: 200px; /* Ensure button minimum width */
    text-align: center;
}

.page-faq__hero-button--register {
    background-color: #333333; /* Dark background for register button */
    color: #FFFFFF; /* Text color as specified */
    border: 2px solid #FFFFFF;
}

.page-faq__hero-button--register:hover {
    background-color: #555555;
    border-color: #FCBC45;
}

.page-faq__hero-button--login {
    background-color: #FCBC45; /* Background color as specified */
    color: #000000; /* Dark text for contrast */
    border: 2px solid #FCBC45;
}

.page-faq__hero-button--login:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}


/* Accordion Section */
.page-faq__accordion-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for FAQ content */
}

.page-faq__section-title {
    font-size: 2.8em;
    color: #FCBC45; /* Highlight title with auxiliary color */
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
}

.page-faq__accordion-item {
    background-color: #0a0a0a; /* Darker background for individual FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__accordion-header {
    width: 100%;
    background-color: #1a1a1a; /* Header background matches section */
    color: #ffffff;
    padding: 20px 25px;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-faq__accordion-header h3 {
    margin: 0;
    font-size: 1.3em; /* Ensure h3 inside button is readable */
    color: #ffffff;
}

.page-faq__accordion-header:hover,
.page-faq__accordion-header.active {
    background-color: #2a2a2a;
}

.page-faq__accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.page-faq__accordion-icon::before,
.page-faq__accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #FCBC45;
    transition: transform 0.3s ease;
}

.page-faq__accordion-icon::before {
    width: 2px;
    height: 16px;
    top: 4px;
    left: 11px;
}

.page-faq__accordion-icon::after {
    width: 16px;
    height: 2px;
    top: 11px;
    left: 4px;
}

.page-faq__accordion-header.active .page-faq__accordion-icon::before {
    transform: rotate(90deg);
}

.page-faq__accordion-header.active .page-faq__accordion-icon::after {
    transform: rotate(180deg);
}

.page-faq__accordion-content {
    padding: 0 25px;
    background-color: #0a0a0a;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    color: #f0f0f0;
}

.page-faq__accordion-content.open {
    max-height: 1000px; /* Arbitrary large value, adjusted by JS */
    padding: 25px;
}

.page-faq__accordion-content p {
    margin-bottom: 15px;
}

.page-faq__accordion-content a {
    color: #FCBC45; /* Link color */
    text-decoration: underline;
}

.page-faq__accordion-content a:hover {
    color: #e0a53b;
}

.page-faq__content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    object-fit: cover;
}

.page-faq__inline-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #FCBC45;
    color: #000000;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
    white-space: nowrap;
    min-width: 100px; /* Ensure button minimum width */
    text-align: center;
}

.page-faq__inline-button:hover {
    background-color: #e0a53b;
}


/* CTA Section */
.page-faq__cta-section {
    background-color: #000000;
    padding: 80px 0;
    text-align: center;
}

.page-faq__cta-content {
    max-width: 900px;
}

.page-faq__cta-title {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__cta-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 200px; /* Ensure button minimum width */
    text-align: center;
}

.page-faq__cta-button--contact {
    background-color: #333333;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-faq__cta-button--contact:hover {
    background-color: #555555;
    border-color: #FCBC45;
}

.page-faq__cta-button--join {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-faq__cta-button--join:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 3em;
    }
    .page-faq__section-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-title {
        font-size: 2.5em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-button {
        padding: 10px 20px;
        font-size: 1em;
        margin: 5px;
    }
    .page-faq__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-faq__accordion-header {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-faq__accordion-header h3 {
        font-size: 1.1em;
    }
    .page-faq__accordion-content.open {
        padding: 20px;
    }
    .page-faq__cta-title {
        font-size: 2em;
    }
    .page-faq__cta-description {
        font-size: 0.95em;
    }
    .page-faq__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        min-width: unset; /* Remove min-width for mobile buttons */
        width: 100%;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* Mobile image overflow prevention */
    .page-faq img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 2em;
    }
    .page-faq__hero-button {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__accordion-header {
        font-size: 1em;
    }
    .page-faq__accordion-header h3 {
        font-size: 1em;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
}