.faq-page {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.faq-header {
    text-align: center;
    margin-bottom: 25px;
}

.faq-header h2 {
    margin-bottom: 8px;
}

/* FAQ cards */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.15s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
}

/* Category badge */
.faq-category {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #1e40af;
    margin-bottom: 8px;
}

/* Question */
.faq-question {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* BUTTONS (GLOBAL) */
.btn {
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;

    text-decoration: none !important;

    line-height: 1;
    white-space: nowrap;

    border: 1px solid transparent;
    cursor: pointer;
}

/* ACTION BUTTONS */
.btn-view {
    background: #e0e7ff;
    color: #1e40af;
}

.btn-edit {
    background: #fef3c7;
    color: #92400e;
}

.btn-delete {
    background: #fee2e2;
    color: #991b1b;
}

/* PRIMARY BUTTON */
.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-secondary:hover {
    border: 1px solid black;
    color: black;
}

.btn-primary:hover {
    background: #1d4ed8;
    color: black;
}

/* PAGINATION */
.pagination {
    margin-top: 15px;
    display: flex;
    gap: 5px;
}

.pagination a {
    padding: 6px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    text-decoration: none;
}

/* Filters */
.faq-search form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* CakePHP wrapper fix */
.faq-search .input {
    margin: 0;
    flex: 1;
    min-width: 220px;
}

/* Make inputs full width inside wrapper */
.faq-search input,
.faq-search select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
