.author-profile {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0) 35%), radial-gradient(1200px 600px at 10% -20%, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 60%), radial-gradient(900px 500px at 110% 0%, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0) 55%), var(--color-bg-soft);
}

.author-profile h1 {
    color: #0f172a;
}

.author-profile img.rounded-circle {
    border: 4px solid #ffffff;
    box-shadow:
        0 16px 40px rgba(2, 6, 23, 0.14),
        0 2px 10px rgba(2, 6, 23, 0.10),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.author-profile .badge.bg-light {
    background: rgba(226, 232, 240, 0.55) !important;
    color: #0f172a !important;
    transition: all 240ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.author-profile .badge.bg-light:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow:
        0 18px 45px rgba(37, 99, 235, 0.22),
        0 8px 18px rgba(2, 6, 23, 0.10);
}

.author-box {
    border-inline-start: 4px solid #22c55e;
    transition: box-shadow 260ms cubic-bezier(0.2, 0.9, 0.2, 1), transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 220ms ease;
    border-radius: 18px;
}

.author-box:hover {
    box-shadow:
        0 22px 60px rgba(16, 185, 129, 0.18),
        0 10px 26px rgba(2, 6, 23, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    transform: translateY(-2px);
}

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

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

.author-posts-list .card {
    transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 260ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 220ms ease, background 220ms ease;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.75) 100%);
    box-shadow:
        0 14px 40px rgba(2, 6, 23, 0.08),
        0 2px 10px rgba(2, 6, 23, 0.05),
        0 0 0 1px rgba(148, 163, 184, 0.22) inset;
}

.author-posts-list .card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 28px 70px rgba(59, 130, 246, 0.20),
        0 14px 34px rgba(2, 6, 23, 0.14),
        0 0 0 1px rgba(59, 130, 246, 0.20) inset;
}

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

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

.main-authors-section {
    background:
        radial-gradient(900px 520px at 10% 0%, rgba(99, 102, 241, 0.16) 0%, rgba(99, 102, 241, 0) 60%),
        radial-gradient(800px 460px at 95% 15%, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 55%),
        var(--color-bg-soft);
}

.author-card {
    transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 260ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 220ms ease, background 220ms ease;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 24px;
    box-shadow:
        0 16px 48px rgba(2, 6, 23, 0.08),
        0 2px 10px rgba(2, 6, 23, 0.05);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 34px 90px rgba(59, 130, 246, 0.18),
        0 18px 44px rgba(2, 6, 23, 0.14),
        0 0 0 1px rgba(59, 130, 246, 0.22) inset;
    border-color: rgba(59, 130, 246, 0.55);
}

.author-card img.rounded-circle {
    border: 3px solid rgba(255, 255, 255, 0.95);
    transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms cubic-bezier(0.2, 0.9, 0.2, 1);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.10);
}

.author-card:hover img.rounded-circle {
    border-color: #3b82f6;
    box-shadow:
        0 18px 42px rgba(59, 130, 246, 0.22),
        0 12px 26px rgba(2, 6, 23, 0.10);
    transform: translateY(-1px);
}

.faq-section {
    background:
        radial-gradient(1000px 600px at 10% 0%, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0) 55%),
        radial-gradient(1000px 600px at 95% 20%, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0) 55%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
}

.faq-section h2 {
    font-size: 1.75rem;
    color: #0b1220;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.faq-list .faq-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: box-shadow 260ms cubic-bezier(0.2, 0.9, 0.2, 1), transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 220ms ease, background 240ms ease;
    cursor: pointer;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.72) 100%);
    box-shadow:
        0 14px 40px rgba(2, 6, 23, 0.06),
        0 0 0 1px rgba(148, 163, 184, 0.16) inset;
}

.faq-list .faq-item:hover {
    box-shadow:
        0 22px 60px rgba(59, 130, 246, 0.14),
        0 12px 30px rgba(2, 6, 23, 0.10),
        0 0 0 1px rgba(59, 130, 246, 0.20) inset !important;
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.28);
}

.faq-list .faq-item[open] {
    border-color: rgba(56, 189, 248, 0.35);
    background:
        radial-gradient(800px 220px at 0% 0%, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 60%),
        linear-gradient(90deg, rgba(224, 242, 254, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow:
        0 26px 76px rgba(56, 189, 248, 0.16),
        0 14px 34px rgba(2, 6, 23, 0.12),
        0 0 0 1px rgba(56, 189, 248, 0.25) inset;
}

.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: #2563eb;
    transition: transform 240ms cubic-bezier(0.2, 0.9, 0.2, 1), color 220ms ease;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

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

.faq-list .faq-q-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2563eb;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

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

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

.sidebar-widgets .card {
    transition: box-shadow 260ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 220ms ease, transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), background 220ms ease;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow:
        0 14px 42px rgba(2, 6, 23, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.sidebar-widgets .card:hover {
    box-shadow:
        0 22px 64px rgba(34, 197, 94, 0.14),
        0 12px 30px rgba(2, 6, 23, 0.10),
        0 0 0 1px rgba(34, 197, 94, 0.18) inset;
    border-color: rgba(34, 197, 94, 0.34);
    transform: translateY(-2px);
}

.sidebar-widgets h5 {
    color: #0f172a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sidebar-widgets .badge {
    transition: all 200ms cubic-bezier(0.2, 0.9, 0.2, 1);
    cursor: pointer;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.35);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.30);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.sidebar-widgets .badge:hover {
    background-color: #22c55e !important;
    color: #ffffff !important;
    border-color: rgba(34, 197, 94, 0.55);
    transform: translateY(-1px);
    box-shadow:
        0 18px 44px rgba(34, 197, 94, 0.18),
        0 10px 24px rgba(2, 6, 23, 0.10);
}

.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: #22c55e !important;
}

.pagination .page-link {
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.25);
    transition: all 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.05);
}

.pagination .page-link:hover {
    background-color: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.45);
    box-shadow:
        0 16px 40px rgba(59, 130, 246, 0.14),
        0 10px 24px rgba(2, 6, 23, 0.08);
}

.pagination .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow:
        0 20px 56px rgba(37, 99, 235, 0.28),
        0 10px 28px rgba(2, 6, 23, 0.12);
}

.pagination .page-item.disabled .page-link {
    color: rgba(15, 23, 42, 0.35);
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(226, 232, 240, 0.35);
    box-shadow: none;
}

.search-box-section {
    background:
        radial-gradient(1000px 520px at 10% 0%, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 55%),
        radial-gradient(900px 460px at 90% 10%, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0) 58%),
        var(--color-bg-soft);
}

.search-box-section .input-group-lg .form-control {
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    padding-inline-start: 1.5rem;
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow:
        0 12px 32px rgba(2, 6, 23, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    background: rgba(255, 255, 255, 0.82);
    transition: box-shadow 200ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 200ms ease, background 200ms ease;
}

.search-box-section .input-group-lg .btn {
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    border-color: rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 55%, #60a5fa 100%);
    color: #ffffff;
    box-shadow:
        0 18px 46px rgba(59, 130, 246, 0.28),
        0 10px 26px rgba(2, 6, 23, 0.10);
    transition: transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 180ms cubic-bezier(0.2, 0.9, 0.2, 1), filter 180ms ease;
}

.search-box-section .badge {
    transition: all var(--transition-fast);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.30);
    background: rgba(226, 232, 240, 0.35);
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.search-box-section .badge:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: rgba(37, 99, 235, 0.55) !important;
    box-shadow:
        0 22px 60px rgba(37, 99, 235, 0.18),
        0 14px 34px rgba(2, 6, 23, 0.10);
}

.search-results-section {
    background:
        radial-gradient(920px 520px at 15% 0%, rgba(34, 197, 94, 0.14) 0%, rgba(34, 197, 94, 0) 58%),
        radial-gradient(800px 460px at 95% 20%, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0) 55%),
        var(--color-bg);
}

.search-result {
    transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 260ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 220ms ease, background 220ms ease;
    border-radius: 22px;
    box-shadow:
        0 14px 40px rgba(2, 6, 23, 0.06),
        0 0 0 1px rgba(148, 163, 184, 0.16) inset;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.78);
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow:
        0 24px 70px rgba(34, 197, 94, 0.14),
        0 12px 30px rgba(2, 6, 23, 0.10);
    border-color: rgba(34, 197, 94, 0.35);
}

.search-result h2 a:hover {
    color: #22c55e !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-result mark {
    background-color: rgba(250, 204, 21, 0.35);
    padding-inline: 2px;
    border-radius: 6px;
    font-weight: 700;
    color: #0b1220;
    box-shadow: 0 8px 18px rgba(250, 204, 21, 0.22);
}

.error-page h1 {
    background: linear-gradient(135deg, #22c55e 0%, #3b82f6 55%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow:
        0 18px 60px rgba(59, 130, 246, 0.22),
        0 4px 22px rgba(34, 197, 94, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.65);
}

.recommended-links .badge {
    transition: all 200ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border: 1px solid rgba(148, 163, 184, 0.30);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.recommended-links .badge:hover {
    background-color: #22c55e !important;
    color: #ffffff !important;
    border-color: rgba(34, 197, 94, 0.55) !important;
    transform: translateY(-2px);
    box-shadow:
        0 22px 64px rgba(34, 197, 94, 0.18),
        0 12px 30px rgba(2, 6, 23, 0.10);
}

.recommended-links .badge:hover .text-warning {
    color: #06b6d4 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.legal-article-section,
main:has(> .container > article.bg-white) {
    background:
        radial-gradient(1100px 620px at 5% 0%, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0) 56%),
        radial-gradient(900px 520px at 105% 10%, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0) 55%),
        var(--color-bg-soft);
}

article :is(h2.h4) {
    color: #0b1220;
    border-bottom: 2px solid rgba(34, 197, 94, 0.35);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

article .alert-info {
    background-color: rgba(59, 130, 246, 0.10);
    border-color: rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
    box-shadow: 0 14px 42px rgba(59, 130, 246, 0.10);
}

article .list-group-item {
    background: transparent;
    transition: all 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-radius: 16px;
}

article .list-group-item:hover {
    background: rgba(226, 232, 240, 0.35);
    padding-inline-start: var(--space-sm);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.07);
}

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

.posts-grid .card {
    transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 260ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 220ms ease, background 220ms ease;
    border: 1px solid rgba(148, 163, 184, 0.24);
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(800px 260px at 10% 0%, rgba(56, 189, 248, 0.14) 0%, rgba(56, 189, 248, 0) 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.70) 100%);
    box-shadow:
        0 16px 52px rgba(2, 6, 23, 0.07),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.posts-grid .card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 30px 90px rgba(59, 130, 246, 0.18),
        0 16px 44px rgba(2, 6, 23, 0.12),
        0 0 0 1px rgba(59, 130, 246, 0.20) inset;
    border-color: rgba(59, 130, 246, 0.55);
}

.posts-grid .card-img-top {
    transition: transform 520ms cubic-bezier(0.2, 0.85, 0.2, 1), filter 320ms ease;
    filter: saturate(1.03);
}

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

.posts-grid .card-title a {
    transition: color 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.posts-grid .card-title a:hover {
    color: #3b82f6 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.related-posts h3 {
    border-bottom: 3px solid rgba(34, 197, 94, 0.45);
    padding-bottom: var(--space-xs);
    display: inline-block;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.related-card {
    transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 260ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 220ms ease, background 220ms ease;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow:
        0 14px 42px rgba(2, 6, 23, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    background: rgba(255, 255, 255, 0.78);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 26px 78px rgba(34, 197, 94, 0.16),
        0 14px 34px rgba(2, 6, 23, 0.10);
    border-color: rgba(34, 197, 94, 0.35);
}

.related-card img {
    transition: transform 520ms cubic-bezier(0.2, 0.85, 0.2, 1), filter 320ms ease;
    filter: saturate(1.02);
}

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

.social-share .btn {
    min-width: 40px;
    transition: transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 180ms cubic-bezier(0.2, 0.9, 0.2, 1), background 180ms ease, border-color 180ms ease, color 180ms ease;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.06);
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 46px rgba(59, 130, 246, 0.18),
        0 12px 30px rgba(2, 6, 23, 0.10);
}

.social-share [data-copy-url].copied {
    background-color: #10b981;
    color: #fff;

    border-color: #10b981;
    box-shadow:
        0 22px 64px rgba(16, 185, 129, 0.18),
        0 12px 30px rgba(2, 6, 23, 0.10);
}

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

.accordion-button:focus {
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.18);
}

.modal-content {
    border: none;
    border-radius: 26px;
    box-shadow:
        0 40px 120px rgba(2, 6, 23, 0.28),
        0 22px 60px rgba(59, 130, 246, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.55) inset;
    background: rgba(255, 255, 255, 0.92);
}

.tooltip-inner {
    background-color: #0b1220;
    border-radius: 14px;
    font-size: 0.85rem;
    box-shadow:
        0 18px 50px rgba(2, 6, 23, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

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