/* Public SSR News & Article Pages (aligned with bentengbyte design system) */
.bt-news-hero {
  background-image: url(/assets/img/shape/banner-14.jpg);
  padding: 150px 0 88px !important;
}

.bt-news-hero h1 {
  font-size: 38px;
  line-height: 1.3;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.bt-news-main {
  padding: 68px 0 96px;
  background: #f8f9fc;
  min-height: 55vh;
}

.bt-news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.bt-cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bt-cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 0 !important;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #364057;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.bt-cat-chip:hover,
.bt-cat-chip.is-active {
  background: #5846d8;
  border-color: #5846d8;
  color: #ffffff;
}

.bt-news-search {
  display: flex;
  align-items: stretch;
  max-width: 340px;
  width: 100%;
}

.bt-news-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-right: 0;
  background: #ffffff;
  color: #101628;
  font-size: 14px;
  outline: none;
}

.bt-news-search input:focus {
  border-color: #5846d8;
}

.bt-news-search button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  background: #5846d8;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.bt-news-search button:hover {
  background: #4635b8;
}

.bt-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.bt-news-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px -24px rgba(15, 23, 42, 0.25);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.bt-news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 70, 216, 0.45);
  box-shadow: 0 22px 44px -24px rgba(88, 70, 216, 0.28);
}

.bt-news-thumb {
  position: relative;
  display: block;
  height: 204px;
  overflow: hidden;
  background: #101628;
}

.bt-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bt-news-card:hover .bt-news-thumb img {
  transform: scale(1.04);
}

.bt-news-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 0 !important;
  background: rgba(16, 22, 40, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.bt-news-thumb .bt-news-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.bt-news-pin {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 0 !important;
  background: #5846d8;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
}

.bt-news-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.bt-news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: #6b768f;
  margin-bottom: 10px;
}

.bt-news-card-body h2 {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  margin: 0 0 10px;
}

.bt-news-card-body h2 a {
  color: #101628;
  text-decoration: none;
}

.bt-news-card-body h2 a:hover {
  color: #5846d8;
}

.bt-news-card-body p {
  font-size: 14px;
  line-height: 1.7;
  color: #525c73;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bt-news-tags {
  list-style: none;
  padding: 0;
  margin: auto 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bt-news-tags li {
  padding: 3px 8px;
  border-radius: 0 !important;
  background: rgba(88, 70, 216, 0.08);
  border: 1px solid rgba(88, 70, 216, 0.18);
  color: #4635b8;
  font-size: 11.5px;
  font-weight: 500;
}

.bt-news-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #5846d8;
  text-decoration: none;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.bt-news-more:hover {
  color: #3d2ec0;
}

.bt-news-empty {
  text-align: center;
  padding: 72px 24px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
}

.bt-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.bt-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  color: #1e2438;
  font-weight: 600;
  text-decoration: none;
}

.bt-page-btn.is-active,
.bt-page-btn:hover {
  background: #5846d8;
  border-color: #5846d8;
  color: #ffffff;
}

/* Detail Article View */
.bt-article-wrap {
  max-width: 880px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 36px 42px 40px;
  box-shadow: 0 18px 44px -30px rgba(15, 23, 42, 0.24);
}

.bt-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: #636e87;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 24px;
}

.bt-article-meta .bt-news-badge {
  background: rgba(88, 70, 216, 0.1);
  border-color: rgba(88, 70, 216, 0.25);
  color: #4635b8;
}

.bt-article-cover {
  margin-bottom: 28px;
  border-radius: 12px;
  overflow: hidden;
  max-height: 420px;
}

.bt-article-cover img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.bt-article-content h2,
.bt-article-content h3,
.bt-article-content h4 {
  color: #101628;
  font-weight: 700;
  margin: 30px 0 12px;
  line-height: 1.4;
}

.bt-article-content h2 { font-size: 24px; }
.bt-article-content h3 { font-size: 20px; }

.bt-article-content p {
  font-size: 16px;
  line-height: 1.85;
  color: #2c354b;
  margin-bottom: 16px;
}

.bt-article-content ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.bt-article-content ul li {
  font-size: 15.5px;
  line-height: 1.8;
  color: #2c354b;
  margin-bottom: 8px;
}

.bt-article-content pre {
  background: #0d1324;
  color: #e2e8f0;
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 18px 0 24px;
}

.bt-article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.bt-article-content p code,
.bt-article-content li code {
  background: rgba(88, 70, 216, 0.08);
  color: #4635b8;
  padding: 2px 6px;
  font-size: 0.9em;
}

.bt-article-content blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 3px solid #5846d8;
  background: #f5f6fc;
}

.bt-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 16px 0;
}

.bt-article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 13.5px;
  color: #636e87;
}

.bt-article-tags ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bt-article-tags li a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 0 !important;
  background: rgba(88, 70, 216, 0.08);
  border: 1px solid rgba(88, 70, 216, 0.2);
  color: #4635b8;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
}

.bt-article-cta {
  margin-top: 32px;
  padding: 26px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10162c 0%, #231e58 100%);
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bt-article-cta h4 {
  color: #ffffff;
  font-size: 20px;
  margin: 0 0 6px;
}

.bt-article-cta p {
  color: rgba(226, 232, 240, 0.82);
  font-size: 14px;
  margin: 0;
}

.bt-article-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bt-cta-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.bt-cta-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.bt-article-back {
  margin-top: 24px;
}

.bt-article-back a {
  color: #5846d8;
  font-weight: 600;
  text-decoration: none;
}

.bt-related-box {
  max-width: 880px;
  margin: 40px auto 0;
}

.bt-related-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: #101628;
  margin-bottom: 18px;
}

.bt-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bt-related-item {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bt-related-item:hover {
  border-color: #5846d8;
  transform: translateY(-2px);
}

.bt-related-cat {
  align-self: flex-start;
  padding: 2px 8px;
  background: rgba(88, 70, 216, 0.08);
  color: #4635b8;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.bt-related-item h4 {
  font-size: 15px;
  line-height: 1.5;
  color: #101628;
  margin: 0 0 10px;
  flex: 1;
}

.bt-related-item time {
  font-size: 12px;
  color: #7c879e;
}

@media only screen and (max-width: 991px) {
  .bt-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-related-grid { grid-template-columns: 1fr; }
}

@media only screen and (max-width: 767px) {
  .bt-news-hero { padding: 118px 0 60px !important; }
  .bt-news-hero h1 { font-size: 26px; }
  .bt-news-grid { grid-template-columns: 1fr; }
  .bt-news-search { max-width: none; }
  .bt-article-wrap { padding: 24px 18px 28px; }
}
