.author-profile {
    background: radial-gradient(900px 320px at 50% 0%, rgba(131, 77, 255, 0.22) 0%, rgba(15, 15, 26, 0) 55%), linear-gradient(135deg, #f7f6ff 0%, #0f0f1a 120%);
}

.author-profile h1 {
    color: #2a0b5a;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.author-profile img.rounded-circle {
    border: 4px solid #ffffff;
    border-radius: 999px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.30),
        0 6px 18px rgba(64, 24, 139, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.author-profile .badge.bg-light {
    background: rgba(255, 255, 255, 0.72) !important;
    color: #2a0b5a !important;
    border: 1px solid rgba(42, 11, 90, 0.12) !important;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.author-profile .badge.bg-light:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #2a0b5a 100%) !important;
    color: #ffffff !important;
    border-color: rgba(109, 40, 217, 0.65) !important;
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.25), 0 2px 10px rgba(0, 0, 0, 0.18);
}

.author-box {
    border-inline-start: 4px solid #7c3aed;
    transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
    border-radius: 4px;
}

.author-box:hover {
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.28),
        0 10px 26px rgba(124, 58, 237, 0.20),
        0 2px 0 rgba(255, 255, 255, 0.08) inset;
}

.author-box img {
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: saturate(1.03) contrast(1.02);
}

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

.author-posts-list .card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.author-posts-list .card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 52px rgba(0, 0, 0, 0.34),
        0 10px 24px rgba(124, 58, 237, 0.22),
        0 2px 0 rgba(255, 255, 255, 0.10) inset;
    border-color: rgba(124, 58, 237, 0.55);
}

.author-posts-list .card-img-top {
    transition: transform var(--transition-slow), filter var(--transition-slow);
    filter: saturate(1.02) contrast(1.03);
}

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

.main-authors-section {
    background: radial-gradient(1200px 500px at 50% -10%, rgba(124, 58, 237, 0.22) 0%, rgba(15, 15, 26, 0) 55%), #0f0f1a;
}

.author-card {
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
}

.author-card:hover {
    transform: translateY(-7px);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.35),
        0 12px 28px rgba(124, 58, 237, 0.24),
        0 2px 0 rgba(255, 255, 255, 0.10) inset;
    border-color: rgba(124, 58, 237, 0.6);
}

.author-card img.rounded-circle {
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.author-card:hover img.rounded-circle {
    border-color: #a78bfa;
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.30);
}

.faq-section {
    background: radial-gradient(900px 360px at 50% 0%, rgba(124, 58, 237, 0.22) 0%, rgba(15, 15, 26, 0) 55%), linear-gradient(180deg, rgba(15, 15, 26, 0.9) 0%, #17172a 55%, #ffffff 140%);
}

.faq-section h2 {
    font-size: 1.75rem;
    color: #2a0b5a;
    text-shadow: 0 10px 30px rgba(124, 58, 237, 0.18);
}

.faq-list .faq-item {
    border: 1px solid rgba(124, 58, 237, 0.14);
    transition: all var(--transition-base);
    cursor: pointer;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
}

.faq-list .faq-item:hover {
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.22),
        0 10px 26px rgba(124, 58, 237, 0.20) !important;
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.35);
}

.faq-list .faq-item[open] {
    border-color: rgba(124, 58, 237, 0.45);
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.12) 0%, rgba(255, 255, 255, 0.75) 100%);
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.16);
}

.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: #1f153a;
}

.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: #6d28d9;
    transition: transform var(--transition-base), color var(--transition-base);
    line-height: 1;
    text-shadow: 0 10px 25px rgba(109, 40, 217, 0.25);
}

.faq-list .faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
    color: #2a0b5a;
}

.faq-list .faq-q-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: #6d28d9;
    text-shadow: 0 10px 25px rgba(109, 40, 217, 0.18);
}

.faq-list .faq-answer {
    font-size: 0.95rem;
    line-height: 1.8;
    animation: faqFadeIn var(--transition-base);
    color: rgba(17, 12, 36, 0.86);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

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

.sidebar-widgets .card {
    transition: all var(--transition-base);
    border-radius: 4px;
}

.sidebar-widgets .card:hover {
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.22),
        0 10px 26px rgba(124, 58, 237, 0.18);
}

.sidebar-widgets h5 {
    color: #2a0b5a;
    text-shadow: 0 10px 30px rgba(124, 58, 237, 0.14);
}

.sidebar-widgets .badge {
    transition: all var(--transition-fast);
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #2a0b5a;
}

.sidebar-widgets .badge:hover {
    background-color: linear-gradient(135deg, #6d28d9 0%, #2a0b5a 100%) !important;
    background-image: linear-gradient(135deg, #6d28d9 0%, #2a0b5a 100%) !important;
    color: #fff !important;
    border-color: rgba(109, 40, 217, 0.6) !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 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: #6d28d9 !important;
    text-shadow: 0 10px 26px rgba(109, 40, 217, 0.16);
}

.pagination .page-link {
    color: #6d28d9;
    border-color: rgba(109, 40, 217, 0.28);
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    border-radius: 4px;
}

.pagination .page-link:hover {
    background-color: rgba(109, 40, 217, 0.10);
    color: #2a0b5a;
    border-color: rgba(109, 40, 217, 0.55);
    box-shadow: 0 10px 26px rgba(124, 58, 237, 0.18);
}

.pagination .page-item.active .page-link {
    background-color: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
    box-shadow:
        0 16px 40px rgba(109, 40, 217, 0.28),
        0 2px 0 rgba(255, 255, 255, 0.22) inset;
}

.pagination .page-item.disabled .page-link {
    color: rgba(31, 21, 58, 0.45);
    border-color: rgba(109, 40, 217, 0.18);
}

.search-box-section {
    background: radial-gradient(900px 360px at 50% 0%, rgba(124, 58, 237, 0.18) 0%, rgba(15, 15, 26, 0) 55%), #0f0f1a;
}

.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(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f7f6ff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.search-box-section .input-group-lg .form-control::placeholder {
    color: rgba(247, 246, 255, 0.55);
    opacity: 1;
}

.search-box-section .input-group-lg .btn {
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    background: linear-gradient(135deg, #6d28d9 0%, #2a0b5a 100%);
    border: 1px solid rgba(109, 40, 217, 0.55);
    color: #fff;
    box-shadow: 0 18px 46px rgba(109, 40, 217, 0.24);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast), background-image var(--transition-fast), border-color var(--transition-fast);
}

.search-box-section .badge {
    transition: all var(--transition-fast);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.search-box-section .badge:hover {
    background-color: #6d28d9 !important;
    color: #fff !important;
    border-color: rgba(109, 40, 217, 0.7) !important;
    box-shadow: 0 14px 36px rgba(109, 40, 217, 0.25);
    transform: translateY(-1px);
}

.search-results-section {
    background: #0f0f1a;
}

.search-result {
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.30),
        0 10px 26px rgba(124, 58, 237, 0.22);
    border-color: rgba(124, 58, 237, 0.45);
}

.search-result h2 a:hover {
    color: #6d28d9 !important;
    text-shadow: 0 12px 28px rgba(109, 40, 217, 0.22);
}

.search-result mark {
    background-color: rgba(254, 240, 138, 0.95);
    padding-inline: 2px;
    border-radius: 3px;
    font-weight: 700;
    color: #2a0b5a;
    box-shadow: 0 10px 26px rgba(250, 204, 21, 0.20);
}

.error-page h1 {
    background: linear-gradient(135deg, #6d28d9 0%, #2a0b5a 55%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow:
        0 22px 60px rgba(109, 40, 217, 0.22),
        0 6px 18px rgba(59, 130, 246, 0.10);
}

.recommended-links .badge {
    transition: all var(--transition-fast);
    border: 1px solid rgba(109, 40, 217, 0.26);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    color: #2a0b5a;
}

.recommended-links .badge:hover {
    background-color: #6d28d9 !important;
    color: #fff !important;
    border-color: rgba(109, 40, 217, 0.65) !important;
    transform: translateY(-2px);
    box-shadow:
        0 18px 46px rgba(109, 40, 217, 0.25),
        0 2px 0 rgba(255, 255, 255, 0.22) inset;
}

.recommended-links .badge:hover .text-warning {
    color: #a78bfa !important;
    text-shadow: 0 12px 26px rgba(167, 139, 250, 0.25);
}

.legal-article-section,
main:has(> .container > article.bg-white) {
    background: radial-gradient(900px 360px at 50% 0%, rgba(124, 58, 237, 0.16) 0%, rgba(15, 15, 26, 0) 55%), #f7f6ff;
}

article :is(h2.h4) {
    color: #2a0b5a;
    border-bottom: 2px solid rgba(109, 40, 217, 0.35);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
    text-shadow: 0 14px 34px rgba(124, 58, 237, 0.14);
}

article .alert-info {
    background-color: rgba(239, 246, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.28);
    color: #2a0b5a;
    border-radius: 4px;
    box-shadow: 0 14px 34px rgba(59, 130, 246, 0.10);
}

article .list-group-item {
    background: transparent;
    transition: all var(--transition-fast);
    border-radius: 4px;
}

article .list-group-item:hover {
    background: rgba(124, 58, 237, 0.08);
    padding-inline-start: var(--space-sm);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.10);
}

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

.posts-grid .card {
    transition: all var(--transition-base);
    border: 1px solid rgba(109, 40, 217, 0.18);
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.posts-grid .card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.28),
        0 12px 28px rgba(124, 58, 237, 0.22);
    border-color: rgba(109, 40, 217, 0.55);
}

.posts-grid .card-img-top {
    transition: transform var(--transition-slow), filter var(--transition-slow);
    filter: saturate(1.02) contrast(1.03);
}

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

.posts-grid .card-title a {
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
    color: #1f153a;
}

.posts-grid .card-title a:hover {
    color: #6d28d9 !important;
    text-shadow: 0 12px 28px rgba(109, 40, 217, 0.20);
}

.related-posts h3 {
    border-bottom: 3px solid #7c3aed;
    padding-bottom: var(--space-xs);
    display: inline-block;
    text-shadow: 0 16px 40px rgba(124, 58, 237, 0.16);
}

.related-card {
    transition: all var(--transition-base);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 52px rgba(0, 0, 0, 0.28),
        0 10px 26px rgba(124, 58, 237, 0.18);
    border-color: rgba(124, 58, 237, 0.45);
}

.related-card img {
    transition: transform var(--transition-slow), filter var(--transition-slow);
    filter: saturate(1.02) contrast(1.03);
}

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

.social-share .btn {
    min-width: 40px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast);
    border-radius: 4px;
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.22),
        0 10px 26px rgba(124, 58, 237, 0.16);
    filter: saturate(1.08);
}

.social-share [data-copy-url].copied {
    background-color: rgba(109, 40, 217, 0.95);
    color: #fff;
    border-color: rgba(109, 40, 217, 0.95);
    box-shadow: 0 18px 46px rgba(109, 40, 217, 0.28);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(239, 246, 255, 0.95);
    color: #2a0b5a;
    box-shadow: none;
    border-radius: 4px;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(109, 40, 217, 0.18);
}

.modal-content {
    border: none;
    border-radius: 6px;
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.50),
        0 18px 60px rgba(124, 58, 237, 0.25),
        0 2px 0 rgba(255, 255, 255, 0.10) inset;
}

.tooltip-inner {
    background-color: #2a0b5a;
    border-radius: 4px;
    font-size: 0.85rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.30);
}

@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-color: #ffffff;
    }

    .error-page h1 {
        font-size: 5rem !important;
    }

    .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;
        border-radius: 4px;
    }
}