.author-profile {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, var(--color-bg-soft) 100%);
}

.author-profile h1 {
    color: var(--color-primary-darker);
}

.author-profile img.rounded-circle {
    border: 4px solid rgba(255,255,255,0.95);
    box-shadow:
        0 14px 40px rgba(16,24,40,0.08),
        0 6px 18px rgba(16,24,40,0.06),
        inset 0 1px 0 rgba(255,255,255,0.75);
}

.author-profile .badge.bg-light {
    background: var(--color-bg-muted) !important;
    color: var(--color-text) !important;
    transition: all 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.author-profile .badge.bg-light:hover {
    background: var(--color-primary) !important;
    color: rgba(255,255,255,0.98) !important;
}

.author-box {
    border-inline-start: 4px solid var(--color-accent);
    transition: box-shadow 280ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.author-box:hover {
    box-shadow:
        0 18px 52px rgba(2,6,23,0.14),
        0 8px 22px rgba(2,6,23,0.08),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.author-box img {
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.author-box:hover img {
    transform: scale(1.055);
}

.author-posts-list .card {
    transition: box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.author-posts-list .card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 22px 64px rgba(2,6,23,0.16),
        0 10px 26px rgba(2,6,23,0.09),
        0 1px 0 rgba(255,255,255,0.6) inset;
}

.author-posts-list .card-img-top {
    transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.author-posts-list .card:hover .card-img-top {
    transform: scale(1.06);
}

.main-authors-section {
    background: var(--color-bg-soft);
}

.author-card {
    transition: box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(148,163,184,0.35);
}

.author-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 28px 86px rgba(2,6,23,0.18),
        0 12px 30px rgba(2,6,23,0.10),
        0 1px 0 rgba(255,255,255,0.7) inset;
}

.author-card img.rounded-circle {
    border: 3px solid rgba(255,255,255,0.92);
    transition: border-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.author-card:hover img.rounded-circle {
    border-color: color-mix(in oklab, var(--color-primary) 85%, white 15%);
}

.faq-section {
    background: linear-gradient(180deg, color-mix(in oklab, var(--color-bg-soft) 86%, white 14%) 0%, rgba(255,255,255,0.98) 100%);
}

.faq-section h2 {
    font-size: 1.75rem;
    color: var(--color-primary-darker);
}

.faq-list .faq-item {
    border: 1px solid rgba(15,23,42,0.07);
    transition: box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1), background 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.faq-list .faq-item:hover {
    box-shadow:
        0 18px 48px rgba(2,6,23,0.12),
        0 8px 22px rgba(2,6,23,0.08),
        0 1px 0 rgba(255,255,255,0.65) inset !important;
    transform: translateY(-3px);
}

.faq-list .faq-item[open] {
    border-color: rgba(59,130,246,0.26);
    background: linear-gradient(90deg, rgba(239,246,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
}

.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: color-mix(in oklab, var(--color-primary) 85%, #ffffff 15%);
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    line-height: 1;
}

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

.faq-list .faq-q-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
}

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

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
        filter: saturate(1.02);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: saturate(1);
    }
}

.sidebar-widgets .card {
    transition: box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sidebar-widgets .card:hover {
    box-shadow:
        0 18px 52px rgba(2,6,23,0.12),
        0 9px 24px rgba(2,6,23,0.08),
        inset 0 1px 0 rgba(255,255,255,0.65);
}

.sidebar-widgets h5 {
    color: var(--color-primary-darker);
}

.sidebar-widgets .badge {
    transition: background-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1), color 260ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.sidebar-widgets .badge:hover {
    background-color: var(--color-primary) !important;
    color: rgba(255,255,255,0.98) !important;
    transform: translateY(-1px);
    box-shadow:
        0 12px 30px rgba(2,6,23,0.14),
        inset 0 1px 0 rgba(255,255,255,0.35);
}

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

.pagination .page-link {
    color: var(--color-primary);
    border-color: rgba(226,232,240,0.9);
    transition: background-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1), color 200ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pagination .page-link:hover {
    background-color: color-mix(in oklab, var(--color-bg-muted) 65%, white 35%);
    color: var(--color-primary-dark);
    border-color: color-mix(in oklab, var(--color-primary) 55%, #e2e8f0 45%);
    box-shadow:
        0 12px 28px rgba(2,6,23,0.10),
        inset 0 1px 0 rgba(255,255,255,0.65);
}

.pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: rgba(255,255,255,0.98);
    box-shadow:
        0 16px 40px rgba(59,130,246,0.35),
        0 8px 18px rgba(2,6,23,0.10),
        inset 0 1px 0 rgba(255,255,255,0.25);
}

.pagination .page-item.disabled .page-link {
    color: var(--color-text-light);
}

.search-box-section {
    background: var(--color-bg-soft);
}

.search-box-section .input-group-lg .form-control {
    border-radius: 999px 0 0 999px;
    padding-inline-start: 1.5rem;
    background: rgba(255,255,255,0.92);
    border-color: rgba(148,163,184,0.35);
    transition: box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 240ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.search-box-section .input-group-lg .btn {
    border-radius: 0 999px 999px 0;
    transition: box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.search-box-section .badge {
    transition: all var(--transition-fast);
}

.search-box-section .badge:hover {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border-color: var(--color-primary) !important;
    box-shadow:
        0 18px 46px rgba(59,130,246,0.28),
        inset 0 1px 0 rgba(255,255,255,0.35);
}

.search-results-section {
    background: var(--color-bg);
}

.search-result {
    transition: box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow:
        0 20px 62px rgba(2,6,23,0.14),
        0 10px 26px rgba(2,6,23,0.09),
        inset 0 1px 0 rgba(255,255,255,0.65);
}

.search-result h2 a:hover {
    color: var(--color-primary) !important;
}

.search-result mark {
    background-color: rgba(254, 243, 199, 0.95);
    padding-inline: 2px;
    border-radius: 8px;
    font-weight: 700;
    color: color-mix(in oklab, #92400e 55%, #7c2d12 45%);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.22);
}

.error-page h1 {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 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.25),
        0 8px 20px rgba(2,6,23,0.12),
        0 2px 0 rgba(255,255,255,0.25);
}

.recommended-links .badge {
    transition: all var(--transition-fast);
    border: 1px solid rgba(148,163,184,0.38);
    background: rgba(255,255,255,0.75);
}

.recommended-links .badge:hover {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    border-color: color-mix(in oklab, var(--color-primary) 80%, #93c5fd 20%) !important;
    transform: translateY(-2px);
    box-shadow:
        0 18px 46px rgba(59,130,246,0.28),
        0 8px 20px rgba(2,6,23,0.10),
        inset 0 1px 0 rgba(255,255,255,0.28);
}

.recommended-links .badge:hover .text-warning {
    color: var(--color-accent) !important;
}

.legal-article-section,
main:has(> .container > article.bg-white) {
    background: var(--color-bg-soft);
}

article :is(h2.h4) {
    color: var(--color-primary-dark);
    border-bottom: 2px solid rgba(226,232,240,0.95);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
}

article .alert-info {
    background-color: rgba(239,246,255,0.95);
    border-color: rgba(191,219,254,0.9);
    color: var(--color-primary-dark);
    box-shadow:
        0 14px 38px rgba(59,130,246,0.10),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

article .list-group-item {
    background: transparent;
    transition: all var(--transition-fast);
    border-color: rgba(148,163,184,0.15);
}

article .list-group-item:hover {
    background: color-mix(in oklab, var(--color-bg-soft) 78%, white 22%);
    padding-inline-start: var(--space-sm);
    box-shadow:
        0 14px 38px rgba(2,6,23,0.10),
        inset 0 1px 0 rgba(255,255,255,0.65);
}

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

.posts-grid .card {
    transition: box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(148,163,184,0.35);
    overflow: hidden;
    border-radius: 20px;
}

.posts-grid .card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 22px 70px rgba(2,6,23,0.16),
        0 10px 26px rgba(2,6,23,0.10),
        0 1px 0 rgba(255,255,255,0.65) inset;
    border-color: color-mix(in oklab, var(--color-primary) 55%, rgba(148,163,184,0.35) 45%);
}

.posts-grid .card-img-top {
    transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.posts-grid .card:hover .card-img-top {
    transform: scale(1.06);
}

.posts-grid .card-title a {
    transition: color var(--transition-fast);
}

.posts-grid .card-title a:hover {
    color: var(--color-primary) !important;
}

.related-posts h3 {
    border-bottom: 3px solid color-mix(in oklab, var(--color-accent) 80%, #ffffff 20%);
    padding-bottom: var(--space-xs);
    display: inline-block;
}

.related-card {
    transition: box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 62px rgba(2,6,23,0.14),
        0 10px 26px rgba(2,6,23,0.09),
        inset 0 1px 0 rgba(255,255,255,0.65);
}

.related-card img {
    transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.related-card:hover img {
    transform: scale(1.06);
}

.social-share .btn {
    min-width: 40px;
    transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 999px;
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 40px rgba(2,6,23,0.12),
        0 8px 20px rgba(2,6,23,0.08),
        inset 0 1px 0 rgba(255,255,255,0.55);
}

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

    border-color: var(--color-success);
    box-shadow:
        0 18px 46px rgba(34,197,94,0.28),
        0 10px 26px rgba(2,6,23,0.10),
        inset 0 1px 0 rgba(255,255,255,0.25);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(239,246,255,0.92);
    color: var(--color-primary-dark);
    box-shadow: none;
    border-radius: 14px;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow:
        0 30px 120px rgba(2,6,23,0.28),
        0 12px 44px rgba(2,6,23,0.18),
        0 1px 0 rgba(255,255,255,0.5) inset;
}

.tooltip-inner {
    background-color: var(--color-primary-darker);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    box-shadow:
        0 16px 42px rgba(2,6,23,0.22),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

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