/* ===== QAA PAGE ===== */

.qaa-body {
    background-color: #f5f6f8;
    padding: 48px 0 80px;
    min-height: 500px;
}

/* ── LAYOUT ── */
.qaa-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

/* ── SIDEBAR ── */
.qaa-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

.qaa-sidebar::-webkit-scrollbar { width: 4px; }
.qaa-sidebar::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

.qaa-sidebar-inner {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ebee;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 8px 0;
}

.qaa-sidebar-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 12px 18px 6px;
}

.qaa-nav-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.qaa-nav-btn:hover {
    background: #f3f4f6;
}

.qaa-nav-btn.active {
    background: #fef2f2;
    border-left-color: var(--theme_color);
}

.qaa-nav-num {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    background: #f3f4f6;
    border-radius: 5px;
    padding: 2px 6px;
    flex-shrink: 0;
    min-width: 28px;
    text-align: center;
    transition: background 0.18s ease, color 0.18s ease;
}

.qaa-nav-btn.active .qaa-nav-num {
    background: rgba(217, 0, 13, 0.10);
    color: var(--theme_color);
}

.qaa-nav-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    line-height: 1.35;
    transition: color 0.18s ease;
}

.qaa-nav-btn.active .qaa-nav-title {
    font-weight: 700;
    color: var(--theme_color);
}

/* ── MAIN CONTENT ── */
.qaa-main {
    flex: 1;
    min-width: 0;
}

/* ── CONTENT PANEL ── */
.qaa-panel {
    display: none;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eaecef;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 36px 40px 40px;
    animation: qaaPanelIn 0.22s ease;
}

.qaa-panel.active {
    display: block;
}

@keyframes qaaPanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Panel header */
.qaa-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.qaa-panel-num {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--theme_color);
    background: rgba(217, 0, 13, 0.08);
    border: 1.5px solid rgba(217, 0, 13, 0.18);
    border-radius: 8px;
    padding: 6px 10px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 4px;
}

.qaa-panel-header-text {
    flex: 1;
    min-width: 0;
}

.qaa-panel-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text_color);
    margin: 0 0 6px;
    line-height: 1.25;
}

.qaa-panel-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.qaa-panel-divider {
    height: 2px;
    background: linear-gradient(to right, rgba(217, 0, 13, 0.25), transparent);
    border-radius: 2px;
    margin-bottom: 28px;
}

.qaa-panel-empty {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #9ca3af;
    font-style: italic;
}

/* ── RICH TEXT CONTENT TYPOGRAPHY ── */
.qaa-panel-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #374151;
    line-height: 1.8;
}

.qaa-panel-content h1,
.qaa-panel-content h2,
.qaa-panel-content h3,
.qaa-panel-content h4,
.qaa-panel-content h5,
.qaa-panel-content h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: var(--text_color);
    margin-top: 1.4em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.qaa-panel-content h2 { font-size: 20px; }
.qaa-panel-content h3 { font-size: 17px; }
.qaa-panel-content h4 { font-size: 15px; }

.qaa-panel-content p {
    margin: 0 0 1em;
}

.qaa-panel-content ul,
.qaa-panel-content ol {
    padding-left: 1.5em;
    margin: 0 0 1em;
}

.qaa-panel-content li {
    margin-bottom: 0.35em;
}

.qaa-panel-content ul li::marker {
    color: var(--theme_color);
}

.qaa-panel-content ol li::marker {
    color: var(--theme_color);
    font-weight: 700;
}

.qaa-panel-content a {
    color: var(--theme_color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.qaa-panel-content a:hover {
    color: #b8000b;
}

.qaa-panel-content strong,
.qaa-panel-content b {
    font-weight: 700;
    color: var(--text_color);
}

.qaa-panel-content blockquote {
    border-left: 3px solid var(--theme_color);
    margin: 1.2em 0;
    padding: 10px 18px;
    background: #fef2f2;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
    font-style: italic;
}

.qaa-panel-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 14px;
}

.qaa-panel-content table th,
.qaa-panel-content table td {
    border: 1px solid #e5e7eb;
    padding: 9px 13px;
    text-align: left;
}

.qaa-panel-content table th {
    background: #f9fafb;
    font-weight: 700;
    color: var(--text_color);
}

.qaa-panel-content table tr:hover td {
    background: #fafafa;
}

.qaa-panel-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1.5em 0;
}

.qaa-panel-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.5em 0;
}

/* ── EMPTY STATE ── */
.qaa-empty {
    text-align: center;
    padding: 80px 20px;
}

.qaa-empty .iconify {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
    color: #d1d5db;
}

.qaa-empty p {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 4px;
}

.qaa-empty small {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #9ca3af;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .qaa-layout {
        flex-direction: column;
        gap: 0;
    }

    .qaa-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .qaa-sidebar-inner {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 8px 12px;
        gap: 6px;
        scrollbar-width: none;
        border-radius: 12px 12px 0 0;
        border-bottom: none;
        box-shadow: none;
    }

    .qaa-sidebar-inner::-webkit-scrollbar { display: none; }

    .qaa-sidebar-label { display: none; }

    .qaa-nav-btn {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 8px 8px 0 0;
        padding: 8px 14px;
        width: auto;
        flex-shrink: 0;
        gap: 7px;
        background: #f3f4f6;
    }

    .qaa-nav-btn.active {
        background: #fff;
        border-bottom-color: var(--theme_color);
    }

    .qaa-nav-title {
        font-size: 12.5px;
    }

    .qaa-panel {
        border-radius: 0 0 14px 14px;
        padding: 24px 22px 28px;
    }

    .qaa-main {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .qaa-body { padding: 32px 0 56px; }

    .qaa-panel-title { font-size: 20px; }

    .qaa-panel-content { font-size: 14px; }
}

@media (max-width: 480px) {
    .qaa-panel { padding: 18px 16px 22px; }

    .qaa-panel-header { gap: 10px; }

    .qaa-panel-title { font-size: 18px; }

    .qaa-nav-num { display: none; }
}

/* ===== RESTRICTED ACCESS LINKS ===== */

.qrl-body {
    background: #f5f6f8;
    padding: 0 0 80px;
}

.qrl-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eaecef;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 32px 40px 36px;
}

.qrl-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.qrl-header-icon {
    width: 42px;
    height: 42px;
    background: rgba(217, 0, 13, 0.08);
    border: 1.5px solid rgba(217, 0, 13, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.qrl-header-icon .iconify {
    width: 22px;
    height: 22px;
    color: var(--theme_color);
}

.qrl-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text_color);
    margin: 0 0 4px;
    line-height: 1.25;
}

.qrl-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.55;
}

/* ── LIST ── */
.qrl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qrl-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid #eaecef;
    border-radius: 10px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.qrl-item:hover {
    border-color: rgba(217, 0, 13, 0.22);
    box-shadow: 0 2px 8px rgba(217, 0, 13, 0.06);
}

.qrl-item-icon {
    width: 38px;
    height: 38px;
    background: rgba(217, 0, 13, 0.07);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qrl-item-icon .iconify {
    width: 20px;
    height: 20px;
    color: var(--theme_color);
}

.qrl-item-body {
    flex: 1;
    min-width: 0;
}

.qrl-item-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text_color);
    line-height: 1.3;
    margin-bottom: 2px;
}

.qrl-item-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qrl-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: rgba(217, 0, 13, 0.07);
    color: var(--theme_color);
    border: 1.5px solid rgba(217, 0, 13, 0.22);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.qrl-access-btn:hover {
    background: rgba(217, 0, 13, 0.14);
    border-color: rgba(217, 0, 13, 0.38);
}

.qrl-access-btn .iconify {
    width: 15px;
    height: 15px;
}

/* ── MODAL ── */
.qrl-modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.qrl-modal-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text_color);
    margin: 0 0 3px;
    display: flex;
    align-items: center;
}

.qrl-modal-title .iconify {
    color: var(--theme_color);
}

.qrl-modal-item-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.qrl-modal-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.qrl-modal-error {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: var(--theme_color);
    margin: 6px 0 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .qrl-body { padding: 0 0 56px; }
    .qrl-card { padding: 22px 18px 26px; }
    .qrl-item-desc { display: none; }
}

@media (max-width: 480px) {
    .qrl-card { padding: 16px 14px 20px; }
    .qrl-item { padding: 12px 12px; gap: 12px; }
    .qrl-access-btn { padding: 6px 12px; font-size: 12px; }
}
