.author-profile {
    background: linear-gradient(135deg, #2d1b69 0%, #1a1a2e 100%);
}

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

.author-profile img.rounded-circle {
    border: 4px solid #e0d4ff;
    box-shadow: 0 8px 25px rgba(45, 27, 105, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-profile .badge.bg-light {
    background: #3a2a6b !important;
    color: #d4c9f0 !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.author-box {
    border-inline-start: 4px solid #f0a500;
    transition: all 0.4s ease;
}

.author-box:hover {
    box-shadow: 0 12px 35px rgba(240, 165, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.author-box img {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

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

.author-posts-list .card {
    transition: all 0.4s ease;
    overflow: hidden;
}

.author-posts-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 6px 15px rgba(255, 107, 107, 0.1);
}

.author-posts-list .card-img-top {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

.author-card {
    transition: all 0.4s ease;
    border: 1px solid #d4cfc9;
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
}

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

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

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

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

.faq-list .faq-item {
    border: 1px solid rgba(160, 82, 45, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.faq-list .faq-item:hover {
    box-shadow: 0 8px 30px rgba(160, 82, 45, 0.15) !important;
    transform: translateY(-2px);
}

.faq-list .faq-item[open] {
    border-color: rgba(230, 126, 34, 0.3);
    background: linear-gradient(90deg, #fef6e8 0%, #fff5e6 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: #e67e22;
    transition: transform 0.4s 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: #e67e22;
}

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

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

.sidebar-widgets .card {
    transition: all 0.4s ease;
}

.sidebar-widgets .card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-widgets h5 {
    color: #2c3e50;
}

.sidebar-widgets .badge {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

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

.pagination .page-link {
    color: #2980b9;
    border-color: #bdc3c7;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #d5dbdb;
    color: #1a5276;
    border-color: #2980b9;
}

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

.pagination .page-item.disabled .page-link {
    color: #95a5a6;
}

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

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

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

.search-box-section .badge {
    transition: all 0.3s ease;
}

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

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

.search-result {
    transition: all 0.4s ease;
}

.search-result:hover {
    transform: translateX(3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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

.error-page h1 {
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow: 0 6px 40px rgba(142, 68, 173, 0.3);
}

.recommended-links .badge {
    transition: all 0.3s ease;
    border: 1px solid #d5dbdb;
}

.recommended-links .badge:hover {
    background-color: #8e44ad !important;
    color: #fff !important;
    border-color: #8e44ad !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

article :is(h2.h4) {
    color: #5a2d0c;
    border-bottom: 2px solid #e0c9a6;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

article .alert-info {
    background-color: #fef6e8;
    border-color: #f0c27a;
    color: #5a2d0c;
}

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

article .list-group-item:hover {
    background: #f9f5f0;
    padding-inline-start: 16px;
}

.posts-grid .card {
    transition: all 0.4s ease;
    border: 1px solid #d4cfc9;
    overflow: hidden;
}

.posts-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 6px 15px rgba(160, 82, 45, 0.08);
    border-color: #a0522d;
}

.posts-grid .card-img-top {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.posts-grid .card-title a {
    transition: color 0.3s ease;
}

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

.related-posts h3 {
    border-bottom: 3px solid #f0a500;
    padding-bottom: 8px;
    display: inline-block;
}

.related-card {
    transition: all 0.4s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(240, 165, 0, 0.1);
}

.related-card img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.social-share .btn {
    min-width: 40px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.accordion-button:not(.collapsed) {
    background-color: #fef6e8;
    color: #5a2d0c;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.2);
}

.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(0, 0, 0, 0.08);
}

.tooltip-inner {
    background-color: #2c3e50;
    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: 16px;
    }

    .pagination .page-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.9rem;
    }
}