:root{
    --color-bg: #0b1220;
    --color-bg-soft: #0f1a33;
    --color-bg-muted: #132146;
    --color-text: #e8eefc;
    --color-text-light: #b9c6ee;

    --color-primary: #7c3aed;
    --color-primary-dark: #5b21b6;
    --color-primary-darker: #3b0764;

    --color-accent: #06b6d4;
    --color-success: #10b981;

    --color-border: #27426a;
    --color-border-soft: rgba(39, 66, 106, 0.55);

    --radius-pill: 999px;
    --radius-lg: 6px;
    --radius-sm: 3px;

    --space-xs: 0.65rem;
    --space-sm: 1rem;

    --transition-fast: 0.15s;
    --transition-base: 0.15s cubic-bezier(.2,.9,.2,1);
    --transition-slow: 0.25s cubic-bezier(.2,.9,.2,1);

    --shadow-sm: 0px 2px 0px rgba(0,0,0,0.55);
    --shadow-md: 4px 4px 0px rgba(124, 58, 237, 0.20), 4px 10px 22px rgba(0,0,0,0.22);
    --shadow-lg: 6px 6px 0px rgba(6, 182, 212, 0.20), 10px 18px 36px rgba(0,0,0,0.28);
    --shadow-xl: 8px 8px 0px rgba(124, 58, 237, 0.26), 14px 26px 58px rgba(0,0,0,0.34);
}

.author-profile {
    background: linear-gradient(135deg, #0a1225 0%, var(--color-bg-soft) 55%, rgba(6,182,212,0.16) 100%);
}

.author-profile h1 {
    color: var(--color-primary-darker);
    text-shadow: 4px 4px 0 rgba(6, 182, 212, 0.18);
}

.author-profile img.rounded-circle {
    border: 4px solid #eaf2ff;
    box-shadow: 4px 4px 0 rgba(124, 58, 237, 0.22), 0 18px 45px rgba(0, 0, 0, 0.32);
    border-radius: 2px;
}

.author-profile .badge.bg-light {
    background: #12244a !important;
    color: #dbe6ff !important;
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    border: 2px solid rgba(39, 66, 106, 0.75);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.22);
}

.author-profile .badge.bg-light:hover {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.18) !important;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.22), 0 18px 40px rgba(0,0,0,0.28);
}

.author-box {
    border-inline-start: 4px solid var(--color-accent);
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    border-radius: 0 4px 4px 0;
}

.author-box:hover {
    box-shadow: 4px 4px 0 rgba(6, 182, 212, 0.25), 0 18px 40px rgba(0, 0, 0, 0.22);
}

.author-box img {
    transition: transform 0.15s cubic-bezier(.2,.9,.2,1), filter 0.15s cubic-bezier(.2,.9,.2,1);
    filter: saturate(1.02) contrast(1.03);
}

.author-box:hover img {
    transform: scale(1.05);
    filter: saturate(1.12) contrast(1.08);
}

.author-posts-list .card {
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    overflow: hidden;
    border-radius: 2px;
    border: 2px solid rgba(39, 66, 106, 0.75);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.20);
}

.author-posts-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0 rgba(124, 58, 237, 0.26), 0 22px 52px rgba(0, 0, 0, 0.30);
}

.author-posts-list .card-img-top {
    transition: transform 0.25s cubic-bezier(.2,.9,.2,1), filter 0.25s cubic-bezier(.2,.9,.2,1);
    filter: saturate(1.02) contrast(1.03);
}

.author-posts-list .card:hover .card-img-top {
    transform: scale(1.05);
    filter: saturate(1.15) contrast(1.08);
}

.main-authors-section {
    background: linear-gradient(180deg, rgba(15,26,51,0.98) 0%, rgba(19,33,70,0.98) 100%);
}

.author-card {
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    border: 2px solid rgba(39, 66, 106, 0.70);
    border-radius: 2px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.18);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: 8px 8px 0 rgba(124, 58, 237, 0.22), 14px 26px 60px rgba(0, 0, 0, 0.34);
}

.author-card img.rounded-circle {
    border: 3px solid rgba(234,242,255,0.95);
    transition: border-color 0.15s cubic-bezier(.2,.9,.2,1), box-shadow 0.15s cubic-bezier(.2,.9,.2,1);
    border-radius: 2px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.20);
}

.author-card:hover img.rounded-circle {
    border-color: rgba(124, 58, 237, 0.95);
    box-shadow: 6px 6px 0 rgba(124, 58, 237, 0.22), 0 20px 45px rgba(0,0,0,0.25);
}

.faq-section {
    background: linear-gradient(180deg, rgba(15,26,51,0.96) 0%, #0b1220 60%, rgba(255,255,255,0.06) 100%);
    border-bottom: 3px solid rgba(6, 182, 212, 0.35);
}

.faq-section h2 {
    font-size: 1.75rem;
    color: var(--color-primary-darker);
    text-shadow: 4px 4px 0 rgba(6, 182, 212, 0.12);
}

.faq-list .faq-item {
    border: 2px solid rgba(0, 0, 0, 0.22);
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.16);
    background: rgba(19,33,70,0.45);
}

.faq-list .faq-item:hover {
    box-shadow: 6px 6px 0 rgba(124, 58, 237, 0.22), 0 22px 50px rgba(0, 0, 0, 0.28) !important;
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.55);
}

.faq-list .faq-item[open] {
    border-color: rgba(6, 182, 212, 0.55);
    background: linear-gradient(90deg, rgba(6,182,212,0.18) 0%, rgba(255,255,255,0.06) 60%, rgba(124,58,237,0.10) 100%);
    box-shadow: 8px 8px 0 rgba(6, 182, 212, 0.18), 0 24px 62px rgba(0, 0, 0, 0.30);
}

.faq-list .faq-item summary {
    list-style: none;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1.6;
    padding-inline-end: 2rem;
    position: relative;
    user-select: none;
    color: var(--color-text);
}

.faq-list .faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-list .faq-item summary::marker {
    content: '';
}

.faq-list .faq-item summary::after {
    content: '+';
    position: absolute;
    inset-inline-end: 0.25rem;
    inset-block-start: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(6, 182, 212, 0.95);
    transition: transform 0.15s cubic-bezier(.2,.9,.2,1), color 0.15s cubic-bezier(.2,.9,.2,1);
    line-height: 1;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.18);
}

.faq-list .faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
    color: rgba(124, 58, 237, 0.98);
}

.faq-list .faq-q-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(124, 58, 237, 0.98);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.16);
}

.faq-list .faq-answer {
    font-size: 0.95rem;
    line-height: 1.8;
    animation: faqFadeIn 0.15s cubic-bezier(.2,.9,.2,1);
    color: rgba(232, 238, 252, 0.95);
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
        filter: blur(1px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

.sidebar-widgets .card {
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    border-radius: 2px;
    border: 2px solid rgba(39, 66, 106, 0.65);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.16);
}

.sidebar-widgets .card:hover {
    box-shadow: 6px 6px 0 rgba(124, 58, 237, 0.22), 0 20px 50px rgba(0, 0, 0, 0.28);
    border-color: rgba(124, 58, 237, 0.45);
}

.sidebar-widgets h5 {
    color: var(--color-primary-darker);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.18);
}

.sidebar-widgets .badge {
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    border-radius: 2px;
    border: 2px solid rgba(39, 66, 106, 0.75);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.14);
    color: var(--color-text);
}

.sidebar-widgets .badge:hover {
    background-color: var(--color-primary) !important;
    color: white !important;
    border-color: rgba(255,255,255,0.18) !important;
    transform: translateY(-1px);
    box-shadow: 6px 6px 0 rgba(124, 58, 237, 0.22), 0 18px 42px rgba(0,0,0,0.22);
}

.sidebar-widgets ul li:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.sidebar-widgets ul li a:hover .small {
    color: var(--color-primary) !important;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.18);
}

.pagination .page-link {
    color: rgba(124, 58, 237, 0.98);
    border-color: rgba(39, 66, 106, 0.85);
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    border-radius: 2px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.14);
    background: rgba(19,33,70,0.35);
}

.pagination .page-link:hover {
    background-color: rgba(16, 24, 39, 0.55);
    color: var(--color-primary-dark);
    border-color: rgba(124, 58, 237, 0.75);
    box-shadow: 6px 6px 0 rgba(124, 58, 237, 0.18), 0 18px 40px rgba(0,0,0,0.20);
}

.pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    border-color: rgba(124, 58, 237, 0.95);
    color: #fff;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.22);
}

.pagination .page-item.disabled .page-link {
    color: rgba(185, 198, 238, 0.60);
    border-color: rgba(39, 66, 106, 0.55);
    background: rgba(19,33,70,0.25);
    box-shadow: none;
}

.search-box-section {
    background: linear-gradient(180deg, rgba(15,26,51,0.98) 0%, rgba(19,33,70,0.90) 100%);
    border-top: 3px solid rgba(124, 58, 237, 0.25);
}

.search-box-section .input-group-lg .form-control {
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    padding-inline-start: 1.5rem;
    background: rgba(11,18,32,0.65);
    color: var(--color-text);
    border: 2px solid rgba(39, 66, 106, 0.85);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.14);
}

.search-box-section .input-group-lg .form-control::placeholder{
    color: rgba(185, 198, 238, 0.65);
}

.search-box-section .input-group-lg .btn {
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    background: linear-gradient(135deg, rgba(124,58,237,0.98) 0%, rgba(6,182,212,0.95) 100%);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.16);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.20);
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
}

.search-box-section .badge {
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    border-radius: 2px;
    border: 2px solid rgba(39, 66, 106, 0.75);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.14);
}

.search-box-section .badge:hover {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.18) !important;
    box-shadow: 6px 6px 0 rgba(124, 58, 237, 0.22), 0 18px 42px rgba(0,0,0,0.22);
}

.search-results-section {
    background: linear-gradient(180deg, rgba(11,18,32,0.95) 0%, rgba(15,26,51,0.98) 100%);
    border-top: 3px solid rgba(6, 182, 212, 0.18);
}

.search-result {
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    border-radius: 2px;
    border: 2px solid rgba(39, 66, 106, 0.65);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.14);
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow: 6px 6px 0 rgba(6, 182, 212, 0.22), 0 22px 52px rgba(0, 0, 0, 0.30);
    border-color: rgba(6, 182, 212, 0.55);
}

.search-result h2 a:hover {
    color: var(--color-primary) !important;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.18);
}

.search-result mark {
    background-color: rgba(254, 240, 138, 0.30);
    color: rgba(250, 204, 21, 1);
    padding-inline: 2px;
    border-radius: 2px;
    font-weight: 700;
    border: 2px solid rgba(250, 204, 21, 0.35);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.10);
}

.error-page h1 {
    background: linear-gradient(135deg, rgba(124,58,237,1) 0%, rgba(59,130,246,0.95) 40%, rgba(6,182,212,0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow: 4px 4px 0 rgba(6, 182, 212, 0.18), 0 30px 70px rgba(59, 130, 246, 0.16);
}

.recommended-links .badge {
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    border: 2px solid rgba(39, 66, 106, 0.85);
    border-radius: 2px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.14);
}

.recommended-links .badge:hover {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.18) !important;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 rgba(124, 58, 237, 0.22), 0 18px 42px rgba(0,0,0,0.22);
}

.recommended-links .badge:hover .text-warning {
    color: var(--color-accent) !important;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.18);
}

.legal-article-section,
main:has(> .container > article.bg-white) {
    background: linear-gradient(180deg, rgba(15,26,51,0.96) 0%, rgba(19,33,70,0.92) 100%);
    border-top: 3px solid rgba(124, 58, 237, 0.18);
}

article :is(h2.h4) {
    color: rgba(91, 33, 182, 0.98);
    border-bottom: 2px solid rgba(6, 182, 212, 0.45);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.14);
}

article .alert-info {
    background-color: rgba(239, 246, 255, 0.10);
    border-color: rgba(191, 219, 254, 0.45);
    color: rgba(147, 197, 253, 0.95);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.12);
    border-radius: 2px;
}

article .list-group-item {
    background: transparent;
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    border-color: rgba(39, 66, 106, 0.60);
    border-radius: 2px;
}

article .list-group-item:hover {
    background: rgba(15,26,51,0.55);
    padding-inline-start: var(--space-sm);
    border-color: rgba(6, 182, 212, 0.50);
    box-shadow: 4px 4px 0 rgba(6, 182, 212, 0.14);
}

.posts-grid {
    /* Container nếu cần */
}

.posts-grid .card {
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    border: 2px solid rgba(39, 66, 106, 0.65);
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.14);
}

.posts-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 rgba(6, 182, 212, 0.18), 0 24px 62px rgba(0,0,0,0.32);
    border-color: rgba(6, 182, 212, 0.55);
}

.posts-grid .card-img-top {
    transition: transform 0.25s cubic-bezier(.2,.9,.2,1), filter 0.25s cubic-bezier(.2,.9,.2,1);
    filter: saturate(1.02) contrast(1.03);
}

.posts-grid .card:hover .card-img-top {
    transform: scale(1.05);
    filter: saturate(1.14) contrast(1.08);
}

.posts-grid .card-title a {
    transition: color 0.15s cubic-bezier(.2,.9,.2,1), text-shadow 0.15s cubic-bezier(.2,.9,.2,1);
}

.posts-grid .card-title a:hover {
    color: rgba(124, 58, 237, 0.98) !important;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.18);
}

.related-posts h3 {
    border-bottom: 3px solid rgba(124, 58, 237, 0.60);
    padding-bottom: var(--space-xs);
    display: inline-block;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.14);
}

.related-card {
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    border-radius: 2px;
    border: 2px solid rgba(39, 66, 106, 0.65);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.14);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0 rgba(124, 58, 237, 0.20), 0 20px 50px rgba(0, 0, 0, 0.28);
    border-color: rgba(124, 58, 237, 0.50);
}

.related-card img {
    transition: transform 0.25s cubic-bezier(.2,.9,.2,1), filter 0.25s cubic-bezier(.2,.9,.2,1);
    filter: saturate(1.02) contrast(1.03);
}

.related-card:hover img {
    transform: scale(1.05);
    filter: saturate(1.14) contrast(1.08);
}

.social-share .btn {
    min-width: 40px;
    transition: all 0.15s cubic-bezier(.2,.9,.2,1);
    border-radius: 2px;
    border: 2px solid rgba(39, 66, 106, 0.75);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.14);
    background: rgba(19,33,70,0.35);
    color: var(--color-text);
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 rgba(6, 182, 212, 0.20), 0 18px 42px rgba(0, 0, 0, 0.22);
    border-color: rgba(6, 182, 212, 0.55);
}

.social-share [data-copy-url].copied {
    background-color: var(--color-success);
    color: #fff;

    border-color: rgba(255,255,255,0.18);
    box-shadow: 8px 8px 0 rgba(16, 185, 129, 0.22), 0 24px 60px rgba(0,0,0,0.28);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(239, 246, 255, 0.08);
    color: rgba(91, 33, 182, 0.98);
    box-shadow: none;
    border-radius: 2px;
    border: 2px solid rgba(39, 66, 106, 0.65);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.20);
    border-color: rgba(124, 58, 237, 0.55);
}

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 8px 8px 0 rgba(124, 58, 237, 0.22), 0 35px 90px rgba(0, 0, 0, 0.42);
    background: linear-gradient(180deg, rgba(11,18,32,0.98) 0%, rgba(15,26,51,0.98) 100%);
    border: 2px solid rgba(255,255,255,0.08);
}

.tooltip-inner {
    background-color: rgba(59, 7, 100, 0.96);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border: 2px solid rgba(6, 182, 212, 0.30);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.20), 0 18px 45px rgba(0,0,0,0.28);
}

@media (max-width: 767.98px) {
    .faq-section h2 {
        font-size: 1.4rem;
    }

    .faq-list .faq-item summary {
        font-size: 0.95rem;
        padding-inline-end: 1.5rem;
    }

    .faq-list .faq-answer {
        font-size: 0.88rem;
    }

    .author-profile h1 {
        font-size: 1.5rem;
    }

    .author-profile .col-md-3 img {
        width: 120px !important;
        height: 120px !important;
        border-radius: 2px;
    }

    .error-page h1 {
        font-size: 5rem !important;
        text-shadow: 4px 4px 0 rgba(6, 182, 212, 0.16), 0 26px 62px rgba(59, 130, 246, 0.14);
    }

    .search-box-section .input-group-lg .form-control,
    .search-box-section .input-group-lg .btn {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .related-posts .row > [class*="col-"] {
        margin-bottom: var(--space-sm);
    }

    .pagination .page-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.9rem;
        box-shadow: 3px 3px 0 rgba(0,0,0,0.14);
    }
}