/* =====================================================
   newsPro Plugin – news.css
   ===================================================== */

/* ── Block (TOP page widget) ── */
.ec-newsPro__blockList {
  padding-bottom: 40px;
}

.ec-newsPro__moreButton {
  margin-top: 24px;
  text-align: center;
}

.ec-newsPro__BlockItem:has(.ec-newsPro__BlockItemThumbnail) {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 16px;
  align-items: start;
}

.ec-newsPro__BlockItem {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.ec-newsPro__BlockItemThumbnail img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 6px;
}

.ec-newsPro__BlockItemContent {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Shared wrapper ── */
.ec-newsPro {
  padding: 32px 16px 60px;
}

/* ── Breadcrumb ── */
.ec-newsPro__breadcrumb {
  margin-bottom: 20px;
}

.ec-newsPro__breadcrumbList {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 8px 14px;
  margin: 0;
  font-size: 12px;
  background: #f7f8fa;
  border-radius: 6px;
  gap: 2px;
}

.ec-newsPro__breadcrumbItem {
  display: flex;
  align-items: center;
  color: #999;
}

.ec-newsPro__breadcrumbItem+.ec-newsPro__breadcrumbItem::before {
  content: "›";
  margin: 0 8px;
  color: #ccc;
  font-size: 14px;
  line-height: 1;
}

.ec-newsPro__breadcrumbItem a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.ec-newsPro__breadcrumbItem a:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.ec-newsPro__breadcrumbItem--current {
  color: #333;
  font-weight: 500;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Page heading ── */
.ec-newsPro__heading {
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 3px solid #f0f0f0;
}

.ec-newsPro__heading h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.02em;
}

/* ── Category filter tabs ── */
.ec-newsPro__categoryList {
  margin-bottom: 36px;
}

.ec-newsPro__categoryLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ec-newsPro__categoryItem {
  list-style: none;
}

.ec-newsPro__categoryLink {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  color: #444;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ec-newsPro__categoryLink:hover,
.ec-newsPro__categoryLink.is-active {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

/* ── News card grid ── */
.ec-newsPro__list {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.ec-newsPro__listItem {
  list-style: none;
}

/* ── Card ── */
.ec-newsPro__item {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ec-newsPro__item:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .10);
  transform: translateY(-3px);
}

/* Thumbnail inside card */
.ec-newsPro__itemThumbnail {
  overflow: hidden;
  background: #f4f5f7;
}

.ec-newsPro__itemThumbnail a {
  display: block;
}

.ec-newsPro__itemThumbnail img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ec-newsPro__item:hover .ec-newsPro__itemThumbnail img {
  transform: scale(1.04);
}

/* Card body */
.ec-newsPro__itemContent {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 20px;
  flex: 1;
}

.ec-newsPro__itemFlex {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ec-newsPro__BlockItemDescription {
  line-height: 1.8;
}

.ec-newsPro__itemDate {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.03em;
}

.ec-newsPro__itemCategory {
  font-size: 11px;
}

.ec-newsPro__categoryBadge {
  display: inline-block;
  padding: 2px 10px;
  background: #eef3ff;
  color: #3b5bdb;
  border-radius: 50px;
  font-weight: 600;
  font-size: 11px;
  text-decoration: none;
  transition: background 0.2s;
}

.ec-newsPro__categoryBadge:hover {
  background: #dce6ff;
}

.ec-newsPro__itemLink {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
  transition: color 0.2s;
}

.ec-newsPro__itemLink:hover {
  color: #0d6efd;
}

/* ── Empty state ── */
.ec-newsPro__empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  background: #fafafa;
  border-radius: 12px;
  border: 1px dashed #ddd;
  margin-bottom: 40px;
}

.ec-newsPro__emptyIcon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* ── Pager ── */
.ec-pagerRole {
  margin: 8px 0 40px;
  text-align: center;
}

/* ── Back button ── */
.ec-newsPro__btnWrap {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

/* =====================================================
   Detail page
   ===================================================== */
.ec-newsPro__detail {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  overflow: hidden;
}

.ec-newsPro__detailHeader {
  padding: 32px 36px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.ec-newsPro__detailMeta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ec-newsPro__detailTitle {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.5;
}

.ec-newsPro__detailThumbnail {
  max-height: 460px;
  overflow: hidden;
  background: #f4f5f7;
  margin-top: 24px;
}

.ec-newsPro__detailThumbnail img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.ec-newsPro__detailBody {
  padding: 32px 36px 36px;
}

.ec-newsPro__detailContent {
  line-height: 1.9;
  color: #333;
  font-size: 15px;
}

/* ── WYSIWYG Editor styling inside content ── */
.ec-newsPro__detailContent h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.8rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  color: #1a1a2e;
}

.ec-newsPro__detailContent h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.6rem 0 0.8rem;
  color: #1a1a2e;
}

.ec-newsPro__detailContent h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.4rem 0 0.8rem;
  color: #1a1a2e;
}

.ec-newsPro__detailContent h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.3rem 0 0.8rem;
  color: #1a1a2e;
}

.ec-newsPro__detailContent h6 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.2rem 0 0.8rem;
  color: #1a1a2e;
}

.ec-newsPro__detailContent p {
  margin-bottom: 1.2rem;
}

.ec-newsPro__detailContent ul {
  list-style-type: disc !important;
  margin: 0 0 1.2rem 1.5rem !important;
  padding-left: 0 !important;
}

.ec-newsPro__detailContent ol {
  list-style-type: decimal !important;
  margin: 0 0 1.2rem 1.5rem !important;
  padding-left: 0 !important;
}

.ec-newsPro__detailContent li {
  margin-bottom: 0.4rem;
  display: list-item !important;
}

.ec-newsPro__detailContent table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.ec-newsPro__detailContent table th,
.ec-newsPro__detailContent table td {
  border: 1px solid #cbd5e1;
  padding: 0.75rem;
  text-align: left;
}

.ec-newsPro__detailContent table th {
  background-color: #f8fafc;
  font-weight: 700;
}

.ec-newsPro__detailContent table tr:nth-child(even) {
  background-color: #f8fafc;
}

.ec-newsPro__detailContent pre {
  background-color: #f1f5f9;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 1.5rem 0;
  border: 1px solid #e2e8f0;
}

.ec-newsPro__detailContent code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  background-color: #f1f5f9;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #e11d48;
}

.ec-newsPro__detailContent pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

.ec-newsPro__detailContent blockquote {
  border-left: 4px solid #cbd5e1;
  padding-left: 1rem;
  color: #64748b;
  margin: 1.5rem 0;
  font-style: italic;
}

.ec-newsPro__detailContent img {
  max-width: 100%;
  height: auto;
  margin: 1.2rem 0;
  border-radius: 6px;
}

.ec-newsPro__detailDescription img {
  max-width: 100%;
  border-radius: 8px;
}

.ec-newsPro__buttonDownload,
.ec-newsPro__buttonLink {
  margin-top: 24px;
}

.ec-newsPro__detailBack {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

/* ── Related news ── */
.ec-newsPro__related {
  margin-top: 48px;
}

.ec-newsPro__relatedTitle {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 24px;
}

/* ── Shared image max ── */
.ec-newsPro img {
  max-width: 100%;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 768px) {
  .ec-newsPro {
    padding: 20px 16px 40px;
  }

  .ec-newsPro__list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }

  .ec-newsPro__heading h1 {
    font-size: 20px;
  }

  .ec-newsPro__detailHeader {
    padding: 24px 20px 18px;
  }

  .ec-newsPro__detailTitle {
    font-size: 19px;
  }

  .ec-newsPro__detailBody {
    padding: 24px 20px 28px;
  }
}

/* =====================================================
   2-Column Layout: main content + archive sidebar
   ===================================================== */
.ec-newsPro__layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
  margin-top: 16px;
}

.ec-newsPro__mainContent {
  min-width: 0;
}

.ec-newsPro__sidebar {
  position: sticky;
  top: 20px;
}

/* =====================================================
   Archive Sidebar
   ===================================================== */
.np-archive-sidebar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.np-archive-title {
  margin: 0;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.np-archive-years {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.np-archive-year-item {
  border-bottom: 1px solid #f3f4f6;
}

.np-archive-year-item:last-child {
  border-bottom: none;
}

.np-archive-year-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 18px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  transition: background .15s, color .15s;
  text-align: left;
  gap: 4px;
}

.np-archive-year-btn:hover {
  background: #f9fafb;
  color: #111827;
}

.np-archive-year-btn.is-active {
  color: #4f46e5;
}

.np-archive-year-label {
  flex: 1;
}

.np-archive-year-count {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
}

.np-archive-chevron {
  font-size: 10px;
  color: #9ca3af;
  transition: transform .2s;
  margin-left: 4px;
}

.np-archive-year-item.is-open .np-archive-chevron {
  transform: rotate(180deg);
}

.np-archive-months {
  list-style: none;
  margin: 0;
  padding: 0 0 6px 0;
  display: none;
}

.np-archive-months.is-visible {
  display: block;
}

.np-archive-month-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 18px 7px 30px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: background .15s, color .15s;
  border-radius: 0;
}

.np-archive-month-link:hover {
  background: #f3f4f6;
  color: #111827;
}

.np-archive-month-link.is-active {
  color: #4f46e5;
  font-weight: 600;
  background: #eef2ff;
}

.np-archive-month-count {
  font-size: 11px;
  color: #9ca3af;
}

/* ── Active filter label ── */
.np-archive-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
}

.np-archive-filter-clear {
  margin-left: 8px;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 4px;
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.np-archive-filter-clear:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

/* ── Responsive: collapse to single column on small screens ── */
@media (max-width: 768px) {
  .ec-newsPro__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ec-newsPro__sidebar {
    position: static;
  }

  .np-archive-sidebar {
    border-radius: 8px;
  }
}

/* =====================================================
   Tag Badges (list & detail pages)
   ===================================================== */
.ec-newsPro__tagList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.ec-newsPro__tagBadge {
  display: inline-block;
  padding: 2px 10px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.ec-newsPro__tagBadge:hover,
.ec-newsPro__tagBadge.is-active {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

/* ── item description ── */
.ec-newsPro__itemDescription {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* =====================================================
   Tag Cloud Sidebar
   ===================================================== */
.np-tag-cloud-sidebar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  margin-top: 16px;
}

.np-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
}

.np-tag-cloud__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.np-tag-cloud__item:hover,
.np-tag-cloud__item.is-active {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.np-tag-cloud__count {
  display: inline-block;
  background: rgba(0, 0, 0, .08);
  border-radius: 50px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
}

.np-tag-cloud__item.is-active .np-tag-cloud__count,
.np-tag-cloud__item:hover .np-tag-cloud__count {
  background: rgba(255, 255, 255, .25);
}

/* =====================================================
   Related Products Block
   ===================================================== */
.ec-newsPro__relatedProducts {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #f0f0f0;
}

.ec-newsPro__relatedProductsTitle {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.ec-newsPro__productsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ec-newsPro__productItem {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.ec-newsPro__productItem:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ec-newsPro__productLink {
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ec-newsPro__productImage {
  overflow: hidden;
  background: #f4f5f7;
  aspect-ratio: 1;
}

.ec-newsPro__productImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ec-newsPro__productItem:hover .ec-newsPro__productImage img {
  transform: scale(1.05);
}

.ec-newsPro__productContent {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ec-newsPro__productName {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.ec-newsPro__productPrice {
  font-size: 14px;
  font-weight: 700;
  color: #e53e3e;
  margin: 0;
}

.ec-newsPro__productAction {
  padding: 0 12px 12px;
}

.ec-newsPro__productAction .ec-blockBtn--action {
  font-size: 12px;
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  display: block;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ec-newsPro__productAction .ec-blockBtn--action:hover {
  background: #3b5bdb;
  border-color: #3b5bdb;
}

@media (max-width: 992px) {
  .ec-newsPro__productsGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ec-newsPro__productsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ec-newsPro__productContent {
    padding: 8px;
  }

  .ec-newsPro__productName {
    font-size: 12px;
  }

  .ec-newsPro__productPrice {
    font-size: 13px;
  }

  .ec-newsPro__productAction {
    padding: 0 8px 8px;
  }
}

/* =====================================================
   Social Share Buttons
   ===================================================== */
.ec-newsPro__share {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.ec-newsPro__shareLabel {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  letter-spacing: 0.03em;
}

.ec-newsPro__shareButtons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ec-newsPro__shareButton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.ec-newsPro__shareButton:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ec-newsPro__shareButton:active {
  transform: translateY(0);
}

.ec-newsPro__shareButton--x {
  background-color: #0f1419;
}

.ec-newsPro__shareButton--facebook {
  background-color: #1877f2;
}

.ec-newsPro__shareButton--line {
  background-color: #06c755;
}

.ec-newsPro__shareButton--copy {
  background-color: #546e7a;
}

.ec-newsPro__copyTooltip {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  pointer-events: none;
}

/* ── Popular Posts Block ── */
.ec-newsProPopular {
  padding-bottom: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.ec-newsProPopular .ec-secHeading .ec-secHeading__line {
  margin: 0 0px;
}

.ec-newsProPopular__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ec-newsProPopular__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ec-newsProPopular__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #dcdcdc;
}

/* Rank Badge */
.ec-newsProPopular__rankBadge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: #a0a0a0;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.ec-newsProPopular__item:hover .ec-newsProPopular__rankBadge {
  transform: scale(1.1);
}

/* Gold */
.ec-newsProPopular__rankBadge.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Silver */
.ec-newsProPopular__rankBadge.rank-2 {
  background: linear-gradient(135deg, #e0e0e0, #b0b0b0);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Bronze */
.ec-newsProPopular__rankBadge.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #a05a2c);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Thumbnail */
.ec-newsProPopular__thumbnail {
  width: 100px;
  height: 66px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}

.ec-newsProPopular__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ec-newsProPopular__item:hover .ec-newsProPopular__thumbnail img {
  transform: scale(1.06);
}

/* Content */
.ec-newsProPopular__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ec-newsProPopular__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #888;
}

.ec-newsProPopular__views {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ff5722;
  font-weight: 600;
}

.ec-newsProPopular__views i {
  font-size: 12px;
}

.ec-newsProPopular__title {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ec-newsProPopular__title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ec-newsProPopular__title a:hover {
  color: #007bff;
}

.ec-newsProPopular__empty {
  padding: 24px;
  text-align: center;
  color: #999;
  font-size: 14px;
  background: #f9f9f9;
  border-radius: 8px;
}

@media (max-width: 576px) {
  .ec-newsProPopular__thumbnail {
    width: 80px;
    height: 53px;
  }

  .ec-newsProPopular__title {
    font-size: 13px;
  }
}

/* ── Next / Previous Navigation ── */
.ec-newsPro__navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0 30px;
  padding: 24px 0;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}

.ec-newsPro__navigationLink {
  flex: 1;
  min-width: 0;
  /* Ensures text-overflow ellipsis works */
}

.ec-newsPro__navigationLink a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.ec-newsPro__navigationLink--prev a {
  align-items: flex-start;
}

.ec-newsPro__navigationLink--next a {
  align-items: flex-end;
  text-align: right;
}

.ec-newsPro__navigationLink a:hover {
  transform: translateY(-1px);
}

.ec-newsPro__navigationArrow {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ec-newsPro__navigationLink a:hover .ec-newsPro__navigationArrow {
  color: #007bff;
}

.ec-newsPro__navigationTitle {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.ec-newsPro__navigationLink a:hover .ec-newsPro__navigationTitle {
  color: #007bff;
}

@media (max-width: 576px) {
  .ec-newsPro__navigation {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }

  .ec-newsPro__navigationLink--next a {
    align-items: flex-start;
    text-align: left;
  }
}

/* ── Frontend Search Widget ── */
.ec-newsProSearch {
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 16px;
}

.ec-newsProSearch__inputGroup {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fdfdfd;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ec-newsProSearch__inputGroup:focus-within {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.ec-newsProSearch__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  background: transparent;
}

.ec-newsProSearch__btn {
  border: none;
  outline: none;
  background: transparent;
  padding: 0 16px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.ec-newsProSearch__btn:hover {
  color: #007bff;
}

/* ── Related news layout custom ── */
.ec-newsPro__related .ec-newsPro__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ec-newsPro__related .ec-newsPro__listItem {
  margin-bottom: 0;
}

.ec-newsPro__related .ec-newsPro__item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ec-newsPro__related .ec-newsPro__item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.ec-newsPro__related .ec-newsPro__itemThumbnail {
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f4f5f7;
}

.ec-newsPro__related .ec-newsPro__itemThumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}

.ec-newsPro__related .ec-newsPro__itemThumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ec-newsPro__related .ec-newsPro__itemThumbnail:hover img {
  transform: scale(1.05);
}

.ec-newsPro__related .ec-newsPro__itemContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px;
  gap: 8px;
}

.ec-newsPro__related .ec-newsPro__itemFlex {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ec-newsPro__related .ec-newsPro__itemTitle {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.ec-newsPro__related .ec-newsPro__itemTitle a {
  color: #1a1a2e;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ec-newsPro__related .ec-newsPro__itemTitle a:hover {
  color: #3b82f6;
}

.ec-newsPro__related .ec-newsPro__itemDescription {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive related news */
@media (max-width: 768px) {
  .ec-newsPro__related .ec-newsPro__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── Draft Banner ── */
.ec-newsPro__draftBanner {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.ec-newsPro__draftBannerContent {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.ec-newsPro__draftBannerContent i {
  font-size: 16px;
}

/* ── Grid Layouts ── */
.ec-newsPro__list--grid,
.ec-newsPro__blockList--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ec-newsPro__list--grid .ec-newsPro__listItem,
.ec-newsPro__blockList--grid .ec-newsPro__BlockItem {
  border-bottom: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ec-newsPro__list--grid .ec-newsPro__listItem:hover,
.ec-newsPro__blockList--grid .ec-newsPro__BlockItem:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ec-newsPro__list--grid .ec-newsPro__item,
.ec-newsPro__blockList--grid .ec-newsPro__BlockItem:has(.ec-newsPro__BlockItemThumbnail) {
  display: block;
}

.ec-newsPro__list--grid .ec-newsPro__itemThumbnail img,
.ec-newsPro__blockList--grid .ec-newsPro__BlockItemThumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

.ec-newsPro__list--grid .ec-newsPro__itemContent,
.ec-newsPro__blockList--grid .ec-newsPro__BlockItemContent {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ec-newsPro__list--grid .ec-newsPro__itemTitle,
.ec-newsPro__blockList--grid .ec-newsPro__itemTitle {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  margin-top: 8px;
  margin-bottom: 8px;
}

.ec-newsPro__list--grid .ec-newsPro__itemDescription,
.ec-newsPro__blockList--grid .ec-newsPro__BlockItemDescription {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-top: auto;
}

@media screen and (max-width: 991px) {

  .ec-newsPro__list--grid,
  .ec-newsPro__blockList--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 576px) {

  .ec-newsPro__list--grid,
  .ec-newsPro__blockList--grid {
    grid-template-columns: 1fr;
  }
}

/* ── List Layout (Horizontal Row) ── */
.ec-newsPro__list--list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.ec-newsPro__list--list .ec-newsPro__listItem {
  list-style: none;
}

.ec-newsPro__list--list .ec-newsPro__item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  overflow: hidden;
  height: auto;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ec-newsPro__list--list .ec-newsPro__item:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, .10);
  transform: translateY(-3px);
}

.ec-newsPro__list--list .ec-newsPro__itemThumbnail {
  width: 240px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f4f5f7;
}

.ec-newsPro__list--list .ec-newsPro__itemThumbnail img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ec-newsPro__list--list .ec-newsPro__item:hover .ec-newsPro__itemThumbnail img {
  transform: scale(1.04);
}

.ec-newsPro__list--list .ec-newsPro__itemContent {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.ec-newsPro__list--list .ec-newsPro__itemTitle {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 4px;
  margin-bottom: 8px;
}

.ec-newsPro__list--list .ec-newsPro__itemDescription {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Responsive adjustment for list layout on small screens */
@media screen and (max-width: 768px) {
  .ec-newsPro__list--list .ec-newsPro__item {
    flex-direction: column;
  }

  .ec-newsPro__list--list .ec-newsPro__itemThumbnail {
    width: 100%;
  }

  .ec-newsPro__list--list .ec-newsPro__itemThumbnail img {
    aspect-ratio: 16/9;
  }

  .ec-newsPro__list--list .ec-newsPro__itemContent {
    padding: 16px 18px 20px;
  }
}