/* === News Banner Ads (strict sizes + mobile) === */

/* Wrapper: exact size by breakpoint */
.nba-banner {
  box-sizing: border-box;
  margin: 18px auto;
  position: relative;
}

/* Clickable card */
.nba-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

/* Sponsored tag */
.nba-tag {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 10px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
  z-index: 2;
}

/* Inner layout */
.nba-inner {
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  gap: 10px;
}

/* Logo box */
.nba-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 66px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}
.nba-logo {
  max-width: 76px;
  max-height: 56px;
  object-fit: contain;
}

/* Brand block */
.nba-mid {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.15;
}
.nba-brand {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nba-domain {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CTA */
.nba-right { flex: 0 0 auto; }
.nba-cta {
  display: inline-block;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid #111827;
  transition: transform .08s ease, background .08s ease, color .08s ease;
  font-size: 13px;
  line-height: 1;
}
.nba-link:hover .nba-cta {
  transform: translateY(-1px);
  background: #111827;
  color: #fff;
}
.nba-link:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  border-color: #d1d5db;
}

/* ===== Fixed sizes by breakpoint ===== */

/* Desktop/tablet ?768px: strict 728x90 */
@media (min-width: 768px) {
  .nba-banner {
    width: 728px !important;
    height: 90px !important;
  }
}

/* Phones ?767px: strict 320x100 by default */
@media (max-width: 767px) {
  .nba-banner {
    width: 320px !important;
    height: 100px !important;
  }
  .nba-left { width: 70px; height: 64px; }
  .nba-logo { max-width: 60px; max-height: 52px; }
  .nba-brand { font-size: 15px; }
  .nba-cta { padding: 7px 11px; font-size: 12px; }
}

/* Ultra-narrow phones ?340px: 300x100 fallback */
@media (max-width: 340px) {
  .nba-banner {
    width: 300px !important;
    height: 100px !important;
  }
}
