.author-profile {
    background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.86) 28%, rgba(24,26,38,0.04) 100%);
}

.author-profile h1 {
    color: #0b1324;
    text-shadow: 0 2px 18px rgba(110,231,183,0.18);
}

.author-profile img.rounded-circle {
    border: 4px solid rgba(255,255,255,0.92);
    border-radius: 999px;
    box-shadow:
        0 10px 30px rgba(8, 16, 38, 0.18),
        0 0 0 1px rgba(99,102,241,0.14),
        0 0 26px rgba(99,102,241,0.22);
}

.author-profile .badge.bg-light {
    background: rgba(255,255,255,0.65) !important;
    color: #0b1324 !important;
    border: 1px solid rgba(99,102,241,0.18);
    transition: transform 240ms cubic-bezier(.2,.8,.2,1), background-color 220ms ease, color 220ms ease, box-shadow 260ms ease, border-color 220ms ease;
    box-shadow: 0 6px 22px rgba(2,6,23,0.08);
}

.author-profile .badge.bg-light:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.95) 0%, rgba(56,189,248,0.95) 100%) !important;
    color: #ffffff !important;
    border-color: rgba(56,189,248,0.45);
    box-shadow:
        0 10px 28px rgba(59,130,246,0.24),
        0 0 0 1px rgba(56,189,248,0.3),
        0 0 34px rgba(56,189,248,0.28) !important;
    transform: translateY(-1px);
}

.author-box {
    border-inline-start: 4px solid #7c3aed;
    transition: box-shadow 260ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, transform 260ms cubic-bezier(.2,.8,.2,1);
    border-radius: 14px;
}

.author-box:hover {
    box-shadow:
        0 14px 38px rgba(124,58,237,0.20),
        0 0 0 1px rgba(124,58,237,0.22),
        0 0 34px rgba(124,58,237,0.28);
    border-color: #a78bfa;
    transform: translateY(-1px);
}

.author-box img {
    transition: transform 260ms cubic-bezier(.2,.8,.2,1), filter 260ms ease;
    filter: saturate(1.02) contrast(1.02);
}

.author-box:hover img {
    transform: scale(1.05) rotate(-0.2deg);
    filter: saturate(1.08) contrast(1.05) drop-shadow(0 10px 18px rgba(124,58,237,0.16));
}

.author-posts-list .card {
    transition: box-shadow 260ms cubic-bezier(.2,.8,.2,1), transform 260ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, background-color 220ms ease;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(2,6,23,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.76) 100%);
}

.author-posts-list .card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 18px 48px rgba(99,102,241,0.22),
        0 0 0 1px rgba(99,102,241,0.22),
        0 0 40px rgba(56,189,248,0.20);
    border-color: rgba(99,102,241,0.45);
}

.author-posts-list .card-img-top {
    transition: transform 520ms cubic-bezier(.2,.8,.2,1), filter 520ms ease;
    filter: saturate(1.02) contrast(1.02);
}

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

.main-authors-section {
    background: linear-gradient(180deg, rgba(15,23,42,0.02) 0%, rgba(99,102,241,0.06) 60%, rgba(56,189,248,0.04) 100%);
    border-radius: 18px;
}

.author-card {
    transition: transform 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, background-color 220ms ease;
    border: 1px solid rgba(99,102,241,0.20);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.80) 0%, rgba(255,255,255,0.64) 100%);
    box-shadow: 0 10px 26px rgba(2,6,23,0.08);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 22px 56px rgba(124,58,237,0.22),
        0 0 0 1px rgba(124,58,237,0.26),
        0 0 44px rgba(124,58,237,0.26);
    border-color: rgba(124,58,237,0.58);
}

.author-card img.rounded-circle {
    border: 3px solid rgba(255,255,255,0.90);
    transition: border-color 220ms ease, box-shadow 260ms cubic-bezier(.2,.8,.2,1), transform 260ms cubic-bezier(.2,.8,.2,1);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(2,6,23,0.10);
}

.author-card:hover img.rounded-circle {
    border-color: rgba(99,102,241,0.88);
    box-shadow:
        0 16px 30px rgba(99,102,241,0.22),
        0 0 0 1px rgba(99,102,241,0.25),
        0 0 30px rgba(56,189,248,0.18);
    transform: translateY(-1px);
}

.faq-section {
    background: linear-gradient(180deg, rgba(99,102,241,0.08) 0%, rgba(255,255,255,0.92) 35%, rgba(56,189,248,0.06) 100%);
    border-radius: 18px;
}

.faq-section h2 {
    font-size: 1.75rem;
    color: #0b1324;
    text-shadow: 0 10px 30px rgba(99,102,241,0.18);
}

.faq-list .faq-item {
    border: 1px solid rgba(2,6,23,0.10);
    transition: box-shadow 260ms cubic-bezier(.2,.8,.2,1), transform 240ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, background 220ms ease;
    cursor: pointer;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.70) 100%);
}

.faq-list .faq-item:hover {
    box-shadow:
        0 16px 38px rgba(59,130,246,0.16),
        0 0 0 1px rgba(59,130,246,0.20),
        0 0 34px rgba(59,130,246,0.18) !important;
    transform: translateY(-2px);
    border-color: rgba(59,130,246,0.35);
}

.faq-list .faq-item[open] {
    border-color: rgba(59,130,246,0.35);
    background: linear-gradient(90deg, rgba(99,102,241,0.14) 0%, rgba(255,255,255,0.92) 55%, rgba(56,189,248,0.14) 100%);
    box-shadow:
        0 16px 46px rgba(59,130,246,0.18),
        0 0 0 1px rgba(59,130,246,0.18),
        0 0 42px rgba(56,189,248,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;
}

.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: #4f46e5;
    transition: transform 240ms cubic-bezier(.2,.8,.2,1), color 220ms ease;
    line-height: 1;
    text-shadow: 0 0 18px rgba(99,102,241,0.22);
}

.faq-list .faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
    color: #0ea5e9;
    text-shadow: 0 0 18px rgba(56,189,248,0.22);
}

.faq-list .faq-q-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: #4f46e5;
    text-shadow: 0 0 16px rgba(99,102,241,0.18);
}

.faq-list .faq-answer {
    font-size: 0.95rem;
    line-height: 1.8;
    animation: faqFadeIn 260ms cubic-bezier(.2,.8,.2,1);
}

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

.sidebar-widgets .card {
    transition: box-shadow 260ms cubic-bezier(.2,.8,.2,1), transform 260ms cubic-bezier(.2,.8,.2,1), background-color 220ms ease, border-color 220ms ease;
    border-radius: 14px;
    border: 1px solid rgba(2,6,23,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(255,255,255,0.70) 100%);
}

.sidebar-widgets .card:hover {
    box-shadow:
        0 18px 46px rgba(99,102,241,0.18),
        0 0 0 1px rgba(99,102,241,0.16),
        0 0 32px rgba(56,189,248,0.14);
    transform: translateY(-2px);
    border-color: rgba(99,102,241,0.28);
}

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

.sidebar-widgets .badge {
    transition: transform 220ms cubic-bezier(.2,.8,.2,1), background-color 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 240ms ease;
    cursor: pointer;
    border-radius: 999px;
    border: 1px solid rgba(99,102,241,0.18);
    background: rgba(255,255,255,0.70);
    box-shadow: 0 10px 26px rgba(2,6,23,0.06);
}

.sidebar-widgets .badge:hover {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    border-color: rgba(79,70,229,0.55);
    transform: translateY(-1px);
    box-shadow:
        0 14px 34px rgba(79,70,229,0.22),
        0 0 0 1px rgba(79,70,229,0.28),
        0 0 30px rgba(56,189,248,0.16);
}

.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: #4f46e5 !important;
    text-shadow: 0 0 14px rgba(99,102,241,0.18);
}

.pagination .page-link {
    color: #4f46e5;
    border-color: rgba(99,102,241,0.30);
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 220ms cubic-bezier(.2,.8,.2,1), transform 180ms cubic-bezier(.2,.8,.2,1);
    border-radius: 10px;
    background: rgba(255,255,255,0.70);
}

.pagination .page-link:hover {
    background-color: rgba(99,102,241,0.10);
    color: #1d4ed8;
    border-color: rgba(79,70,229,0.55);
    box-shadow:
        0 12px 30px rgba(59,130,246,0.12),
        0 0 0 1px rgba(79,70,229,0.18);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    border-color: rgba(79,70,229,0.70);
    color: #fff;
    box-shadow:
        0 16px 40px rgba(79,70,229,0.26),
        0 0 0 1px rgba(14,165,233,0.22),
        0 0 36px rgba(14,165,233,0.20);
}

.pagination .page-item.disabled .page-link {
    color: rgba(15,23,42,0.40);
    border-color: rgba(2,6,23,0.10);
    background: rgba(255,255,255,0.55);
}

.search-box-section {
    background: linear-gradient(180deg, rgba(99,102,241,0.06) 0%, rgba(255,255,255,0.85) 40%, rgba(56,189,248,0.05) 100%);
    border-radius: 18px;
}

.search-box-section .input-group-lg .form-control {
    border-radius: 20px 0 0 20px;
    padding-inline-start: 1.5rem;
    border: 1px solid rgba(99,102,241,0.24);
    background: rgba(255,255,255,0.82);
    box-shadow: 0 12px 26px rgba(2,6,23,0.06);
    transition: box-shadow 240ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, background-color 220ms ease;
}

.search-box-section .input-group-lg .btn {
    border-radius: 0 20px 20px 0;
    border: 1px solid rgba(99,102,241,0.24);
    background: linear-gradient(135deg, rgba(79,70,229,0.95) 0%, rgba(14,165,233,0.95) 100%);
    color: #fff;
    box-shadow:
        0 16px 38px rgba(79,70,229,0.22),
        0 0 0 1px rgba(14,165,233,0.20),
        0 0 34px rgba(14,165,233,0.18);
    transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms cubic-bezier(.2,.8,.2,1), filter 240ms ease;
}

.search-box-section .badge {
    transition: transform 220ms cubic-bezier(.2,.8,.2,1), background-color 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 240ms cubic-bezier(.2,.8,.2,1);
    border-radius: 999px;
    border: 1px solid rgba(99,102,241,0.20);
    background: rgba(255,255,255,0.72);
    box-shadow: 0 10px 26px rgba(2,6,23,0.06);
}

.search-box-section .badge:hover {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    border-color: rgba(79,70,229,0.60) !important;
    box-shadow:
        0 16px 40px rgba(79,70,229,0.22),
        0 0 0 1px rgba(79,70,229,0.20),
        0 0 34px rgba(56,189,248,0.16);
    transform: translateY(-1px);
}

.search-results-section {
    background: linear-gradient(180deg, rgba(2,6,23,0.02) 0%, rgba(99,102,241,0.05) 70%, rgba(56,189,248,0.04) 100%);
    border-radius: 18px;
}

.search-result {
    transition: box-shadow 260ms cubic-bezier(.2,.8,.2,1), transform 260ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, background-color 220ms ease;
    border-radius: 14px;
    border: 1px solid rgba(2,6,23,0.08);
    background: rgba(255,255,255,0.78);
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow:
        0 16px 44px rgba(56,189,248,0.18),
        0 0 0 1px rgba(56,189,248,0.18),
        0 0 32px rgba(99,102,241,0.16);
    border-color: rgba(56,189,248,0.38);
}

.search-result h2 a:hover {
    color: #4f46e5 !important;
    text-shadow: 0 0 18px rgba(99,102,241,0.22);
}

.search-result mark {
    background-color: rgba(254, 240, 138, 0.92);
    padding-inline: 2px;
    border-radius: 8px;
    font-weight: 650;
    color: #0b1324;
    box-shadow:
        0 10px 26px rgba(245,158,11,0.14),
        0 0 0 1px rgba(245,158,11,0.20) inset;
}

.error-page h1 {
    background: linear-gradient(135deg, rgba(99,102,241,1) 0%, rgba(56,189,248,1) 55%, rgba(16,185,129,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow:
        0 10px 40px rgba(59, 130, 246, 0.22),
        0 0 28px rgba(56, 189, 248, 0.22);
    animation: errorGlow 2.6s ease-in-out infinite;
    border-radius: 10px;
}

@keyframes errorGlow {
    0%, 100% { filter: saturate(1) brightness(1); }
    50% { filter: saturate(1.08) brightness(1.03); }
}

.recommended-links .badge {
    transition: transform 220ms cubic-bezier(.2,.8,.2,1), background-color 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 240ms cubic-bezier(.2,.8,.2,1);
    border: 1px solid rgba(2,6,23,0.14);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.68) 100%);
    box-shadow: 0 12px 30px rgba(2,6,23,0.06);
}

.recommended-links .badge:hover {
    background-color: #4f46e5 !important;
    color: #fff !important;
    border-color: rgba(79,70,229,0.65) !important;
    transform: translateY(-2px);
    box-shadow:
        0 18px 46px rgba(79,70,229,0.26),
        0 0 0 1px rgba(79,70,229,0.20),
        0 0 36px rgba(56,189,248,0.16);
}

.recommended-links .badge:hover .text-warning {
    color: #10b981 !important;
    text-shadow: 0 0 14px rgba(16,185,129,0.18);
}

.legal-article-section,
main:has(> .container > article.bg-white) {
    background: linear-gradient(180deg, rgba(99,102,241,0.05) 0%, rgba(255,255,255,0.88) 40%, rgba(56,189,248,0.05) 100%);
    border-radius: 18px;
}

article :is(h2.h4) {
    color: #0b1324;
    border-bottom: 2px solid rgba(99,102,241,0.42);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
    text-shadow: 0 10px 30px rgba(99,102,241,0.10);
}

article .alert-info {
    background-color: rgba(239, 246, 255, 0.92);
    border-color: rgba(59, 130, 246, 0.24);
    color: #1d4ed8;
    border-radius: 14px;
    box-shadow:
        0 14px 34px rgba(59,130,246,0.10),
        0 0 0 1px rgba(59,130,246,0.10) inset;
}

article .list-group-item {
    background: transparent;
    transition: all 180ms ease;
    border-radius: 12px;
    border: 1px solid rgba(2,6,23,0.06);
}

article .list-group-item:hover {
    background: linear-gradient(180deg, rgba(99,102,241,0.08) 0%, rgba(255,255,255,0.80) 100%);
    padding-inline-start: var(--space-sm);
    border-color: rgba(99,102,241,0.28);
    box-shadow:
        0 16px 38px rgba(99,102,241,0.14),
        0 0 0 1px rgba(99,102,241,0.16);
}

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

.posts-grid .card {
    transition: box-shadow 260ms cubic-bezier(.2,.8,.2,1), transform 260ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, background-color 220ms ease;
    border: 1px solid rgba(2,6,23,0.10);
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(255,255,255,0.70) 100%);
    box-shadow: 0 12px 30px rgba(2,6,23,0.06);
}

.posts-grid .card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 22px 58px rgba(124,58,237,0.20),
        0 0 0 1px rgba(124,58,237,0.18),
        0 0 40px rgba(56,189,248,0.14);
    border-color: rgba(124,58,237,0.55);
}

.posts-grid .card-img-top {
    transition: transform 520ms cubic-bezier(.2,.8,.2,1), filter 520ms ease;
    filter: saturate(1.02) contrast(1.02);
}

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

.posts-grid .card-title a {
    transition: color 180ms ease, text-shadow 180ms ease;
}

.posts-grid .card-title a:hover {
    color: #4f46e5 !important;
    text-shadow: 0 0 20px rgba(99,102,241,0.22);
}

.related-posts h3 {
    border-bottom: 3px solid #7c3aed;
    padding-bottom: var(--space-xs);
    display: inline-block;
    color: #0b1324;
    text-shadow: 0 10px 30px rgba(124,58,237,0.10);
    border-radius: 10px;
}

.related-card {
    transition: box-shadow 260ms cubic-bezier(.2,.8,.2,1), transform 260ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, background-color 220ms ease;
    border-radius: 14px;
    border: 1px solid rgba(2,6,23,0.08);
    background: rgba(255,255,255,0.78);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 18px 46px rgba(56,189,248,0.18),
        0 0 0 1px rgba(56,189,248,0.18),
        0 0 34px rgba(124,58,237,0.14);
    border-color: rgba(56,189,248,0.40);
}

.related-card img {
    transition: transform 520ms cubic-bezier(.2,.8,.2,1), filter 520ms ease;
    filter: saturate(1.02) contrast(1.02);
}

.related-card:hover img {
    transform: scale(1.05);
    filter: saturate(1.12) contrast(1.07) brightness(1.02);
}

.social-share .btn {
    min-width: 40px;
    transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms cubic-bezier(.2,.8,.2,1), filter 240ms ease, background-color 220ms ease, border-color 220ms ease, color 220ms ease;
    border-radius: 12px;
    border: 1px solid rgba(2,6,23,0.12);
    background: rgba(255,255,255,0.78);
    box-shadow: 0 12px 30px rgba(2,6,23,0.06);
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 38px rgba(99,102,241,0.18),
        0 0 0 1px rgba(99,102,241,0.16),
        0 0 34px rgba(56,189,248,0.14);
    filter: saturate(1.08);
}

.social-share [data-copy-url].copied {
    background-color: rgba(16,185,129,0.95);
    color: #fff;
    border-color: rgba(16,185,129,0.95);
    box-shadow:
        0 18px 46px rgba(16,185,129,0.22),
        0 0 0 1px rgba(16,185,129,0.28),
        0 0 38px rgba(16,185,129,0.18);
    animation: copiedPulse 900ms ease-in-out 1;
}

@keyframes copiedPulse {
    0% { transform: translateY(0); opacity: 0.95; }
    55% { transform: translateY(-1px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

.accordion-button:not(.collapsed) {
    background-color: rgba(59,130,246,0.10);
    color: #0b1324;
    box-shadow: none;
    border-radius: 14px;
}

.accordion-button:focus {
    box-shadow:
        0 0 0 0.2rem rgba(56,189,248,0.18),
        0 0 34px rgba(56,189,248,0.16);
}

.modal-content {
    border: none;
    border-radius: 14px;
    box-shadow:
        0 22px 70px rgba(2,6,23,0.35),
        0 0 0 1px rgba(99,102,241,0.20),
        0 0 42px rgba(99,102,241,0.20);
}

.tooltip-inner {
    background-color: #0b1324;
    border-radius: 10px;
    font-size: 0.85rem;
    box-shadow:
        0 16px 44px rgba(0,0,0,0.35),
        0 0 30px rgba(56,189,248,0.16);
}

@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;
    }

    .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: 10px;
    }
}