.author-profile {
    background:
        radial-gradient(circle at 80% 10%, rgba(99,102,241,0.16), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(236,72,153,0.12), transparent 40%),
        linear-gradient(135deg, #ffffff 0%, #eef2ff 45%, #faf5ff 100%);
}

.author-profile h1 {
    color: #312e81;
}

.author-profile img.rounded-circle {
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 6px rgba(99,102,241,0.14), 0 18px 42px -14px rgba(30,27,75,0.28);
}

.author-profile .badge.bg-light {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%) !important;
    color: #4338ca !important;
    box-shadow: inset 0 0 0 1px rgba(99,102,241,0.16);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.author-profile .badge.bg-light:hover {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px -10px rgba(99,102,241,0.65);
    transform: translateY(-2px);
}

.author-box {
    border-inline-start: 4px solid #f97316;
    background:
        linear-gradient(135deg, rgba(255,247,237,0.9), rgba(255,255,255,0.98)),
        radial-gradient(circle at 90% 0%, rgba(251,113,133,0.16), transparent 50%);
    border-radius: 4px 18px 18px 4px;
    box-shadow: 0 4px 14px -8px rgba(100,116,139,0.25);
    transition: border-color 0.4s ease, box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.author-box:hover {
    box-shadow: 0 20px 44px -16px rgba(249,115,22,0.28), 0 8px 18px -10px rgba(15,23,42,0.16);
    transform: translateY(-3px);
}

.author-box img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.author-posts-list .card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 1.25rem;
    box-shadow: 0 4px 12px -6px rgba(15,23,42,0.08);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.author-posts-list .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px -20px rgba(30,27,75,0.35), 0 10px 22px -12px rgba(99,102,241,0.18);
}

.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.07);
}

.main-authors-section {
    background:
        radial-gradient(circle at 10% 20%, rgba(245,158,11,0.18), transparent 38%),
        radial-gradient(circle at 90% 80%, rgba(217,70,239,0.14), transparent 45%),
        linear-gradient(145deg, #fffbeb 0%, #fdf2f8 100%);
}

.author-card {
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, #ffffff 0%, #fffdf5 55%, #fdf2f8 100%) padding-box,
        linear-gradient(135deg, rgba(245,158,11,0.85), rgba(217,70,239,0.65), rgba(99,102,241,0.8)) border-box;
    border-radius: 1.5rem;
    box-shadow: 0 6px 16px -8px rgba(180,83,9,0.25);
    transition: all 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 64px -22px rgba(217,70,239,0.35), 0 10px 24px -12px rgba(245,158,11,0.25);
}

.author-card img.rounded-circle {
    border: 3px solid #fde68a;
    box-shadow: 0 4px 14px -6px rgba(245,158,11,0.35);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.author-card:hover img.rounded-circle {
    border-color: #8b5cf6;
    box-shadow: 0 10px 20px -8px rgba(99,102,241,0.4);
}

.faq-section {
    background:
        radial-gradient(circle at 0% 0%, rgba(16,185,129,0.16), transparent 32%),
        radial-gradient(circle at 100% 0%, rgba(59,130,246,0.14), transparent 35%),
        linear-gradient(180deg, #ecfeff 0%, #eff6ff 45%, #ffffff 100%);
}

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

.faq-list .faq-item {
    background: linear-gradient(145deg, #ffffff 0%, #f6fffe 100%);
    border: 1px solid rgba(13,148,136,0.14);
    border-radius: 1.125rem;
    box-shadow: 0 4px 12px -8px rgba(13,148,136,0.15);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.faq-list .faq-item:hover {
    box-shadow: 0 18px 38px -14px rgba(13,148,136,0.3), 0 6px 16px -8px rgba(15,23,42,0.12) !important;
    transform: translateY(-3px);
}

.faq-list .faq-item[open] {
    border-color: rgba(20,184,166,0.45);
    background: linear-gradient(120deg, #ccfbf1 0%, #ecfeff 45%, #fefce8 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: #0f766e;
    transition: transform 0.4s ease, color 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: #0d9488;
}

.faq-list .faq-answer {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #334155;
    animation: faqFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.sidebar-widgets .card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 1.25rem;
    box-shadow: 0 4px 14px -10px rgba(15,23,42,0.1);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-widgets .card:hover {
    box-shadow: 0 22px 48px -18px rgba(30,27,75,0.25), 0 8px 18px -10px rgba(148,163,184,0.3);
}

.sidebar-widgets h5 {
    color: #1e1b4b;
}

.sidebar-widgets .badge {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.sidebar-widgets .badge:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%) !important;
    color: #1e1b4b !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 20px -8px rgba(249,115,22,0.5);
}

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

.pagination .page-link {
    background: linear-gradient(145deg, #ffffff 0%, #eef2ff 100%);
    color: #4f46e5;
    border-color: rgba(79,70,229,0.22);
    box-shadow: 0 2px 6px -4px rgba(79,70,229,0.25);
    transition: all 0.35s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 12px 24px -10px rgba(79,70,229,0.55);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    border-color: #4338ca;
    color: #ffffff;
    box-shadow: 0 10px 20px -8px rgba(99,102,241,0.7);
}

.pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background: rgba(248,250,252,0.85);
    border-color: rgba(226,232,240,0.8);
    box-shadow: none;
}

.search-box-section {
    background:
        radial-gradient(circle at 15% 100%, rgba(14,165,233,0.18), transparent 35%),
        radial-gradient(circle at 90% 0%, rgba(139,92,246,0.22), transparent 40%),
        linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
}

.search-box-section .input-group-lg .form-control {
    border-radius: 999px 0 0 999px;
    padding-inline-start: 1.5rem;
    border-color: rgba(37,99,235,0.3);
    box-shadow: inset 0 2px 6px rgba(15,23,42,0.04);
}

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

.search-box-section .badge {
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(219,234,254,0.85)) !important;
    color: #1e3a8a !important;
    box-shadow: inset 0 0 0 1px rgba(37,99,235,0.18);
    transition: all 0.4s ease;
}

.search-box-section .badge:hover {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 12px 20px -8px rgba(37,99,235,0.5);
}

.search-results-section {
    background:
        radial-gradient(circle at 90% 10%, rgba(244,114,182,0.08), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #fdf4ff 100%);
}

.search-result {
    background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(250,245,255,0.68));
    border: 1px solid transparent;
    border-radius: 1rem;
    box-shadow: 0 2px 10px -6px rgba(15,23,42,0.08);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-result:hover {
    transform: translateX(4px);
    border-color: rgba(217,70,239,0.4);
    box-shadow: 0 24px 48px -20px rgba(217,70,239,0.28), 0 8px 18px -12px rgba(15,23,42,0.15);
}

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

.search-result mark {
    background: linear-gradient(180deg, rgba(254,240,138,0.4) 0%, #fde047 75%, #facc15 100%);
    padding-inline: 2px;
    border-radius: 3px;
    font-weight: 600;
    color: #1e293b;
}

.error-page h1 {
    background: linear-gradient(110deg, #f97316 0%, #db2777 45%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow: 0 8px 40px rgba(219,39,119,0.28);
}

.recommended-links .badge {
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(99,102,241,0.35);
    box-shadow: 0 2px 8px -6px rgba(15,23,42,0.15);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.recommended-links .badge:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #db2777 100%) !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -14px rgba(79,70,229,0.5);
}

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

.legal-article-section,
main:has(> .container > article.bg-white) {
    background:
        radial-gradient(circle at 0% 0%, rgba(251,191,36,0.12), transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(79,70,229,0.14), transparent 35%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

article :is(h2.h4) {
    color: #4338ca;
    border-bottom: 2px solid rgba(99,102,241,0.35);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

article .alert-info {
    background: linear-gradient(120deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #7dd3fc;
    color: #1e3a8a;
}

article .list-group-item {
    background: rgba(255,255,255,0.55);
    border-color: rgba(148,163,184,0.12);
    transition: all 0.4s ease;
}

article .list-group-item:hover {
    background: linear-gradient(90deg, #f8fafc 0%, #eef2ff 100%);
    padding-inline-start: 0.75rem;
}

.posts-grid {
    /* no visual rules */
}

.posts-grid .card {
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) padding-box,
        linear-gradient(135deg, rgba(99,102,241,0.55), rgba(217,70,239,0.45), rgba(245,158,11,0.55)) border-box;
    border-radius: 1.125rem;
    box-shadow: 0 4px 12px -8px rgba(15,23,42,0.1);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.posts-grid .card:hover {
    transform: translateY(-6px);
    border-color: #6366f1;
    box-shadow: 0 28px 55px -20px rgba(79,70,229,0.35), 0 10px 22px -12px rgba(15,23,42,0.16);
}

.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.07);
}

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

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

.related-posts h3 {
    border-bottom: 3px solid #f59e0b;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.related-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 1rem;
    box-shadow: 0 2px 8px -6px rgba(15,23,42,0.08);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px -18px rgba(30,27,75,0.25), 0 8px 18px -12px rgba(15,23,42,0.14);
}

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

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

.social-share .btn {
    min-width: 40px;
    border-radius: 999px;
    box-shadow: 0 4px 12px -8px rgba(15,23,42,0.2);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-share .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px -12px rgba(15,23,42,0.28);
}

.social-share [data-copy-url].copied {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 10px 18px -8px rgba(5,150,105,0.5);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #1e3a8a;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(14,165,233,0.2);
}

.modal-content {
    border: none;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    box-shadow: 0 40px 80px -24px rgba(15,23,42,0.45);
}

.tooltip-inner {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
    border-radius: 0.75rem;
    font-size: 0.85rem;
    box-shadow: 0 8px 18px -8px rgba(30,27,75,0.4);
}

@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: 0.5rem;
    }

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