.smnb-wrap,
.smnb-wrap * {
  box-sizing: border-box;
}

.smnb-wrap {
  width: 100%;
  max-width: 100%;
  --smnb-hero-columns: 3;
  --smnb-featured-width: 50%;
  --smnb-small-img-width: 38%;
  --smnb-mobile-slide-width: 86%;
  --smnb-transition: 260ms ease;
  font-family: Arial, Helvetica, sans-serif;
}

.smnb-wrap a,
.smnb-wrap a:hover,
.smnb-wrap a:focus {
  text-decoration: none !important;
}

.smnb-empty {
  padding: 22px;
  border: 1px dashed rgba(127, 127, 127, 0.45);
  border-radius: 8px;
  color: inherit;
  font-size: 14px;
}

.smnb-card,
.smnb-featured-card,
.smnb-small-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.smnb-card-media,
.smnb-small-media {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  overflow: hidden;
}

.smnb-img,
.smnb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.smnb-placeholder {
  background: linear-gradient(135deg, #d8d8d8, #a7a7a7);
}

.smnb-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #07110b 100%);
  opacity: 0.88;
}

.smnb-card-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  width: 100%;
  min-height: 46%;
  color: #fff;
  pointer-events: none;
}

.smnb-card-content a,
.smnb-small-content a,
.smnb-term a,
.smnb-read,
.smnb-view-all {
  pointer-events: auto;
}

.smnb-term {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 11px 18px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: #ff3538;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.smnb-term a {
  color: inherit;
  text-decoration: none !important;
}

.smnb-title,
.smnb-title a,
.smnb-section-title,
.smnb-view-all,
.smnb-read {
  font-family: Arial, Helvetica, sans-serif;
}

.smnb-title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(24px, 2.2vw, 42px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.smnb-title a {
  color: inherit;
  text-decoration: none !important;
  background: none !important;
  box-shadow: none !important;
}

.smnb-title a:hover,
.smnb-term a:hover {
  opacity: 0.88;
}

.smnb-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  color: #fff;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  text-decoration: none !important;
  transition: color var(--smnb-transition), background-color var(--smnb-transition), border-color var(--smnb-transition), transform var(--smnb-transition);
}

.smnb-read:hover {
  color: #fff;
  background: #ff3538;
  border-color: #ff3538;
  transform: translateY(-1px);
}

.smnb-arrow {
  display: inline-block;
  font-size: 1.15em;
  line-height: 0;
  transform: translateY(-1px);
}

.smnb-hover-zoom-yes .smnb-img {
  transition: transform 520ms ease;
}

.smnb-hover-zoom-yes .smnb-card:hover .smnb-img,
.smnb-hover-zoom-yes .smnb-small-card:hover .smnb-img {
  transform: scale(1.045);
}

/* Hero Trio */
.smnb-hero-trio {
  display: grid;
  grid-template-columns: repeat(var(--smnb-hero-columns), minmax(0, 1fr));
  width: 100%;
}

.smnb-hero-card {
  min-height: 750px;
  background: #111;
}

.smnb-hero-card .smnb-card-content {
  padding: 34px 38px 38px;
}

.smnb-scroll-hint {
  display: none;
}

/* Featured Grid */
.smnb-featured-wrap {
  width: 100%;
}

.smnb-featured-inner {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.smnb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.smnb-section-title {
  margin: 0;
  padding: 0;
  color: #111;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.smnb-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1.5px solid #111;
  border-radius: 3px;
  color: #111;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.smnb-view-all:hover {
  color: #fff;
  background: #111;
}

.smnb-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--smnb-featured-width)) minmax(0, 1fr);
  gap: 24px;
  width: 100%;
}

.smnb-featured-card {
  min-height: 620px;
  background: #111;
  border-radius: 6px;
}

.smnb-featured-card .smnb-card-content {
  padding: 34px 40px 38px;
}

.smnb-side-list {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 24px;
  min-height: 100%;
}

.smnb-small-card {
  display: grid;
  grid-template-columns: minmax(0, var(--smnb-small-img-width)) minmax(0, 1fr);
  min-height: 298px;
  background: #eeeeee;
  border-radius: 6px;
}

.smnb-small-card .smnb-small-media {
  position: relative;
  inset: auto;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background: #ddd;
}

.smnb-small-card .smnb-small-media .smnb-img,
.smnb-small-card .smnb-small-media .smnb-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.smnb-small-card .smnb-small-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 34px 36px 26px;
  min-width: 0;
}

.smnb-small-card .smnb-term {
  padding: 0;
  margin-bottom: 16px;
  border-radius: 0;
  background: transparent !important;
  color: #ff3538;
}

.smnb-small-card .smnb-term a {
  color: inherit;
}

.smnb-small-card .smnb-title {
  color: #071017;
  font-size: clamp(22px, 1.65vw, 34px);
  line-height: 1.08;
}

.smnb-small-card .smnb-read {
  color: #071017;
  border-color: #071017;
}

/* SmartMag dark/light safety */
.s-dark .smnb-featured-wrap .smnb-section-title,
[data-scheme="dark"] .smnb-featured-wrap .smnb-section-title,
.dark .smnb-featured-wrap .smnb-section-title {
  color: #fff;
}

.s-dark .smnb-small-card,
[data-scheme="dark"] .smnb-small-card,
.dark .smnb-small-card {
  background: #eeeeee;
  color: #071017;
}

.s-dark .smnb-small-card .smnb-title,
.s-dark .smnb-small-card .smnb-title a,
[data-scheme="dark"] .smnb-small-card .smnb-title,
[data-scheme="dark"] .smnb-small-card .smnb-title a,
.dark .smnb-small-card .smnb-title,
.dark .smnb-small-card .smnb-title a {
  color: #071017;
}

@media (max-width: 1200px) {
  .smnb-featured-grid {
    gap: 20px;
  }

  .smnb-side-list {
    gap: 20px;
  }

  .smnb-small-card .smnb-small-content {
    padding: 28px 26px 22px;
  }
}

@media (max-width: 1024px) {
  .smnb-hero-card {
    min-height: 560px;
  }

  .smnb-featured-grid {
    grid-template-columns: 1fr;
  }

  .smnb-side-list {
    grid-template-rows: none;
    grid-auto-rows: auto;
  }

  .smnb-small-card {
    min-height: 230px;
  }
}

@media (max-width: 767px) {
  .smnb-hero-wrap {
    overflow: hidden;
  }

  .smnb-hero-trio {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .smnb-hero-trio::-webkit-scrollbar {
    display: none;
  }

  .smnb-hero-card {
    flex: 0 0 var(--smnb-mobile-slide-width);
    min-width: var(--smnb-mobile-slide-width);
    min-height: 620px;
    scroll-snap-align: start;
  }

  .smnb-hero-card .smnb-card-content,
  .smnb-featured-card .smnb-card-content {
    padding: 22px 18px 24px;
    min-height: 54%;
    gap: 20px;
  }

  .smnb-title {
    font-size: clamp(22px, 6.2vw, 32px);
    line-height: 1.08;
    letter-spacing: -0.052em;
  }

  .smnb-term {
    padding: 9px 14px;
    margin-bottom: 12px;
    font-size: 11px;
  }

  .smnb-read {
    min-height: 31px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .smnb-mobile-dots-yes .smnb-scroll-hint {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 7px 13px 0;
  }

  .smnb-mobile-dots-yes .smnb-scroll-hint span {
    height: 3px;
    background: currentColor;
    opacity: 0.35;
  }

  .smnb-mobile-dots-yes .smnb-scroll-hint span:first-child {
    opacity: 1;
  }

  .smnb-featured-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .smnb-section-header {
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 18px;
  }

  .smnb-section-title {
    font-size: clamp(30px, 10vw, 44px);
  }

  .smnb-view-all {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .smnb-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .smnb-featured-card {
    min-height: 360px;
  }

  .smnb-side-list {
    display: grid;
    gap: 16px;
  }

  .smnb-small-card {
    grid-template-columns: var(--smnb-small-img-width) minmax(0, 1fr);
    min-height: 155px;
    border-radius: 5px;
  }

  .smnb-small-card .smnb-small-content {
    padding: 14px 12px;
    gap: 12px;
  }

  .smnb-small-card .smnb-term {
    margin-bottom: 8px;
    font-size: 10px;
    line-height: 1.15;
  }

  .smnb-small-card .smnb-title {
    font-size: clamp(16px, 4.6vw, 22px);
    line-height: 1.08;
    letter-spacing: -0.045em;
  }

  .smnb-small-card .smnb-read {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent !important;
    font-size: 12px;
  }
}
