/* ══════════════════════════════════════════════════════════════════
   DETAIL PAGE
   ══════════════════════════════════════════════════════════════════ */

.ihk-ni-detail {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  color: #0f172a;
  background: #f8fafc;
  min-height: 100vh;
}

/* ─── Back Nav ───────────────────────────────────────────────────── */
.nid-nav {
  margin: 0;
  padding: 48px 112px;
}
.nid-back {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 36px;
  padding: 0 16px;
  background: #f8fafc;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #0a0a0a;
  border-radius: 6px;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.nid-back:hover {
  background: #fff;
  color: #656565;
}

.nid-back svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ─── Shared Badge ───────────────────────────────────────────────── */
.ni-card__badge {
  display: inline-flex;
  align-items: center;
  height: 21.6px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: #fff;
  white-space: nowrap;
  text-transform: capitalize;
}

/* Badge colours — same for listing & detail */
.ni-card__badge--news {
  background: #0284c7;
  border-color: rgba(0, 0, 0, 0.08);
}
.ni-card__badge--blog {
  background: #ff8d28;
  border-color: rgba(0, 0, 0, 0.08);
}
.ni-card__badge--announcements {
  background: #ff2d55;
  border-color: rgba(0, 0, 0, 0.08);
}
.ni-card__badge--updates {
  background: #cb30e0;
  border-color: rgba(0, 0, 0, 0.08);
}

/* ─── Article ────────────────────────────────────────────────────── */
.nid-article {
  margin: 0;
  padding: 0 112px 48px;
}

/* ─── Hero Image ─────────────────────────────────────────────────── */
.nid-hero {
  width: 100%;
  height: 384px;
  border: 1px solid #00000030;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 34px;
  position: relative; /* needed for the pseudo-element */
}

/* Blurred, zoomed background layer */
.nid-hero::before {
  content: "";
  position: absolute;
  inset: -20px; /* slightly oversized so blur doesn't show edges */
  background-image: var(--nid-hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.7);
  transform: scale(1.05);
  z-index: 0;
}

/* Foreground image sits above the blurred layer */
.nid-hero__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ─── Meta Header ────────────────────────────────────────────────── */
.nid-meta {
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nid-meta__badge {
  /* inherits .ni-card__badge styles; just adjust positioning if needed */
  align-self: flex-start;
}

.nid-title {
  font-family:
    Segoe UI,
    Tahoma,
    Geneva,
    Verdana,
    sans-serif !important;
  font-weight: 700;
  font-size: 36px;
  line-height: 40px;
  color: #0f172a;
  margin-bottom: 24px;
}

.nid-meta__row {
  display: flex;
  align-items: center;
  gap: 23px;
  flex-wrap: wrap;
}

.nid-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 16px;
  line-height: 24px;
  color: #475569;
}

.nid-meta__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─── Divider ────────────────────────────────────────────────────── */
.nid-divider {
  margin-top: 32px;
  height: 0.8px;
  background: #e5e5e5;
}

/* ─── Body Content ───────────────────────────────────────────────── */
.nid-body {
  margin: 0 auto 33px;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #334155;
}

.nid-body h1,
.nid-body h2,
.nid-body h3,
.nid-body h4 {
  color: #0f172a;
  margin-top: 28px;
  margin-bottom: 12px;
}

.nid-body p {
  margin: 0 0 16px;
}

.nid-body a {
  color: #0284c7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nid-body img {
  max-width: 100%;
  border-radius: 8px;
}

/* ─── Tags ───────────────────────────────────────────────────────── */
.nid-tags {
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nid-tag {
  display: inline-flex;
  align-items: center;
  height: 21.6px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #0a0a0a;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.nid-tag:hover {
  background: #eff6ff;
  border-color: #bae6fd;
  color: #0284c7;
}

/* ─── Actions (Like / Share) ─────────────────────────────────────── */
.nid-actions {
  margin: 0 auto;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nid-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #0a0a0a;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.nid-action-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nid-action-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.nid-action-btn:focus {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.nid-action-btn--like.is-liked {
  border-color: #fca5a5;
  color: #ef4444;
  background: #fff1f2;
}

.nid-action-btn--like.is-liked svg {
  fill: #ef4444;
  stroke: #ef4444;
}

/* ─── Share Modal ─────────────────────────────────────────────────── */
.nid-share-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
}

.nid-share-overlay.is-open {
  display: flex;
}

.nid-share-modal {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  width: 100%;
  max-width: 400px;
  margin: 0 16px;
  padding: 24px;
}

.nid-share-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.nid-share-modal__title {
  font-size: 20px;
  line-height: 24px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-weight: 700;
  color: #0f172a;
}

.nid-share-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
  background: #fff;
  border: none;
  height: 24px;
  cursor: pointer;
  transition: background 0.15s;
}

.nid-share-modal__close svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nid-share-modal__close:hover {
  background: #fff;
}

.nid-share-modal__close:focus {
  background: #fff;
}

.nid-share-modal__platforms {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.nid-share-platform {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.nid-share-platform--facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.nid-share-platform--facebook:hover {
  background: #1565d8;
  border-color: #1565d8;
  color: #ffffff;
}

.nid-share-platform--twitter {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.nid-share-platform--twitter:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.nid-share-modal__copy {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nid-share-modal__url {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background: #f8fafc;
  font-size: 13px;
  color: #475569;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nid-share-modal__copy-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}

.nid-share-modal__copy-btn:hover {
  background: #f1f5f9;
  color: #0a0a0a;
  border-color: #cbd5e1;
}

.nid-share-modal__copy-btn:focus {
  background: #f1f5f9;
  color: #0a0a0a;
  border-color: #cbd5e1;
}

.nid-share-modal__copy-btn.is-copied {
  color: #16a34a;
  border-color: #86efac;
  background: #f0fdf4;
}

/* ─── Responsive – Detail ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nid-nav,
  .nid-article {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 768px) {
  .nid-nav {
    padding: 24px 16px 12px;
  }

  .nid-article {
    padding: 0 16px 48px;
  }

  .nid-hero {
    height: 240px;
    border-radius: 8px;
  }

  .nid-title {
    font-size: 26px;
    line-height: 32px;
  }

  .nid-body {
    font-size: 15px;
    line-height: 24px;
  }
}

@media (max-width: 480px) {
  .nid-hero {
    height: 200px;
  }
  .nid-title {
    font-size: 22px;
    line-height: 28px;
  }
}
