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

.author-profile h1 {
  color: #4c1d95;
}

.author-profile img.rounded-circle {
  border: 4px solid #ffffff;
  box-shadow: 0 12px 28px -8px rgba(124, 58, 237, 0.25), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.author-profile .badge.bg-light {
  background: #f1f0f9 !important;
  color: #38345a !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-profile .badge.bg-light:hover {
  background: linear-gradient(135deg, #7c3aed, #c084fc) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px -8px rgba(124, 58, 237, 0.5);
}

.author-box {
  border-inline-start: 4px solid #14b8a6;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #ffffff, #f0fdfa);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 10px 24px -14px rgba(20, 184, 166, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-box:hover {
  box-shadow: 0 22px 44px -16px rgba(20, 184, 166, 0.4), 0 8px 16px rgba(15, 23, 42, 0.06);
}

.author-box img {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.author-posts-list .card {
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #ffffff, #fff5f6);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.author-posts-list .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -18px rgba(244, 63, 94, 0.4), 0 6px 14px rgba(15, 23, 42, 0.06);
}

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

.main-authors-section {
  background: linear-gradient(160deg, #f5f3ff 0%, #faf9ff 45%, #eef2ff 100%);
}

.author-card {
  border: 1px solid transparent;
  border-radius: 1.75rem;
  background: linear-gradient(145deg, #ffffff, #f8f7ff) padding-box,
              linear-gradient(145deg, rgba(99, 102, 241, 0.45), rgba(244, 114, 182, 0.2)) border-box;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px -20px rgba(99, 102, 241, 0.45), 0 10px 20px rgba(15, 23, 42, 0.06);
  background: linear-gradient(145deg, #ffffff, #eef2ff) padding-box,
              linear-gradient(145deg, rgba(79, 70, 229, 0.8), rgba(217, 70, 239, 0.5)) border-box;
}

.author-card img.rounded-circle {
  border: 3px solid #e2e8f0;
  box-shadow: 0 8px 16px -6px rgba(99, 102, 241, 0.25);
  transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-card:hover img.rounded-circle {
  border-color: #6366f1;
  box-shadow: 0 12px 24px -8px rgba(99, 102, 241, 0.45);
}

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

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

.faq-list .faq-item {
  border: 1px solid transparent;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #ffffff, #fdfaf3) padding-box,
              linear-gradient(120deg, rgba(245, 158, 11, 0.3), rgba(251, 146, 60, 0.12)) border-box;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.faq-list .faq-item:hover {
  box-shadow: 0 14px 32px -14px rgba(245, 158, 11, 0.4), 0 6px 12px rgba(15, 23, 42, 0.04) !important;
  transform: translateY(-2px);
}

.faq-list .faq-item[open] {
  border-color: transparent;
  background: linear-gradient(120deg, #fefce8 0%, #fff7ed 50%, #ffffff 100%) padding-box,
              linear-gradient(120deg, rgba(245, 158, 11, 0.75), rgba(251, 146, 60, 0.45)) border-box;
}

.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: #d97706;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  line-height: 1;
}

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

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

.faq-list .faq-answer {
  font-size: 0.95rem;
  line-height: 1.8;
  animation: faqFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.sidebar-widgets .card {
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #ffffff, #f0fdf9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-widgets .card:hover {
  box-shadow: 0 20px 40px -16px rgba(16, 185, 129, 0.35), 0 8px 16px rgba(15, 23, 42, 0.06);
}

.sidebar-widgets h5 {
  color: #065f46;
}

.sidebar-widgets .badge {
  border-radius: 999px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.sidebar-widgets .badge:hover {
  background: linear-gradient(135deg, #10b981, #34d399) !important;
  color: #ffffff !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: #059669 !important;
}

.pagination .page-link {
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.2);
  border-radius: 0.75rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination .page-link:hover {
  background: linear-gradient(135deg, #ede9fe, #faf5ff);
  color: #4c1d95;
  border-color: #7c3aed;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(124, 58, 237, 0.5);
}

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

.search-box-section {
  background: linear-gradient(180deg, #eefdfd 0%, #f8fafc 100%);
}

.search-box-section .input-group-lg .form-control {
  border-radius: 999px 0 0 999px;
  border-color: rgba(6, 182, 212, 0.3);
  padding-inline-start: 1.5rem;
}

.search-box-section .input-group-lg .btn {
  border-radius: 0 999px 999px 0;
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  border-color: transparent;
  color: #ffffff;
}

.search-box-section .badge {
  border-radius: 999px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box-section .badge:hover {
  background: linear-gradient(135deg, #06b6d4, #0ea5e9) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.search-results-section {
  background: linear-gradient(180deg, #f8fafc 0%, #fefce8 100%);
}

.search-result {
  border-radius: 1rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result:hover {
  transform: translateX(3px);
  box-shadow: 0 16px 32px -12px rgba(202, 138, 4, 0.35), 0 6px 12px rgba(15, 23, 42, 0.04);
}

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

.search-result mark {
  background: linear-gradient(120deg, #fef08a, #fde68a);
  padding-inline: 2px;
  border-radius: 4px;
  font-weight: 600;
  box-shadow: 0 2px 6px -2px rgba(250, 204, 21, 0.4);
}

.error-page h1 {
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  line-height: 1;
  text-shadow: 0 8px 40px rgba(192, 38, 211, 0.3);
}

.recommended-links .badge {
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 999px;
  background: linear-gradient(145deg, #ffffff, #faf5ff);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.recommended-links .badge:hover {
  background: linear-gradient(135deg, #7c3aed, #d946ef) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(124, 58, 237, 0.5);
}

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

.legal-article-section,
main:has(> .container > article.bg-white) {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef2f9 100%);
}

article :is(h2.h4) {
  color: #312e81;
  border-bottom: 2px solid rgba(99, 102, 241, 0.3);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-sm);
}

article .alert-info {
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  border-color: rgba(14, 165, 233, 0.3);
  color: #0369a1;
  border-radius: 1rem;
}

article .list-group-item {
  background: transparent;
  border-color: rgba(100, 116, 139, 0.12);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

article .list-group-item:hover {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  padding-inline-start: var(--space-sm);
  border-radius: 0.75rem;
}

.posts-grid {
}

.posts-grid .card {
  border: 1px solid transparent;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #ffffff, #f8faff) padding-box,
              linear-gradient(145deg, rgba(99, 102, 241, 0.55), rgba(168, 85, 247, 0.3)) border-box;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.posts-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 64px -20px rgba(99, 102, 241, 0.5), 0 8px 16px rgba(15, 23, 42, 0.05);
  background: linear-gradient(145deg, #ffffff, #eef2ff) padding-box,
              linear-gradient(145deg, rgba(79, 70, 229, 0.85), rgba(217, 70, 239, 0.6)) border-box;
}

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

.posts-grid .card-title a {
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.related-card {
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #ffffff, #fff1f2);
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.06);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -16px rgba(244, 63, 94, 0.4), 0 8px 16px rgba(15, 23, 42, 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: 999px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-share .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(59, 130, 246, 0.4);
}

.social-share [data-copy-url].copied {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.5);
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color: #4c1d95;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

.modal-content {
  border: none;
  border-radius: 1.75rem;
  background: linear-gradient(145deg, #ffffff, #faf5ff);
  box-shadow: 0 32px 72px -20px rgba(124, 58, 237, 0.4), 0 8px 20px rgba(15, 23, 42, 0.08);
}

.tooltip-inner {
  background: linear-gradient(135deg, #312e81, #4c1d95);
  border-radius: 0.75rem;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px -8px rgba(49, 46, 129, 0.6);
}

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