/** Shopify CDN: Minification failed

Line 853:0 Expected "}" to go with "{"

**/
/* =============================================
   MT Tapex Blog — Main Styles
   ============================================= */

/* ---------- Override theme .section { display: grid } ---------- */
/* The theme adds display:grid + column-gap to every .section wrapper,
   which creates unwanted left/right gutters around the component.
   The inline <style> in the liquid file already handles this via the
   section ID; the rule below is a belt-and-suspenders fallback. */
.mt-tapex-blog {
  display: block;
  width: 100%;
}

/* ---------- Reset / Variables ---------- */
.mt-tapex-blog *,
.mt-tapex-blog *::before,
.mt-tapex-blog *::after {
  box-sizing: border-box;
}

.mt-tapex-blog {
  --tb-bg: #1a1a1a;
  --tb-surface: #242424;
  --tb-surface-hover: #2c2c2c;
  --tb-border: #333;
  --tb-text-primary: #f0f0f0;
  --tb-text-secondary: #aaa;
  --tb-text-muted: #777;
  --tb-accent: #B70005;
  --tb-accent-hover: #B70005;
  --tb-tag-bg: #B70005;
  --tb-tag-text: #fff;
  --tb-radius: 12px;
  --tb-radius-sm: 6px;
  --tb-font: inherit;
  background-color: var(--tb-bg);
  color: var(--tb-text-primary);
  font-family: var(--tb-font);
  padding-bottom: 60px;
}

/* ---------- Search Bar ---------- */
.mt-tapex-blog__search-bar {
  background-color: var(--tb-bg);
  padding: 24px 40px;
  position: sticky;
  top: 0;
  z-index: 51;
}

.mt-tapex-blog__search-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;   /* 让内部容器整体居中 */
  border: 1px solid #666666;
  border-radius: 6px;
  background: transparent;
  padding: 0 16px;
}

/* 图标 + input 作为一个整体，宽度固定，整体被 justify-content:center 居中 */
.mt-tapex-blog__search-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mt-tapex-blog__search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--tb-text-primary);
  font-size: 14px;
  padding: 12px 0;
  outline: none;
  transition: border-color .2s;
  text-align: center;
  width:113px;
}

.mt-tapex-blog__search-input::placeholder {
  color: #666666;
}

.mt-tapex-blog__search-input:focus {
  border-color: #555;
  width:100%;
}

.mt-tapex-blog__search-inner:has(.mt-tapex-blog__search-input:focus) .mt-tapex-blog__search-icon {
  display: none;
}

.mt-tapex-blog__search-inner:focus-within {
  width: 100%;
}

/* 图标紧贴 input 左侧，两者一起通过外层容器居中 */
.mt-tapex-blog__search-icon {
  flex-shrink: 0;
  color: var(--tb-text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* ---------- Category Tabs ---------- */
.mt-tapex-blog__tabs-bar {
  background-color: var(--tb-bg);
  position: sticky;
  top: 95px;
  z-index: 50;
}

.mt-tapex-blog__tabs-track {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mt-tapex-blog__tabs-inner {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mt-tapex-blog__tabs-inner::-webkit-scrollbar {
  display: none;
}

.mt-tapex-blog__tab {
  flex-shrink: 0;
  padding: 10px;
  font-size: 14px;
  font-weight: 400;
  color: #F3F3F4;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  outline: none;
  font-family: Poppins;
  letter-spacing: 0;
  line-height: 21px;
}

.mt-tapex-blog__tabs-inner > .mt-tapex-blog__tab:first-child {
  padding: 8px 20px;
  font-weight: 500;
  font-size: 16px;
}

.mt-tapex-blog__tab:hover {
  color: #FFFFFF;
  background: #333333;
}

.mt-tapex-blog__tab.is-active {
  background: var(--tb-accent);
  border-color: var(--tb-accent);
}

.mt-tapex-blog__tabs-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 41px;
  background: #333333;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  color: #FFFFFF;
}

.mt-tapex-blog__tabs-arrow:hover {
  background: #444444;
}

/* ---------- Body Layout ---------- */
.mt-tapex-blog__body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 48px;
  display: grid;
  grid-template-columns: 307px 1fr;
  gap: 48px;
  align-items: start;
}

/* ---------- Sidebar ---------- */
.mt-tapex-blog__sidebar {
  position: sticky;
  top: 149px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #44444400 transparent;
}

.mt-tapex-blog__tabs-arrow--prev {
    transform:rotate(180deg);
}


.mt-tapex-blog__sidebar::-webkit-scrollbar {
  width: 4px;
  background-color: transparent;
}

.mt-tapex-blog__sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.mt-tapex-blog__sidebar::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

/* Popular Articles */
.mt-tapex-blog__popular-title,
.mt-tapex-blog__cats-title {
  font-size: 16px;
  font-weight: 500;
  color: #999999;
  letter-spacing: 0;
  margin: 0 0 24px;
  line-height:24px;
  font-family:Poppins;
}
.mt-tapex-blog__cats-title {
  padding-top:24px;
  border-top:1px solid #333333;
}

.mt-tapex-blog__popular-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mt-tapex-blog__popular-item a {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.mt-tapex-blog__popular-item a:hover .mt-tapex-blog__popular-item-title {
  color: var(--tb-accent);
}

.mt-tapex-blog__popular-thumb {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: 15px;
  overflow: hidden;
  background: var(--tb-surface);
}

.mt-tapex-blog__popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mt-tapex-blog__popular-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding:6px 0
}

.mt-tapex-blog__popular-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 23px;
  letter-spacing:0;
  font-family:Poppins;
  transition: color 0.2s;
      display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  font-size: 14px;
  line-height:21px;
  letter-spacing:0;
  font-family:Poppins;
}

/* Categories List */
.mt-tapex-blog__cats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mt-tapex-blog__cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 41px 10px 10px;
  background: transparent;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  line-height:21px;
  letter-spacing:0;
  font-family:Poppins;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  outline: none;
  border:none;
  gap:2px;
}

.mt-tapex-blog__cat-btn:hover {
  background: var(--tb-surface-hover);
}

.mt-tapex-blog__cat-btn.is-active {
  background: #333333;
  color: #ffffff;
  border-color:transparent;
}

.mt-tapex-blog__cat-count {
  font-size: 14px;
  color:#999;
  line-height:21px;
  letter-spacing:0;
}

/* ---------- Main Content ---------- */
.mt-tapex-blog__main {
  min-width: 0;
}

.mt-tapex-blog__section-title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 24px;
  font-family:Poppins;
  letter-spacing:0;
  line-height:34px;
}

/* ---------- Article Grid ---------- */
.mt-tapex-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 0;
}

/* ---------- Article Card ---------- */
.mt-tapex-blog__card {
  background: var(--tb-surface);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
}

.mt-tapex-blog__card:hover {
  transform: translateY(-4px);
}

.mt-tapex-blog__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mt-tapex-blog__card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #2a2a2a;
}

.mt-tapex-blog__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mt-tapex-blog__card:hover .mt-tapex-blog__card-image img {
  transform: scale(1.05);
}

.mt-tapex-blog__card-tag {
  position: absolute;
  top: 8px;
  left: 18px;
  background: #B70005;
  color: #fff;
  font-size: 12px;
  line-height:20px;
  font-family:Poppins;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

.mt-tapex-blog__card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.mt-tapex-blog__card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mt-tapex-blog__card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: #444;
  flex-shrink: 0;
}

.mt-tapex-blog__card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mt-tapex-blog__card-avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #ccc;
  flex-shrink: 0;
}

.mt-tapex-blog__card-author-name {
  font-size: 14px;
  color: #F3F3F4;
  font-weight: 400;
  font-family:Poppins;
  letter-spacing:0;
  line-height:21px;
}

.mt-tapex-blog__card-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;;
  line-height: 30px;
  letter-spacing:0;
  font-family:Poppins;
  margin: 0;
      display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mt-tapex-blog__card-excerpt {
  font-size: 14px;
  color: #fff;
  line-height: 21px;
  letter-spacing:0;
  font-family:Poppins;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mt-tapex-blog__card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mt-tapex-blog__card-date,
.mt-tapex-blog__card-read-time {
  font-size: 14px;
  color: #F3F3F4;
  font-family:Poppins;
  letter-spacing:0;
  line-height:21px;
}

.mt-tapex-blog__card-meta-sep {
  color: #F3F3F4;
  font-size: 14px;
}

/* ---------- Subscribe Block ---------- */
/* Inside the grid → span all 3 columns */
.mt-tapex-blog__subscribe-wrap {
  grid-column: 1 / -1;
  margin: 0;
}

.mt-tapex-blog__subscribe {
  background: var(--tb-surface);
  border-radius: 15px;
  padding:50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.mt-tapex-blog__subscribe-left {
        height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mt-tapex-blog__subscribe-left h3 {
  font-size: 38px;
  font-weight: 600;
  line-height:50px;
  color: #C4C4C4;
  margin: 0 0 30px;
  letter-spacing:0;
  font-family:Poppins;
}

.mt-tapex-blog__subscribe-left p {
  font-size: 12px;
  color: #F3F3F4;
  line-height: 20px;
  letter-spacing:0;
  font-family:Poppins;
  margin:0;
}

.mt-tapex-blog__subscribe-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height:20px;
  color: #C4C4C4;
  font-family:Poppins;
  letter-spacing:0;
}

.mt-tapex-blog__subscribe-checkbox input[type="checkbox"] {
  accent-color: var(--tb-accent);
  width: 14px;
  height: 14px;
  cursor: pointer;
  margin:0;
}

.mt-tapex-blog__subscribe-btn {
  margin-top: 10px;
  display: inline-block;
  background: #1D1D1D;
  border:none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  text-align: center;
  letter-spacing:0;
  font-family:Poppins;
}

.mt-tapex-blog__subscribe-btn:hover {
  background:rgb(0, 0, 0);
}

.mt-tapex-blog__subscribe-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width:100%;
}

.mt-tapex-blog__subscribe-field {
  background: #fff;
  border: none;
  border-radius: 8px;
  color: #1d1d1d;
  font-size: 14px;
  padding: 12px;
  line-height:21px;
  font-family:Poppins;
  letter-spacing:0;
  outline: none;
  width: 100%;
  resize: none;
}

.mt-tapex-blog__subscribe-field::placeholder {
  color: #999999;
}

.mt-tapex-blog__subscribe-field:focus {
    background: #fff;
}
.mt-tapex-blog__subscribe-right .mt-tapex-blog__subscribe-field:hover
 {
    background: #fff !important;
}

textarea.mt-tapex-blog__subscribe-field {
  height: 83px;
}

/* ---------- Pagination ---------- */
.mt-tapex-blog__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap:24px;
  padding: 24px 0 0px;
}

.mt-tapex-blog__pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
  color: #666666;
  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  padding:10px;
}

.mt-tapex-blog__pagination-btn:hover {
  color: #fff;
}

.mt-tapex-blog__pagination-btn.is-active {
  color: #fff;
}

.mt-tapex-blog__pagination-dots {
  color: var(--tb-text-muted);
  font-size: 14px;
  padding: 0 4px;
}

.mt-tapex-blog__pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 40px;
  color: #666666;
  background: transparent;
  border:none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.mt-tapex-blog__pagination-arrow:hover {
  color: #fff;
}

.mt-tapex-blog__pagination-arrow svg path {
  transition: all 0.3s;
}

.mt-tapex-blog__pagination-arrow:hover svg path {
  fill:#fff;
}

.mt-tapex-blog__pagination-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Empty State ---------- */
.mt-tapex-blog__empty {
  padding: 60px 0;
  text-align: center;
  color: var(--tb-text-muted);
  font-size: 15px;
}

/* ---------- Hidden utility ---------- */
.mt-tapex-blog__card.is-hidden {
  display: none !important;
}

/* =============================================
   Responsive
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .mt-tapex-blog__body {
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }

  .mt-tapex-blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mt-tapex-blog__subscribe {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mt-tapex-blog__popular-thumb {
    width: 62px;
    height: 62px;
 }
}

/* Mobile — ≤767px */
@media (max-width: 767px) {
  .mt-tapex-blog__body {
    grid-template-columns: 1fr;
    padding: 40px 12px 0;
  }
  .mt-tapex-blog__card-title {
    -webkit-line-clamp: 2;
}
  .mt-tapex-blog__search-bar {
    padding:24px 12px 24px;
  }
  .mt-tapex-blog__tabs-track {
    padding: 0 12px 8px;
 }
 .mt-tapex-blog__tabs-arrow {
display:none !important;
 }

  /* 移动端隐藏侧边栏 */
  .mt-tapex-blog__sidebar {
    display: none;
  }

  .mt-tapex-blog__popular-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .mt-tapex-blog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .mt-tapex-blog__subscribe {
    padding: 50px 14px;
    /* 移动端改为单列，子项可用 order 重排 */
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  /* 顺序：标题描述(1) → 表单字段(2) → checkbox+按钮(3) */
  .mt-tapex-blog__subscribe-top {
    order: 1;
    margin-bottom: 20px;
  }
  .mt-tapex-blog__subscribe-right {
    order: 2;
    margin-bottom: 24px;
  }
  .mt-tapex-blog__subscribe-bottom {
    order: 3;
    width:100%;
  }
  /* 左侧容器本身也需要变为 flex 以支持子项 order */
  .mt-tapex-blog__subscribe-left {
    display: contents; /* 让 subscribe-top 和 subscribe-bottom 直接参与父级 flex 排序 */
  }
  .mt-tapex-blog__subscribe-left h3 {
  margin: 0 0 10px;
}

.mt-tapex-blog__pagination {

}

@media (max-width: 480px) {
  .mt-tapex-blog__grid {
    grid-template-columns: 1fr;
    margin-bottom:0;
  }

  .mt-tapex-blog__popular-list {
    grid-template-columns: 1fr;
  }
}
