* ══ HERO ══ */
.ni-hero {
  background: linear-gradient(135deg, #0b3d6e 0%, #1578be 55%, #d40000 100%);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.ni-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 80% 50%, rgba(255,255,255,.06), transparent),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(212,0,0,.18), transparent);
  pointer-events: none;
}
.ni-hero::after {
  content: "✍";
  position: absolute; right: 6%; top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  color: rgba(255,255,255,.05);
  line-height: 1; pointer-events: none; user-select: none;
}
.ni-hero-inner { position: relative; z-index: 1; }
.ni-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 14px;
}
.ni-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff4d4d; animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.ni-hero h1 {
  font-size: clamp(20px, 3vw, 30px); font-weight: 900;
  color: #fff; margin-bottom: 10px; line-height: 1.3;
  max-width: 720px;
}
.ni-hero-meta {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px;
}
.ni-hero-meta-item {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 7px 14px;
  color: rgba(255,255,255,.88); font-size: 13px; font-weight: 700;
}
.ni-hero-meta-item i { color: rgba(255,255,255,.65); font-size: 12px; }

/* ══ MAIN ══ */
.ni-main { background: #f5f6f8; padding: 48px 0 72px; }

/* ══ ARTICLE CARD ══ */
.ni-article-card {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  overflow: hidden;
  animation: niFadeUp .55s ease both;
}
@keyframes niFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── cover image ── */
.ni-cover {
  width: 100%; height: 420px;
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, rgba(21,120,190,.1), rgba(11,61,110,.08));
}
.ni-cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s ease;
}
.ni-article-card:hover .ni-cover img { transform: scale(1.03); }

/* gradient scrim */
.ni-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(11,18,32,.45) 0%,
    rgba(11,18,32,.08) 45%,
    transparent 100%);
  pointer-events: none;
}

/* category badge on cover */
.ni-cover-badge {
  position: absolute; top: 16px; left: 18px;
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #1578be, #0b3d6e);
  border-radius: 20px; padding: 5px 13px;
  color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(21,120,190,.4);
  z-index: 2;
}

/* ── article header ── */
.ni-article-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(11,18,32,.06);
}
.ni-article-title {
  font-size: 1.55rem; font-weight: 900;
  color: rgba(11,18,32,.88); line-height: 1.4;
  margin-bottom: 16px;
}
.ni-article-title a { color: inherit; text-decoration: none; }
.ni-article-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ni-meta-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  background: rgba(21,120,190,.08);
  border: 1px solid rgba(21,120,190,.16);
  color: #1578be;
}
.ni-meta-tag i { font-size: 11px; }

/* share strip */
.ni-share-strip {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.ni-share-label {
  font-size: 12px; font-weight: 700;
  color: rgba(11,18,32,.38); white-space: nowrap;
}
.ni-share-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(21,120,190,.07);
  border: 1px solid rgba(21,120,190,.16);
  display: flex; align-items: center; justify-content: center;
  color: rgba(11,18,32,.45); font-size: 13px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.ni-share-btn:hover {
  background: #1578be; color: #fff;
  border-color: transparent; transform: scale(1.15);
  text-decoration: none;
}

/* ── body ── */
.ni-article-body {
  padding: 28px 32px 36px;
  font-size: 1.05rem; line-height: 1.9;
  color: rgba(11,18,32,.68);
  text-align: justify;
}
.ni-article-body p { margin-bottom: 1.3rem; }
.ni-article-body p:last-child { margin-bottom: 0; }
.ni-article-body h2, .ni-article-body h3, .ni-article-body h4 {
  color: rgba(11,18,32,.84); font-weight: 800;
  margin: 1.8rem 0 .8rem;
}
.ni-article-body img {
  max-width: 100%; border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.ni-article-body blockquote {
  border-left: 4px solid #1578be;
  background: rgba(21,120,190,.05);
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
  margin: 1.5rem 0;
  font-style: italic;
  color: rgba(11,18,32,.72);
}
.ni-article-body a { color: #1578be; font-weight: 600; }
.ni-article-body ul, .ni-article-body ol {
  padding-left: 1.5rem; margin-bottom: 1.2rem;
}
.ni-article-body li { margin-bottom: .45rem; }

/* ── back button ── */
.ni-back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 30px;
  background: rgba(21,120,190,.08);
  border: 1.5px solid rgba(21,120,190,.2);
  color: #1578be; font-size: 13px; font-weight: 800;
  text-decoration: none; margin-bottom: 24px;
  transition: background .2s, color .2s, border-color .2s, gap .2s;
}
.ni-back-btn:hover {
  background: linear-gradient(135deg, #1578be, #d40000);
  border-color: transparent; color: #fff; gap: 10px;
  text-decoration: none;
}
.ni-back-btn i { transition: transform .2s; }
.ni-back-btn:hover i { transform: translateX(-3px); }

/* ══ SIDEBAR ══ */
.ni-sidebar { position: sticky; top: 80px; }

/* related posts card */
.ni-related-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
}
.ni-related-header {
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, #0b3d6e, #1578be);
  position: relative; overflow: hidden;
}
.ni-related-header::after {
  content: ""; position: absolute;
  right: -20px; top: -20px;
  width: 100px; height: 100px;
  border-radius: 50%; background: rgba(255,255,255,.07);
}
.ni-related-header h4 {
  font-size: 16px; font-weight: 900; color: #fff;
  margin: 0; position: relative; z-index: 1;
}
.ni-related-header p {
  font-size: 13px; color: rgba(255,255,255,.65);
  margin: 4px 0 0; position: relative; z-index: 1;
}
.ni-related-body { padding: 12px 14px; }

/* related item */
.ni-related-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px; border-radius: 12px;
  text-decoration: none;
  border-bottom: 1px solid rgba(11,18,32,.05);
  transition: background .18s, gap .18s;
}
.ni-related-item:last-child { border-bottom: none; }
.ni-related-item:hover {
  background: rgba(21,120,190,.06);
  gap: 14px; text-decoration: none;
}

/* thumbnail */
.ni-related-thumb {
  width: 68px; height: 52px; flex: 0 0 68px;
  border-radius: 9px; overflow: hidden;
  border: 1.5px solid rgba(11,18,32,.06);
  background: rgba(21,120,190,.07);
}
.ni-related-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.ni-related-item:hover .ni-related-thumb img { transform: scale(1.1); }

.ni-related-meta { flex: 1; min-width: 0; }
.ni-related-title {
  font-size: .88rem; font-weight: 700;
  color: rgba(11,18,32,.82); line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .18s;
}
.ni-related-item:hover .ni-related-title { color: #1578be; }
.ni-related-date {
  font-size: 11px; font-weight: 600;
  color: rgba(11,18,32,.38);
  display: flex; align-items: center; gap: 4px;
}
.ni-related-date i { font-size: 10px; color: #1578be; }

.ni-related-arrow {
  font-size: 11px; color: rgba(11,18,32,.22);
  flex-shrink: 0;
  transition: color .18s, transform .18s;
}
.ni-related-item:hover .ni-related-arrow {
  color: #1578be; transform: translateX(3px);
}

@media (max-width: 991px) {
  .ni-cover { height: 300px; }
  .ni-article-header { padding: 22px 22px 18px; }
  .ni-article-body { padding: 22px 22px 28px; }
  .ni-article-title { font-size: 1.3rem; }
  .ni-sidebar { position: static; margin-top: 24px; }
  .ni-share-strip { margin-left: 0; margin-top: 10px; }
  .ni-article-meta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575px) {
  .ni-cover { height: 220px; }
}


/* ══ HERO ══ */
.blog-hero {
  background: linear-gradient(135deg, #0b3d6e 0%, #1578be 55%, #d40000 100%);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 80% 50%, rgba(255,255,255,.06), transparent),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(212,0,0,.18), transparent);
  pointer-events: none;
}
.blog-hero::after {
  content: "✍";
  position: absolute;
  right: 6%; top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  color: rgba(255,255,255,.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.blog-hero-inner { position: relative; z-index: 1; }
.blog-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 14px;
}
.blog-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff4d4d; animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.blog-hero h1 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 900;
  color: #fff; margin-bottom: 10px; line-height: 1.2;
}
.blog-hero p.hero-sub {
  font-size: 15px; color: rgba(255,255,255,.78);
  max-width: 560px; line-height: 1.65; margin-bottom: 20px;
}
.blog-hero-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.blog-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 8px 16px;
  color: #fff; font-size: 14px; font-weight: 700;
}
.blog-chip i { color: rgba(255,255,255,.7); font-size: 14px; }

/* ══ MAIN ══ */
.blog-main { background: #f5f6f8; padding: 48px 0 72px; }

/* ══ GRID ══ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .blog-grid { grid-template-columns: 1fr; } }

/* ══ CARD ══ */
.blog-card {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    box-shadow .3s ease,
    border-color .3s ease,
    transform .3s ease;
  animation: blogFadeUp .55s ease both;
}

/* stagger */
.blog-card:nth-child(1) { animation-delay: .05s; }
.blog-card:nth-child(2) { animation-delay: .12s; }
.blog-card:nth-child(3) { animation-delay: .19s; }
.blog-card:nth-child(4) { animation-delay: .26s; }
.blog-card:nth-child(5) { animation-delay: .33s; }
.blog-card:nth-child(6) { animation-delay: .40s; }
.blog-card:nth-child(7) { animation-delay: .47s; }
.blog-card:nth-child(8) { animation-delay: .54s; }
.blog-card:nth-child(9) { animation-delay: .61s; }

@keyframes blogFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(21,120,190,.16);
  border-color: rgba(21,120,190,.28);
}

/* ── gradient line accent at top on hover ── */
.blog-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1578be, #d40000);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  z-index: 2;
}
.blog-card:hover::before { transform: scaleX(1); }

/* ══ IMAGE ══ */
.blog-card-img {
  width: 100%;
  height: 210px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(21,120,190,.1), rgba(11,61,110,.08));
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.07); }

/* dark scrim on hover */
.blog-card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(11,18,32,.55) 0%,
    rgba(11,18,32,.1)  50%,
    transparent        100%);
  opacity: 0;
  transition: opacity .35s ease;
}
.blog-card:hover .blog-card-img::after { opacity: 1; }

/* date badge */
.blog-card-date {
  position: absolute;
  bottom: 12px; left: 14px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(11,18,32,.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px; padding: 4px 11px;
  color: #fff; font-size: 11px; font-weight: 700;
  z-index: 3;
  transform: translateY(4px);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.blog-card-date i { font-size: 10px; opacity: .8; }
.blog-card:hover .blog-card-date {
  opacity: 1;
  transform: translateY(0);
}

/* category pill on image top-right */
.blog-card-cat {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #1578be, #0b3d6e);
  border-radius: 20px; padding: 4px 11px;
  color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(21,120,190,.35);
}

/* ══ BODY ══ */
.blog-card-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}
.blog-card-meta-date {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  color: rgba(11,18,32,.42);
}
.blog-card-meta-date i { font-size: 11px; color: #1578be; }

.blog-card-title {
  font-size: 1rem; font-weight: 800;
  color: rgba(11,18,32,.84);
  line-height: 1.5; margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-title a {
  color: inherit; text-decoration: none;
  transition: color .2s;
}
.blog-card-title a:hover { color: #1578be; }

/* ══ FOOTER ══ */
.blog-card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(11,18,32,.06);
  margin-top: auto;
}

/* read more button */
.blog-read-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 30px;
  background: rgba(21,120,190,.08);
  border: 1.5px solid rgba(21,120,190,.2);
  color: #1578be; font-size: 13px; font-weight: 800;
  text-decoration: none;
  transition:
    background .22s,
    color .22s,
    border-color .22s,
    gap .22s,
    box-shadow .22s;
}
.blog-read-btn i {
  font-size: 11px;
  transition: transform .25s;
}
.blog-read-btn:hover {
  background: linear-gradient(135deg, #1578be, #d40000);
  border-color: transparent;
  color: #fff;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(21,120,190,.3);
  text-decoration: none;
}
.blog-read-btn:hover i { transform: translateX(3px); }

/* share / bookmark icon */
.blog-card-actions {
  display: flex; align-items: center; gap: 6px;
}
.blog-icon-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(21,120,190,.07);
  border: 1px solid rgba(21,120,190,.14);
  display: flex; align-items: center; justify-content: center;
  color: rgba(11,18,32,.42); font-size: 12px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.blog-icon-btn:hover {
  background: #1578be;
  color: #fff;
  border-color: transparent;
  transform: scale(1.12);
  text-decoration: none;
}

/* ══ EMPTY STATE ══ */
.blog-empty {
  text-align: center; padding: 64px 0;
  color: rgba(11,18,32,.32);
  grid-column: 1 / -1;
}
.blog-empty i { font-size: 44px; display: block; margin-bottom: 14px; }
.blog-empty p { font-size: 15px; margin: 0; }