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

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

.author-profile img.rounded-circle {
    border: 4px solid #fbfaf7;
    box-shadow: 0 8px 18px -12px rgba(25, 47, 58, 0.22), 0 2px 6px rgba(25, 47, 58, 0.08);
}

.author-profile .badge.bg-light {
    background: #e9e2d7 !important;
    color: #3c444a !important;
    border-radius: 3px;
    transition: all 120ms ease-out;
}

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

.author-box {
    border-inline-start: 4px solid #c9772f;
    transition: all 180ms ease-out;
}

.author-box:hover {
    box-shadow: 0 10px 20px -14px rgba(25, 47, 58, 0.18), 0 2px 6px rgba(25, 47, 58, 0.07);
}

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

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

.author-posts-list .card {
    border-radius: 4px;
    transition: all 180ms ease-out;
    overflow: hidden;
}

.author-posts-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 26px -16px rgba(25, 47, 58, 0.22), 0 4px 10px rgba(25, 47, 58, 0.06);
}

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

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

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

.author-card {
    border-radius: 4px;
    border: 1px solid #dcd4c8;
    box-shadow: 0 1px 2px rgba(30, 38, 44, 0.04);
    transition: all 180ms ease-out;
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 32px -18px rgba(25, 47, 58, 0.22), 0 6px 14px rgba(25, 47, 58, 0.07);
}

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

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

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

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

.faq-list .faq-item {
    border: 1px solid #e3dbcf;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(30, 38, 44, 0.03);
    transition: all 160ms ease-out;
    cursor: pointer;
}

.faq-list .faq-item:hover {
    box-shadow: 0 8px 18px -12px rgba(25, 47, 58, 0.14) !important;
    transform: translateY(-2px);
}

.faq-list .faq-item[open] {
    border-color: rgba(201, 119, 47, 0.3);
    background: linear-gradient(90deg, #f6ede1 0%, #fbfaf7 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: #2d6478;
    transition: transform 160ms ease-out;
    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: #2d6478;
}

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

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

.sidebar-widgets .card {
    background-color: #252e3a;
    border: 1px solid #33404e;
    color: #d9e1e8;
    border-radius: 4px;
    transition: all 180ms ease-out;
}

.sidebar-widgets .card:hover {
    box-shadow: 0 12px 24px -16px rgba(7, 12, 18, 0.4), 0 2px 6px rgba(7, 12, 18, 0.12);
}

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

.sidebar-widgets .badge {
    background-color: #394759;
    color: #cdd6df;
    border-radius: 3px;
    transition: all 120ms ease-out;
    cursor: pointer;
}

.sidebar-widgets .badge:hover {
    background-color: #c9772f !important;
    color: #fff !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: #c9772f !important;
}

.pagination .page-link {
    color: #2d6478;
    border-color: #ded6ca;
    transition: all 120ms ease-out;
}

.pagination .page-link:hover {
    background-color: #efe9df;
    color: #1c4252;
    border-color: #c9772f;
}

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

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

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

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

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

.search-box-section .badge {
    border-radius: 3px;
    transition: all 120ms ease-out;
}

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

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

.search-result {
    border-radius: 4px;
    transition: all 160ms ease-out;
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow: 0 10px 20px -14px rgba(25, 47, 58, 0.18), 0 2px 6px rgba(25, 47, 58, 0.05);
}

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

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

.error-page h1 {
    background: linear-gradient(135deg, #2d6478 0%, #1d3543 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(32, 62, 76, 0.24);
}

.recommended-links .badge {
    background-color: #fbfaf7;
    color: #2d6478;
    border: 1px solid #ded6ca;
    border-radius: 3px;
    transition: all 120ms ease-out;
}

.recommended-links .badge:hover {
    background-color: #2d6478 !important;
    color: #fff !important;
    border-color: #2d6478 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px -6px rgba(25, 47, 58, 0.18);
}

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

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

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

article .alert-info {
    background-color: #e7f2f0;
    border-color: #cbe2de;
    color: #1c4252;
}

article .list-group-item {
    background: transparent;
    transition: all 120ms ease-out;
}

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

.posts-grid {}

.posts-grid .card {
    border-radius: 4px;
    border: 1px solid #ddd5c9;
    box-shadow: 0 1px 2px rgba(30, 38, 44, 0.04);
    transition: all 180ms ease-out;
    overflow: hidden;
}

.posts-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 26px -16px rgba(25, 47, 58, 0.22), 0 4px 10px rgba(25, 47, 58, 0.06);
    border-color: #2d6478;
}

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

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

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

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

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

.related-card {
    border-radius: 4px;
    transition: all 180ms ease-out;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -16px rgba(25, 47, 58, 0.16), 0 4px 10px rgba(25, 47, 58, 0.05);
}

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

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

.social-share .btn {
    min-width: 40px;
    transition: all 120ms ease-out;
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px -6px rgba(25, 47, 58, 0.18);
}

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

.accordion-button:not(.collapsed) {
    background-color: #eef1ed;
    color: #1c4252;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(45, 100, 120, 0.18);
}

.modal-content {
    border: none;
    border-radius: 6px;
    box-shadow: 0 18px 38px -18px rgba(22, 35, 44, 0.28), 0 4px 12px rgba(22, 35, 44, 0.08);
}

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