.author-profile {
    background: linear-gradient(135deg, #f8fafc 0%, #0b1220 100%);
}

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

.author-profile img.rounded-circle {
    border: 4px solid #ffffff;
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.22), 0 10px 22px rgba(2, 6, 23, 0.22);
}

.author-profile .badge.bg-light {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transition: color 0.15s cubic-bezier(.2,.8,.2,1), background-color 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1), transform 0.15s cubic-bezier(.2,.8,.2,1);
}

.author-profile .badge.bg-light:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

.author-box {
    border-inline-start: 4px solid #3b82f6;
    transition: box-shadow 0.15s cubic-bezier(.2,.8,.2,1), transform 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1);
}

.author-box:hover {
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.35), 0 18px 32px rgba(2, 6, 23, 0.18);
}

.author-box img {
    transition: transform 0.15s cubic-bezier(.2,.8,.2,1), filter 0.15s cubic-bezier(.2,.8,.2,1);
}

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

.author-posts-list .card {
    transition: box-shadow 0.15s cubic-bezier(.2,.8,.2,1), transform 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
}

.author-posts-list .card:hover {
    transform: translateY(-4px);
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.32), 0 14px 26px rgba(2, 6, 23, 0.22);
}

.author-posts-list .card-img-top {
    transition: transform 0.15s cubic-bezier(.2,.8,.2,1), filter 0.15s cubic-bezier(.2,.8,.2,1);
}

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

.main-authors-section {
    background: #334155;
}

.author-card {
    transition: transform 0.15s cubic-bezier(.2,.8,.2,1), box-shadow 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1);
    border: 2px solid rgba(226, 232, 240, 0.18);
    border-radius: 3px;
}

.author-card:hover {
    transform: translateY(-7px);
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.38), 0 22px 40px rgba(2, 6, 23, 0.28);
    border-color: rgba(59, 130, 246, 0.55);
}

.author-card img.rounded-circle {
    border: 3px solid rgba(51, 65, 85, 0.55);
    transition: border-color 0.15s cubic-bezier(.2,.8,.2,1), filter 0.15s cubic-bezier(.2,.8,.2,1);
    border-radius: 999px;
}

.author-card:hover img.rounded-circle {
    border-color: #3b82f6;
    filter: saturate(1.1);
}

.faq-section {
    background: linear-gradient(180deg, #334155 0%, #f8fafc 100%);
}

.faq-section h2 {
    font-size: 1.75rem;
    color: #0b1220;
}

.faq-list .faq-item {
    border: 2px solid rgba(15, 23, 42, 0.10);
    transition: box-shadow 0.15s cubic-bezier(.2,.8,.2,1), transform 0.15s cubic-bezier(.2,.8,.2,1), background 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1);
    cursor: pointer;
    border-radius: 2px;
}

.faq-list .faq-item:hover {
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.25), 0 18px 30px rgba(2, 6, 23, 0.18) !important;
    transform: translateY(-2px);
}

.faq-list .faq-item[open] {
    border-color: rgba(59, 130, 246, 0.55);
    background: linear-gradient(90deg, #dbeafe 0%, #ffffff 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: #3b82f6;
    transition: transform 0.15s cubic-bezier(.2,.8,.2,1), color 0.15s cubic-bezier(.2,.8,.2,1);
    line-height: 1;
}

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

.faq-list .faq-q-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: #3b82f6;
}

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

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

.sidebar-widgets .card {
    transition: box-shadow 0.15s cubic-bezier(.2,.8,.2,1), transform 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1);
}

.sidebar-widgets .card:hover {
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.25), 0 16px 26px rgba(2, 6, 23, 0.18);
    transform: translateY(-2px);
}

.sidebar-widgets h5 {
    color: #0f172a;
}

.sidebar-widgets .badge {
    transition: background-color 0.15s cubic-bezier(.2,.8,.2,1), color 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1), transform 0.15s cubic-bezier(.2,.8,.2,1);
    cursor: pointer;
    border-radius: 2px;
}

.sidebar-widgets .badge:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.65) !important;
}

.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: #3b82f6 !important;
}

.pagination .page-link {
    color: #3b82f6;
    border-color: rgba(15, 23, 42, 0.18);
    transition: background-color 0.15s cubic-bezier(.2,.8,.2,1), color 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1), transform 0.15s cubic-bezier(.2,.8,.2,1), box-shadow 0.15s cubic-bezier(.2,.8,.2,1);
    border-radius: 2px;
    box-shadow: none;
}

.pagination .page-link:hover {
    background-color: rgba(226, 232, 240, 0.65);
    color: #0f172a;
    border-color: rgba(59, 130, 246, 0.8);
    transform: translateY(-1px);
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.20);
}

.pagination .page-item.active .page-link {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.22);
}

.pagination .page-item.disabled .page-link {
    color: rgba(148, 163, 184, 0.9);
    border-color: rgba(148, 163, 184, 0.35);
}

.search-box-section {
    background: #334155;
}

.search-box-section .input-group-lg .form-control {
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    padding-inline-start: 1.5rem;
    background-color: #0b1220;
    color: #e2e8f0;
    border: 2px solid rgba(226, 232, 240, 0.18);
    box-shadow: none;
}

.search-box-section .input-group-lg .btn {
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    background: #3b82f6;
    color: #ffffff;
    border: 2px solid #3b82f6;
    box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.25);
}

.search-box-section .badge {
    transition: background-color 0.15s cubic-bezier(.2,.8,.2,1), color 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1), transform 0.15s cubic-bezier(.2,.8,.2,1);
    border-radius: 2px;
}

.search-box-section .badge:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-color: rgba(59, 130, 246, 0.9) !important;
    transform: translateY(-1px);
}

.search-results-section {
    background: #1e293b;
}

.search-result {
    transition: box-shadow 0.15s cubic-bezier(.2,.8,.2,1), transform 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1);
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.22), 0 18px 30px rgba(2, 6, 23, 0.18);
}

.search-result h2 a:hover {
    color: #3b82f6 !important;
}

.search-result mark {
    background-color: #bae6fd;
    color: #0b1220;
    padding-inline: 2px;
    border-radius: 2px;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18) inset;
}

.error-page h1 {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 55%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow: 4px 4px 0 rgba(59, 130, 246, 0.20), 0 18px 40px rgba(2, 6, 23, 0.20);
    letter-spacing: -0.02em;
}

.recommended-links .badge {
    transition: background-color 0.15s cubic-bezier(.2,.8,.2,1), color 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1), transform 0.15s cubic-bezier(.2,.8,.2,1), box-shadow 0.15s cubic-bezier(.2,.8,.2,1);
    border: 2px solid rgba(226, 232, 240, 0.20);
    border-radius: 2px;
    background: rgba(15, 23, 42, 0.15);
    color: #e2e8f0;
}

.recommended-links .badge:hover {
    background-color: #3b82f6 !important;
    color: #fff !important;
    border-color: #3b82f6 !important;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.22), 0 16px 28px rgba(2, 6, 23, 0.20);
}

.recommended-links .badge:hover .text-warning {
    color: #3b82f6 !important;
}

.legal-article-section,
main:has(> .container > article.bg-white) {
    background: #334155;
}

article :is(h2.h4) {
    color: #0b1220;
    border-bottom: 2px solid rgba(59, 130, 246, 0.7);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
}

article .alert-info {
    background-color: #dbeafe;
    border-color: #93c5fd;
    color: #0b1220;
    border-radius: 2px;
    border-width: 2px;
    border-style: solid;
}

article .list-group-item {
    background: transparent;
    transition: background-color 0.15s cubic-bezier(.2,.8,.2,1), padding-inline-start 0.15s cubic-bezier(.2,.8,.2,1), color 0.15s cubic-bezier(.2,.8,.2,1), box-shadow 0.15s cubic-bezier(.2,.8,.2,1);
    border: 2px solid rgba(226, 232, 240, 0.12);
    border-radius: 2px;
}

article .list-group-item:hover {
    background: rgba(226, 232, 240, 0.35);
    padding-inline-start: var(--space-sm);
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.20);
}

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

.posts-grid .card {
    transition: box-shadow 0.15s cubic-bezier(.2,.8,.2,1), transform 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1);
    border: 2px solid rgba(226, 232, 240, 0.18);
    overflow: hidden;
    border-radius: 2px;
}

.posts-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.26), 0 16px 30px rgba(2, 6, 23, 0.20);
    border-color: rgba(59, 130, 246, 0.75);
}

.posts-grid .card-img-top {
    transition: transform 0.15s cubic-bezier(.2,.8,.2,1), filter 0.15s cubic-bezier(.2,.8,.2,1);
}

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

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

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

.related-posts h3 {
    border-bottom: 3px solid #3b82f6;
    padding-bottom: var(--space-xs);
    display: inline-block;
    color: #e2e8f0;
}

.related-card {
    transition: box-shadow 0.15s cubic-bezier(.2,.8,.2,1), transform 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1);
    border-radius: 2px;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.22), 0 18px 30px rgba(2, 6, 23, 0.18);
}

.related-card img {
    transition: transform 0.15s cubic-bezier(.2,.8,.2,1), filter 0.15s cubic-bezier(.2,.8,.2,1);
}

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

.social-share .btn {
    min-width: 40px;
    transition: transform 0.15s cubic-bezier(.2,.8,.2,1), box-shadow 0.15s cubic-bezier(.2,.8,.2,1), background-color 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1), color 0.15s cubic-bezier(.2,.8,.2,1);
    border-radius: 2px;
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.20), 0 16px 26px rgba(2, 6, 23, 0.18);
}

.social-share [data-copy-url].copied {
    background-color: #22c55e;
    color: #ffffff;

    border-color: #22c55e;
    border-style: solid;
    border-width: 2px;
    box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.18);
}

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

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    outline: 2px solid rgba(59, 130, 246, 0.25);
    outline-offset: 2px;
}

.modal-content {
    border: none;
    border-radius: 3px;
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.22), 0 30px 70px rgba(2, 6, 23, 0.34);
    background: #ffffff;
}

.tooltip-inner {
    background-color: #0b1220;
    border-radius: 2px;
    font-size: 0.85rem;
    box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.20), 0 16px 30px rgba(2, 6, 23, 0.25);
}

@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;
        box-shadow: 4px 4px 0 rgba(59, 130, 246, 0.20), 0 14px 26px rgba(2, 6, 23, 0.22);
    }

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