/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

/* FAQ Container */
#faq-container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding: 25px;
    background-color: #111;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    overflow-wrap: break-word;
}

/* Page Selector */
#page-selector {
    text-align: center;
    margin-bottom: 20px;
}

#faq-page-dropdown {
    padding: 10px 15px;
    font-size: 1em;
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 5px;
}

/* Category Buttons */
#category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.category-button {
    margin: 5px;
    padding: 10px 16px;
    font-size: 0.95em;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.category-button.active {
    background-color: #ff8c00;
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.5);
}

/* FAQ List */
#faq-list {
    list-style: none;
    padding: 0;
}

/* FAQ Item */
.faq-item {
    background-color: #1a1a1a;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #333;
}

/* FAQ Question */
.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    background-color: #222;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #333;
}

.faq-question::after {
    content: '+';
    font-size: 1.4em;
    color: #007bff;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(45deg);
}

/* FAQ Answer */
.faq-answer {
    display: none;
    padding: 15px 20px;
    background-color: #181818;
    color: #ccc;
    overflow-x: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer ul, .faq-answer ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 8px;
    word-break: break-word;
}

.faq-answer b, .faq-answer strong {
    color: #fff;
}

.faq-answer a {
    color: #4da6ff;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Tables */
.faq-answer table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #222;
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.1);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.faq-answer th,
.faq-answer td {
    padding: 10px 12px;
    border: 1px solid #555;
    word-break: break-word;
    max-width: 100%;
    white-space: normal;
}
