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

.author-profile h1 {
    color: #102338;
}

.author-profile img.rounded-circle {
    border: 4px solid #fff;
    box-shadow: 0 12px 28px -8px rgba(31, 53, 74, 0.22), 0 4px 10px rgba(31, 53, 74, 0.06);
}

.author-profile .badge.bg-light {
    background: #e4eaf0 !important;
    color: #2b3f52 !important;
    transition: all 0.25s ease-in-out;
}

.author-profile .badge.bg-light:hover {
    background: #1f3a5f !important;
    color: #fff !important;
}

.author-box {
    border-inline-start: 4px solid #c8935a;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.author-box:hover {
    box-shadow: 0 8px 20px -6px rgba(20, 32, 45, 0.12), 0 4px 10px rgba(20, 32, 45, 0.05);
}

.author-box img {
    transition: transform 0.3s ease-out;
}

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

.author-posts-list .card {
    border-radius: 18px;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.author-posts-list .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 38px -12px rgba(20, 32, 45, 0.2), 0 8px 18px rgba(20, 32, 45, 0.07);
}

.author-posts-list .card-img-top {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.author-card {
    border-radius: 20px;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(24, 42, 63, 0.08);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 60px -18px rgba(15, 27, 40, 0.28), 0 16px 32px rgba(15, 27, 40, 0.08);
}

.author-card img.rounded-circle {
    border: 3px solid #e4eaf0;
    transition: border-color 0.35s ease;
}

.author-card:hover img.rounded-circle {
    border-color: #1f3a5f;
}

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

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

.faq-list .faq-item {
    background: #ffffff;
    border: 1px solid rgba(31, 58, 95, 0.08);
    border-radius: 18px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.faq-list .faq-item:hover {
    box-shadow: 0 18px 36px -12px rgba(15, 27, 40, 0.18), 0 6px 14px rgba(15, 27, 40, 0.06) !important;
    transform: translateY(-3px);
}

.faq-list .faq-item[open] {
    border-color: rgba(31, 58, 95, 0.18);
    background: linear-gradient(90deg, #e8eff5 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: #1f3a5f;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1;
}

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

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

.faq-list .faq-answer {
    font-size: 0.95rem;
    line-height: 1.8;
    animation: faqFadeIn 0.35s ease-in-out;
}

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

.sidebar-widgets .card {
    background: #252e3a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    color: #d7dfe8;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-widgets .card:hover {
    box-shadow: 0 22px 44px -16px rgba(9, 17, 26, 0.4), 0 10px 20px rgba(9, 17, 26, 0.12);
}

.sidebar-widgets h5 {
    color: #f5efe5;
}

.sidebar-widgets .badge {
    background-color: #37404c !important;
    color: #e4ebf2 !important;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.sidebar-widgets .badge:hover {
    background-color: #c8935a !important;
    color: #1d2530 !important;
    transform: translateY(-2px);
}

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

.pagination .page-link {
    color: #1f3a5f;
    background-color: #ffffff;
    border-color: #d9e1e8;
    transition: all 0.25s ease-in-out;
}

.pagination .page-link:hover {
    background-color: #eaf0f5;
    color: #0e2740;
    border-color: #9db4c8;
}

.pagination .page-item.active .page-link {
    background-color: #252e3a;
    border-color: #252e3a;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #9aa7b1;
}

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

.search-box-section .input-group-lg .form-control {
    border-radius: 24px 0 0 24px;
    padding-inline-start: 1.5rem;
}

.search-box-section .input-group-lg .btn {
    border-radius: 0 24px 24px 0;
}

.search-box-section .badge {
    transition: all 0.25s ease-in-out;
}

.search-box-section .badge:hover {
    background-color: #1f3a5f !important;
    color: #fff !important;
    border-color: #1f3a5f !important;
}

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

.search-result {
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow: 0 8px 20px -6px rgba(20, 32, 45, 0.12), 0 4px 10px rgba(20, 32, 45, 0.05);
}

.search-result h2 a:hover {
    color: #1f3a5f !important;
}

.search-result mark {
    background-color: #f8e7a5;
    padding-inline: 2px;
    border-radius: 4px;
    font-weight: 600;
}

.error-page h1 {
    background: linear-gradient(135deg, #1f3a5f 0%, #4f7596 55%, #9ac2d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow: 0 6px 30px rgba(40, 84, 112, 0.22);
}

.recommended-links .badge {
    transition: all 0.25s ease-in-out;
    border: 1px solid #d5dde4;
}

.recommended-links .badge:hover {
    background-color: #1f3a5f !important;
    color: #fff !important;
    border-color: #1f3a5f !important;
    transform: translateY(-3px);
    box-shadow: 0 2px 6px rgba(20, 32, 45, 0.06), 0 1px 2px rgba(20, 32, 45, 0.04);
}

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

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

article :is(h2.h4) {
    color: #172f4b;
    border-bottom: 2px solid #d4dde5;
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
}

article .alert-info {
    background-color: #e8f1f8;
    border-color: #bfd9e9;
    color: #1b4054;
}

article .list-group-item {
    background: transparent;
    transition: all 0.25s ease-in-out;
}

article .list-group-item:hover {
    background: #edf2f6;
    padding-inline-start: var(--space-sm);
}

.posts-grid .card {
    border-radius: 20px;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(24, 42, 63, 0.08);
    overflow: hidden;
}

.posts-grid .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 38px -12px rgba(20, 32, 45, 0.2), 0 8px 18px rgba(20, 32, 45, 0.07);
    border-color: #8aa4bd;
}

.posts-grid .card-img-top {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.posts-grid .card-title a {
    transition: color 0.25s ease-in-out;
}

.posts-grid .card-title a:hover {
    color: #1f3a5f !important;
}

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

.related-card {
    border-radius: 18px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px -6px rgba(20, 32, 45, 0.12), 0 4px 10px rgba(20, 32, 45, 0.05);
}

.related-card img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.related-card:hover img {
    transform: scale(1.05);
}

.social-share .btn {
    min-width: 40px;
    border-radius: 20px;
    transition: all 0.25s ease-in-out;
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(20, 32, 45, 0.06), 0 1px 2px rgba(20, 32, 45, 0.04);
}

.social-share [data-copy-url].copied {
    background-color: #2f7d5d;
    color: #fff;
    border-color: #2f7d5d;
}

.accordion-button:not(.collapsed) {
    background-color: #e8eff5;
    color: #172f4b;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 46, 58, 0.12);
}

.modal-content {
    border: none;
    border-radius: 24px;
    box-shadow: 0 32px 60px -18px rgba(15, 27, 40, 0.28), 0 16px 32px rgba(15, 27, 40, 0.08);
}

.tooltip-inner {
    background-color: #102338;
    border-radius: 8px;
    font-size: 0.85rem;
}

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