/* 1. Define the CSS Variables for the Theme */
:root {
    --bg-dark: #0a0b14;
    --card-bg: #141525;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #374151;
    --border-highlight: #4b5563;
    --accent-red: #b22222;
    --accent-red-light: #ff4d4d;
    --accent-red-glow: rgba(178, 34, 34, 0.5);
    /* Define any standard fonts used on the rest of your site here */
    --font-family-primary: sans-serif; 
}

/* 2. Global Styles (Applies the Dark Mode Background) */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary); /* Default text color */
    font-family: var(--font-family-primary);
    margin: 0;
    padding: 0;
}

/* 3. Main Container for Centering/Layout */
.faq-container {
    max-width: 900px; /* Adjust based on your site's main content width */
    margin: 80px auto; /* Adds vertical space and centers the content */
    padding: 20px;
}

/* Optional: Add a main title for the page */
.faq-container::before {
    content: "Frequently Asked Questions";
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
    margin-top: 10%;
}


/* 4. Individual FAQ Item Styling */
.faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Slightly rounded corners */
    margin-bottom: 15px;
    overflow: hidden; /* Ensures borders look clean */
    transition: border 0.3s, box-shadow 0.3s;
}

/* Highlight the item on hover */
.faq-item:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 0 10px var(--accent-red-glow);
}


/* 5. The Question Button Styling (The Clickable Part) */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px;
    background: none; /* Inherit the card background */
    border: none;
    text-align: left;
    color: var(--text-primary);
    font-size: 1.1em;
    font-weight: 600; /* Bolder for the question */
    cursor: pointer;
    transition: color 0.3s;
    /* Adding a custom icon with CSS content */
    position: relative;
}

/* Add the Plus/Minus icon styling */
.faq-question::after {
    content: '+'; /* Default closed state is a Plus sign */
    font-size: 1.5em;
    color: var(--accent-red);
    margin-left: 15px;
    transition: transform 0.3s, color 0.3s;
    line-height: 1; /* For better vertical alignment */
}

/* Active state (when the answer is open) */
.faq-question.active {
    color: var(--accent-red-light); /* Highlight the question text */
}

.faq-question.active::after {
    content: '−'; /* Change to Minus sign when active */
    color: var(--accent-red-light);
}


/* 6. The Answer Content Styling */
.faq-answer {
    /* THIS IS THE CRUCIAL PART */
    display: none; 
    padding: 0 20px 20px 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}

.faq-answer p {
    margin: 0; /* Remove default paragraph margins inside the answer */
    padding-top: 10px;
}

/* Optional: Style links inside the answer */
.faq-answer a {
    color: var(--accent-red-light);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}