/* ================================================================
 *  news-templates.css — Shared styles for all news popup templates
 *  Loaded by any page that uses the news popup (via <link> in <head>).
 * ================================================================ */

/* ─── Shared template components ──────────────────────────────── */
.nt-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d75cf;
  background: #e8f3fd;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.nt-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0a2b51;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.nt-body {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

.nt-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nt-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  background: #1d75cf;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s;
}

.nt-cta:hover { background: #1166c8; }

.nt-cta--outline {
  background: transparent;
  border: 1.5px solid #0a2b51;
  color: #0a2b51;
}
.nt-cta--outline:hover { background: #f1f5f9; }

/* ─── Template 1: Go-Live / Split Hero ────────────────────────── */

/* Widen the modal card when T1 split is inside it */
.news-modal__card:has(.nt-t1-split) {
  max-width: 800px !important;
  width: 92vw !important;
}

.nt-t1-split {
  display: flex;
  min-height: 340px;
}

.nt-t1-left {
  flex: 1 1 0;
  min-width: 0;
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nt-t1-right {
  flex: 0 0 320px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nt-t1-graphic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin-right: 1rem;
}

/* Tag row: dot + label, no pill background */
.nt-t1-tag-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.nt-t1-split .nt-tag {
  background: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 0;
  font-size: 0.72rem;
}
.nt-t1-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1d75cf;
  flex-shrink: 0;
}

/* Headline — larger for the wider layout */
.nt-t1-headline {
  font-size: 1.65rem;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

/* Short blue divider */
.nt-t1-rule {
  width: 2rem;
  height: 2.5px;
  background: transparent;
  border-radius: 2px;
}

.nt-t1-body {
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

/* CTA row */
.nt-t1-actions { margin-bottom: 1.5rem; }

/* Brand footer */
.nt-t1-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.nt-t1-brand-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #0a2b51;
}
.nt-t1-brand-pipe {
  width: 1px;
  height: 0.9rem;
  background: #cbd5e1;
  flex-shrink: 0;
}
.nt-t1-brand-tag {
  font-size: 1rem;
  color: #94a3b8;
}

/* ─── Template 2: Image Hero + Text ───────────────────────────── */
.nt-t2-hero {
  margin: 0;
  line-height: 0;
}

.nt-t2-hero img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.nt-t2-wrap {
  padding: 1.5rem 2rem 2rem;
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .news-modal__card:has(.nt-t1-split) {
    max-width: none !important;
    width: 95vw !important;
  }
  .nt-t1-split { flex-direction: column; }
  .nt-t1-right {
    flex: 0 0 auto;
    height: 180px;
    width: 100%;
  }
  .nt-t1-headline { font-size: 1.3rem; }
  .nt-t1-left { padding: 1.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .nt-t2-wrap { padding: 1.5rem 1.25rem; }
  .nt-title { font-size: 1.1rem; }
  .nt-t2-hero img { height: 160px; }
}
