/*
 * ----------------------------------------------------------------
 * FAQ PAGE - "WEIRD & FUNNY" STYLES
 * ----------------------------------------------------------------
 */

/* Import the "handwritten" font */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&display=swap');

/* Re-use the register page's body style */
body.faq-page {
    background-color: var(--bg-light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 3rem 1rem;
}

/* Re-use the tilted container */
.faq-container {
    background: var(--bg-white);
    padding: 3rem;
    border: 3px solid var(--text-black);
    
    /* The "wonky" border effect */
    border-radius: 5px 15px 5px 15px / 15px 5px 15px 5px;
    box-shadow: 10px 10px 0px 0px var(--brand-yellow);
    
    /* The "tilt" */
    transform: rotate(-1.5deg);
    transition: all 0.2s ease;
    
    width: 100%;
    max-width: 700px; /* Make it wider for Q&A */
}

/* Make it wobble back on hover */
.faq-container:hover {
    transform: rotate(0deg);
    box-shadow: 12px 12px 0px 0px var(--brand-yellow-dark);
}

.faq-container h2 {
    font-family: 'Caveat', cursive; /* The handwritten font */
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
}

/* --- NEW: Q&A Styling --- */
.faq-item {
    background: var(--bg-light-gray);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.faq-item summary {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-black);
    padding: 1.25rem;
    cursor: pointer;
    list-style: none; /* Remove default triangle */
    position: relative;
    user-select: none;
}
.faq-item summary:hover {
    color: var(--brand-yellow-dark);
}

/* "Hand-drawn" plus/minus sign */
.faq-item summary::before {
    font-family: 'Caveat', cursive;
    content: '+';
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-yellow);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-55%);
}

.faq-item p {
    font-size: 1rem;
    color: var(--text-muted);
    padding: 0 1.25rem 1.25rem 1.25rem;
    margin: 0;
    border-top: 2px dashed var(--primary-color);
    line-height: 1.7;
}

/* When the question is open */
.faq-item[open] {
    border-color: var(--brand-yellow);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.faq-item[open] summary::before {
    content: '−'; /* Use a minus sign */
}

.faq-container .home-link {
    text-align: center;
    margin-top: 2rem;
}
.faq-container .home-link a {
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}
.faq-container .home-link a:hover {
    color: var(--brand-yellow-dark);
    text-decoration: underline;
}