:root {
  --color-primary: #1D3557;
  --color-primary-dark: #14253D;
  --color-primary-darker: #0E1B2C;
  --color-accent: #E63946;
  --color-bg: #F0F4F8;
  --color-bg-soft: #E8F0FE;
  --color-bg-muted: #A8DADC;
  --color-border: #457B9D;
  --color-border-soft: #A8DADC;
  --color-text: #1D3557;
  --color-text-light: #6C757D;
  --color-success: #2A9D8F;
  --color-warning: #F4A261;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --radius-sm: 0;
  --radius-lg: 0;
  --radius-pill: 0;
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

.author-profile {
  background: #1D3557;
}

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

.author-profile img.rounded-circle {
  border: 4px solid #F0F4F8;
  box-shadow: none;
}

.author-profile .badge.bg-light {
  background: #A8DADC !important;
  color: #1D3557 !important;
  transition: all var(--transition-fast);
  border-radius: 0;
}

.author-profile .badge.bg-light:hover {
  background: #E63946 !important;
  color: #F0F4F8 !important;
}

.author-box {
  border-inline-start: 4px solid #F4A261;
  transition: all var(--transition-base);
  background: #E63946;
}

.author-box:hover {
  box-shadow: none;
}

.author-box img {
  transition: transform var(--transition-fast);
}

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

.author-posts-list .card {
  transition: all var(--transition-base);
  overflow: hidden;
  border-radius: 0;
}

.author-posts-list .card:hover {
  transform: translateY(-5px);
  box-shadow: none;
}

.author-posts-list .card-img-top {
  transition: transform var(--transition-slow);
}

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

.main-authors-section {
  background: #2A9D8F;
}

.author-card {
  transition: all var(--transition-base);
  border: 1px solid #F0F4F8;
  border-radius: 0;
}

.author-card:hover {
  transform: translateY(-8px);
  box-shadow: none;
}

.author-card img.rounded-circle {
  border: 3px solid #F0F4F8;
  transition: border-color var(--transition-base);
}

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

.faq-section {
  background: #F4A261;
}

.faq-section h2 {
  font-size: 1.75rem;
  color: #1D3557;
}

.faq-list .faq-item {
  border: 1px solid #457B9D;
  transition: all var(--transition-base);
  cursor: pointer;
  border-radius: 0;
}

.faq-list .faq-item:hover {
  box-shadow: none !important;
  transform: translateY(-2px);
}

.faq-list .faq-item[open] {
  border-color: #E63946;
  background: #F0F4F8;
}

.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: #1D3557;
  transition: transform var(--transition-base);
  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: #1D3557;
}

.faq-list .faq-answer {
  font-size: 0.95rem;
  line-height: 1.8;
  animation: faqFadeIn var(--transition-base);
}

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

.sidebar-widgets .card {
  transition: all var(--transition-base);
  border-radius: 0;
}

.sidebar-widgets .card:hover {
  box-shadow: none;
}

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

.sidebar-widgets .badge {
  transition: all var(--transition-fast);
  cursor: pointer;
  border-radius: 0;
}

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

.pagination .page-link {
  color: #1D3557;
  border-color: #457B9D;
  transition: all var(--transition-fast);
  border-radius: 0;
}

.pagination .page-link:hover {
  background-color: #A8DADC;
  color: #14253D;
  border-color: #1D3557;
}

.pagination .page-item.active .page-link {
  background-color: #1D3557;
  border-color: #1D3557;
  color: #F0F4F8;
}

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

.search-box-section {
  background: #457B9D;
}

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

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

.search-box-section .badge {
  transition: all var(--transition-fast);
  border-radius: 0;
}

.search-box-section .badge:hover {
  background-color: #E63946 !important;
  color: #F0F4F8 !important;
  border-color: #E63946 !important;
}

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

.search-result {
  transition: all var(--transition-base);
  border-radius: 0;
}

.search-result:hover {
  transform: translateX(3px);
  box-shadow: none;
}

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

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

.error-page h1 {
  background: #E63946;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  line-height: 1;
  text-shadow: none;
}

.recommended-links .badge {
  transition: all var(--transition-fast);
  border: 1px solid #457B9D;
  border-radius: 0;
}

.recommended-links .badge:hover {
  background-color: #E63946 !important;
  color: #F0F4F8 !important;
  border-color: #E63946 !important;
  transform: translateY(-2px);
  box-shadow: none;
}

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

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

article :is(h2.h4) {
  color: #14253D;
  border-bottom: 2px solid #457B9D;
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-sm);
}

article .alert-info {
  background-color: #A8DADC;
  border-color: #457B9D;
  color: #14253D;
}

article .list-group-item {
  background: transparent;
  transition: all var(--transition-fast);
}

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

.posts-grid .card {
  transition: all var(--transition-base);
  border: 1px solid #A8DADC;
  overflow: hidden;
  border-radius: 0;
}

.posts-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: none;
  border-color: #1D3557;
}

.posts-grid .card-img-top {
  transition: transform var(--transition-slow);
}

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

.posts-grid .card-title a {
  transition: color var(--transition-fast);
}

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

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

.related-card {
  transition: all var(--transition-base);
  border-radius: 0;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: none;
}

.related-card img {
  transition: transform var(--transition-slow);
}

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

.social-share .btn {
  min-width: 40px;
  transition: all var(--transition-fast);
  border-radius: 0;
}

.social-share .btn:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

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

.accordion-button:not(.collapsed) {
  background-color: #A8DADC;
  color: #14253D;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.modal-content {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

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