.author-profile {
    background: linear-gradient(135deg, #fbf7ef 0%, rgba(245, 241, 232, 0.2) 100%);
}

.author-profile h1 {
    color: #1a1a1a;
}

.author-profile img.rounded-circle {
    border: 4px solid #fbf7ef;
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.12), 0 2px 8px rgba(26, 26, 26, 0.08);
    transition: box-shadow var(--transition-base, 180ms) cubic-bezier(0.2, 0.8, 0.2, 1), border-color var(--transition-base, 180ms) cubic-bezier(0.2, 0.8, 0.2, 1);
}

.author-profile .badge.bg-light {
    background: rgba(245, 241, 232, 0.9) !important;
    color: #1a1a1a !important;
    transition: background-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1), color 160ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(26, 26, 26, 0.12);
    border-radius: 4px;
}

.author-profile .badge.bg-light:hover {
    background: #c44536 !important;
    color: #ffffff !important;
    border-color: rgba(196, 69, 54, 0.55) !important;
    transform: translateY(-1px);
}

.author-box {
    border-inline-start: 4px solid #6b705c;
    transition: box-shadow 170ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 170ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 4px;
}

.author-box:hover {
    box-shadow: 0 14px 26px rgba(26, 26, 26, 0.10), 0 3px 10px rgba(26, 26, 26, 0.08);
    transform: translateY(-1px);
}

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

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

.author-posts-list .card {
    transition: box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(26, 26, 26, 0.10);
    box-shadow: 0 1px 0 rgba(26, 26, 26, 0.03);
}

.author-posts-list .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(26, 26, 26, 0.12), 0 5px 14px rgba(26, 26, 26, 0.08);
    border-color: rgba(196, 69, 54, 0.45);
}

.author-posts-list .card-img-top {
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.main-authors-section {
    background: rgba(245, 241, 232, 0.95);
    border-radius: 6px;
}

.author-card {
    transition: box-shadow 170ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 170ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(26, 26, 26, 0.12);
    border-radius: 4px;
    background: rgba(251, 247, 239, 0.75);
}

.author-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(26, 26, 26, 0.14), 0 6px 16px rgba(26, 26, 26, 0.08);
    border-color: rgba(196, 69, 54, 0.55);
}

.author-card img.rounded-circle {
    border: 3px solid rgba(245, 241, 232, 0.95);
    transition: border-color 170ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 170ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 24px rgba(26, 26, 26, 0.10);
}

.author-card:hover img.rounded-circle {
    border-color: #c44536;
    box-shadow: 0 16px 30px rgba(196, 69, 54, 0.18), 0 6px 16px rgba(26, 26, 26, 0.08);
}

.faq-section {
    background: linear-gradient(180deg, rgba(245, 241, 232, 0.9) 0%, #ffffff 100%);
    border-radius: 6px;
}

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

.faq-list .faq-item {
    border: 1px solid rgba(26, 26, 26, 0.08);
    transition: box-shadow 170ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1), background 170ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 170ms cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.6);
}

.faq-list .faq-item:hover {
    box-shadow: 0 14px 26px rgba(26, 26, 26, 0.10) !important, 0 4px 10px rgba(26, 26, 26, 0.06) !important;
    transform: translateY(-2px);
    border-color: rgba(196, 69, 54, 0.35);
}

.faq-list .faq-item[open] {
    border-color: rgba(107, 112, 92, 0.35);
    background: linear-gradient(90deg, rgba(240, 247, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 18px 34px rgba(26, 26, 26, 0.10);
}

.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: #6b705c;
    transition: transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1);
    line-height: 1;
    text-shadow: 0 1px 0 rgba(26, 26, 26, 0.08);
}

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

.faq-list .faq-q-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: #c44536;
    text-shadow: 0 1px 0 rgba(26, 26, 26, 0.06);
}

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

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

.sidebar-widgets .card {
    transition: box-shadow 170ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 170ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 4px;
}

.sidebar-widgets .card:hover {
    box-shadow: 0 16px 30px rgba(26, 26, 26, 0.10), 0 4px 12px rgba(26, 26, 26, 0.06);
    transform: translateY(-2px);
}

.sidebar-widgets h5 {
    color: #1a1a1a;
    text-shadow: 0 1px 0 rgba(26, 26, 26, 0.06);
}

.sidebar-widgets .badge {
    transition: background-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1), color 160ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid rgba(26, 26, 26, 0.10);
    background: rgba(245, 241, 232, 0.55);
    color: #1a1a1a;
}

.sidebar-widgets .badge:hover {
    background-color: #c44536 !important;
    color: #ffffff !important;
    border-color: rgba(196, 69, 54, 0.55) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(196, 69, 54, 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: #6b705c !important;
}

.pagination .page-link {
    color: #6b705c;
    border-color: rgba(26, 26, 26, 0.14);
    transition: background-color 150ms cubic-bezier(0.2, 0.8, 0.2, 1), color 150ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 150ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 150ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.6);
}

.pagination .page-link:hover {
    background-color: rgba(245, 241, 232, 0.9);
    color: #1a1a1a;
    border-color: rgba(196, 69, 54, 0.55);
    box-shadow: 0 10px 20px rgba(26, 26, 26, 0.08);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #c44536;
    border-color: #c44536;
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(196, 69, 54, 0.22);
}

.pagination .page-item.disabled .page-link {
    color: rgba(26, 26, 26, 0.35);
    background: rgba(245, 241, 232, 0.4);
    border-color: rgba(26, 26, 26, 0.10);
}

.search-box-section {
    background: rgba(245, 241, 232, 0.85);
    border-radius: 6px;
}

.search-box-section .input-group-lg .form-control {
    border-radius: var(--radius-pill, 999px) 0 0 var(--radius-pill, 999px);
    padding-inline-start: 1.5rem;
    border: 1px solid rgba(26, 26, 26, 0.12);
    background: rgba(255, 255, 255, 0.7);
    color: #1a1a1a;
    box-shadow: inset 0 1px 0 rgba(26, 26, 26, 0.04);
    transition: box-shadow 160ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.search-box-section .input-group-lg .btn {
    border-radius: 0 var(--radius-pill, 999px) var(--radius-pill, 999px) 0;
    border: 1px solid rgba(26, 26, 26, 0.12);
    background: linear-gradient(180deg, #c44536 0%, #a83a2e 100%);
    color: #ffffff;
    transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 150ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 12px 26px rgba(196, 69, 54, 0.20);
}

.search-box-section .badge {
    transition: background-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1), color 160ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 4px;
    border: 1px solid rgba(26, 26, 26, 0.12);
    background: rgba(255, 255, 255, 0.55);
}

.search-box-section .badge:hover {
    background-color: #c44536 !important;
    color: #ffffff !important;
    border-color: rgba(196, 69, 54, 0.55) !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(196, 69, 54, 0.18);
}

.search-results-section {
    background: rgba(251, 247, 239, 0.7);
    border-radius: 6px;
}

.search-result {
    transition: box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 4px;
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow: 0 18px 34px rgba(26, 26, 26, 0.12), 0 5px 14px rgba(26, 26, 26, 0.07);
}

.search-result h2 a:hover {
    color: #c44536 !important;
    text-shadow: 0 1px 0 rgba(26, 26, 26, 0.06);
}

.search-result mark {
    background-color: rgba(245, 158, 64, 0.24);
    color: #1a1a1a;
    padding-inline: 2px;
    border-radius: 2px;
    font-weight: 650;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 64, 0.25);
}

.error-page h1 {
    background: linear-gradient(135deg, #1a1a1a 0%, #c44536 55%, #6b705c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow: 0 18px 40px rgba(196, 69, 54, 0.18), 0 4px 14px rgba(26, 26, 26, 0.10);
}

.recommended-links .badge {
    transition: background-color 150ms cubic-bezier(0.2, 0.8, 0.2, 1), color 150ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 150ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(26, 26, 26, 0.14);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.6);
    color: #1a1a1a;
}

.recommended-links .badge:hover {
    background-color: #c44536 !important;
    color: #fff !important;
    border-color: rgba(196, 69, 54, 0.55) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(196, 69, 54, 0.18), 0 5px 14px rgba(26, 26, 26, 0.07);
}

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

.legal-article-section,
main:has(> .container > article.bg-white) {
    background: rgba(245, 241, 232, 0.9);
    border-radius: 6px;
}

article :is(h2.h4) {
    color: #1a1a1a;
    border-bottom: 2px solid rgba(107, 112, 92, 0.35);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
}

article .alert-info {
    background-color: rgba(239, 246, 255, 0.85);
    border-color: rgba(191, 219, 254, 0.8);
    color: #1a1a1a;
    border-radius: 4px;
}

article .list-group-item {
    background: transparent;
    transition: background 160ms cubic-bezier(0.2, 0.8, 0.2, 1), padding 160ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 160ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border-color: rgba(26, 26, 26, 0.08);
    border-radius: 4px;
}

article .list-group-item:hover {
    background: rgba(245, 241, 232, 0.85);
    padding-inline-start: var(--space-sm);
    box-shadow: 0 14px 26px rgba(26, 26, 26, 0.08);
}

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

.posts-grid .card {
    transition: box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(26, 26, 26, 0.10);
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 1px 0 rgba(26, 26, 26, 0.03);
}

.posts-grid .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(26, 26, 26, 0.12), 0 6px 16px rgba(26, 26, 26, 0.07);
    border-color: rgba(196, 69, 54, 0.55);
}

.posts-grid .card-img-top {
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.posts-grid .card-title a {
    transition: color 150ms cubic-bezier(0.2, 0.8, 0.2, 1), text-shadow 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.posts-grid .card-title a:hover {
    color: #c44536 !important;
    text-shadow: 0 1px 0 rgba(26, 26, 26, 0.06);
}

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

.related-card {
    transition: box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 4px;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(26, 26, 26, 0.10), 0 4px 12px rgba(26, 26, 26, 0.06);
}

.related-card img {
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.social-share .btn {
    min-width: 40px;
    transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 150ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 150ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 150ms cubic-bezier(0.2, 0.8, 0.2, 1), color 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 4px;
    box-shadow: 0 1px 0 rgba(26, 26, 26, 0.03);
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(26, 26, 26, 0.10), 0 4px 12px rgba(26, 26, 26, 0.06);
}

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

    border-color: #6b705c;
    box-shadow: 0 16px 30px rgba(107, 112, 92, 0.22);
}

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

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(196, 69, 54, 0.18);
    outline: 1px solid rgba(196, 69, 54, 0.28);
    outline-offset: 2px;
}

.modal-content {
    border: none;
    border-radius: 6px;
    box-shadow: 0 28px 60px rgba(26, 26, 26, 0.22), 0 10px 22px rgba(26, 26, 26, 0.14);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.tooltip-inner {
    background-color: #1a1a1a;
    border-radius: 4px;
    font-size: 0.85rem;
    box-shadow: 0 12px 24px rgba(26, 26, 26, 0.24);
}

@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: 4px;
    }
}