.author-profile {
    background: linear-gradient(135deg, #ffffff 0%, #fff6e8 38%, #f3f7ff 100%);
}

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

.author-profile img.rounded-circle {
    border: 4px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(12, 74, 110, 0.12), 0 2px 8px rgba(12, 74, 110, 0.10), 0 0 0 3px rgba(255, 200, 87, 0.20);
}

.author-profile .badge.bg-light {
    background: #f7efe0 !important;
    color: #12324f !important;
    border-radius: 999px;
    transition: all 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.author-profile .badge.bg-light:hover {
    background: #ffb000 !important;
    color: #ffffff !important;
    box-shadow: 0 0 24px rgba(255, 176, 0, 0.40);
}

.author-box {
    border-inline-start: 4px solid #ff5a7a;
    transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 10px;
}

.author-box:hover {
    box-shadow: 0 0 0 1px rgba(255, 90, 122, 0.18), 0 18px 45px rgba(255, 90, 122, 0.18), 0 6px 18px rgba(17, 24, 39, 0.10);
}

.author-box img {
    transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), filter 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-radius: 12px;
}

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

.author-posts-list .card {
    transition: all 240ms cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}

.author-posts-list .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 1px rgba(255, 176, 0, 0.20), 0 18px 50px rgba(255, 176, 0, 0.16), 0 14px 35px rgba(0, 0, 0, 0.10);
}

.author-posts-list .card-img-top {
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), filter 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

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

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

.author-card {
    transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e7eef9;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 0 1px rgba(11, 39, 85, 0.10), 0 22px 60px rgba(255, 90, 122, 0.14), 0 18px 40px rgba(11, 39, 85, 0.10);
}

.author-card img.rounded-circle {
    border: 3px solid #f3f4f8;
    transition: border-color 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 16px;
}

.author-card:hover img.rounded-circle {
    border-color: #2f7cff;
    box-shadow: 0 0 0 4px rgba(47, 124, 255, 0.14), 0 0 28px rgba(47, 124, 255, 0.22);
}

.faq-section {
    background: linear-gradient(180deg, #f2fbff 0%, #ffffff 45%, #fff6e8 100%);
}

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

.faq-list .faq-item {
    border: 1px solid rgba(2, 6, 23, 0.08);
    transition: all 230ms cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
}

.faq-list .faq-item:hover {
    box-shadow: 0 0 0 1px rgba(255, 176, 0, 0.18), 0 18px 45px rgba(255, 176, 0, 0.14), 0 12px 30px rgba(0, 0, 0, 0.10) !important;
    transform: translateY(-2px);
}

.faq-list .faq-item[open] {
    border-color: rgba(47, 124, 255, 0.28);
    background: linear-gradient(90deg, #eff6ff 0%, #ffffff 48%, #fff1d6 100%);
    box-shadow: 0 0 0 1px rgba(47, 124, 255, 0.16), 0 0 28px rgba(47, 124, 255, 0.18);
}

.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: #ff5a7a;
    transition: transform 230ms cubic-bezier(0.16, 1, 0.3, 1), color 230ms cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1;
    text-shadow: 0 0 18px rgba(255, 90, 122, 0.22);
}

.faq-list .faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
    color: #2f7cff;
    text-shadow: 0 0 24px rgba(47, 124, 255, 0.28);
}

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

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

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

.sidebar-widgets .card {
    transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 14px;
}

.sidebar-widgets .card:hover {
    box-shadow: 0 0 0 1px rgba(255, 176, 0, 0.18), 0 18px 45px rgba(255, 176, 0, 0.14), 0 12px 30px rgba(0, 0, 0, 0.10);
}

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

.sidebar-widgets .badge {
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border-radius: 999px;
    border: 1px solid rgba(2, 6, 23, 0.08);
    background: rgba(255, 255, 255, 0.7);
}

.sidebar-widgets .badge:hover {
    background-color: #2f7cff !important;
    color: white !important;
    transform: translateY(-1px);
    border-color: rgba(47, 124, 255, 0.55) !important;
    box-shadow: 0 0 28px rgba(47, 124, 255, 0.22);
}

.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: #2f7cff !important;
}

.pagination .page-link {
    color: #2f7cff;
    border-color: #d7e5ff;
    transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.pagination .page-link:hover {
    background-color: #f1f8ff;
    color: #0b2545;
    border-color: #2f7cff;
    box-shadow: 0 0 24px rgba(47, 124, 255, 0.18);
}

.pagination .page-item.active .page-link {
    background-color: #ff5a7a;
    border-color: #ff5a7a;
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 90, 122, 0.30), 0 0 30px rgba(255, 90, 122, 0.30);
}

.pagination .page-item.disabled .page-link {
    color: rgba(11, 37, 69, 0.45);
    border-color: rgba(11, 37, 69, 0.18);
}

.search-box-section {
    background: linear-gradient(180deg, #f7efe0 0%, #ffffff 60%, #eef5ff 100%);
}

.search-box-section .input-group-lg .form-control {
    border-radius: 18px 0 0 18px;
    padding-inline-start: 1.5rem;
    border-color: rgba(2, 6, 23, 0.10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.search-box-section .input-group-lg .btn {
    border-radius: 0 18px 18px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.search-box-section .badge {
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 999px;
}

.search-box-section .badge:hover {
    background-color: #ffb000 !important;
    color: #fff !important;
    border-color: rgba(255, 176, 0, 0.6) !important;
    box-shadow: 0 0 30px rgba(255, 176, 0, 0.26);
}

.search-results-section {
    background: #fbfbff;
}

.search-result {
    transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(6px);
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow: 0 0 0 1px rgba(255, 176, 0, 0.18), 0 22px 60px rgba(255, 176, 0, 0.14), 0 12px 30px rgba(0, 0, 0, 0.10);
}

.search-result h2 a:hover {
    color: #ff5a7a !important;
    text-shadow: 0 0 22px rgba(255, 90, 122, 0.22);
}

.search-result mark {
    background-color: #ffeaa7;
    padding-inline: 2px;
    border-radius: 6px;
    font-weight: 700;
    color: #08345f;
    box-shadow: 0 0 0 1px rgba(255, 176, 0, 0.25);
}

.error-page h1 {
    background: linear-gradient(135deg, #2f7cff 0%, #ff5a7a 55%, #ffb000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow: 0 10px 42px rgba(47, 124, 255, 0.22), 0 0 30px rgba(255, 90, 122, 0.20);
    letter-spacing: -0.02em;
}

.recommended-links .badge {
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #d7e5ff;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.7);
}

.recommended-links .badge:hover {
    background-color: #2f7cff !important;
    color: #fff !important;
    border-color: rgba(47, 124, 255, 0.65) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(47, 124, 255, 0.24), 0 22px 60px rgba(47, 124, 255, 0.18), 0 12px 30px rgba(0, 0, 0, 0.10);
}

.recommended-links .badge:hover .text-warning {
    color: #ffb000 !important;
    text-shadow: 0 0 18px rgba(255, 176, 0, 0.22);
}

.legal-article-section,
main:has(> .container > article.bg-white) {
    background: linear-gradient(180deg, #fff6e8 0%, #ffffff 42%, #f2fbff 100%);
}

article :is(h2.h4) {
    color: #0b2545;
    border-bottom: 2px solid #ff5a7a;
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

article .alert-info {
    background-color: #eef6ff;
    border-color: #a7c8ff;
    color: #0b2545;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(47, 124, 255, 0.10);
}

article .list-group-item {
    background: transparent;
    transition: all var(--transition-fast);
    border-radius: 12px;
}

article .list-group-item:hover {
    background: rgba(247, 239, 224, 0.55);
    padding-inline-start: var(--space-sm);
    box-shadow: 0 0 24px rgba(255, 176, 0, 0.12);
}

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

.posts-grid .card {
    transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e7eef9;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.78);
}

.posts-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px rgba(255, 90, 122, 0.18), 0 22px 60px rgba(255, 90, 122, 0.14), 0 12px 30px rgba(0, 0, 0, 0.10);
    border-color: #ff5a7a;
}

.posts-grid .card-img-top {
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), filter 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

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

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

.posts-grid .card-title a:hover {
    color: #2f7cff !important;
    text-shadow: 0 0 22px rgba(47, 124, 255, 0.20);
}

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

.related-card {
    transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.78);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 1px rgba(255, 176, 0, 0.18), 0 22px 60px rgba(255, 176, 0, 0.16), 0 12px 30px rgba(0, 0, 0, 0.10);
}

.related-card img {
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), filter 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-radius: 14px;
}

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

.social-share .btn {
    min-width: 40px;
    transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(47, 124, 255, 0.18), 0 22px 60px rgba(47, 124, 255, 0.16), 0 12px 30px rgba(0, 0, 0, 0.10);
}

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

    border-color: #12b76a;
    box-shadow: 0 0 0 1px rgba(18, 183, 106, 0.20), 0 0 30px rgba(18, 183, 106, 0.26);
    animation: glowPulse 1200ms ease-in-out infinite;
}

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

.accordion-button:not(.collapsed) {
    background-color: #eef6ff;
    color: #0b2545;
    box-shadow: none;
    border-radius: 12px;
    border: 1px solid rgba(47, 124, 255, 0.18);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(47, 124, 255, 0.18);
    border-radius: 12px;
}

.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(47, 124, 255, 0.16), 0 0 40px rgba(255, 90, 122, 0.12);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.tooltip-inner {
    background-color: #0b2545;
    border-radius: 10px;
    font-size: 0.85rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 45px rgba(0, 0, 0, 0.22);
}

@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;
        text-shadow: 0 10px 42px rgba(47, 124, 255, 0.24), 0 0 30px rgba(255, 90, 122, 0.22);
    }

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