:root {
  --sidebar-bg: #252e3a;
  --main-bg: #f8f9fa;
  --accent-glow: #6c63ff;
  --accent-glow-rgb: 108, 99, 255;
  --card-bg: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --border-light: rgba(108, 99, 255, 0.15);
  --shadow-glow-sm: 0 0 12px rgba(108, 99, 255, 0.2);
  --shadow-glow-md: 0 0 24px rgba(108, 99, 255, 0.3);
  --shadow-glow-lg: 0 0 36px rgba(108, 99, 255, 0.4);
  --shadow-glow-hover: 0 0 40px rgba(108, 99, 255, 0.5);
  --radius-modern: 12px;
  --radius-pill: 50px;
  --transition-glow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.author-profile h1 {
  color: #2d2b55;
}

.author-profile img.rounded-circle {
  border: 4px solid #e0d6ff;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.25);
}

.author-profile .badge.bg-light {
  background: rgba(108, 99, 255, 0.08) !important;
  color: #4a4a6a !important;
  transition: all 0.3s ease;
}

.author-profile .badge.bg-light:hover {
  background: linear-gradient(135deg, #6c63ff, #5a52d5) !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(108, 99, 255, 0.4);
}

.author-box {
  border-inline-start: 4px solid #6c63ff;
  transition: all 0.3s ease;
}

.author-box:hover {
  box-shadow: 0 0 28px rgba(108, 99, 255, 0.25);
}

.author-box img {
  transition: transform 0.3s ease;
}

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

.author-posts-list .card {
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(108, 99, 255, 0.1);
}

.author-posts-list .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 32px rgba(108, 99, 255, 0.3);
  border-color: #6c63ff;
}

.author-posts-list .card-img-top {
  transition: transform 0.5s ease;
}

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

.main-authors-section {
  background: linear-gradient(180deg, #f0e6ff 0%, #f8f9fa 100%);
}

.author-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(108, 99, 255, 0.1);
}

.author-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.35);
  border-color: #6c63ff;
}

.author-card img.rounded-circle {
  border: 3px solid rgba(108, 99, 255, 0.2);
  transition: border-color 0.3s ease;
}

.author-card:hover img.rounded-circle {
  border-color: #6c63ff;
  box-shadow: 0 0 16px rgba(108, 99, 255, 0.4);
}

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

.faq-section h2 {
  font-size: 1.75rem;
  color: #2d2b55;
}

.faq-list .faq-item {
  border: 1px solid rgba(108, 99, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 12px;
}

.faq-list .faq-item:hover {
  box-shadow: 0 0 24px rgba(108, 99, 255, 0.2) !important;
  transform: translateY(-2px);
  border-color: #6c63ff;
}

.faq-list .faq-item[open] {
  border-color: rgba(108, 99, 255, 0.35);
  background: linear-gradient(90deg, #f0e6ff 0%, #ffffff 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: #6c63ff;
  transition: transform 0.3s 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: #6c63ff;
}

.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.3s ease;
  border: 1px solid rgba(108, 99, 255, 0.1);
}

.sidebar-widgets .card:hover {
  box-shadow: 0 0 24px rgba(108, 99, 255, 0.2);
  border-color: #6c63ff;
}

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

.sidebar-widgets .badge {
  transition: all 0.3s ease;
  cursor: pointer;
}

.sidebar-widgets .badge:hover {
  background: linear-gradient(135deg, #6c63ff, #5a52d5) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.4);
}

.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: #6c63ff !important;
}

.pagination .page-link {
  color: #6c63ff;
  border-color: rgba(108, 99, 255, 0.2);
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background-color: rgba(108, 99, 255, 0.08);
  color: #5a52d5;
  border-color: #6c63ff;
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.3);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #6c63ff, #5a52d5);
  border-color: #6c63ff;
  color: #fff;
  box-shadow: 0 0 16px rgba(108, 99, 255, 0.4);
}

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

.search-box-section {
  background: linear-gradient(135deg, #f0e6ff 0%, #f8f9fa 100%);
}

.search-box-section .input-group-lg .form-control {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  padding-inline-start: 1.5rem;
  border: 1px solid rgba(108, 99, 255, 0.2);
}

.search-box-section .input-group-lg .btn {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: linear-gradient(135deg, #6c63ff, #5a52d5);
  border: 1px solid #6c63ff;
  color: #fff;
}

.search-box-section .input-group-lg .btn:hover {
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
}

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

.search-box-section .badge:hover {
  background: linear-gradient(135deg, #6c63ff, #5a52d5) !important;
  color: #fff !important;
  border-color: #6c63ff !important;
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.4);
}

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

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

.search-result:hover {
  transform: translateX(3px);
  box-shadow: 0 0 24px rgba(108, 99, 255, 0.2);
}

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

.search-result mark {
  background: linear-gradient(135deg, #fef08a, #fde68a);
  padding-inline: 2px;
  border-radius: 4px;
  font-weight: 600;
}

.error-page h1 {
  background: linear-gradient(135deg, #6c63ff, #5a52d5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  line-height: 1;
  text-shadow: 0 0 40px rgba(108, 99, 255, 0.3);
}

.recommended-links .badge {
  transition: all 0.3s ease;
  border: 1px solid rgba(108, 99, 255, 0.2);
}

.recommended-links .badge:hover {
  background: linear-gradient(135deg, #6c63ff, #5a52d5) !important;
  color: #fff !important;
  border-color: #6c63ff !important;
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(108, 99, 255, 0.4);
}

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

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

article :is(h2.h4) {
  color: #5a52d5;
  border-bottom: 2px solid rgba(108, 99, 255, 0.2);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-sm);
}

article .alert-info {
  background: linear-gradient(135deg, #f0e6ff 0%, #e8f4f8 100%);
  border-color: rgba(108, 99, 255, 0.3);
  color: #5a52d5;
}

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

article .list-group-item:hover {
  background: rgba(108, 99, 255, 0.05);
  padding-inline-start: var(--space-sm);
}

.posts-grid .card {
  transition: all 0.3s ease;
  border: 1px solid rgba(108, 99, 255, 0.1);
  overflow: hidden;
}

.posts-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 32px rgba(108, 99, 255, 0.3);
  border-color: #6c63ff;
}

.posts-grid .card-img-top {
  transition: transform 0.5s ease;
}

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

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

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

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

.related-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(108, 99, 255, 0.1);
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 28px rgba(108, 99, 255, 0.25);
  border-color: #6c63ff;
}

.related-card img {
  transition: transform 0.5s ease;
}

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

.social-share .btn {
  min-width: 40px;
  transition: all 0.3s ease;
}

.social-share .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(108, 99, 255, 0.3);
}

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

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #f0e6ff 0%, #e8f4f8 100%);
  color: #5a52d5;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(108, 99, 255, 0.25);
}

.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 0 48px rgba(108, 99, 255, 0.3);
}

.tooltip-inner {
  background: linear-gradient(135deg, #2d2b55, #1a1a2e);
  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: var(--space-sm);
  }
  .pagination .page-link {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
}