/* --- FAQ CONTAINER --- */
/* Center the content, but keep it readable on the gradient */
.faq-container {
    max-width: 900px;
    margin: 0 auto 5rem auto;
    padding: 0 20px;
    position: relative;
    z-index: 2; /* Ensure it sits above the stars */
}

/* --- ACCORDION ITEM (The Terminal Window) --- */
.accordion-item {
    background-color: rgba(0, 0, 0, 0.6); /* Dark semi-transparent backing */
    border: 2px solid white; /* Chunky pixel border */
    margin-bottom: 20px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5); /* Hard shadow for depth */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.accordion-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--color-purple); /* Glowy purple shadow on hover */
    border-color: var(--color-partner); /* Cyan border on hover */
}

/* --- THE BUTTON (The Question) --- */
.accordion-button {
    background-color: transparent;
    color: white;
    cursor: pointer;
    padding: 20px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-family: var(--font-family); /* Use the Pixel Font */
    font-size: 0.9rem; /* Pixel fonts run large, so we size down */
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
}

.accordion-button:hover {
    color: var(--color-partner); /* Cyan text on hover */
}

/* --- THE ICON (+/-) --- */
.icon-state {
    font-size: 1.2rem;
    color: var(--color-you); /* Pink/Magenta */
    margin-left: 15px;
    font-weight: bold;
}

/* --- THE PANEL (The Answer) --- */
.panel {
    padding: 0 20px;
    background-color: rgba(255, 255, 255, 0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    border-top: 2px solid transparent;
}

.panel p {
    font-family: 'Courier New', Courier, monospace; /* Monospace for readability */
    font-size: 1rem; 
    color: white;
    margin: 20px 0;
    line-height: 1.6;
}

/* --- ACTIVE STATES --- */
/* Rotates the icon/text logic handling is in JS, but we style the active state here */
.accordion-button.active .icon-state {
    color: var(--color-partners-partner); /* Yellow/Orange when open */
}

.accordion-button.active + .panel {
    border-top-color: white; /* Add separator line when open */
}

/* --- PAGE SPECIFIC TEXT --- */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    color:white;
}

.sub-text {
    color: var(--color-partner);
    margin-top: 10px;
    font-size: 0.8rem;
}

.return-link {
    display: block;
    text-align: center;
    margin-top: 4rem;
    color: var(--color-partner);
    font-family: var(--font-family);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.return-link:hover {
    color: white;
    text-decoration: underline;
}

/* --- BASE TITLE STYLING --- */
.stellar-trace-title {
    font-size: 2.5rem; /* Default desktop size */
    line-height: 1.2;
    padding: 0 15px;
    margin: 0;
    word-wrap: break-word; /* Prevents long words from causing horizontal scroll */
}

/* --- RESPONSIVE DESIGN (MOBILE FIRST/MEDIA QUERIES) --- */
@media (max-width: 768px) {
    /* Shrink the main title */
    .stellar-trace-title {
        font-size: 1.5rem; 
    }

    /* Reduce the massive gap below the header */
    .page-header {
        margin-bottom: 30px; 
    }

    /* Tighten up container padding */
    .faq-container {
        padding: 0 15px;
        margin-bottom: 3rem;
    }

    /* Scale down the accordion button text and padding */
    .accordion-button {
        font-size: 0.8rem; 
        padding: 15px; 
        align-items: flex-start; /* Keeps the [+] icon aligned with the top line of multi-line questions */
    }

    /* Keep the icon properly spaced if it drops down */
    .icon-state {
        margin-left: 10px;
        margin-top: -2px; 
    }
    
    /* Slightly smaller answer text for better mobile readability */
    .panel p {
        font-size: 0.9rem;
        margin: 15px 0;
    }
}

/* --- FAQ SECTION TITLES --- */
.faq-section-title {
    color: var(--color-partner, #00FFFF); /* Matches the hover cyan color in your theme */
    font-family: var(--font-family, 'Courier New', Courier, monospace);
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.4);
    padding-bottom: 10px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .faq-section-title {
        font-size: 1.2rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
}