.author-profile {
    background: #f0f4f7;
}

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

.author-profile img.rounded-circle {
    border: 4px solid #ffffff;
    box-shadow: none;
}

.author-profile .badge.bg-light {
    background: #d3dce3 !important;
    color: #2f3d4a !important;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.author-box {
    border-inline-start: 4px solid #ca7c3f;
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.author-box:hover {
    background-color: #fbfcfe;
    box-shadow: none;
}

.author-box img {
    transition: transform 160ms ease;
}

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

.author-posts-list .card {
    background-color: #ffffff;
    border-color: #dce3ea;
    overflow: hidden;
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.author-posts-list .card:hover {
    transform: translateY(-5px);
    box-shadow: none;
    background-color: #f9fbfc;
    border-color: #b9cbd8;
}

.author-posts-list .card-img-top {
    transition: transform 400ms ease;
}

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

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

.author-card {
    background-color: #ffffff;
    border: 1px solid #dce3ea;
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
    border-color: #2f637f;
    background-color: #f6f9fb;
}

.author-card img.rounded-circle {
    border: 3px solid #dae2e9;
    transition: border-color 220ms ease;
}

.author-card:hover img.rounded-circle {
    border-color: #2f637f;
}

.faq-section {
    background: #eef2f5;
}

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

.faq-list .faq-item {
    border: 1px solid #d3dce4;
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
    cursor: pointer;
}

.faq-list .faq-item:hover {
    box-shadow: none !important;
    transform: translateY(-2px);
    background-color: #f6f8fa;
}

.faq-list .faq-item[open] {
    border-color: rgba(47, 99, 127, 0.32);
    background-color: #f0f5f8;
}

.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: #2f637f;
    transition: transform 220ms ease;
    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: #2f637f;
}

.faq-list .faq-answer {
    font-size: 0.95rem;
    line-height: 1.8;
    animation: faqFadeIn 220ms ease;
}

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

.sidebar-widgets .card {
    background-color: #252e3a;
    border-color: #303c49;
    color: #d6dee6;
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.sidebar-widgets .card:hover {
    background-color: #2a3441;
    box-shadow: none;
}

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

.sidebar-widgets .badge {
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
    cursor: pointer;
}

.sidebar-widgets .badge:hover {
    background-color: #ca7c3f !important;
    color: #ffffff !important;
    border-color: #ca7c3f !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: #f0c88f !important;
}

.pagination .page-link {
    background-color: #ffffff;
    color: #2f637f;
    border-color: #cbd5de;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.pagination .page-link:hover {
    background-color: #e2e8ed;
    color: #234e66;
    border-color: #2f637f;
}

.pagination .page-item.active .page-link {
    background-color: #2f637f;
    border-color: #2f637f;
    color: #ffffff;
}

.pagination .page-item.disabled .page-link {
    color: #8a98a5;
    background-color: #f3f6f8;
    border-color: #dde4ea;
}

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

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

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

.search-box-section .badge {
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.search-box-section .badge:hover {
    background-color: #2f637f !important;
    color: #ffffff !important;
    border-color: #2f637f !important;
}

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

.search-result {
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow: none;
    background-color: #ffffff;
}

.search-result h2 a:hover {
    color: #2f637f !important;
}

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

.error-page h1 {
    background: transparent;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #2f637f;
    color: #2f637f;
    line-height: 1;
    text-shadow: none;
}

.recommended-links .badge {
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    border: 1px solid #cbd5de;
}

.recommended-links .badge:hover {
    background-color: #2f637f !important;
    color: #ffffff !important;
    border-color: #2f637f !important;
    transform: translateY(-2px);
    box-shadow: none;
}

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

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

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

article .alert-info {
    background-color: #e4eef4;
    border-color: #bed3e1;
    color: #234e66;
}

article .list-group-item {
    background: transparent;
    transition: background-color 160ms ease, padding-inline-start 160ms ease;
}

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

.posts-grid .card {
    background-color: #ffffff;
    border: 1px solid #dce3ea;
    overflow: hidden;
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.posts-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: none;
    border-color: #2f637f;
    background-color: #f9fbfc;
}

.posts-grid .card-img-top {
    transition: transform 400ms ease;
}

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

.posts-grid .card-title a {
    transition: color 160ms ease;
}

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

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

.related-card {
    transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
    background-color: #ffffff;
}

.related-card img {
    transition: transform 400ms ease;
}

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

.social-share .btn {
    min-width: 40px;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.social-share [data-copy-url].copied {
    background-color: #3f7d5c;
    color: #ffffff;
    border-color: #3f7d5c;
}

.accordion-button:not(.collapsed) {
    background-color: #dae6ee;
    color: #234e66;
    box-shadow: none;
}

.accordion-button:focus {
    outline: 2px solid #9dc0d4;
    outline-offset: -2px;
    box-shadow: none;
}

.modal-content {
    border: none;
    border-radius: 6px;
    box-shadow: none;
}

.tooltip-inner {
    background-color: #1e3b4d;
    border-radius: 4px;
    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;
    }
}