/**
 * News Blue Omza V1 - Stylesheet
 * Inspirasi: Portal Berita Regional & Nasional Modern (AnteroAceh.com Style)
 * Warna Utama: Royal Blue (#0b3a75), Dark Navy (#07244c), Gold Accent (#f59e0b)
 */

:root {
  --nb-primary: #0b3a75;
  --nb-primary-hover: #072a59;
  --nb-dark: #07244c;
  --nb-darker: #04162e;
  --nb-gold: #f59e0b;
  --nb-gold-hover: #d97706;
  --nb-bg: #f8fafc;
  --nb-card-bg: #ffffff;
  --nb-text: #1e293b;
  --nb-text-muted: #64748b;
  --nb-border: #e2e8f0;
  --nb-container: 1140px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--nb-bg);
  color: var(--nb-text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.018em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--nb-primary);
}

.nb-container {
  max-width: var(--nb-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* ==================== 1. TOP BAR ==================== */
.nb-topbar {
  background-color: var(--nb-dark);
  color: #cbd5e1;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nb-topbar a {
  color: #cbd5e1;
}
.nb-topbar a:hover {
  color: var(--nb-gold);
}
.nb-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nb-social-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  transition: all 0.2s;
}
.nb-social-top a:hover {
  background: var(--nb-gold);
  color: #fff;
}

/* ==================== 2. MAIN HEADER & LOGO ==================== */
.nb-header-main {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid var(--nb-border);
}
.nb-logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--nb-primary);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nb-logo-mark {
  background: var(--nb-primary);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(11, 58, 117, 0.25);
  border-bottom: 3px solid var(--nb-gold);
}
.nb-logo span.accent {
  color: var(--nb-gold);
}

/* ==================== 3. NAVBAR ==================== */
.nb-navbar {
  background-color: var(--nb-primary);
  border-bottom: 3px solid var(--nb-gold);
  box-shadow: 0 4px 12px rgba(11, 58, 117, 0.15);
  position: relative;
  z-index: 1000;
}
.nb-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nb-nav-item {
  position: relative;
}
.nb-nav-link {
  display: block;
  color: #ffffff;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}
.nb-nav-link:hover,
.nb-nav-link.active {
  background-color: var(--nb-primary-hover);
  color: var(--nb-gold);
}
.nb-nav-home {
  padding: 12px 16px;
  background-color: var(--nb-dark);
  color: #ffffff;
}
.nb-nav-home:hover {
  background-color: var(--nb-gold);
  color: var(--nb-dark);
}

/* Dropdown */
.nb-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid var(--nb-border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border-radius: 0 0 6px 6px;
  list-style: none;
  padding: 6px 0;
  z-index: 1050;
}
.nb-nav-item:hover .nb-dropdown-menu {
  display: block;
}
.nb-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--nb-text);
  font-weight: 600;
}
.nb-dropdown-menu a:hover {
  background: #f1f5f9;
  color: var(--nb-primary);
  padding-left: 20px;
}

/* Sub-Navbar (Baris Cepat) */
.nb-subnav {
  background-color: #e2e8f0;
  padding: 6px 0;
  font-size: 12.5px;
  border-bottom: 1px solid #cbd5e1;
}
.nb-subnav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
}
.nb-subnav-list a {
  color: var(--nb-dark);
  font-weight: 600;
}
.nb-subnav-list a:hover {
  color: var(--nb-primary);
}

/* ==================== 4. BREAKING NEWS TICKER ==================== */
.nb-ticker {
  background-color: var(--nb-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  height: 34px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 16px;
}
.nb-ticker-badge {
  background-color: var(--nb-gold);
  color: var(--nb-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.nb-ticker-content {
  flex-grow: 1;
  overflow: hidden;
  padding-left: 12px;
  font-size: 13px;
  white-space: nowrap;
}
.nb-ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: tickerAnim 35s linear infinite;
}
.nb-ticker-track:hover {
  animation-play-state: paused;
}
@keyframes tickerAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== 5. CARDS & HERO HEADLINES ==================== */
.nb-card {
  background: #ffffff;
  border: 1px solid var(--nb-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nb-card:hover {
  box-shadow: 0 8px 18px rgba(11, 58, 117, 0.08);
}

/* Hero Main Headline */
.nb-hero-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 380px;
}
.nb-hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.nb-hero-main:hover img {
  transform: scale(1.03);
}
.nb-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 36, 76, 0.95) 100%);
  padding: 24px 20px 18px;
  color: #ffffff;
}
.nb-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 6px;
  line-height: 1.3;
}
.nb-hero-title:hover {
  color: var(--nb-gold);
}

/* Secondary Headline Cards */
.nb-sub-hero {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 182px;
}
.nb-sub-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.nb-sub-hero:hover img {
  transform: scale(1.04);
}
.nb-sub-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 36, 76, 0.9) 100%);
  padding: 14px 12px;
  color: #ffffff;
}
.nb-sub-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-top: 4px;
}
.nb-sub-title:hover {
  color: var(--nb-gold);
}

/* Category Badge Pill */
.nb-badge {
  display: inline-block;
  background-color: var(--nb-primary);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.nb-badge-gold {
  background-color: var(--nb-gold);
  color: var(--nb-dark);
}

/* Feed List Card (Antero Style) */
.nb-feed-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--nb-border);
}
.nb-feed-item:last-child {
  border-bottom: none;
}
.nb-feed-thumb {
  width: 135px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}
.nb-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.nb-feed-item:hover .nb-feed-thumb img {
  transform: scale(1.05);
}
.nb-feed-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}
.nb-feed-title:hover {
  color: var(--nb-primary);
}
.nb-feed-meta {
  font-size: 12px;
  color: var(--nb-text-muted);
}

/* ==================== 6. SIDEBAR & SECTION HEADERS ==================== */
.nb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--nb-primary);
  margin-bottom: 16px;
  padding-bottom: 6px;
}
.nb-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--nb-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nb-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--nb-gold);
  border-radius: 2px;
}

/* Numbered Popular Widget (1 to 5) */
.nb-pop-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nb-border);
}
.nb-pop-item:last-child {
  border-bottom: none;
}
.nb-pop-num {
  width: 28px;
  height: 28px;
  background-color: var(--nb-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nb-pop-item:nth-child(1) .nb-pop-num {
  background-color: #ef4444; /* Merah untuk nomor 1 */
}
.nb-pop-item:nth-child(2) .nb-pop-num {
  background-color: var(--nb-gold);
  color: var(--nb-dark);
}
.nb-pop-item:nth-child(3) .nb-pop-num {
  background-color: var(--nb-primary);
}
.nb-pop-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 3px;
}
.nb-pop-meta {
  font-size: 11.5px;
  color: var(--nb-text-muted);
}

/* Tag Cloud */
.nb-tag-pill {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--nb-text);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 4px;
  margin-bottom: 6px;
  transition: all 0.2s;
}
.nb-tag-pill:hover {
  background: var(--nb-primary);
  color: #ffffff;
  border-color: var(--nb-primary);
}

/* ==================== 7. FOOTER ==================== */
.nb-footer {
  background-color: var(--nb-dark);
  color: #cbd5e1;
  padding-top: 40px;
  border-top: 4px solid var(--nb-gold);
  margin-top: 40px;
}
.nb-footer h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  border-left: 3px solid var(--nb-gold);
  padding-left: 8px;
}
.nb-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nb-footer-links li {
  margin-bottom: 8px;
}
.nb-footer-links a {
  color: #cbd5e1;
  font-size: 13.5px;
  transition: all 0.2s;
}
.nb-footer-links a:hover {
  color: var(--nb-gold);
  padding-left: 4px;
}
.nb-subfooter {
  background-color: var(--nb-darker);
  color: #94a3b8;
  font-size: 12px;
  padding: 16px 0;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==================== 8. DETAIL ARTIKEL ==================== */
.nb-article-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin-bottom: 12px;
}
.nb-article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--nb-border);
  font-size: 13px;
  color: var(--nb-text-muted);
  flex-wrap: wrap;
}
.nb-article-body {
  font-size: 17px;
  line-height: 1.8;
  color: #334155;
}
.nb-article-body p {
  margin-bottom: 1.25rem;
}
.nb-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.nb-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff !important;
  margin-right: 4px;
  margin-bottom: 8px;
}
.nb-share-wa { background: #25d366; }
.nb-share-fb { background: #1877f2; }
.nb-share-tw { background: #000000; }
.nb-share-tg { background: #0088cc; }

/* Hover Lift & Card Refinements */
.nb-feed-list article {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nb-feed-list article:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 58, 117, 0.08) !important;
  border-color: #cbd5e1 !important;
}

/* Mobile & Tablet Responsive Adjustments */
@media (max-width: 991.98px) {
  .nb-nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nb-nav-item {
    width: 100%;
  }
  .nb-nav-link {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nb-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 4px;
    margin: 4px 10px;
  }
  .nb-nav-item:hover .nb-dropdown-menu,
  .nb-nav-item.show .nb-dropdown-menu {
    display: block;
  }
  .nb-dropdown-menu a {
    color: #e2e8f0;
    padding: 8px 16px;
  }
  .nb-dropdown-menu a:hover {
    background: transparent;
    color: var(--nb-gold);
  }
}

@media (max-width: 768px) {
  .nb-header-main { padding: 10px 0; }
  .nb-logo { font-size: 22px; }
  .nb-logo-mark { width: 34px; height: 34px; font-size: 18px; }
  .nb-hero-main { height: 260px !important; }
  .nb-hero-main h2 { font-size: 18px !important; }
  .nb-hero-grid .col-6 { width: 100%; }
  .nb-hero-grid .col-6 .rounded { height: 140px !important; }
  .nb-feed-list article { flex-direction: column; }
  .nb-feed-list article .flex-shrink-0 { width: 100% !important; height: 180px !important; }
  .nb-article-body { font-size: 15.5px !important; line-height: 1.75 !important; }
}
