/* ═══════════════════════════════════════════
   kartanews_newsbox — Theme CSS
   ═══════════════════════════════════════════ */

:root {
  --nb-navy: #0d1b2a;
  --nb-navy-mid: #1a2e45;
  --nb-navy-light: #243b55;
  --nb-amber: #f59e0b;
  --nb-amber-dark: #d97706;
  --nb-red: #dc2626;
  --nb-white: #ffffff;
  --nb-gray-50: #f8f9fa;
  --nb-gray-100: #f1f3f5;
  --nb-gray-200: #e9ecef;
  --nb-gray-400: #adb5bd;
  --nb-gray-600: #6c757d;
  --nb-gray-800: #343a40;
  --nb-text: #1a1a1a;
  --nb-text-light: #555;
  --nb-font-sans: 'IBM Plex Sans', var(--vr-font-primary, sans-serif);
  --nb-font-serif: 'Source Serif 4', var(--vr-font-secondary, serif);
  --nb-radius: 2px;
}

/* ─── RESET ─── */
body {
  font-family: var(--nb-font-sans);
  background: var(--nb-gray-100);
  color: var(--nb-text);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img.nb-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nb-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
}

/* ─── TICKER ─── */
.nb-ticker {
  background: var(--nb-red);
  color: #fff;
  display: flex;
  align-items: center;
  height: 34px;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nb-ticker-label {
  background: #fff;
  color: var(--nb-red);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 12px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nb-ticker-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--nb-red);
  border-radius: 50%;
  animation: nbBlink 1s infinite;
}

@keyframes nbBlink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.nb-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nb-ticker-scroll {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: nbTicker 30s linear infinite;
  font-size: 12.5px;
  font-weight: 500;
}

.nb-ticker-scroll a::before {
  content: '▶ ';
  opacity: .7;
  font-size: 9px;
}

@keyframes nbTicker {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

.nb-ticker:hover .nb-ticker-scroll {
  animation-play-state: paused;
}

.nb-ticker-scroll a:hover {
  text-decoration: underline;
}

/* ─── NAVBAR ─── */
.nb-navbar {
  background: #0c0d0f;
  position: sticky;
  top: 34px;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.nb-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  max-width: 1280px;
  margin: 0 auto;
  height: 52px;
}

.nb-logo {
  font-family: var(--nb-font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.5px;
}

.nb-logo img {
  width: auto;
  max-height: 35px;
}

.nb-logo span {
  color: var(--nb-amber);
}

.nb-nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nb-nav-actions a {
  color: var(--nb-gray-400);
  font-size: 12px;
  font-weight: 500;
  transition: color .2s;
}

.nb-nav-actions a:hover {
  color: #fff;
}

.nb-btn-register {
  background: var(--nb-amber);
  color: var(--nb-navy) !important;
  padding: 5px 14px;
  border-radius: 3px;
  font-weight: 700 !important;
  font-size: 12px;
}

.nb-btn-register:hover {
  background: var(--nb-amber-dark);
}

.nb-nav-bottom {
  background: var(--nb-navy-mid);
  border-top: 1px solid rgba(255, 255, 255, .07);
  position: relative;
}

.nb-nav-cats {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  list-style: none;
  gap: 0;
  scrollbar-width: none;
}

.nb-nav-cats::-webkit-scrollbar {
  display: none;
}

.nb-nav-cats li a {
  display: block;
  padding: 10px 16px;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}

.nb-nav-cats li a:hover,
.nb-nav-cats li.active a {
  color: var(--nb-amber);
  border-bottom-color: var(--nb-amber);
}

/* ─── LAYOUT ─── */
.nb-layout {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.nb-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.nb-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 5.5rem;
}

/* ─── HOMEPAGE SLIDER ─── */
.nb-home-slider-wrap {
  position: relative;
  margin-bottom: 12px;
}

.nb-home-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--nb-radius);
  background: var(--nb-gray-100);
  width: 100%;
}

.nb-home-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.nb-home-slider-item {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 560px;
}

.nb-home-slider-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.nb-home-slider-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .6s ease;
}

.nb-home-slider-item:hover img {
  transform: scale(1.03);
}

.nb-home-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .25) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.nb-home-slide-content {
  padding: 28px 24px;
  width: 100%;
  pointer-events: auto;
}

.nb-home-slide-title {
  font-family: var(--nb-font-serif);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 8px 0 8px;
  max-width: 650px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.nb-home-slide-meta {
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
}

.nb-home-slide-meta a {
  color: rgba(255, 255, 255, .75);
}

/* Slider nav arrows */
.nb-home-slider-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1.5rem;
  pointer-events: auto;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nb-home-slider-wrap:hover .nb-home-slider-nav {
  opacity: 1;
  visibility: visible;
}

.nb-home-slider-nav button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.nb-home-slider-nav button:hover {
  background: var(--nb-amber);
  border-color: var(--nb-amber);
  transform: scale(1.1);
}

/* Dot indicators */
.nb-home-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 50;
  pointer-events: auto;
}

.nb-home-slider-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nb-home-slider-dots .dot.active {
  background: var(--nb-amber);
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--nb-amber);
}

/* ─── FEATURED POSTS GRID ─── */
.nb-featured-section {
  padding: 12px 0 0;
}

.nb-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.nb-featured-card {
  display: flex;
  flex-direction: column;
  background: var(--nb-white);
  border-radius: var(--nb-radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}

.nb-featured-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
  transform: translateY(-2px);
}

.nb-featured-thumb {
  position: relative;
  padding-top: 58%;
  overflow: hidden;
  flex-shrink: 0;
}

.nb-featured-thumb img {
  position: absolute;
  inset: 0;
  transition: transform .4s;
}

.nb-featured-card:hover .nb-featured-thumb img {
  transform: scale(1.06);
}

.nb-featured-info {
  padding: 10px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nb-featured-title {
  font-family: var(--nb-font-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--nb-text);
  margin: 0 0 6px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nb-featured-card:hover .nb-featured-title {
  color: var(--nb-amber-dark);
}

.nb-featured-meta {
  font-size: 11px;
  color: var(--nb-gray-600);
}

/* Dark mode — slider & featured */
.dark-mode .nb-home-slider {
  background: #141829;
}

.dark-mode .nb-featured-card {
  background: #141829;
}

.dark-mode .nb-featured-title {
  color: #ddd;
}

.dark-mode .nb-featured-card:hover .nb-featured-title {
  color: var(--nb-amber);
}

.dark-mode .nb-featured-meta {
  color: #888;
}

/* ─── BADGE ─── */
.nb-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 6px;
  color: #fff;
}

.badge-category {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 6px;
  color: #fff;
  background-color: #6b7280;
}

/* ─── SECTION BLOCK ─── */
.nb-section {
  background: var(--nb-white);
  margin-bottom: 10px;
}

.nb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 2px solid var(--nb-gray-100);
  position: relative;
}

.nb-section-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--nb-amber);
}

.nb-section-title {
  font-family: var(--nb-font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--nb-navy);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding-left: 8px;
}

.nb-section-more {
  font-size: 11.5px;
  color: var(--nb-amber-dark);
  font-weight: 600;
  white-space: nowrap;
}

.nb-section-more:hover {
  text-decoration: underline;
}

/* ─── CATEGORY GRID ─── */
.nb-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--nb-gray-200);
}

/* Desktop: hide mobile-only elements, show desktop-only elements */
.nb-mobile-only {
  display: none !important;
}

.nb-cat-card {
  background: #fff;
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nb-cat-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.nb-cat-thumb {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
  flex-shrink: 0;
}

.nb-cat-thumb img {
  position: absolute;
  inset: 0;
  transition: transform .3s;
}

.nb-cat-card:hover .nb-cat-thumb img {
  transform: scale(1.05);
}

.nb-cat-info {
  padding: 9px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nb-cat-info h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--nb-text);
  margin-bottom: 4px;
  flex: 1;
}

.nb-cat-card:hover h4 {
  color: var(--nb-amber-dark);
}

/* ─── LIST ARTICLES ─── */
.nb-list-articles {
  border-top: 1px solid var(--nb-gray-100);
}

.nb-list-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--nb-gray-200);
  border-top: 1px solid var(--nb-gray-200);
}

.nb-list-item {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 12px;
  background: #fff;
  height: 100%;
  transition: background .2s;
}

.nb-list-item:hover {
  background: var(--nb-gray-50);
}

.nb-list-thumb {
  width: 72px;
  height: 52px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}

.nb-list-thumb img {
  transition: transform .3s;
}

.nb-list-item:hover .nb-list-thumb img {
  transform: scale(1.08);
}

.nb-list-info h5 {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--nb-text);
  margin-bottom: 3px;
}

.nb-list-item:hover h5 {
  color: var(--nb-amber-dark);
}

.nb-list-meta {
  font-size: 10.5px;
  color: var(--nb-gray-600);
}

/* ─── VIDEO GRID ─── */
.nb-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--nb-gray-200);
}

/* ─── SHORTS / VIDEO CAROUSEL ─── */
.nb-section-shorts {
  overflow: hidden;
  max-width: 100%;
}

.nb-section-shorts *,
.nb-section-shorts *::before,
.nb-section-shorts *::after {
  box-sizing: border-box;
}

.nb-shorts-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.nb-shorts-track {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 12px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-size: 0;
}

.nb-shorts-track::-webkit-scrollbar {
  display: none;
}

.nb-shorts-track:active {
  cursor: grabbing;
}

.nb-short-card {
  display: inline-block;
  vertical-align: top;
  white-space: normal;
  width: 140px;
  height: 245px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  background-color: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
  user-select: none;
  margin-right: 12px;
  font-size: 14px;
}

.nb-short-card:last-child {
  margin-right: 0;
}

.nb-short-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nb-short-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.35s ease;
}

.nb-short-card:hover .nb-short-cover {
  opacity: 1;
  transform: scale(1.06);
}

.nb-short-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  pointer-events: none;
}

.nb-short-play {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.nb-short-play svg {
  width: 14px;
  height: 14px;
}

.nb-short-title {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  z-index: 10;
  pointer-events: none;
}

.nb-short-title-box {
  background: #fff;
  display: inline-flex;
  align-items: stretch;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  max-width: 100%;
}

.nb-short-bar {
  width: 5px;
  background: var(--nb-red);
  flex-shrink: 0;
  margin-right: 6px;
}

.nb-short-title-box h4 {
  font-family: var(--nb-font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
  margin: 0;
  padding: 6px 8px 6px 2px;
  word-wrap: break-word;
}

.nb-short-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s;
  color: #333;
}

.nb-short-nav:hover {
  background: #fff;
}

.nb-short-nav svg {
  width: 18px;
  height: 18px;
}

.nb-short-prev {
  left: 4px;
}

.nb-short-next {
  right: 4px;
}

.dark-mode .nb-short-card {
  background: #141829;
}

.dark-mode .nb-short-nav {
  background: #1e2235;
  color: #fff;
}

.dark-mode .nb-short-nav:hover {
  background: #2a2e42;
}

/* Shorts Responsive */
@media (min-width: 768px) {
  .nb-short-card {
    width: 190px;
    height: 330px;
    border-radius: 12px;
  }

  .nb-short-title-box h4 {
    font-size: 13px;
    padding: 8px 10px 8px 4px;
  }

  .nb-short-bar {
    width: 6px;
    margin-right: 8px;
  }

  .nb-short-play svg {
    width: 16px;
    height: 16px;
  }

  .nb-short-nav {
    display: flex;
    width: 44px;
    height: 44px;
  }

  .nb-short-nav svg {
    width: 22px;
    height: 22px;
  }

  .nb-shorts-wrapper:hover .nb-short-nav {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .nb-short-nav {
    display: none !important;
  }

  .nb-shorts-track {
    padding: 10px;
  }

  .nb-short-card {
    margin-right: 10px;
  }
}

.nb-video-card {
  background: #fff;
  transition: box-shadow .2s;
}

.nb-video-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.nb-video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--nb-navy);
}

.nb-video-thumb img {
  position: absolute;
  inset: 0;
  transition: transform .3s;
}

.nb-video-card:hover .nb-video-thumb img {
  transform: scale(1.05);
}

.nb-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .25);
}

.nb-play-btn::after {
  content: '▶';
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--nb-red);
  padding-left: 3px;
}

.nb-video-info {
  padding: 10px 12px 12px;
}

.nb-video-info h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--nb-text);
  margin-bottom: 5px;
}

.nb-video-card:hover h4 {
  color: var(--nb-amber-dark);
}

.nb-video-meta {
  font-size: 11px;
  color: var(--nb-gray-600);
}

/* ─── SIDEBAR ─── */
.nb-sidebar-box {
  background: #fff;
  overflow: hidden;
}

.nb-sidebar-head {
  background: var(--nb-navy);
  padding: 9px 14px;
  position: relative;
}

.nb-sidebar-head::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  width: 32px;
  height: 2px;
  background: var(--nb-amber);
}

.nb-sidebar-head h3 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin: 0;
}

.nb-sidebar-item {
  display: flex;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--nb-gray-100);
  align-items: flex-start;
  transition: background .2s;
}

.nb-sidebar-item:last-child {
  border-bottom: none;
}

.nb-sidebar-item:hover {
  background: var(--nb-gray-50);
}

.nb-sidebar-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--nb-gray-200);
  flex-shrink: 0;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.nb-sidebar-item:hover .nb-sidebar-num {
  color: var(--nb-amber);
}

.nb-sidebar-thumb {
  width: 64px;
  height: 46px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}

.nb-sidebar-info h5 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--nb-text);
  margin-bottom: 2px;
}

.nb-sidebar-item:hover h5 {
  color: var(--nb-amber-dark);
}

.nb-sidebar-meta {
  font-size: 10.5px;
  color: var(--nb-gray-600);
}

/* Tags */
.nb-tags-wrap {
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nb-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  background: var(--nb-gray-100);
  border: 1px solid var(--nb-gray-200);
  border-radius: 2px;
  color: var(--nb-text-light);
  cursor: pointer;
  transition: all .2s;
  display: inline-block;
}

.nb-tag:hover {
  background: var(--nb-navy);
  color: #fff;
  border-color: var(--nb-navy);
}

/* Follow */
.nb-follow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 12px;
}

.nb-follow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px;
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
}

/* Ad */
.nb-ad-box {
  background: var(--nb-gray-100);
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  color: var(--nb-gray-600);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ─── LATEST POSTS GRID ─── */
.nb-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 12px;
  background: #fff;
}

.nb-latest-card {
  background: #fff;
  padding: 8px;
}

.nb-latest-thumb {
  position: relative;
  padding-top: 58%;
  overflow: hidden;
  margin-bottom: 8px;
  border-radius: 2px;
}

.nb-latest-thumb img {
  position: absolute;
  inset: 0;
  transition: transform .3s;
}

.nb-latest-card:hover .nb-latest-thumb img {
  transform: scale(1.05);
}

.nb-latest-card h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--nb-text);
  margin-bottom: 4px;
}

.nb-latest-card:hover h4 {
  color: var(--nb-amber-dark);
}

/* ─── POST ITEM (card) ─── */
.post-item {
  background: #fff;
  border-radius: var(--nb-radius);
  overflow: hidden;
  transition: box-shadow .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.post-item .image {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  padding-top: 60%;
}

.post-item .image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.post-item:hover .image img {
  transform: scale(1.05);
}

.post-item .caption {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-item .caption .title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 4px;
  flex: 1;
}

.post-item .caption .title a {
  color: var(--nb-text);
}

.post-item:hover .caption .title a {
  color: var(--nb-amber-dark);
}

.post-item .post-meta,
.post-meta {
  font-size: 11px;
  color: var(--nb-gray-600);
  margin: 0;
}

.post-item .post-item-label-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: .25rem;
  gap: 6px;
  justify-content: center;
}

.page-item .page-link {
  position: relative;
  display: block;
  padding: 8px 14px;
  margin-left: -1px;
  line-height: 1.25;
  color: var(--nb-navy);
  background-color: #fff;
  border: 1px solid var(--nb-gray-200);
  font-weight: 600;
  font-size: 13px;
  border-radius: 3px;
  transition: all .2s;
}

.page-item.active .page-link {
  z-index: 3;
  color: var(--nb-navy);
  background-color: var(--nb-amber);
  border-color: var(--nb-amber);
}

.page-item.disabled .page-link {
  color: var(--nb-gray-400);
  pointer-events: none;
  cursor: auto;
  background-color: #fff;
  border-color: var(--nb-gray-200);
}

.page-link:hover {
  z-index: 2;
  color: var(--nb-navy);
  background-color: var(--nb-gray-100);
  border-color: var(--nb-gray-200);
  text-decoration: none;
}

.dark-mode .page-link {
  background-color: #141829;
  border-color: #2a2e42;
  color: #ddd;
}

.dark-mode .page-item.active .page-link {
  background-color: var(--nb-amber);
  border-color: var(--nb-amber);
  color: var(--nb-navy);
}

.dark-mode .page-link:hover {
  background-color: #1e2235;
}

/* ─── POST ITEM SMALL ─── */
.post-item-small {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  align-items: flex-start;
}

.post-item-small .image {
  width: 72px;
  height: 52px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}

.post-item-small .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.post-item-small:hover .image img {
  transform: scale(1.08);
}

.post-item-small .caption .title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 3px;
}

.post-item-small .caption .title a {
  color: var(--nb-text);
}

.post-item-small:hover .caption .title a {
  color: var(--nb-amber-dark);
}

.small-post-meta {
  font-size: 10.5px;
  color: var(--nb-gray-600);
  margin: 0;
}

/* ─── POST DETAIL ─── */
.post-content .post-title {
  font-family: var(--nb-font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.post-details-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nb-gray-200);
  overflow: hidden;
}

.post-details-meta .item-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--nb-gray-600);
}

.post-text {
  font-size: 15px;
  line-height: 1.8;
}

.post-text p {
  margin-bottom: 1em;
}

.post-text img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1em 0;
}

.post-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.post-tags .title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 8px 0 0;
}

.post-tags ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.post-tags ul li a {
  font-size: 11px;
  padding: 3px 9px;
  background: var(--nb-gray-100);
  border: 1px solid var(--nb-gray-200);
  border-radius: 2px;
  color: var(--nb-text-light);
  transition: all .2s;
}

.post-tags ul li a:hover {
  background: var(--nb-navy);
  color: #fff;
  border-color: var(--nb-navy);
}

.about-author {
  background: var(--nb-gray-50);
  border-radius: 6px;
  padding: 20px;
  margin-top: 24px;
}

.about-author .img-author {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.about-author .username a {
  font-size: 15px;
  font-weight: 700;
  color: var(--nb-text);
}

.profile-social-links {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.profile-social-links li a {
  color: var(--nb-gray-600);
  font-size: 14px;
  transition: color .2s;
}

.profile-social-links li a:hover {
  color: var(--nb-amber);
}

/* ─── SECTION TITLE (reused) ─── */
.section-title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--nb-gray-200);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--nb-amber);
}

.section-title .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--nb-navy);
  margin: 0;
}

.section-title a {
  font-size: 12px;
  color: var(--nb-amber-dark);
  font-weight: 600;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 12px;
  font-size: 12px;
  gap: 4px;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: '›';
  margin-right: 4px;
  color: var(--nb-gray-400);
}

.breadcrumb-item a {
  color: var(--nb-gray-600);
}

.breadcrumb-item a:hover {
  color: var(--nb-amber-dark);
}

.breadcrumb-item.active span {
  color: var(--nb-text);
}

/* ─── PAGE TITLE ─── */
.page-title {
  font-family: var(--nb-font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.title-index {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─── FOOTER ─── */
.nb-footer {
  background: #0c0d0f;
  color: rgba(255, 255, 255, .75);
  margin-top: 16px;
}

.nb-footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 16px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.nb-footer-logo {
  font-family: var(--nb-font-serif);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.nb-footer-logo span {
  color: var(--nb-amber);
}

.nb-footer-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 14px;
}

.nb-footer-social {
  display: flex;
  gap: 8px;
}

.nb-footer-social a {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, .1);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  transition: all .2s;
}

.nb-footer-social a:hover {
  background: var(--nb-amber);
  color: var(--nb-navy);
}

.nb-footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.nb-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nb-footer-col ul li a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
  transition: color .2s;
}

.nb-footer-col ul li a:hover {
  color: var(--nb-amber);
}

.nb-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  padding: 12px 16px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .35);
}

.nb-footer-bottom a {
  color: rgba(255, 255, 255, .35);
  margin: 0 8px;
}

.nb-footer-bottom a:hover {
  color: var(--nb-amber);
}

.nb-newsletter-form {
  display: flex;
  margin-top: 10px;
}

.nb-newsletter-form input {
  flex: 1;
  padding: 8px 10px;
  border: none;
  font-size: 12px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-radius: 3px 0 0 3px;
  outline: none;
}

.nb-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.nb-newsletter-form button {
  background: var(--nb-amber);
  color: var(--nb-navy);
  border: none;
  padding: 0 14px;
  font-weight: 700;
  font-size: 12px;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
}

/* ─── WIDGETS ─── */
.widget {
  margin-bottom: 16px;
}

.widget-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--nb-navy);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--nb-gray-200);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--nb-amber);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud a {
  font-size: 11px;
  padding: 3px 9px;
  background: var(--nb-gray-100);
  border: 1px solid var(--nb-gray-200);
  border-radius: 2px;
  color: var(--nb-text-light);
  transition: all .2s;
}

.tag-cloud a:hover {
  background: var(--nb-navy);
  color: #fff;
  border-color: var(--nb-navy);
}

/* ─── BUTTONS ─── */
.btn-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--nb-amber);
  color: var(--nb-navy);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}

.btn-custom:hover {
  background: var(--nb-amber-dark);
}

.btn-default {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--nb-gray-100);
  color: var(--nb-text);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 3px;
  border: 1px solid var(--nb-gray-200);
  cursor: pointer;
  transition: all .2s;
}

.btn-default:hover {
  background: var(--nb-gray-200);
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nb-amber);
  color: var(--nb-navy);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
}

.btn-load-more:hover {
  background: var(--nb-amber-dark);
}

.btn-load-more .spinner-load-more {
  display: none;
}

.btn-load-more.loading .spinner-load-more {
  display: inline-block;
}

.btn-load-more.loading svg {
  display: none;
}

/* ─── FORMS ─── */
.form-control,
.form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--nb-gray-200);
  border-radius: 4px;
  background: #fff;
  color: var(--nb-text);
  outline: none;
  transition: border-color .2s;
}

.form-control:focus,
.form-input:focus {
  border-color: var(--nb-amber);
}

/* ─── MODALS ─── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  display: none;
  background: rgba(0, 0, 0, .6);
}

.modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  pointer-events: none;
  max-width: 500px;
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.modal-dialog-large {
  max-width: 800px;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: none;
  border-radius: 8px;
  outline: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

.modal-header {
  border-bottom: 1px solid var(--nb-gray-200);
  padding: 16px 20px;
}

.modal-header .modal-title {
  font-size: 16px;
  font-weight: 700;
}

.modal-body {
  padding: 20px;
}

.btn-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--nb-gray-600);
}

.btn-close-custom {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--nb-gray-600);
}

.addpost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.col-add-post .item {
  padding: 16px;
  border: 1px solid var(--nb-gray-200);
  border-radius: 6px;
  text-align: center;
  transition: all .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.col-add-post .item:hover {
  border-color: var(--nb-amber);
  background: rgba(245, 158, 11, .05);
}

.col-add-post .item-icon {
  margin-bottom: 8px;
  color: var(--nb-amber);
}

.col-add-post .title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
}

.col-add-post .desc {
  font-size: 11px;
  color: var(--nb-gray-600);
  margin: 0;
}

/* Modal newsletter */
.modal-newsletter .image {
  width: 40%;
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.modal-newsletter .content {
  padding: 2rem;
}

.modal-newsletter .modal-body {
  display: flex;
}

.modal-newsletter .title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ─── DROPDOWNS ─── */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: .5rem 0;
  margin: 0;
  font-size: 1rem;
  color: var(--nb-text);
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: .25rem;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: .25rem 1rem;
  clear: both;
  font-weight: 400;
  color: var(--nb-text);
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--nb-navy);
  text-decoration: none;
  background-color: rgba(0, 0, 0, .05);
}

.show>.dropdown-menu {
  display: block;
}

.profile-dropdown:hover .dropdown-menu,
.dropdown-more:hover .dropdown-menu {
  display: block;
}

/* Desktop profile dropdown styling */
.profile-dropdown>.dropdown-menu {
  background: var(--nb-navy-mid);
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  border-radius: 0 0 6px 6px;
  padding: 6px 0;
  min-width: 180px;
  right: 0;
  left: auto;
}

.profile-dropdown>.dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  padding: 8px 14px;
  white-space: nowrap;
}

.profile-dropdown>.dropdown-menu .dropdown-item .icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.profile-dropdown>.dropdown-menu .dropdown-item:hover,
.profile-dropdown>.dropdown-menu .dropdown-item:focus {
  color: var(--nb-amber);
  background: rgba(255, 255, 255, .06);
}

.profile-dropdown>.dropdown-menu .dropdown-item .icon svg path,
.profile-dropdown>.dropdown-menu .dropdown-item .icon svg polygon {
  stroke: rgba(255, 255, 255, .5);
  fill: rgba(255, 255, 255, .5);
}

.profile-dropdown>.dropdown-menu .dropdown-item:hover .icon svg path,
.profile-dropdown>.dropdown-menu .dropdown-item:hover .icon svg polygon {
  stroke: var(--nb-amber);
  fill: var(--nb-amber);
}

/* Inside mobile nav, disable hover-based show — let JS toggle control it */
.nav-mobile .profile-dropdown:hover .dropdown-menu {
  display: none;
}

.nav-mobile .profile-dropdown .dropdown-menu.open {
  display: block;
}

.dropdown-menu[data-bs-popper] {
  top: 100%;
  left: 0;
  margin-top: .125rem;
}

/* ─── SCROLLBAR ─── */
.scrollup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 36px;
  height: 36px;
  background-color: var(--nb-navy-dark);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scrollup.show {
  opacity: 1;
  visibility: visible;
}

.scrollup:hover {
  background-color: var(--nb-amber-light);
  color: #fff;
}

.scrollup svg {
  width: 18px !important;
  height: 18px !important;
}

/* ─── COOKIES ─── */
.cookies-warning {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nb-navy);
  color: rgba(255, 255, 255, .85);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 200;
  font-size: 13px;
}

.cookies-warning .text {
  flex: 1;
}

/* ─── SEARCH FORM ─── */
.search-icon {
  background: none;
  border: none;
  color: var(--nb-gray-400);
  cursor: pointer;
  padding: 4px;
}

.search-icon:hover {
  color: #fff;
}

.search-form {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--nb-navy-mid);
  padding: 8px;
  border-radius: 4px;
  z-index: 10;
  min-width: 280px;
}

.search-form.active {
  display: block;
}

.search-form form {
  display: flex;
}

.search-form .form-input {
  border: none;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 3px 0 0 3px;
}

.search-form .btn-search {
  background: var(--nb-amber);
  border: none;
  padding: 8px 12px;
  border-radius: 0 3px 3px 0;
  color: var(--nb-navy);
  cursor: pointer;
}

/* ─── MEGA MENU ─── */
.mega-menu-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  background: var(--nb-navy-mid);
  z-index: 200;
  padding: 16px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.mega-menu.active {
  display: block;
}

.mega-menu-inner {
  display: flex;
  gap: 16px;
}

.mega-menu .menu-left {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 300px;
  overflow-y: auto;
}

.mega-menu .link-sub-category {
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  border-radius: 3px;
  white-space: nowrap;
  transition: all .2s;
}

.mega-menu .link-sub-category:hover,
.mega-menu .link-sub-category.active {
  background: rgba(255, 255, 255, .1);
  color: var(--nb-amber);
}

.mega-menu .menu-right {
  flex: 1;
}

.mega-menu .menu-right.width100 {
  width: 100%;
}

.mega-menu .menu-category-items {
  display: none;
}

.mega-menu .menu-category-items.active {
  display: flex;
  gap: 12px;
}

.mega-menu .menu-post-item {
  padding: 8px;
}

.mega-menu .menu-post-item .image {
  margin-bottom: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.mega-menu .menu-post-item .image img {
  width: 100%;
  height: auto;
}

.mega-menu .menu-post-item .title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  margin: 0 0 3px;
  line-height: 1.35;
}

.mega-menu .menu-post-item .title a {
  color: rgba(255, 255, 255, .9);
}

.mega-menu .menu-post-item .title a:hover {
  color: var(--nb-amber);
}

.mega-menu .width20 {
  width: 20%;
}

.mega-menu .width25 {
  width: 25%;
}

.mega-menu .width33 {
  width: 33.333%;
}

.mega-menu .width50 {
  width: 50%;
}

.mega-menu .menu-post-item .image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.mega-menu .menu-post-item .image img {
  object-fit: cover;
  height: 100%;
  transition: transform .35s ease;
}

.mega-menu .menu-post-item:hover .image img {
  transform: scale(1.08);
}

.mega-menu .small-post-meta {
  font-size: 10.5px;
  color: rgba(255, 255, 255, .5);
  margin: 3px 0 0;
  line-height: 1.4;
}

.mega-menu .small-post-meta a,
.mega-menu .small-post-meta span {
  color: rgba(255, 255, 255, .5);
}

/* Active state on nav category when mega menu is shown */
.nb-nav-cats li.mega-active a {
  color: var(--nb-amber);
  border-bottom-color: var(--nb-amber);
}

/* ─── NAV DROPDOWN (non-category submenu) ─── */
.nb-has-dropdown:hover .nb-nav-dropdown-menu {
  display: block;
}

.nb-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nb-navy-mid);
  border: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  min-width: 180px;
  z-index: 300;
}

.nb-nav-dropdown-menu li a {
  display: block;
  padding: 8px 16px !important;
  color: rgba(255, 255, 255, .7) !important;
  font-size: 13px !important;
  border-bottom: none !important;
  transition: color .2s, background .2s;
}

.nb-nav-dropdown-menu li a:hover {
  color: var(--nb-amber) !important;
  background: rgba(255, 255, 255, .06);
}

/* ─── Sub-dropdown in "More" menu ─── */
.nb-has-sub-dropdown {
  position: relative;
}

.nb-has-sub-dropdown:hover .nb-sub-dropdown-menu {
  display: block;
}

.nb-sub-dropdown-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--nb-navy-mid);
  border: none;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  list-style: none;
  padding: 6px 0;
  margin: 0;
  min-width: 160px;
  z-index: 310;
}

.nb-sub-dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  transition: color .2s, background .2s;
}

.nb-sub-dropdown-menu li a:hover {
  color: var(--nb-amber);
  background: rgba(255, 255, 255, .06);
}

/* ─── MOBILE NAV DRAWER ─── */
.nav-mobile {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 300px;
  height: 100vh;
  background: var(--nb-navy);
  z-index: 1040;
  transition: left .3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, .4);
}

.nav-mobile.open {
  left: 0;
}

.nav-mobile-inner {
  padding: 20px;
}

.overlay-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1030;
  background: rgba(0, 0, 0, .6);
  display: none;
}

.overlay-bg.active {
  display: block;
}

/* Mobile drawer link styling */
.nav-mobile .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: color .2s, background .2s;
}

.nav-mobile .nav-link:hover {
  color: var(--nb-amber);
  background: rgba(255, 255, 255, .06);
}

/* Sub-menu collapse */
.nav-mobile .menu-sub-items {
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, .1);
  margin: 2px 0 6px;
  display: none;
}

.nav-mobile .menu-sub-items.open {
  display: block;
}

.nav-mobile .menu-sub-items .nav-link {
  font-size: 13px;
  font-weight: 400;
  padding: 8px;
}

/* Mobile user profile menu */
.nav-mobile .mobile-user-menu {
  display: none;
  list-style: none;
  padding: 4px 0;
  margin: 4px 0;
  border-left: 2px solid rgba(255, 255, 255, .1);
  padding-left: 8px;
  /* Override .dropdown-menu base styles */
  position: static;
  background: none;
  border: none;
  border-left: 2px solid rgba(255, 255, 255, .1);
  box-shadow: none;
  min-width: unset;
  z-index: auto;
}

.nav-mobile .mobile-user-menu.open {
  display: block;
}

.nav-mobile .mobile-user-menu .dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: .5rem !important;
  padding: 8px !important;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  border-radius: 4px;
}

.nav-mobile .mobile-user-menu .dropdown-item:hover {
  color: var(--nb-amber) !important;
  background: rgba(255, 255, 255, .06) !important;
}

.nav-mobile .mobile-user-menu .dropdown-item .icon {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
}

/* Mobile drawer buttons */
.nav-mobile .btn-custom {
  background: var(--nb-amber);
  color: var(--nb-navy);
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-mobile .btn-default {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .15);
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.nav-mobile .btn-default:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

/* Hamburger button — hidden on desktop, shown on mobile */
.nb-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

/* Mobile search button — hidden on desktop, shown on mobile */
.nb-mobile-search-btn {
  display: none;
  background: none;
  border: none;
  color: var(--nb-gray-400);
  cursor: pointer;
  padding: 4px;
  transition: color .2s;
}

.nb-mobile-search-btn:hover {
  color: #fff;
}

/* Mobile search form — slides below navbar */
.nb-mobile-search-form {
  display: none;
  background: var(--nb-navy-mid);
  padding: 10px 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.nb-mobile-search-form.active {
  display: block;
}

.nb-mobile-search-form form {
  display: flex;
  gap: 8px;
}

.nb-mobile-search-form .form-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}

.nb-mobile-search-form .form-input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.nb-mobile-search-form .btn-search {
  background: var(--nb-amber);
  color: var(--nb-navy);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* ─── DARK MODE ─── */
.btn-dark-mode {
  background: none;
  border: none;
  color: var(--nb-gray-400);
  cursor: pointer;
  padding: 2px;
  transition: color .2s;
}

.btn-dark-mode:hover {
  color: #fff;
}

.dark-mode {
  --nb-text: #e5e5e5;
  --nb-text-light: #aaa;
  --nb-gray-50: #1a1a2e;
  --nb-gray-100: #16213e;
  --nb-gray-200: #1a2e45;
}

.dark-mode body,
.dark-mode {
  background: #0a0e1a;
  color: var(--nb-text);
}

.dark-mode .nb-section,
.dark-mode .nb-cat-card,
.dark-mode .nb-list-item,
.dark-mode .nb-video-card,
.dark-mode .nb-latest-card,
.dark-mode .post-item,
.dark-mode .post-item-small,
.dark-mode .nb-sidebar-box,
.dark-mode .nb-latest-grid {
  background: #141829;
}

.dark-mode .nb-section-title,
.dark-mode .section-title .title,
.dark-mode .widget-title {
  color: #fff;
}

.dark-mode .nb-cat-info h4,
.dark-mode .nb-list-info h5,
.dark-mode .nb-video-info h4,
.dark-mode .nb-latest-card h4,
.dark-mode .post-item .caption .title a,
.dark-mode .post-item-small .caption .title a,
.dark-mode .nb-sidebar-info h5 {
  color: #ddd;
}

.dark-mode .modal-content {
  background: #1e2235;
  color: #ddd;
}

.dark-mode .form-control,
.dark-mode .form-input {
  background: #141829;
  border-color: #2a2e42;
  color: #ddd;
}

.dark-mode .about-author {
  background: #141829;
}

.dark-mode .post-content .post-title {
  color: #fff;
}

/* ─── NAV TOP BAR ─── */
#nav-top {
  background: rgba(0, 0, 0, .15);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-top-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}

.nav-top-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link-item {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .6);
  transition: color .2s;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link-item:hover {
  color: var(--nb-amber);
}

.nav-link-item.dropdown-toggle::after {
  content: '▾';
  margin-left: 3px;
  font-size: 9px;
}

/* ─── MISC ─── */
.section {
  padding: 0 0 12px;
}

.section-page {
  padding: 16px 0;
}

.section-page .container-xl {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-xl {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
}

.section-content {
  margin-bottom: 16px;
}

.section-related-posts {
  margin-top: 24px;
}

.related-posts-mobile {
  flex-direction: column;
}

.related-posts-mobile.nb-mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .related-posts-mobile.nb-mobile-only {
    display: block !important;
  }

  .related-posts-desktop.nb-desktop-only {
    display: none !important;
  }
}

.section-comments {
  margin-top: 24px;
}

.nav-tabs-comment {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--nb-gray-200);
}

.nav-tabs-comment button {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--nb-gray-600);
  position: relative;
}

.nav-tabs-comment button.active {
  color: var(--nb-navy);
}

.nav-tabs-comment button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--nb-amber);
}

.tab-content .tab-pane {
  display: none;
}

.tab-content .tab-pane.show.active {
  display: block;
}

.emoji-reactions-container {
  margin-top: 24px;
  text-align: center;
}

.title-reactions {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.emoji-reactions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.reaction-container {
  flex: 1;
  min-width: 60px;
  max-width: 100px;
  text-align: center;
}

.reaction {
  cursor: pointer;
  padding: 10px;
  border-radius: 6px;
  transition: background .2s;
}

.reaction:hover,
.reaction.selected {
  background: var(--nb-gray-100);
}

.reaction .emoji {
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  display: block;
  transition: transform .2s;
}

.reaction:hover .emoji {
  transform: scale(1.1);
}

.reaction .text {
  display: block;
  font-size: 11px;
  color: var(--nb-text);
  font-weight: 600;
  margin-bottom: 2px;
}

.reaction .vote {
  display: block;
  font-size: 10px;
  color: var(--nb-gray-600);
}

.reaction.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .emoji-reactions {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .reaction-container {
    min-width: 0;
    max-width: none;
  }

  .reaction {
    padding: 6px 4px;
  }

  .reaction .emoji {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
  }

  .reaction .text {
    font-size: 10px;
  }

  .reaction .vote {
    font-size: 9px;
  }
}

.post-next-prev {
  margin-top: 24px;
}

.post-np-nav {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--nb-gray-200);
  padding-top: 24px;
}

.post-np-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--nb-gray-50);
  border: 1px solid var(--nb-gray-200);
  text-decoration: none;
  color: inherit;
  transition: all .25s ease;
  min-width: 0;
}

.post-np-item:hover {
  background: var(--nb-gray-100);
  border-color: var(--nb-amber);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  text-decoration: none;
  color: inherit;
}

.post-np-item.post-np-empty {
  visibility: hidden;
}

.post-np-next {
  text-align: right;
  justify-content: flex-end;
}

.post-np-arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--nb-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nb-gray-600);
  transition: all .25s ease;
}

.post-np-item:hover .post-np-arrow {
  background: var(--nb-amber);
  color: var(--nb-navy);
}

.post-np-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.post-np-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--nb-gray-600);
}

.post-np-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--nb-text);
  line-height: 1.4;
}

.post-np-item:hover .post-np-title {
  color: var(--nb-navy);
}

/* Dark mode */
.dark-mode .post-np-item {
  background: #141829;
  border-color: #2a2e42;
}

.dark-mode .post-np-item:hover {
  background: #1a1f35;
  border-color: var(--nb-amber);
}

.dark-mode .post-np-arrow {
  background: #2a2e42;
  color: #aaa;
}

.dark-mode .post-np-item:hover .post-np-title {
  color: var(--nb-amber);
}

@media (max-width: 767px) {
  .post-np-nav {
    flex-direction: column;
    gap: 10px;
  }

  .post-np-next {
    text-align: left;
    justify-content: flex-start;
    flex-direction: row-reverse;
  }

  .post-np-item {
    padding: 12px 14px;
  }

  .post-np-arrow {
    width: 34px;
    height: 34px;
  }

  .post-np-title {
    font-size: 13px;
  }
}

.post-files {
  margin-top: 16px;
}

.post-files .title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.post-files .file button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--nb-gray-100);
  border: 1px solid var(--nb-gray-200);
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
}

.post-files .file button:hover {
  background: var(--nb-gray-200);
}

.action-toolbar-wrapper {
  margin-left: auto;
}

.footer-posts .post-item-small {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 8px 0;
}

.footer-posts .post-item-small .caption .title a {
  color: rgba(255, 255, 255, .75);
}

.footer-posts .post-item-small:hover .caption .title a {
  color: var(--nb-amber);
}

.footer-posts .small-post-meta {
  color: rgba(255, 255, 255, .4);
}

.footer-inner {
  padding: 24px 0;
}

.nb-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-widget {
  margin-bottom: 16px;
}

.footer-widget .widget-title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .12);
}

.footer-widget .widget-title::after {
  background: var(--nb-amber);
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-about {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-social-links ul {
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.footer-social-links ul li a {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, .1);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  transition: all .2s;
}

.footer-social-links ul li a:hover {
  background: var(--nb-amber);
  color: var(--nb-navy);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 12px 0;
}

.footer-copyright-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: space-between;
}

.copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
}

.nav-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 0;
  margin: 0;
}

.nav-footer ul li a {
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  transition: color .2s;
  white-space: nowrap;
}

.nav-footer ul li a:hover {
  color: var(--nb-amber);
}

@media (max-width: 575px) {
  .footer-copyright-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-footer ul {
    gap: 6px 10px;
  }
}

.form-newsletter {
  display: flex;
}

.form-newsletter .newsletter-inputs {
  display: flex;
  width: 100%;
}

.form-newsletter .newsletter-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--nb-gray-200);
  border-radius: 4px 0 0 4px;
  font-size: 13px;
}

.form-newsletter .newsletter-button {
  padding: 8px 16px;
}

.newsletter .description {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 12px;
}

/* ─── IMAGE UTILITIES ─── */
.img-fluid {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.center-image {
  display: block;
  margin: 0 auto;
}

/* ─── POST DETAIL IMAGE ─── */
.post-image {
  position: relative;
  margin-bottom: 2rem;
}

.post-image-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--nb-radius);
}

.post-text iframe {
  max-width: 100% !important;
}

/* ─── POST DETAIL SLIDER ─── */
.post-detail-slider-wrap {
  position: relative;
  margin-bottom: 2rem;
}

.post-detail-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--nb-radius);
  background: var(--nb-gray-100);
  width: 100%;
}

.post-detail-slider.kn-slider-ready .post-detail-slider-track {
  height: 100%;
}

.post-detail-slider.kn-slider-ready .post-detail-slider-item {
  height: 100%;
}

.post-detail-slider.kn-slider-ready .post-detail-slider-item img {
  height: 100%;
}

.post-detail-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.post-detail-slider-item {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.post-detail-slider-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.img-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  color: #fff;
  font-size: 0.85rem;
  z-index: 5;
  pointer-events: none;
  line-height: 1.4;
  margin: 0;
}

.img-description:empty {
  display: none;
}

.post-detail-slider-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  pointer-events: auto;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.post-detail-slider-wrap:hover .post-detail-slider-nav {
  opacity: 1;
  visibility: visible;
}

.post-detail-slider-nav button {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.post-detail-slider-nav button:hover {
  background: var(--nb-amber);
  border-color: var(--nb-amber);
  transform: scale(1.1);
}

.post-detail-slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  z-index: 50;
  pointer-events: auto;
}

.post-detail-slider-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.post-detail-slider-dots .dot.active {
  background: var(--nb-amber);
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--nb-amber);
}

@media (max-width: 767px) {
  .post-detail-slider {
    margin-bottom: 1.5rem;
  }

  .post-detail-slider-nav {
    padding: 0 0.8rem;
    opacity: 1;
    visibility: visible;
  }

  .post-detail-slider-nav button {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
  }

  .post-detail-slider-nav button svg {
    width: 11px;
    height: 11px;
  }

  .post-detail-slider-dots {
    bottom: 0.8rem;
  }

  .post-detail-slider-dots .dot {
    width: 9px;
    height: 9px;
  }
}

/* ─── GALLERY ─── */
.gallery-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.gallery-filters .btn-filter {
  background: var(--nb-gray-100);
  border: 1px solid var(--nb-gray-200);
  color: var(--nb-text);
  padding: .35rem .85rem;
  border-radius: 2px;
  font-size: .82rem;
  cursor: pointer;
}

.gallery-filters .btn-filter.active {
  background: var(--nb-amber);
  color: var(--nb-navy);
  border-color: var(--nb-amber);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}

.gallery-item img {
  width: 100%;
  border-radius: 2px;
}

/* Media icon overlay */
.media-icon,
.media-icon-lg,
.media-icon-sm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Lazyload */
.lazyload {
  opacity: 0;
  transition: opacity .3s;
}

.lazyloaded {
  opacity: 1;
}

/* ─── PROFILE PAGE ─── */
.nb-profile-header {
  position: relative;
  height: 220px;
  background: var(--nb-navy);
  overflow: hidden;
}

.nb-profile-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nb-profile-cover-empty {
  background: linear-gradient(135deg, var(--nb-navy) 0%, var(--nb-navy-light) 100%);
}

.nb-profile-info-bar {
  background: var(--nb-white);
  border-bottom: 1px solid var(--nb-gray-200);
  padding: 0 0 20px;
  position: relative;
  z-index: 2;
}

.nb-profile-info-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.nb-profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--nb-white);
  object-fit: cover;
  margin-top: -55px;
  background: var(--nb-gray-100);
  flex-shrink: 0;
}

.nb-profile-text {
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}

.nb-profile-name {
  font-family: var(--nb-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--nb-text);
  margin: 0;
  line-height: 1.3;
}

.nb-profile-status {
  font-size: 12px;
  color: var(--nb-gray-600);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.nb-profile-status.online svg {
  color: #22c55e;
}

.nb-profile-action {
  flex-shrink: 0;
  padding-bottom: 4px;
}

.nb-profile-body {
  max-width: 1280px;
  margin: 24px auto 48px;
  padding: 0 16px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.nb-profile-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nb-profile-widget {
  background: var(--nb-white);
  border: 1px solid var(--nb-gray-200);
  padding: 16px;
}

.nb-profile-widget .about-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--nb-text);
  margin-bottom: 10px;
}

.nb-profile-widget .info-item {
  font-size: 12px;
  color: var(--nb-gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.nb-profile-widget .info-item:last-child {
  margin-bottom: 0;
}

.nb-profile-social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.nb-profile-social a {
  width: 30px;
  height: 30px;
  background: var(--nb-gray-100);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nb-gray-600);
  font-size: 13px;
  transition: all .2s;
}

.nb-profile-social a:hover {
  background: var(--nb-amber);
  color: var(--nb-navy);
}

.nb-profile-widget-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--nb-navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--nb-gray-100);
}

.nb-followers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nb-followers-grid a img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform .2s;
}

.nb-followers-grid a:hover img {
  transform: scale(1.1);
}

.nb-profile-posts {
  flex: 1;
  min-width: 0;
}

.nb-profile-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── SETTINGS PAGES ─── */
.nb-settings-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.nb-settings-nav {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 5.5rem;
}

.nb-settings-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nb-settings-nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--nb-gray-600);
  text-decoration: none;
  border-radius: 3px;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}

.nb-settings-nav-link:hover {
  background: var(--nb-gray-50);
  color: var(--nb-text);
}

.nb-settings-nav-link.active {
  background: var(--nb-gray-50);
  color: var(--nb-navy);
  font-weight: 700;
  border-left-color: var(--nb-amber);
}

.nb-settings-nav-link.danger {
  color: var(--nb-red);
}

.nb-settings-content {
  flex: 1;
  min-width: 0;
}

.nb-settings-form {
  background: var(--nb-white);
  border: 1px solid var(--nb-gray-200);
  padding: 24px;
}

.nb-form-group {
  margin-bottom: 16px;
}

.nb-form-group:last-of-type {
  margin-bottom: 20px;
}

.nb-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--nb-text);
  margin-bottom: 6px;
}

.nb-radio-group {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}

.nb-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--nb-text);
}

/* Edit Profile Cover */
.nb-edit-cover {
  position: relative;
  height: 180px;
  background: var(--nb-navy);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  margin-bottom: 0;
  background-size: cover;
  background-position: center;
}

.nb-edit-cover.has-image {
  background-image: var(--profile-cover-url);
}

.nb-edit-avatar {
  position: absolute;
  bottom: -40px;
  left: 24px;
  width: 90px;
  height: 90px;
  z-index: 2;
}

.nb-edit-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--nb-white);
  object-fit: cover;
  background: var(--nb-gray-100);
}

.nb-edit-avatar .btn-upload-icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
}

.nb-edit-cover .btn-cover-upload {
  position: absolute;
  top: 12px;
  right: 12px;
}

.btn-upload-icon {
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  border: none;
  font-size: 12px;
}

.btn-upload-icon:hover {
  background: rgba(0, 0, 0, .7);
}

.btn-upload-icon input[type="file"] {
  display: none;
}

.nb-edit-cover-spacer {
  height: 50px;
}

.nb-form-hint {
  font-size: 11.5px;
  color: var(--nb-gray-600);
  margin-top: 4px;
}

/* Delete Account Warning */
.nb-alert-danger {
  padding: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.nb-alert-danger h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 700;
  color: #991b1b;
}

.nb-alert-danger p {
  color: #b91c1c;
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

.nb-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--nb-gray-50);
  border-radius: 4px;
  margin-bottom: 20px;
}

.nb-checkbox-group input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.nb-checkbox-group label {
  font-size: 13px;
  color: var(--nb-gray-600);
  cursor: pointer;
  line-height: 1.5;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background .2s;
  width: 100%;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Profile & Settings Dark Mode */
.dark-mode .nb-profile-info-bar {
  background: #141829;
  border-bottom-color: #2a2e42;
}

.dark-mode .nb-profile-name {
  color: #ddd;
}

.dark-mode .nb-profile-avatar {
  border-color: #141829;
}

.dark-mode .nb-profile-widget {
  background: #141829;
  border-color: #2a2e42;
}

.dark-mode .nb-profile-widget .about-text {
  color: #ccc;
}

.dark-mode .nb-profile-widget-title {
  color: #ddd;
  border-bottom-color: #2a2e42;
}

.dark-mode .nb-profile-social a {
  background: #2a2e42;
  color: #aaa;
}

.dark-mode .nb-settings-form {
  background: #141829;
  border-color: #2a2e42;
}

.dark-mode .nb-settings-nav-link {
  color: #aaa;
}

.dark-mode .nb-settings-nav-link:hover {
  background: #1a1f35;
  color: #ddd;
}

.dark-mode .nb-settings-nav-link.active {
  background: #1a1f35;
  color: var(--nb-amber);
}

.dark-mode .nb-form-label {
  color: #ddd;
}

.dark-mode .nb-edit-avatar img {
  border-color: #141829;
}

.dark-mode .nb-alert-danger {
  background: rgba(239, 68, 68, .1);
  border-color: rgba(239, 68, 68, .2);
}

.dark-mode .nb-alert-danger h4 {
  color: #fca5a5;
}

.dark-mode .nb-alert-danger p {
  color: #f87171;
}

.dark-mode .nb-checkbox-group {
  background: #1a1f35;
}

.dark-mode .nb-checkbox-group label {
  color: #aaa;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .nb-sidebar {
    width: 240px;
  }

  .nb-home-slider-item {
    height: 480px;
  }

  .nb-home-slide-title {
    font-size: 24px;
  }

  .nb-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .nb-latest-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .breadcrumb {
    display: none;
  }

  .nb-navbar {
    top: 34px;
  }

  .nb-nav-top {
    height: 44px;
  }

  .nb-nav-cats {
    overflow-x: auto;
  }

  .nb-logo {
    font-size: 20px;
  }

  .nb-btn-register {
    display: none;
  }

  .nb-hamburger {
    display: block;
  }

  .nb-mobile-search-btn {
    display: block;
  }

  /* On mobile, "More" opens drawer instead of dropdown */
  .nb-more-open-drawer .dropdown-menu {
    display: none !important;
  }

  .mega-menu {
    display: none !important;
  }

  /* Hide desktop-only nav actions on mobile — accessible via drawer */
  .nb-nav-actions .search-icon,
  .nb-nav-actions .profile-dropdown,
  .nb-nav-actions .nav-link-item,
  .nb-nav-actions>span,
  .nb-nav-actions>div:has(.dropdown-toggle),
  .nb-nav-actions>form:has(.btn-dark-mode) {
    display: none;
  }

  .nb-wrapper {
    padding: 8px 10px;
  }

  .nb-layout {
    flex-direction: column;
  }

  .nb-sidebar {
    width: 100%;
  }

  .nb-home-slider-item {
    height: 400px;
  }

  .nb-home-slide-title {
    font-size: 20px;
  }

  .nb-home-slide-content {
    padding: 20px 16px;
  }

  .nb-home-slider-nav {
    padding: 0 0.8rem;
    opacity: 1;
    visibility: visible;
  }

  .nb-home-slider-nav button {
    width: 36px;
    height: 36px;
  }

  .nb-featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .nb-video-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nb-video-grid .nb-video-card:nth-child(3) {
    display: none;
  }

  .nb-cat-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Mobile: show mobile-only elements (4th big card), hide desktop-only (duplicate list item) */
  .nb-mobile-only {
    display: flex !important;
  }

  .nb-desktop-only {
    display: none !important;
  }

  .nb-list-row {
    grid-template-columns: 1fr;
  }

  .nb-latest-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
  }

  .nb-footer-top {
    grid-template-columns: 1fr 1fr;
  }



  #nav-top {
    display: none;
  }

  .mega-menu {
    display: none !important;
  }

  /* Profile responsive */
  .nb-profile-header {
    height: 160px;
  }

  .nb-profile-avatar {
    width: 80px;
    height: 80px;
    margin-top: -40px;
  }

  .nb-profile-info-inner {
    gap: 14px;
  }

  .nb-profile-name {
    font-size: 18px;
  }

  .nb-profile-body {
    flex-direction: column;
    gap: 16px;
    margin: 16px auto 32px;
  }

  .nb-profile-sidebar {
    width: 100%;
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
  }

  .nb-profile-widget {
    min-width: 200px;
    flex-shrink: 0;
  }

  .nb-profile-posts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Settings responsive */
  .nb-settings-layout {
    flex-direction: column;
    gap: 16px;
  }

  .nb-settings-nav {
    width: 100%;
    position: static;
  }

  .nb-settings-nav ul {
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    border-bottom: 1px solid var(--nb-gray-200);
    scrollbar-width: none;
  }

  .nb-settings-nav ul::-webkit-scrollbar {
    display: none;
  }

  .nb-settings-nav-link {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 10px 14px;
    font-size: 12px;
  }

  .nb-settings-nav-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--nb-amber);
    background: none;
  }

  .nb-settings-form {
    padding: 16px;
  }

  .nb-edit-cover {
    height: 140px;
  }
}

@media (max-width: 639px) {
  .nb-footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nb-footer-grid .footer-widget-about {
    order: 10;
    text-align: center;
  }

  .nb-footer-grid .footer-widget-about .footer-logo {
    display: flex;
    justify-content: center;
  }

  .nb-footer-grid .footer-widget-about .footer-social-links ul {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nb-ticker {
    height: 30px;
  }

  .nb-navbar {
    top: 30px;
  }

  .nb-home-slider-item {
    height: 280px;
  }

  .nb-home-slide-title {
    font-size: 16px;
    max-width: 100%;
  }

  .nb-home-slide-content {
    padding: 16px 12px;
  }

  .nb-home-slider-nav button {
    width: 32px;
    height: 32px;
  }

  .nb-home-slider-dots {
    bottom: 0.6rem;
  }

  .nb-home-slider-dots .dot {
    width: 9px;
    height: 9px;
  }

  .nb-featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .nb-featured-thumb {
    padding-top: 65%;
  }

  .nb-featured-title {
    font-size: 13px;
  }

  .nb-featured-info {
    padding: 8px 10px 10px;
  }

  .nb-video-grid {
    grid-template-columns: 1fr;
  }

  .nb-video-thumb {
    padding-top: 0;
    height: auto;
  }

  .nb-video-card {
    display: flex;
    gap: 10px;
    padding: 8px 12px;
  }

  .nb-video-card .nb-video-thumb {
    width: 100px;
    height: 68px;
    flex-shrink: 0;
    padding-top: 0;
  }

  .nb-video-card .nb-video-thumb img {
    position: static;
  }

  .nb-play-btn {
    display: none;
  }

  .nb-video-info {
    padding: 0;
  }

  /* Grid 2 Column for Big Cards */
  .nb-cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
  }

  .nb-latest-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
  }

  .nb-mobile-only {
    display: flex !important;
  }

  .nb-desktop-only {
    display: none !important;
  }

  .nb-latest-card,
  .nb-cat-card {
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
  }

  .nb-latest-thumb,
  .nb-cat-thumb {
    padding-top: 75%;
    border-radius: 4px 4px 0 0;
    margin-bottom: 6px;
  }

  .nb-latest-card h4,
  .nb-cat-info h4 {
    font-size: 13px;
    line-height: 1.35;
    padding: 0 8px 10px;
    margin-bottom: 0;
  }

  .nb-cat-info {
    padding: 0;
  }

  .nb-latest-card .badge-category,
  .nb-cat-info .badge-category {
    margin: 6px 8px 4px !important;
  }

  .nb-latest-card .nb-list-meta,
  .nb-cat-info .nb-list-meta {
    padding: 0 8px 10px;
  }

  /* List Layout for Mobile */
  .nb-list-item,
  .post-item-small {
    gap: 12px;
    padding: 12px 10px;
  }

  .nb-list-thumb,
  .post-item-small .image {
    width: 90px;
    height: 90px;
    border-radius: 6px;
  }

  .nb-list-info h5,
  .post-item-small .caption .title {
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.4;
  }

  .nb-footer-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nb-footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-content .post-title {
    font-size: 22px;
  }
}