.author-profile {
  background: radial-gradient(circle at 85% 12%, rgba(196, 69, 54, 0.07), transparent 34%), linear-gradient(135deg, #fffaf3 0%, #ede4d2 100%);
}

.author-profile h1 {
  color: #5d271d;
}

.author-profile img.rounded-circle {
  border: 4px solid #fffaf1;
  box-shadow: 0 2px 4px rgba(35, 22, 16, 0.06), 0 14px 30px rgba(35, 22, 16, 0.11);
}

.author-profile .badge.bg-light {
  background: #e8deca !important;
  color: #32281e !important;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.author-box {
  border-inline-start: 4px solid #c44536;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.author-box:hover {
  box-shadow: 0 3px 6px rgba(35, 22, 16, 0.05), 0 18px 36px rgba(35, 22, 16, 0.1);
}

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

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

.author-posts-list .card {
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.author-posts-list .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(35, 22, 16, 0.06), 0 24px 50px rgba(35, 22, 16, 0.12);
}

.author-posts-list .card-img-top {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.main-authors-section {
  background: linear-gradient(140deg, #f7f1e6 0%, #e7dcc7 60%, #f3ebde 100%);
}

.author-card {
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid #dccfb5;
}

.author-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 14px rgba(35, 22, 16, 0.07), 0 30px 60px rgba(35, 22, 16, 0.13);
}

.author-card img.rounded-circle {
  border: 3px solid #e6dbc7;
  transition: border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.faq-section {
  background: radial-gradient(circle at 10% 90%, rgba(196, 69, 54, 0.05), transparent 28%), linear-gradient(180deg, #e8deca 0%, #f7f1e6 46%, #fffaf3 100%);
}

.faq-section h2 {
  font-size: 1.75rem;
  color: #5d271d;
}

.faq-list .faq-item {
  border: 1px solid rgba(35, 22, 16, 0.08);
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.faq-list .faq-item:hover {
  box-shadow: 0 8px 30px rgba(35, 22, 16, 0.09) !important;
  transform: translateY(-2px);
}

.faq-list .faq-item[open] {
  border-color: rgba(196, 69, 54, 0.2);
  background: linear-gradient(90deg, #f8e8dd 0%, #fffdf8 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: #c44536;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  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: #c44536;
}

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

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-widgets .card {
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-widgets .card:hover {
  box-shadow: 0 3px 6px rgba(35, 22, 16, 0.05), 0 16px 34px rgba(35, 22, 16, 0.09);
}

.sidebar-widgets h5 {
  color: #5d271d;
}

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

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

.pagination .page-link {
  color: #b23b2e;
  border-color: #d6c7b0;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pagination .page-link:hover {
  background-color: #e9deca;
  color: #872e23;
  border-color: #c44536;
}

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

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

.search-box-section {
  background: linear-gradient(130deg, #f7f0e5 0%, #ede2cf 100%);
}

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

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

.search-box-section .badge {
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.search-result {
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-result:hover {
  transform: translateX(3px);
  box-shadow: 0 3px 6px rgba(35, 22, 16, 0.05), 0 14px 30px rgba(35, 22, 16, 0.09);
}

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

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

.error-page h1 {
  background: linear-gradient(135deg, #c44536 0%, #762b20 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  line-height: 1;
  text-shadow: 0 6px 28px rgba(196, 69, 54, 0.25);
}

.recommended-links .badge {
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid #d4c4ac;
}

.recommended-links .badge:hover {
  background-color: #c44536 !important;
  color: #fff !important;
  border-color: #c44536 !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(35, 22, 16, 0.08), 0 8px 18px rgba(196, 69, 54, 0.14);
}

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

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

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

article .alert-info {
  background-color: #f9e9df;
  border-color: #d9b7a3;
  color: #713027;
}

article .list-group-item {
  background: transparent;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.posts-grid {
  /* Container nếu cần */
}

.posts-grid .card {
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid #ddd0b9;
  overflow: hidden;
}

.posts-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(35, 22, 16, 0.06), 0 25px 52px rgba(35, 22, 16, 0.12);
  border-color: #c44536;
}

.posts-grid .card-img-top {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

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

.related-card {
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 3px 6px rgba(35, 22, 16, 0.05), 0 16px 34px rgba(35, 22, 16, 0.1);
}

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

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

.social-share .btn {
  min-width: 40px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-share .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(35, 22, 16, 0.08), 0 10px 22px rgba(35, 22, 16, 0.1);
}

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

.accordion-button:not(.collapsed) {
  background-color: #f6e3d8;
  color: #712d22;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.15rem rgba(196, 69, 54, 0.2);
}

.modal-content {
  border: none;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(35, 22, 16, 0.08), 0 32px 70px rgba(35, 22, 16, 0.16);
}

.tooltip-inner {
  background-color: #4a2019;
  border-radius: 6px;
  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;
  }
}