/* NadiKabar.com - Custom High-Performance News Theme */
:root {
  --primary: #DC2626;
  --primary-dark: #B91C1C;
  --primary-light: #FEE2E2;
  --dark: #0F172A;
  --slate: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --bg-light: #F8FAFC;
  --card-bg: #FFFFFF;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Merriweather", Georgia, Cambria, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Topbar */
.topbar {
  background: #0B0F19;
  color: #94A3B8;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #1E293B;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-date {
  font-weight: 500;
}

.topbar-links a {
  margin-left: 16px;
  color: #CBD5E1;
}

.topbar-links a:hover {
  color: #FFFFFF;
}

/* Breaking News Ticker */
.breaking-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 13px;
}

.breaking-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.breaking-label {
  background: var(--primary);
  color: #FFF;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

.breaking-ticker {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Main Navbar */
.navbar {
  background: #FFFFFF;
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand-logo img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  font-weight: 700;
  font-size: 15px;
}

.nav-menu a {
  padding: 6px 2px;
  position: relative;
}

.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.nav-search form {
  display: flex;
  align-items: center;
  background: #F1F5F9;
  border-radius: 20px;
  padding: 4px 12px;
  border: 1px solid var(--border);
}

.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 140px;
  padding: 4px;
}

.nav-search button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

/* Layout Grid */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 48px;
}

/* Hero Section */
.hero-section {
  margin-top: 20px;
  margin-bottom: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.hero-lead {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 420px;
  background: #0B0F19;
}

.hero-lead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.10);
  transform-origin: 30% 25%;
  transition: transform 0.4s ease;
}

.hero-lead:hover img {
  transform: scale(1.14);
}

.hero-lead-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 30%, rgba(15,23,42,0.95) 90%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #FFF;
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
  width: fit-content;
}

.badge-outline {
  background: var(--primary-light);
  color: var(--primary);
}

.hero-lead-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #FFF;
}

.hero-lead-meta {
  font-size: 12px;
  color: #CBD5E1;
}

.hero-sub-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-sub-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 198px;
  background: #0B0F19;
}

.hero-sub-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.10);
  transform-origin: 30% 25%;
  transition: transform 0.3s ease;
}

.hero-sub-card:hover img {
  transform: scale(1.14);
}

.hero-sub-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 20%, rgba(15,23,42,0.9) 95%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  color: #FFF;
}

.hero-sub-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #FFF;
}

/* Feed List */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  position: relative;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.news-thumb {
  border-radius: 8px;
  overflow: hidden;
  height: 130px;
  background: #E2E8F0;
  position: relative;
}

.news-thumb::after {
  content: "NADIKABAR";
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(11, 17, 32, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2.5px 7px;
  border-radius: 4px;
  border-left: 2px solid #DC2626;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 3;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.10);
  transform-origin: 30% 25%;
  transition: transform 0.3s;
}

.news-card:hover .news-thumb img {
  transform: scale(1.15);
}

.news-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 6px 0;
  color: var(--dark);
}

.news-summary {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.news-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widget {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  position: relative;
}

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

.popular-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.popular-num {
  font-size: 26px;
  font-weight: 900;
  color: #CBD5E1;
  line-height: 1;
  min-width: 24px;
}

.popular-item:nth-child(1) .popular-num { color: var(--primary); }
.popular-item:nth-child(2) .popular-num { color: #EA580C; }
.popular-item:nth-child(3) .popular-num { color: #EAB308; }

.popular-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

/* Pagination System */
.pagination-container {
  margin: 36px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #FFFFFF;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--slate);
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-total-badge {
  background: #FEE2E2;
  color: var(--primary);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #FCA5A5;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.15s ease;
}

.page-btn:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
}

.page-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.page-btn-nav {
  font-size: 12px;
  padding: 0 10px;
}

.page-ellipsis {
  padding: 0 4px;
  color: var(--muted);
  font-weight: 700;
}

.pagination-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--slate);
}

.pagination-jump select {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  background: #FFFFFF;
  color: var(--dark);
  outline: none;
}

/* Single Article */
.article-header {
  margin-bottom: 20px;
}

.article-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin: 12px 0;
}

.article-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
}

.article-author-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.share-btns {
  display: flex;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #FFF;
}

.share-wa { background: #25D366; }
.share-x { background: #0F172A; }
.share-fb { background: #1877F2; }

.article-featured-image {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0B1120;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
}

.nk-image-wrapper {
  position: relative;
  overflow: hidden;
  background: #0B1120;
  border-radius: 12px 12px 0 0;
}

.nk-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Full-width dark gradient & watermark blocker bar across the entire bottom (Height increased to 85px to completely mask all tall media watermarks) */
.nk-brand-frame-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 85px;
  background: linear-gradient(to top, rgba(11, 17, 32, 1) 0%, rgba(11, 17, 32, 0.98) 55%, rgba(11, 17, 32, 0.88) 78%, rgba(11, 17, 32, 0.45) 94%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 20px 14px 20px;
  pointer-events: none;
  z-index: 5;
  gap: 12px;
}

.nk-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 17, 32, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 3.5px solid #DC2626;
  border-radius: 6px;
  padding: 8px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.nk-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #DC2626;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #DC2626;
  animation: nk-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes nk-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.3); }
}

.nk-brand-name {
  color: #FFFFFF;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nk-brand-divider {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

.nk-brand-tag {
  color: #CBD5E1;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Right side watermark blocker (Detik/CNN usually at bottom right) */
.nk-brand-verified {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(11, 17, 32, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 8px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.nk-verif-icon {
  background: #2563EB;
  color: #FFFFFF;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
}

.nk-verif-text {
  color: #F1F5F9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Top-left category ribbon */
.nk-top-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 4px;
  border-left: 2.5px solid #DC2626;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.article-featured-image figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px;
  font-style: italic;
  background: #F8FAFC;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .nk-brand-frame-bar {
    padding: 12px 12px 8px 12px;
    min-height: 64px;
  }
  .nk-brand-pill {
    padding: 6px 10px;
    gap: 5px;
  }
  .nk-brand-name {
    font-size: 10.5px;
  }
  .nk-brand-tag, .nk-brand-divider {
    display: none;
  }
  .nk-brand-verified {
    padding: 6px 10px;
  }
  .nk-verif-text {
    font-size: 9px;
  }
}

.article-body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.8;
  color: #1E293B;
}

.article-body p {
  margin-bottom: 20px;
}

.read-also-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-main);
  font-size: 15px;
}

.read-also-box strong {
  color: var(--primary);
  display: block;
  font-size: 12px;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: #0B0F19;
  color: #94A3B8;
  padding: 48px 0 24px;
  margin-top: 60px;
  border-top: 3px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  color: #64748B;
}

.footer-col h4 {
  color: #FFF;
  font-size: 15px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a:hover {
  color: #FFF;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #475569;
}

/* Mobile App-Like Navigation & Components */
.mobile-search-trigger {
  display: none;
  background: transparent;
  border: none;
  color: var(--dark);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.mobile-search-trigger:hover {
  background: var(--bg-light);
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  padding: 0 8px;
  align-items: center;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748B;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 12px;
  flex: 1;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  transition: transform 0.15s ease;
}

.bottom-nav-item:active .nav-icon {
  transform: scale(0.9);
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--primary);
}

.bottom-nav-item.active .nav-icon {
  stroke: var(--primary);
}

/* Bottom Sheet Drawer for Categories */
.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bottom-sheet-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 22px 22px 0 0;
  z-index: 1020;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow-y: auto;
  padding: 10px 20px 84px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.bottom-sheet-drawer.open {
  transform: translateY(0);
}

.drawer-handle-bar {
  display: flex;
  justify-content: center;
  padding: 6px 0 10px;
}

.drawer-pill {
  width: 40px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 4px;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
}

.drawer-close-btn {
  background: var(--bg-light);
  border: none;
  font-size: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--slate);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.drawer-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--bg-light);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.drawer-cat-item .cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.drawer-cat-item:hover,
.drawer-cat-item.active {
  background: #FEE2E2;
  color: var(--primary);
  border-color: #FCA5A5;
}

.drawer-footer-links {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.drawer-footer-links a {
  color: var(--slate);
  text-decoration: none;
}

/* Quick Search Modal */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  z-index: 1020;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-modal-container {
  max-width: 600px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.search-modal-form {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 10px;
}

.search-modal-form input {
  flex: 1;
  border: none;
  font-size: 16px;
  padding: 10px 4px;
  color: var(--dark);
  outline: none;
  font-family: inherit;
}

.search-modal-submit {
  background: var(--primary);
  color: #FFF;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .main-layout {
    grid-template-columns: 1fr;
  }
  .news-card {
    grid-template-columns: 140px 1fr;
  }
  .news-thumb {
    height: 100px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Space for bottom nav bar */
  }

  .topbar {
    display: none; /* Hide cluttered topbar on mobile */
  }

  .navbar {
    padding: 10px 0;
  }

  .nav-wrap {
    justify-content: space-between;
  }

  .brand-logo img {
    height: 36px;
    width: auto;
  }

  .nav-menu,
  .nav-search {
    display: none !important; /* Replaced by bottom bar & quick search */
  }

  .mobile-search-trigger {
    display: flex;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .news-card {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
  }

  .news-thumb {
    height: 190px;
  }

  .article-header {
    margin-bottom: 20px;
  }

  .article-title {
    font-size: 22px;
    line-height: 1.35;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.85;
  }

  .article-body p {
    margin-bottom: 18px;
  }

  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .share-btns {
    width: 100%;
    justify-content: space-between;
  }

  .share-btn {
    flex: 1;
    text-align: center;
  }

  .pagination-container {
    margin-bottom: 96px !important;
    padding: 14px 8px !important;
    gap: 12px !important;
  }

  .page-btn {
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}

/* Content Area Base */
.content-area {
  background: #FFFFFF;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

/* Fix for mobile Android & responsive container */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .main-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 12px !important;
    margin-bottom: 24px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .content-area {
    padding: 18px 14px !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .article-header {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .article-title {
    font-size: 21px !important;
    line-height: 1.32 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .share-btns {
    display: flex !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
  }

  .share-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 8px 4px !important;
    font-size: 11px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .editorial-author-card {
    padding: 14px 12px !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Article Capsule Pager (Design Reference Image 2 & 3)
   ========================================================================== */
.article-capsule-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.capsule-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #EFF3F6;
  border: 1px solid #D8E2EC;
  border-radius: 999px;
  padding: 6px 8px 6px 18px;
  box-shadow: inset 0 2px 4px rgba(0, 30, 60, 0.08);
}

.capsule-title {
  font-size: 15px;
  font-weight: 800;
  color: #1A2E3B;
  letter-spacing: -0.2px;
  white-space: nowrap;
  margin-right: 8px;
}

.capsule-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

/* Numbered circles */
.capsule-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #004D80;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.capsule-num:hover {
  background: #00365B;
  transform: scale(1.05);
}

.capsule-num.active {
  background: #FFFFFF;
  color: #0F172A;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 -1px 2px rgba(0, 0, 0, 0.08);
}

/* Show all pages button (Image 3) */
.capsule-btn-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0077C8;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 119, 200, 0.3);
  flex-shrink: 0;
}

.capsule-btn-all:hover {
  background: #005F9E;
  transform: scale(1.08);
}

.capsule-btn-all.active {
  background: #FFFFFF;
  color: #0077C8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Round next arrow button outside capsule */
.capsule-btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #004D80;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 77, 128, 0.3);
  flex-shrink: 0;
}

.capsule-btn-next:hover {
  background: #00365B;
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .article-capsule-pager {
    gap: 8px;
    margin: 24px 0 16px;
  }

  .capsule-bar {
    padding: 5px 6px 5px 12px;
  }

  .capsule-title {
    font-size: 13px;
    margin-right: 4px;
  }

  .capsule-actions {
    gap: 4px;
  }

  .capsule-num {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .capsule-btn-all {
    width: 30px;
    height: 30px;
  }

  .capsule-btn-next {
    width: 38px;
    height: 38px;
  }
}
