.author-profile {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-bg-soft) 100%);
    border-radius: 2px;
}
.author-profile h1 {
    color: #0f172a;
    text-shadow: 0 1px 0 rgba(2, 6, 23, 0.08);
}
.author-profile img.rounded-circle {
    border: 4px solid rgba(255, 255, 255, 0.98);
    border-radius: 2px;
    box-shadow:
        4px 4px 0 rgba(15, 23, 42, 0.12),
        7px 7px 0 rgba(59, 130, 246, 0.10),
        0 12px 28px rgba(2, 6, 23, 0.10);
}
.author-profile .badge.bg-light {
    background: #eef2ff !important;
    color: #111827 !important;
    border-radius: 2px;
    transition: background-color 0.15s cubic-bezier(.2,.8,.2,1), 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);
    box-shadow: 4px 4px 0 rgba(17, 24, 39, 0.07);
}
.author-profile .badge.bg-light:hover {
    background: #4f46e5 !important;
    color: #ffffff !important;
    box-shadow:
        4px 4px 0 rgba(79, 70, 229, 0.25),
        0 14px 26px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

.author-box {
    border-inline-start: 4px solid #22c55e;
    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;
}
.author-box:hover {
    box-shadow:
        4px 4px 0 rgba(2, 6, 23, 0.20),
        0 16px 30px rgba(2, 6, 23, 0.12);
    transform: translateY(-1px);
}
.author-box img {
    transition: transform 0.15s cubic-bezier(.2,.8,.2,1), filter 0.15s cubic-bezier(.2,.8,.2,1);
    filter: saturate(1.05) contrast(1.03);
}
.author-box:hover img {
    transform: scale(1.05);
    filter: saturate(1.1) contrast(1.05);
}

.author-posts-list .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);
    overflow: hidden;
    border-radius: 2px;
    box-shadow:
        4px 4px 0 rgba(2, 6, 23, 0.08),
        0 10px 24px rgba(2, 6, 23, 0.06);
    border: 3px solid rgba(15, 23, 42, 0.10);
}
.author-posts-list .card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow:
        4px 4px 0 rgba(59, 130, 246, 0.35),
        8px 10px 0 rgba(79, 70, 229, 0.18),
        0 22px 40px rgba(2, 6, 23, 0.16);
}
.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);
    filter: saturate(1.05) contrast(1.02);
}
.author-posts-list .card:hover .card-img-top {
    transform: scale(1.05);
    filter: saturate(1.12) contrast(1.05);
}

.main-authors-section {
    background: #f8fafc;
}
.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: 3px solid rgba(15, 23, 42, 0.12);
    border-radius: 2px;
    box-shadow:
        4px 4px 0 rgba(2, 6, 23, 0.08),
        0 10px 22px rgba(2, 6, 23, 0.06);
    background: #ffffff;
}
.author-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 197, 94, 0.65);
    box-shadow:
        4px 4px 0 rgba(34, 197, 94, 0.34),
        10px 12px 0 rgba(59, 130, 246, 0.14),
        0 26px 52px rgba(2, 6, 23, 0.18);
}
.author-card img.rounded-circle {
    border: 3px solid #eef2ff;
    border-radius: 2px;
    transition: border-color 0.15s cubic-bezier(.2,.8,.2,1), box-shadow 0.15s cubic-bezier(.2,.8,.2,1);
    box-shadow: 4px 4px 0 rgba(2, 6, 23, 0.10);
}
.author-card:hover img.rounded-circle {
    border-color: #4f46e5;
    box-shadow:
        4px 4px 0 rgba(79, 70, 229, 0.28),
        0 14px 26px rgba(79, 70, 229, 0.18);
}

.faq-section {
    background: linear-gradient(180deg, #f1f5ff 0%, #ffffff 100%);
    border-radius: 2px;
}
.faq-section h2 {
    font-size: 1.75rem;
    color: #0b1220;
    text-shadow: 0 1px 0 rgba(2, 6, 23, 0.08);
}

/* FAQ item */
.faq-list .faq-item {
    border: 3px solid rgba(15, 23, 42, 0.10);
    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), background 0.15s cubic-bezier(.2,.8,.2,1);
    cursor: pointer;
    border-radius: 2px;
    background: #ffffff;
    box-shadow:
        4px 4px 0 rgba(2, 6, 23, 0.06);
}
.faq-list .faq-item:hover {
    box-shadow:
        4px 4px 0 rgba(59, 130, 246, 0.25),
        0 18px 34px rgba(2, 6, 23, 0.14) !important;
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.45);
}

.faq-list .faq-item[open] {
    border-color: rgba(59, 130, 246, 0.45);
    background: linear-gradient(90deg, #dbeafe 0%, #ffffff 100%);
    box-shadow:
        4px 4px 0 rgba(59, 130, 246, 0.30),
        0 22px 48px rgba(59, 130, 246, 0.16);
}

/* 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;
}
.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 0.15s cubic-bezier(.2,.8,.2,1), color 0.15s cubic-bezier(.2,.8,.2,1);
    line-height: 1;
    text-shadow: 0 1px 0 rgba(2, 6, 23, 0.10);
}
.faq-list .faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
    color: #4f46e5;
}

/* Q number */
.faq-list .faq-q-num {
    font-weight: 700;
    font-size: 0.95rem;
    color: #4f46e5;
    text-shadow: 0 1px 0 rgba(79, 70, 229, 0.18);
}

/* Answer */
.faq-list .faq-answer {
    font-size: 0.95rem;
    line-height: 1.8;
    animation: faqFadeIn 0.15s cubic-bezier(.2,.8,.2,1);
    color: rgba(15, 23, 42, 0.92);
}

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

/* Sidebar Widgets */
.sidebar-widgets .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-radius: 2px;
    border: 3px solid rgba(15, 23, 42, 0.10);
    box-shadow:
        4px 4px 0 rgba(2, 6, 23, 0.06),
        0 10px 24px rgba(2, 6, 23, 0.06);
    background: #ffffff;
}
.sidebar-widgets .card:hover {
    box-shadow:
        4px 4px 0 rgba(79, 70, 229, 0.28),
        0 18px 36px rgba(2, 6, 23, 0.14);
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.45);
}

.sidebar-widgets h5 {
    color: #0b1220;
    text-shadow: 0 1px 0 rgba(2, 6, 23, 0.08);
}

.sidebar-widgets .badge {
    transition: background-color 0.15s cubic-bezier(.2,.8,.2,1), color 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), box-shadow 0.15s cubic-bezier(.2,.8,.2,1);
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 4px 4px 0 rgba(2, 6, 23, 0.07);
    border: 2px solid rgba(15, 23, 42, 0.10);
}
.sidebar-widgets .badge:hover {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow:
        4px 4px 0 rgba(79, 70, 229, 0.32),
        0 16px 30px rgba(79, 70, 229, 0.22);
    border-color: rgba(79, 70, 229, 0.65);
}

.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: #4f46e5 !important;
}

/* Pagination */
.pagination .page-link {
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.35);
    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;
    border-style: solid;
    border-width: 1px;
    box-shadow: 4px 4px 0 rgba(2, 6, 23, 0.06);
    background: #ffffff;
}
.pagination .page-link:hover {
    background-color: #eef2ff;
    color: #1d4ed8;
    border-color: rgba(79, 70, 229, 0.60);
    transform: translateY(-1px);
}
.pagination .page-item.active .page-link {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    box-shadow:
        4px 4px 0 rgba(79, 70, 229, 0.40),
        0 18px 30px rgba(79, 70, 229, 0.22);
}
.pagination .page-item.disabled .page-link {
    color: rgba(15, 23, 42, 0.40);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: none;
}

/* Search Box */
.search-box-section {
    background: #f3f4ff;
    border-radius: 2px;
}
.search-box-section .input-group-lg .form-control {
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    padding-inline-start: 1.5rem;
    border: 3px solid rgba(15, 23, 42, 0.10);
    border-right: none;
    box-shadow:
        4px 4px 0 rgba(2, 6, 23, 0.06);
    background: #ffffff;
    transition: box-shadow 0.15s cubic-bezier(.2,.8,.2,1), border-color 0.15s cubic-bezier(.2,.8,.2,1);
}
.search-box-section .input-group-lg .btn {
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    border: 3px solid rgba(15, 23, 42, 0.10);
    box-shadow: 4px 4px 0 rgba(2, 6, 23, 0.06);
    background: #111827;
    color: #ffffff;
    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);
}
.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), box-shadow 0.15s cubic-bezier(.2,.8,.2,1);
    border-radius: 2px;
    border: 2px solid rgba(15, 23, 42, 0.10);
    box-shadow: 4px 4px 0 rgba(2, 6, 23, 0.06);
}
.search-box-section .badge:hover {
    background-color: #22c55e !important;
    color: #ffffff !important;
    border-color: rgba(34, 197, 94, 0.75) !important;
    transform: translateY(-1px);
    box-shadow:
        4px 4px 0 rgba(34, 197, 94, 0.32),
        0 18px 32px rgba(34, 197, 94, 0.18);
}

/* Search Results */
.search-results-section {
    background: #f8fafc;
}
.search-result {
    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-radius: 2px;
}
.search-result:hover {
    transform: translateX(3px);
    border-color: rgba(79, 70, 229, 0.55);
    box-shadow:
        4px 4px 0 rgba(79, 70, 229, 0.28),
        0 20px 40px rgba(2, 6, 23, 0.16);
}
.search-result h2 a:hover {
    color: #4f46e5 !important;
    text-shadow: 0 1px 0 rgba(79, 70, 229, 0.18);
}
.search-result mark {
    background-color: #bef264;
    padding-inline: 2px;
    border-radius: 2px;
    font-weight: 700;
    color: #052e16;
    box-shadow: 0 2px 0 rgba(5, 46, 22, 0.10);
}

/* Error Page */
.error-page h1 {
    background: linear-gradient(135deg, #4f46e5, #2563eb, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow:
        4px 4px 0 rgba(37, 99, 235, 0.15),
        0 18px 48px rgba(37, 99, 235, 0.22);
}
.recommended-links .badge {
    transition: transform 0.15s cubic-bezier(.2,.8,.2,1), 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), box-shadow 0.15s cubic-bezier(.2,.8,.2,1);
    border-radius: 2px;
    border: 2px solid rgba(15, 23, 42, 0.12);
    box-shadow: 4px 4px 0 rgba(2, 6, 23, 0.06);
}
.recommended-links .badge:hover {
    background-color: #e11d48 !important;
    color: #fff !important;
    border-color: #e11d48 !important;
    transform: translateY(-2px);
    box-shadow:
        4px 4px 0 rgba(225, 29, 72, 0.30),
        0 18px 32px rgba(225, 29, 72, 0.18);
}
.recommended-links .badge:hover .text-warning {
    color: #22c55e !important;
    text-shadow: 0 1px 0 rgba(34, 197, 94, 0.18);
}

/* Legal Article */
.legal-article-section,
main:has(> .container > article.bg-white) {
    background: #f3f4ff;
    border-radius: 2px;
}
article :is(h2.h4) {
    color: #0b1220;
    border-bottom: 2px solid rgba(15, 23, 42, 0.18);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
    text-shadow: 0 1px 0 rgba(2, 6, 23, 0.08);
}
article .alert-info {
    background-color: #dbeafe;
    border-color: #60a5fa;
    color: #0b1220;
    border-radius: 2px;
    box-shadow: 4px 4px 0 rgba(37, 99, 235, 0.12);
}
article .list-group-item {
    background: transparent;
    transition: all 0.15s cubic-bezier(.2,.8,.2,1);
    border-radius: 2px;
}
article .list-group-item:hover {
    background: #eef2ff;
    padding-inline-start: var(--space-sm);
    box-shadow:
        4px 4px 0 rgba(79, 70, 229, 0.14);
}

/* Posts Grid */
.posts-grid .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: 3px solid rgba(15, 23, 42, 0.10);
    border-radius: 2px;
    overflow: hidden;
    box-shadow:
        4px 4px 0 rgba(2, 6, 23, 0.06),
        0 10px 24px rgba(2, 6, 23, 0.06);
    background: #ffffff;
}
.posts-grid .card:hover {
    transform: translateY(-5px);
    box-shadow:
        4px 4px 0 rgba(37, 99, 235, 0.30),
        10px 12px 0 rgba(79, 70, 229, 0.16),
        0 22px 46px rgba(2, 6, 23, 0.18);
    border-color: rgba(37, 99, 235, 0.65);
}
.posts-grid .card-img-top {
    transition: transform 0.15s cubic-bezier(.2,.8,.2,1), filter 0.15s cubic-bezier(.2,.8,.2,1);
    filter: saturate(1.05) contrast(1.02);
}
.posts-grid .card:hover .card-img-top {
    transform: scale(1.05);
    filter: saturate(1.12) contrast(1.05);
}
.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: #4f46e5 !important;
    text-shadow: 0 1px 0 rgba(79, 70, 229, 0.18);
}

/* Related Posts */
.related-posts h3 {
    border-bottom: 3px solid #22c55e;
    padding-bottom: var(--space-xs);
    display: inline-block;
    text-shadow: 0 1px 0 rgba(34, 197, 94, 0.16);
}
.related-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-radius: 2px;
}
.related-card:hover {
    transform: translateY(-5px);
    box-shadow:
        4px 4px 0 rgba(34, 197, 94, 0.30),
        0 18px 36px rgba(2, 6, 23, 0.14);
}
.related-card img {
    transition: transform 0.15s cubic-bezier(.2,.8,.2,1), filter 0.15s cubic-bezier(.2,.8,.2,1);
    filter: saturate(1.05) contrast(1.02);
}
.related-card:hover img {
    transform: scale(1.05);
    filter: saturate(1.12) contrast(1.05);
}

/* Social Share */
.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);
    border-radius: 2px;
    border: 3px solid rgba(15, 23, 42, 0.10);
    box-shadow: 4px 4px 0 rgba(2, 6, 23, 0.06);
}
.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow:
        4px 4px 0 rgba(79, 70, 229, 0.28),
        0 18px 32px rgba(2, 6, 23, 0.14);
}
.social-share [data-copy-url].copied {
    background-color: #10b981;
    color: #fff;
    border-color: #10b981;
    border-style: solid;
    border-width: 1px;
    box-shadow:
        4px 4px 0 rgba(16, 185, 129, 0.32),
        0 18px 36px rgba(16, 185, 129, 0.18);
    opacity: 0.98;
}

/* Bootstrap Accordion override */
.accordion-button:not(.collapsed) {
    background-color: #dbeafe;
    color: #0b1220;
    box-shadow: none;
    border-radius: 2px;
    border: 3px solid rgba(37, 99, 235, 0.25);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.15);
    border-radius: 2px;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 2px;
    box-shadow:
        4px 4px 0 rgba(2, 6, 23, 0.18),
        0 22px 60px rgba(2, 6, 23, 0.20);
    background: #ffffff;
}

/* Tooltip */
.tooltip-inner {
    background-color: #0b1220;
    border-radius: 2px;
    font-size: 0.85rem;
    box-shadow:
        4px 4px 0 rgba(2, 6, 23, 0.25),
        0 16px 40px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

/* 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;
    }
}