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

.author-profile h1 {
    color: #16324f;
}

.author-profile img.rounded-circle {
    border: 4px solid #ffffff;
    box-shadow:
        0 1px 0 rgba(20, 35, 58, 0.06),
        0 8px 18px rgba(16, 24, 40, 0.10),
        0 26px 50px -18px rgba(2, 6, 23, 0.22);
    border-radius: 999px;
}

.author-profile .badge.bg-light {
    background: #f2f5f9 !important;
    color: #2b3a55 !important;
    transition: all 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

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

/* ============================================
   2. Author Box (AuthorBoxSection)
   ============================================ */
.author-box {
    border-inline-start: 4px solid #7c3aed;
    transition: box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.author-box:hover {
    box-shadow:
        0 2px 10px rgba(2, 6, 23, 0.06),
        0 18px 40px -20px rgba(2, 6, 23, 0.22);
}

.author-box img {
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), filter 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

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

/* ============================================
   3. Author Posts List (AuthorPostsListSection)
   ============================================ */
.author-posts-list .card {
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), background 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    overflow: hidden;
    border-radius: 16px;
}

.author-posts-list .card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 12px rgba(2, 6, 23, 0.06),
        0 18px 44px -18px rgba(2, 6, 23, 0.24);
    border-color: #2563eb;
}

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

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

/* ============================================
   4. Main Authors (MainAuthorsSection)
   ============================================ */
.main-authors-section {
    background: #f3f6fb;
}

.author-card {
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border: 1px solid rgba(18, 41, 73, 0.10);
    border-radius: 18px;
    background: #ffffff;
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 2px 10px rgba(2, 6, 23, 0.05),
        0 22px 52px -22px rgba(2, 6, 23, 0.24);
    border-color: rgba(124, 58, 237, 0.40);
}

.author-card img.rounded-circle {
    border: 3px solid #eef2f7;
    transition: border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(2, 6, 23, 0.05),
        0 10px 24px -18px rgba(2, 6, 23, 0.25);
}

.author-card:hover img.rounded-circle {
    border-color: #2563eb;
    box-shadow:
        0 2px 0 rgba(2, 6, 23, 0.02),
        0 16px 34px -18px rgba(37, 99, 235, 0.35);
}

/* ============================================
   5. FAQ (FaqSection) - <details>/<summary>
   ============================================ */
.faq-section {
    background: linear-gradient(180deg, #f4f7fd 0%, #ffffff 100%);
}

.faq-section h2 {
    font-size: 1.75rem;
    color: #16324f;
}

.faq-list .faq-item {
    border: 1px solid rgba(2, 6, 23, 0.08);
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), background 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    cursor: pointer;
    border-radius: 16px;
    background: #ffffff;
}

.faq-list .faq-item:hover {
    box-shadow:
        0 4px 18px rgba(2, 6, 23, 0.08),
        0 22px 60px -40px rgba(2, 6, 23, 0.22) !important;
    transform: translateY(-3px);
}

.faq-list .faq-item[open] {
    border-color: rgba(37, 99, 235, 0.35);
    background: linear-gradient(90deg, #eef6ff 0%, #ffffff 70%);
    box-shadow:
        0 6px 26px rgba(37, 99, 235, 0.10),
        0 22px 60px -40px rgba(2, 6, 23, 0.20);
}

/* summary */
.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;
    color: #17324a;
}

.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 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    line-height: 1;
}

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

/* Q number */
.faq-list .faq-q-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: #5b21b6;
}

/* Answer */
.faq-list .faq-answer {
    font-size: 0.95rem;
    line-height: 1.8;
    animation: faqFadeIn 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    color: #2b3a55;
}

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

/* ============================================
   6. Sidebar Widgets (SidebarWidgetsSection)
   ============================================ */
.sidebar-widgets .card {
    transition: box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1), transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(18, 41, 73, 0.08);
}

.sidebar-widgets .card:hover {
    box-shadow:
        0 3px 12px rgba(2, 6, 23, 0.06),
        0 18px 44px -20px rgba(2, 6, 23, 0.20);
}

.sidebar-widgets h5 {
    color: #16324f;
}

.sidebar-widgets .badge {
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), background-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    cursor: pointer;
    border-radius: 999px;
}

.sidebar-widgets .badge:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    transform: translateY(-1px);
}

.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: #2563eb !important;
}

/* ============================================
   7. Pagination (PaginationSection)
   ============================================ */
.pagination .page-link {
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.25);
    transition: background-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-radius: 12px;
}

.pagination .page-link:hover {
    background-color: #eef6ff;
    color: #1e3a8a;
    border-color: #2563eb;
    box-shadow:
        0 10px 26px -18px rgba(37, 99, 235, 0.35);
}

.pagination .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow:
        0 10px 30px -18px rgba(37, 99, 235, 0.55);
}

.pagination .page-item.disabled .page-link {
    color: rgba(23, 50, 74, 0.45);
    border-color: rgba(18, 41, 73, 0.12);
}

/* ============================================
   8. Search Box (SearchBoxSection)
   ============================================ */
.search-box-section {
    background: #f4f7fd;
}

.search-box-section .input-group-lg .form-control {
    border-radius: 999px 0 0 999px;
    padding-inline-start: 1.5rem;
    border-color: rgba(18, 41, 73, 0.10);
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(2, 6, 23, 0.04);
}

.search-box-section .input-group-lg .btn {
    border-radius: 0 999px 999px 0;
    border-color: #2563eb;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow:
        0 10px 26px -18px rgba(37, 99, 235, 0.60);
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1), filter 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.search-box-section .badge {
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), background-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-radius: 999px;
}

.search-box-section .badge:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    transform: translateY(-1px);
    box-shadow:
        0 12px 28px -20px rgba(37, 99, 235, 0.45);
}

/* ============================================
   9. Search Results (SearchResultsSection)
   ============================================ */
.search-results-section {
    background: #f7f9fc;
}

.search-result {
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow:
        0 4px 14px rgba(2, 6, 23, 0.06),
        0 20px 52px -42px rgba(2, 6, 23, 0.22);
    border-color: rgba(37, 99, 235, 0.35);
}

.search-result h2 a:hover {
    color: #2563eb !important;
}

.search-result mark {
    background-color: #dbeafe;
    padding-inline: 2px;
    border-radius: 6px;
    font-weight: 700;
    color: #0b2a5b;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.16) inset;
}

/* ============================================
   10. Error Page (Error404Section)
   ============================================ */
.error-page h1 {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow:
        0 18px 55px rgba(37, 99, 235, 0.18),
        0 6px 22px rgba(124, 58, 237, 0.14);
    filter: drop-shadow(0 10px 24px rgba(2, 6, 23, 0.10));
}

.recommended-links .badge {
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), background-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border: 1px solid rgba(18, 41, 73, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: #2b3a55;
}

.recommended-links .badge:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    transform: translateY(-2px);
    box-shadow:
        0 10px 24px -18px rgba(37, 99, 235, 0.70);
}

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

/* ============================================
   11. Legal Article (LegalArticleSection)
   ============================================ */
.legal-article-section,
main:has(> .container > article.bg-white) {
    background: #f4f7fd;
}

article :is(h2.h4) {
    color: #16324f;
    border-bottom: 2px solid rgba(124, 58, 237, 0.35);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
}

article .alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #16324f;
    border-left: 4px solid #2563eb;
}

article .list-group-item {
    background: transparent;
    transition: background 420ms cubic-bezier(0.2, 0.9, 0.2, 1), padding-left 420ms cubic-bezier(0.2, 0.9, 0.2, 1), color 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-radius: 12px;
}

article .list-group-item:hover {
    background: #f4f7fd;
    padding-inline-start: var(--space-sm);
    box-shadow:
        0 10px 26px -22px rgba(37, 99, 235, 0.25);
}

/* ============================================
   12. Post List (PostListSection - Category page)
   ============================================ */
.posts-grid {
    /* Container nếu cần */
}

.posts-grid .card {
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), background 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border: 1px solid rgba(18, 41, 73, 0.10);
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
}

.posts-grid .card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 12px rgba(2, 6, 23, 0.06),
        0 22px 52px -22px rgba(2, 6, 23, 0.24);
    border-color: rgba(37, 99, 235, 0.55);
}

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

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

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

.posts-grid .card-title a:hover {
    color: #7c3aed !important;
    text-shadow: 0 10px 28px rgba(124, 58, 237, 0.18);
}

/* ============================================
   13. Related Posts (RelatedPostsSection)
   ============================================ */
.related-posts h3 {
    border-bottom: 3px solid rgba(124, 58, 237, 0.45);
    padding-bottom: var(--space-xs);
    display: inline-block;
    color: #16324f;
}

.related-card {
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-radius: 16px;
    border: 1px solid rgba(18, 41, 73, 0.10);
    background: #ffffff;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 3px 12px rgba(2, 6, 23, 0.05),
        0 20px 48px -40px rgba(2, 6, 23, 0.22);
    border-color: rgba(124, 58, 237, 0.40);
}

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

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

/* ============================================
   14. Social Share (SocialShareSection)
   ============================================ */
.social-share .btn {
    min-width: 40px;
    transition: transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 420ms cubic-bezier(0.2, 0.9, 0.2, 1), background-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), border-color 420ms cubic-bezier(0.2, 0.9, 0.2, 1), color 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
    border-radius: 12px;
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 18px rgba(2, 6, 23, 0.10),
        0 18px 44px -30px rgba(2, 6, 23, 0.20);
}

.social-share [data-copy-url].copied {
    background-color: #22c55e;
    color: #ffffff;
    border-color: #22c55e;
    box-shadow:
        0 10px 26px -18px rgba(34, 197, 94, 0.55);
}

/* ============================================
   15. Bootstrap Accordion override
   ============================================ */
.accordion-button:not(.collapsed) {
    background-color: #eef6ff;
    color: #16324f;
    box-shadow: none;
    border-radius: 16px;
}

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

/* ============================================
   16. Modal (用于 SocialShare 微信二维码)
   ============================================ */
.modal-content {
    border: none;
    border-radius: 18px;
    box-shadow:
        0 8px 30px rgba(2, 6, 23, 0.12),
        0 40px 90px -60px rgba(2, 6, 23, 0.40);
    background: #ffffff;
}

/* ============================================
   17. Tooltip (Bootstrap)
   ============================================ */
.tooltip-inner {
    background-color: #16324f;
    border-radius: 10px;
    font-size: 0.85rem;
    box-shadow:
        0 10px 26px -18px rgba(2, 6, 23, 0.35);
}

/* ============================================
   18. Responsive
   ============================================ */
@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: 12px;
    }
}