/* Article listing layout — AlphaReaction theme tokens */
.ar-articles-page {
  padding: 40px 0 120px;
}

.ar-articles-hero-lead {
  margin: 12px 0 0;
  max-width: 36rem;
  color: inherit;
  opacity: 0.85;
  font-size: 1rem;
  line-height: 1.55;
}

.ar-articles-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  padding: 16px;
  margin-bottom: 36px;
  background: var(--cp-card, #fff);
  border: 1px solid var(--cp-border, rgba(0, 0, 0, 0.08));
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ar-articles-filters__search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}

.ar-articles-filters__search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
  pointer-events: none;
}

.ar-articles-filters__search input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--cp-border, #e5e7eb);
  border-radius: 10px;
  background: var(--cp-ice, #f8fafc);
  color: #000;
  outline: none;
}

.ar-articles-filters__search input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.ar-articles-filters__search input:focus {
  border-color: var(--cp-aqua, #193cc2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cp-aqua, #193cc2) 18%, transparent);
}

.ar-articles-filters__selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 2 1 420px;
}

.ar-articles-filters__selects select {
  flex: 1 1 140px;
  height: 46px;
  min-width: 130px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--cp-border, #e5e7eb);
  border-radius: 10px;
  background: var(--cp-card, #fff);
  color: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.ar-articles-filters__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ar-articles-filters__submit {
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--cp-aqua, #193cc2);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.ar-articles-filters__submit:hover {
  filter: brightness(1.05);
}

.ar-articles-filters__reset {
  font-size: 0.9rem;
  color: var(--cp-aqua, #193cc2);
  text-decoration: underline;
}

.ar-articles-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  gap: 32px;
  align-items: start;
}

.ar-articles-main {
  min-width: 0;
}

.ar-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ar-section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
}

.ar-section-head__link {
  flex-shrink: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cp-aqua, #193cc2);
}

.ar-section-head--latest {
  flex-wrap: wrap;
}

.ar-latest-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.92rem;
}

.ar-latest-sort select {
  height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--cp-border, #e5e7eb);
  border-radius: 8px;
  background: var(--cp-card, #fff);
  color: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.ar-featured {
  margin-bottom: 42px;
}

.ar-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ar-featured-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cp-card, #fff);
  border: 1px solid var(--cp-border, rgba(0, 0, 0, 0.08));
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ar-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ar-featured-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f7;
}

.ar-featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ar-featured-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cp-aqua, #193cc2) 92%, #000);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ar-featured-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 14px 14px 16px;
}

.ar-featured-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}

.ar-featured-card__title a {
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ar-featured-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.78rem;
  opacity: 0.75;
}

.ar-featured-card__meta i {
  margin-right: 4px;
}

.ar-featured-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 500;
}

.ar-featured-card__avatar,
.ar-article-row__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ar-featured-card__avatar--fallback,
.ar-article-row__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--cp-aqua, #193cc2) 18%, #fff);
  color: var(--cp-aqua, #193cc2);
  font-size: 0.75rem;
  font-weight: 700;
}

.ar-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cp-border, rgba(0, 0, 0, 0.08));
}

.ar-type-tabs__item {
  position: relative;
  padding: 4px 2px 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.7;
}

.ar-type-tabs__item:hover,
.ar-type-tabs__item.is-active {
  opacity: 1;
  color: var(--cp-aqua, #193cc2);
}

.ar-type-tabs__item.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cp-aqua, #193cc2);
  border-radius: 2px;
}

.ar-articles-result-note {
  margin: 0 0 16px;
  font-size: 0.92rem;
  opacity: 0.8;
}

.ar-latest-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ar-article-row {
  position: relative;
  background: var(--cp-card, #fff);
  border: 1px solid var(--cp-border, rgba(0, 0, 0, 0.08));
  border-radius: 14px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ar-article-row:hover {
  border-color: color-mix(in srgb, var(--cp-aqua, #193cc2) 35%, var(--cp-border, #e5e7eb));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ar-article-row__link {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr) minmax(140px, 0.32fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.ar-article-row__thumb {
  aspect-ratio: 16 / 11;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f7;
}

.ar-article-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ar-article-row__type {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cp-aqua, #193cc2);
}

.ar-article-row__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ar-article-row__excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ar-article-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-right: 28px;
  font-size: 0.84rem;
}

.ar-article-row__meta-item {
  opacity: 0.75;
}

.ar-article-row__meta-item i {
  margin-right: 4px;
}

.ar-article-row__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.ar-article-row__bookmark {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ar-article-row__bookmark:hover,
.ar-article-row__bookmark[aria-pressed="true"] {
  opacity: 1;
  color: var(--cp-aqua, #193cc2);
  background: color-mix(in srgb, var(--cp-aqua, #193cc2) 10%, transparent);
}

.ar-articles-empty,
.ar-articles-empty-inline {
  padding: 28px 18px;
  text-align: center;
  border: 1px dashed var(--cp-border, #d1d5db);
  border-radius: 12px;
}

.ar-articles-empty h3 {
  margin: 0 0 8px;
}

.ar-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.ar-load-more {
  min-width: min(100%, 320px);
  height: 48px;
  padding: 0 28px;
  border: 1px solid var(--cp-border, #e5e7eb);
  border-radius: 999px;
  background: var(--cp-card, #fff);
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ar-load-more:hover:not(:disabled) {
  border-color: var(--cp-aqua, #193cc2);
  color: var(--cp-aqua, #193cc2);
}

.ar-load-more:disabled {
  opacity: 0.55;
  cursor: default;
}

.ar-articles-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 100px;
}

.ar-side-card {
  padding: 18px;
  background: var(--cp-card, #fff);
  border: 1px solid var(--cp-border, rgba(0, 0, 0, 0.08));
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.ar-side-card__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  background-image: linear-gradient(
    90deg,
    #ff4d6d,
    #ff9f1c,
    #ffd60a,
    #80ed99,
    #4cc9f0,
    #7b2cbf,
    #ff4d6d
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: ar-side-title-multicolor 6s linear infinite;
}

@keyframes ar-side-title-multicolor {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ar-side-card__title {
    animation: none;
    background-position: 0% 50%;
  }
}

.ar-side-card__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cp-aqua, #193cc2);
}

.ar-side-card__empty {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

.ar-side-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ar-side-categories li + li {
  margin-top: 4px;
}

.ar-side-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ar-side-categories a:hover,
.ar-side-categories a.is-active {
  background: color-mix(in srgb, var(--cp-aqua, #193cc2) 10%, transparent);
  color: var(--cp-aqua, #193cc2);
}

.ar-side-categories__count {
  flex-shrink: 0;
  font-size: 0.84rem;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.ar-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ar-side-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--cp-border, #e5e7eb);
  background: var(--cp-ice, #f8fafc);
  color: #000;
  font-size: 0.8rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ar-side-tag:hover,
.ar-side-tag.is-active {
  border-color: var(--cp-aqua, #193cc2);
  color: var(--cp-aqua, #193cc2);
  background: color-mix(in srgb, var(--cp-aqua, #193cc2) 8%, #fff);
}

.ar-side-card--tabs {
  padding-top: 12px;
}

.ar-side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cp-ice, #f8fafc) 80%, #fff);
}

.ar-side-tabs__btn {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #000;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 8px;
  cursor: pointer;
  opacity: 0.7;
}

.ar-side-tabs__btn.is-active {
  opacity: 1;
  background: var(--cp-card, #fff);
  color: var(--cp-aqua, #193cc2);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.ar-side-tab-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
}

.ar-side-tab-panel.is-active {
  display: flex;
}

.ar-side-article {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.ar-side-article:hover .ar-side-article__title {
  color: var(--cp-aqua, #193cc2);
}

.ar-side-article__thumb {
  width: 80px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f7;
}

.ar-side-article__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ar-side-article__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.ar-side-article__meta {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  opacity: 0.7;
}

.ar-side-info-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.9rem;
}

.ar-side-info-list__row span:last-child {
  text-align: right;
  opacity: 0.9;
  font-weight: 500;
  color: #fff;
}

.ar-side-card--info,
.ar-side-card--author,
.ar-side-card--info .ar-side-categories a,
.ar-side-card--info .ar-side-categories__count {
  color: #fff;
}

.ar-side-card--info .ar-side-categories a:hover {
  color: #fff;
}

.ar-side-author__name {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.ar-side-author__bio,
.ar-side-author__meta {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #fff;
  opacity: 0.9;
}

.ar-side-author__meta {
  margin-top: 10px;
  font-size: 0.84rem;
}

.ar-article-single-sidebar.ar-articles-sidebar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .blog-single-page-area.cp-blog-single > .container > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .blog-single-page-area.cp-blog-single > .container > .row > [class*="col-lg-8"] {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .blog-single-page-area.cp-blog-single > .container > .row > [class*="col-lg-4"] {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

.blog-single-page-area.cp-blog-single .blog-single-text-wrap,
.blog-single-page-area.cp-blog-single .blog-single-text-wrap h2,
.blog-single-page-area.cp-blog-single .blog-single-text-wrap p,
.blog-single-page-area.cp-blog-single .blog-single-text-wrap li {
  color: #fff;
}

.blog-single-page-area.cp-blog-single .blog-single-text-wrap {
  border-bottom: 1px dashed color-mix(in srgb, var(--cp-aqua) 28%, var(--cp-border));
  text-align: justify;
}

.blog-single-page-area.cp-blog-single .tag-share .share {
  border-top: 1px dashed color-mix(in srgb, var(--cp-aqua) 28%, var(--cp-border));
  margin-top: 20px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  width: 100%;
}

.blog-single-page-area.cp-blog-single .tag-share .share > strong {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  padding-top: 25px;
}

.blog-single-page-area.cp-blog-single .comment-respond-inner,
.blog-single-page-area.cp-blog-single .comment-respond-inner h3,
.blog-single-page-area.cp-blog-single .comment-respond-inner label,
.blog-single-page-area.cp-blog-single .comment-respond-inner p,
.blog-single-page-area.cp-blog-single .comment-respond-inner span,
.blog-single-page-area.cp-blog-single .comment-respond-inner > p,
.blog-single-page-area.cp-blog-single .comment-respond-inner .comment-form label {
  color: #fff;
}

.ar-comment-open-btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #1f6bff 0%, #7c3aed 55%, #db2777 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.ar-comment-open-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.42);
}

.ar-comment-alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.ar-comment-alert--success {
  background: rgba(22, 163, 74, 0.16);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.ar-comment-alert--error {
  background: rgba(220, 38, 38, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.ar-article-comment-modal {
  z-index: 10050;
}

body.modal-open .modal-backdrop,
body.modal-open .modal-backdrop.show,
#arCommentModalFallbackBackdrop {
  z-index: 10040;
  background-color: rgba(5, 8, 16, 0.78) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 1 !important;
}

.ar-comment-dialog {
  max-width: 820px;
  width: min(820px, 92vw);
  margin: 1.25rem auto;
}

.ar-comment-modal.modal-content {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(16, 24, 44, 0.96), rgba(10, 14, 26, 0.98)) padding-box,
    linear-gradient(135deg, rgba(56, 189, 248, 0.85), rgba(124, 58, 237, 0.9), rgba(236, 72, 153, 0.85)) border-box;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.08),
    0 0 48px rgba(59, 130, 246, 0.22),
    0 0 90px rgba(168, 85, 247, 0.16),
    0 28px 60px rgba(0, 0, 0, 0.45);
  color: #e8eefc;
}

.ar-comment-modal__glow {
  pointer-events: none;
  position: absolute;
  inset: -20% auto auto 50%;
  width: 70%;
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.28), transparent 70%);
  filter: blur(18px);
  opacity: 0.9;
}

.ar-comment-modal__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 8px;
}

.ar-comment-modal__intro {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.ar-comment-modal__icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(17, 28, 52, 0.9);
  border: 1px solid rgba(129, 140, 248, 0.45);
  box-shadow:
    0 0 18px rgba(59, 130, 246, 0.35),
    inset 0 0 18px rgba(124, 58, 237, 0.18);
  color: #60a5fa;
  font-size: 1.25rem;
}

.ar-comment-modal__titles {
  min-width: 0;
}

.ar-comment-modal__title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fbff;
  line-height: 1.2;
}

.ar-comment-modal__title span {
  background: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 48%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ar-comment-modal__lead {
  margin: 0;
  color: #9db0d0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ar-comment-modal__note {
  margin: 4px 0 0;
  color: #7f93b8;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ar-comment-modal__close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #dbe7ff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ar-comment-modal__close:hover {
  color: #fff;
  border-color: rgba(129, 140, 248, 0.7);
  background: rgba(30, 41, 72, 0.9);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}

.ar-comment-modal__form {
  position: relative;
}

.ar-comment-modal__body {
  padding: 12px 28px 8px;
}

.ar-comment-field {
  margin-bottom: 18px;
}

.ar-comment-field__label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5ff;
}

.ar-comment-req {
  color: #f87171;
  font-weight: 700;
}

.ar-comment-field__control {
  position: relative;
}

.ar-comment-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8ea0c2;
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 1;
}

.ar-comment-field__control--textarea .ar-comment-field__icon {
  top: 16px;
  transform: none;
}

.ar-comment-field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px 12px 42px;
  border-radius: 10px;
  border: 1px solid #1a2a45;
  background: rgba(8, 14, 28, 0.78);
  color: #f8fbff;
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ar-comment-field__input::placeholder {
  color: #7b8eaf;
}

.ar-comment-field__textarea {
  min-height: 160px;
  height: 160px;
  padding-top: 14px;
  resize: vertical;
}

.ar-comment-field__input:focus {
  border-color: rgba(99, 102, 241, 0.85);
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.18),
    0 0 22px rgba(139, 92, 246, 0.22);
  background: rgba(10, 18, 36, 0.92);
}

.ar-comment-field__input.is-invalid {
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.ar-comment-field__hint {
  margin: 8px 0 0;
  color: #7f93b8;
  font-size: 0.8rem;
  line-height: 1.4;
}

.ar-comment-field__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.ar-comment-counter {
  margin-left: auto;
  color: #7f93b8;
  font-size: 0.78rem;
  white-space: nowrap;
}

.ar-comment-modal .invalid-feedback {
  display: block;
  color: #fca5a5;
  font-size: 0.8rem;
  margin-top: 6px;
}

.ar-comment-modal__divider {
  height: 1px;
  margin: 6px 28px 0;
  background: linear-gradient(90deg, transparent, rgba(90, 110, 150, 0.45), transparent);
}

.ar-comment-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px 26px;
}

.ar-comment-modal__notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 360px;
  min-width: 0;
}

.ar-comment-modal__notice-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.55);
  background: rgba(30, 27, 75, 0.55);
  color: #818cf8;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.35);
  font-size: 0.78rem;
  margin-top: 1px;
}

.ar-comment-modal__notice p {
  margin: 0;
  color: #8ea2c5;
  font-size: 0.8rem;
  line-height: 1.45;
}

.ar-comment-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.ar-comment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ar-comment-btn--ghost {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(12, 18, 34, 0.72);
  color: #e8eefc;
}

.ar-comment-btn--ghost:hover {
  border-color: rgba(147, 197, 253, 0.55);
  background: rgba(20, 30, 54, 0.9);
}

.ar-comment-btn--primary {
  border: 0;
  color: #fff;
  background: linear-gradient(105deg, #2563eb 0%, #7c3aed 48%, #db2777 100%);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.38);
}

.ar-comment-btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 34px rgba(168, 85, 247, 0.45);
}

.ar-comment-btn--primary:disabled,
.ar-comment-btn--primary[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.ar-comment-btn--primary i {
  font-size: 0.95rem;
  transform: translateY(1px);
}

@media (max-width: 991.98px) {
  .ar-comment-dialog {
    width: min(900px, 90vw);
  }
}

@media (max-width: 767.98px) {
  .ar-comment-dialog {
    width: min(900px, 94vw);
    margin: 0.75rem auto;
  }

  .ar-comment-modal__header,
  .ar-comment-modal__body,
  .ar-comment-modal__footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ar-comment-modal__header {
    padding-top: 18px;
  }

  .ar-comment-modal__divider {
    margin-left: 16px;
    margin-right: 16px;
  }

  .ar-comment-modal__intro {
    gap: 12px;
  }

  .ar-comment-modal__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .ar-comment-modal__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-bottom: 18px;
  }

  .ar-comment-modal__notice {
    max-width: none;
  }

  .ar-comment-modal__actions {
    width: 100%;
  }

  .ar-comment-btn {
    flex: 1 1 auto;
  }

  .ar-comment-btn--primary {
    flex: 1.4 1 auto;
  }

  .ar-comment-field__textarea {
    min-height: 140px;
    height: 140px;
  }
}

.blog-single-page-area.cp-blog-single .comments-area .comment-area p {
  color: inherit;
}

/* ── Public article comments list ── */
.blog-single-page-area.cp-blog-single .comments-area.ar-public-comments,
.ar-public-comments {
  --apc-text: #f5f7ff;
  --apc-muted: #9db0d0;
  --apc-soft: #8ea2c5;
  margin: 2.5rem 0 1.75rem !important;
}

.blog-single-page-area.cp-blog-single .ar-public-comments p,
.blog-single-page-area.cp-blog-single .ar-public-comments h3,
.blog-single-page-area.cp-blog-single .ar-public-comments h4 {
  color: inherit;
}

.ar-public-comments__header {
  margin-bottom: 1.1rem;
}

.ar-public-comments__heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ar-public-comments__icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(10, 18, 36, 0.92), rgba(12, 24, 48, 0.95)) padding-box,
    linear-gradient(135deg, #38bdf8, #8b5cf6, #ec4899) border-box;
  color: #c4b5fd;
  font-size: 1.35rem;
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.28);
}

.ar-public-comments__title {
  margin: 0 0 8px !important;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.15 !important;
  color: #fff !important;
  text-transform: none !important;
}

.ar-public-comments__count-num {
  background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 40%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: 0.28em;
}

.ar-public-comments__count-label {
  color: #fff;
}

.ar-public-comments__lead {
  margin: 0 !important;
  color: var(--apc-muted) !important;
  font-size: clamp(0.98rem, 1.4vw, 1.15rem) !important;
  font-weight: 500;
  line-height: 1.55 !important;
}

.ar-public-comments__toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.35rem;
}

.ar-public-comments__rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.45), rgba(139, 92, 246, 0.35), rgba(22, 41, 69, 0.2));
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.ar-public-comments__sort {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ar-public-comments__sort-label {
  color: var(--apc-muted);
  font-size: 0.92rem;
}

.ar-public-comments__sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
}

.ar-public-comments__sort-btn span {
  background: linear-gradient(90deg, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ar-public-comments__sort-btn i {
  color: #c084fc;
  font-size: 0.75rem;
}

.ar-public-comments__sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 140px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(8, 16, 32, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 18px rgba(99, 102, 241, 0.18);
}

.ar-public-comments__sort-menu li {
  padding: 8px 10px;
  border-radius: 8px;
  color: #dbe7ff;
  font-size: 0.88rem;
  cursor: pointer;
}

.ar-public-comments__sort-menu li:hover,
.ar-public-comments__sort-menu li[aria-selected="true"] {
  background: rgba(59, 130, 246, 0.16);
  color: #fff;
}

.ar-public-comments__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 0 !important;
}

.blog-single-page-area .blog-single-wrap .ar-public-comments li > div,
.blog-single-page-area .blog-single-wrap .ar-public-comments li > article {
  border-bottom: 0 !important;
  padding: 20px !important;
}

.ar-public-comment__card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 22px 18px !important;
  border-radius: 16px;
  border: 1px solid transparent !important;
  background:
    linear-gradient(160deg, rgba(10, 18, 34, 0.94), rgba(7, 14, 28, 0.96)) padding-box,
    linear-gradient(120deg, rgba(56, 189, 248, 0.9), rgba(34, 211, 238, 0.55), rgba(139, 92, 246, 0.85), rgba(236, 72, 153, 0.8)) border-box !important;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.05),
    0 0 28px rgba(59, 130, 246, 0.12),
    0 0 42px rgba(168, 85, 247, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: box-shadow 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.ar-public-comment__card:hover {
  filter: brightness(1.05);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.12),
    0 0 36px rgba(59, 130, 246, 0.2),
    0 0 54px rgba(168, 85, 247, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ar-public-comment__avatar {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.28), transparent 40%),
    linear-gradient(145deg, #2563eb 0%, #7c3aed 48%, #22d3ee 100%);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.45);
}

.ar-public-comment__body {
  min-width: 0;
}

.ar-public-comment__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ar-public-comment__name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.ar-public-comment__name {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
}

.ar-public-comment__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(8, 20, 40, 0.7);
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.18);
}

.ar-public-comment__date {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--apc-muted) !important;
  font-size: 0.95rem !important;
  font-weight: 500;
}

.ar-public-comment__date i {
  opacity: 0.75;
  font-size: 0.85rem;
}

.ar-public-comment__menu {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c4b5fd;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ar-public-comment__menu:hover {
  background: rgba(15, 23, 42, 0.75);
  color: #e9d5ff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
}

.ar-public-comment__text {
  margin: 0 0 16px;
}

.ar-public-comment__text p {
  margin: 0 !important;
  color: #f1f5ff !important;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem) !important;
  font-weight: 500;
  line-height: 1.65 !important;
  white-space: pre-wrap;
}

.ar-public-comment__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ar-public-comment__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.ar-public-comment__action--like {
  color: #7dd3fc;
}

.ar-public-comment__action--like:hover,
.ar-public-comment__action--like.is-liked {
  color: #22d3ee;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

.ar-public-comment__action--like.is-liked {
  color: #f472b6;
  text-shadow: 0 0 12px rgba(244, 114, 182, 0.45);
}

.ar-public-comment__action--reply {
  color: #c4b5fd;
}

.ar-public-comment__action--reply:hover {
  color: #e879f9;
  text-shadow: 0 0 12px rgba(232, 121, 249, 0.4);
}

.ar-public-comment__sep {
  width: 1px;
  height: 16px;
  background: rgba(148, 163, 184, 0.35);
}

@media (max-width: 767.98px) {
  .ar-public-comments__heading {
    gap: 12px;
  }

  .ar-public-comments__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.15rem;
  }

  .ar-public-comments__toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ar-public-comments__sort {
    justify-content: flex-end;
  }

  .ar-public-comment__card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 16px !important;
  }

  .ar-public-comment__avatar {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
  }

  .ar-public-comment__name {
    font-size: 1.15rem !important;
  }

  .ar-public-comment__date {
    font-size: 0.86rem !important;
  }

  .ar-public-comment__text p {
    font-size: 1rem !important;
  }
}

.blog-single-page-area.cp-blog-single .cp-blog-single-heading,
.blog-single-page-area.cp-blog-single .blog-single-text-wrap h1,
.blog-single-page-area.cp-blog-single .blog-single-text-wrap h2,
.blog-single-page-area.cp-blog-single .blog-single-text-wrap h3,
.blog-single-page-area.cp-blog-single .blog-single-text-wrap h4,
.blog-single-page-area.cp-blog-single .blog-single-text-wrap h5,
.blog-single-page-area.cp-blog-single .blog-single-text-wrap h6,
.blog-single-page-area.cp-blog-single .blog-single-text-wrap h2.cp-blog-single-heading {
  font-size: 20px;
}

@media (max-width: 1199.98px) {
  .ar-articles-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.85fr);
    gap: 24px;
  }

  .ar-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .ar-articles-layout {
    grid-template-columns: 1fr;
  }

  .ar-articles-sidebar {
    position: static;
  }

  .ar-article-row__link {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .ar-article-row__meta {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding-right: 0;
    gap: 10px 16px;
  }
}

@media (max-width: 767.98px) {
  .ar-articles-page {
    padding: 24px 0 80px;
  }

  .ar-articles-filters {
    padding: 12px;
  }

  .ar-articles-filters__actions {
    width: 100%;
  }

  .ar-articles-filters__submit {
    width: 100%;
  }

  .ar-featured-grid {
    grid-template-columns: 1fr;
  }

  .ar-article-row__link {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ar-article-row__meta {
    grid-column: auto;
  }

  .ar-article-row__bookmark {
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.85);
  }

  .ar-type-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .ar-type-tabs__item {
    white-space: nowrap;
  }
}
