/* ==========================================================================
   Noticias Chiriquí - Modern Portal Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;

  --color-primary: #dc2626;
  --color-primary-dark: #b91c1c;
  --color-primary-light: #fef2f2;
  --color-secondary: #0f172a;
  --color-accent: #0284c7;
  --color-dark: #0f172a;
  --color-dark-light: #1e293b;
  --color-gray-bg: #f8fafc;
  --color-border: #e2e8f0;
  
  --category-judicial: #e11d48;
  --category-chiriqui: #0284c7;
  --category-deportes: #ea580c;
  --category-economia: #059669;
  --category-nacionales: #4f46e5;
  --category-opinion: #7c3aed;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-gray-bg);
  color: #334155;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.nc-topbar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nc-topbar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nc-topbar a:hover {
  color: #ffffff;
}

.nc-weather-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #f1f5f9;
}

.nc-weather-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px;
  color: #f1f5f9;
  padding: 3px 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.nc-weather-btn:hover,
.nc-weather-btn:focus,
.nc-weather-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.nc-weather-dropdown .dropdown-menu {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  padding: 6px;
}

.nc-weather-dropdown .dropdown-item {
  color: #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  transition: all 0.15s ease;
}

.nc-weather-dropdown .dropdown-item:hover,
.nc-weather-dropdown .dropdown-item:focus {
  background-color: rgba(220, 38, 38, 0.2);
  color: #ffffff;
}

.nc-weather-dropdown .dropdown-item.active {
  background-color: var(--color-primary);
  color: #ffffff;
}

.nc-trend-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.76rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
}

.nc-trend-badge:hover {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.35);
}

/* ==========================================================================
   Modern Navbar
   ========================================================================== */
.nc-navbar {
  background: #ffffff;
  border-bottom: 2px solid var(--color-border);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nc-navbar .navbar-brand img {
  max-height: 55px;
  width: auto;
  transition: transform 0.3s ease;
}

.nc-navbar .navbar-brand:hover img {
  transform: scale(1.03);
}

.nc-navbar a,
.nc-nav-link,
.nc-dropdown-item,
.nc-topbar a,
.navbar-brand {
  text-decoration: none !important;
}

.nc-nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b !important;
  padding: 0.6rem 0.9rem !important;
  position: relative;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.nc-nav-link:hover, 
.nc-nav-link:focus, 
.nc-nav-link.active {
  color: var(--color-primary) !important;
  text-decoration: none !important;
}

/* ==========================================================================
   Dropdown Menus & Submenus
   ========================================================================== */
.nc-dropdown-menu {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
  min-width: 220px;
  margin-top: 0.5rem !important;
  background: #ffffff;
  border-top: 3px solid var(--color-primary);
}

.nc-dropdown-item {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.nc-dropdown-item:hover, .nc-dropdown-item:focus {
  background-color: #fef2f2;
  color: var(--color-primary);
  padding-left: 1.25rem;
}

.nc-dropdown-item i {
  transition: transform 0.2s ease;
}

.nc-dropdown-item:hover i {
  transform: translateX(3px);
  color: var(--color-primary);
}

@media (min-width: 992px) {
  .nc-navbar .nav-item.dropdown:hover > .nc-dropdown-menu {
    display: block;
    animation: fadeInDropdown 0.2s ease forwards;
  }
}

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

.btn-live-pulse {
  background: #dc2626;
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
  100% {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* ==========================================================================
   Breaking News Ticker
   ========================================================================== */
.nc-breaking-ticker {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nc-breaking-label {
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nc-breaking-content {
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.nc-breaking-content a {
  color: #f1f5f9;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nc-breaking-content a:hover span.text-truncate {
  color: #fca5a5 !important;
}

.nc-breaking-action {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0 16px 0 8px;
  display: inline-flex;
  align-items: center;
}

.nc-breaking-action a {
  color: #cbd5e1 !important;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nc-breaking-action a:hover {
  color: #ffffff !important;
  transform: translateX(2px);
}

/* ==========================================================================
   Category Badges
   ========================================================================== */
.nc-badge {
  font-family: var(--font-heading);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.nc-badge-judicial { background: var(--category-judicial); color: #ffffff; }
.nc-badge-chiriqui { background: var(--category-chiriqui); color: #ffffff; }
.nc-badge-deportes { background: var(--category-deportes); color: #ffffff; }
.nc-badge-economia { background: var(--category-economia); color: #ffffff; }
.nc-badge-nacionales { background: var(--category-nacionales); color: #ffffff; }
.nc-badge-opinion { background: var(--category-opinion); color: #ffffff; }

/* ==========================================================================
   Hero Main Story (Noticia Principal)
   ========================================================================== */
.nc-hero-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nc-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.nc-hero-card .nc-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nc-hero-card:hover .nc-hero-bg {
  transform: scale(1.05);
}

.nc-hero-card .nc-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 20%, rgba(15, 23, 42, 0.7) 60%, rgba(15, 23, 42, 0.95) 100%);
  z-index: 1;
}

.nc-hero-card .nc-hero-content {
  position: relative;
  z-index: 2;
  padding: 2.2rem;
  color: #ffffff;
}

.nc-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.nc-hero-card:hover .nc-hero-title {
  color: #fca5a5;
}

.nc-hero-excerpt {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  max-width: 90%;
}

.nc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.825rem;
  color: #94a3b8;
}

/* ==========================================================================
   Secondary Side Cards
   ========================================================================== */
.nc-secondary-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.nc-secondary-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.nc-secondary-img-wrap {
  position: relative;
  overflow: hidden;
  height: 150px;
}

.nc-secondary-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nc-secondary-card:hover .nc-secondary-img-wrap img {
  transform: scale(1.06);
}

.nc-secondary-card .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.nc-secondary-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-secondary);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.nc-secondary-card:hover .nc-secondary-title {
  color: var(--color-primary);
}

/* ==========================================================================
   Trending Section (Lo Más Leído)
   ========================================================================== */
.nc-trending-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  transition: all 0.25s ease;
}

.nc-trending-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nc-trending-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: #cbd5e1;
  min-width: 40px;
  transition: color 0.2s;
}

.nc-trending-card:hover .nc-trending-num {
  color: var(--color-primary);
}

.nc-trending-title {
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-secondary);
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  transition: color 0.2s;
}

.nc-trending-card:hover .nc-trending-title {
  color: var(--color-primary);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.nc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
}

.nc-section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-primary);
}

.nc-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nc-section-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.nc-section-more:hover {
  color: var(--color-primary-dark);
  gap: 8px;
}

/* ==========================================================================
   Multimedia & Video Reel
   ========================================================================== */
.nc-multimedia-section {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
}

.nc-multimedia-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
  pointer-events: none;
}

.nc-video-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #1e293b;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.nc-video-card:hover {
  transform: scale(1.02);
}

.nc-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nc-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
  transition: all 0.3s ease;
}

.nc-video-card:hover .nc-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: #dc2626;
}

.nc-video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   Opinion Section
   ========================================================================== */
.nc-opinion-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.nc-opinion-card:hover {
  transform: translateY(-3px);
  border-color: var(--category-opinion);
  box-shadow: var(--shadow-md);
}

.nc-author-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--category-opinion);
}

.nc-opinion-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: #334155;
  margin-top: 0.75rem;
  line-height: 1.4;
}

/* ==========================================================================
   Widgets & Sidebar
   ========================================================================== */
.nc-widget-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
}

.nc-widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-secondary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1rem;
}

.nc-whatsapp-card {
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.nc-newsletter-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Modern Footer
   ========================================================================== */
.nc-footer {
  background: #0b1120 !important;
  color: #e2e8f0 !important;
  padding: 4.5rem 0 2.5rem;
  border-top: 4px solid var(--color-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.nc-footer h5 {
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.nc-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.nc-footer p,
.nc-footer span:not(.text-danger):not(.text-success),
.nc-footer li,
.nc-footer-desc,
.nc-footer-info {
  color: #cbd5e1 !important;
}

.nc-footer .text-muted {
  color: #cbd5e1 !important;
}

.nc-footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.nc-footer-links li {
  margin-bottom: 0.65rem;
}

.nc-footer-links a {
  color: #cbd5e1 !important;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  font-size: 0.925rem;
}

.nc-footer-links a:hover {
  color: #ffffff !important;
  transform: translateX(4px);
}

.nc-footer-links a i {
  transition: transform 0.2s ease;
}

.nc-footer-links a:hover i {
  transform: scale(1.2);
}

.nc-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nc-social-btn:hover {
  background: var(--color-primary);
  color: #ffffff !important;
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 6px 15px rgba(225, 29, 72, 0.35);
}

.nc-social-btn.nc-social-wa {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.35);
  color: #25d366 !important;
}

.nc-social-btn.nc-social-wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff !important;
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.nc-footer-btn-wa {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 600;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.nc-footer-btn-wa:hover {
  background: #20ba59;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.nc-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  margin-top: 3.5rem;
}

.nc-footer-bottom p,
.nc-footer-copy {
  color: #94a3b8 !important;
  font-size: 0.875rem;
}

.nc-footer-bottom strong {
  color: #ffffff !important;
}

.nc-footer-bottom a {
  color: #38bdf8 !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nc-footer-bottom a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Responsive Fixes */
@media (max-width: 991.98px) {
  .nc-hero-card {
    min-height: 380px;
  }
  .nc-hero-title {
    font-size: 1.5rem;
  }
  .nc-multimedia-section {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Utilities & Line Clamping
   ========================================================================== */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nc-ranking-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nc-ranking-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

.nc-ranking-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  word-break: break-word;
}

/* ==========================================================================
   Error Pages Design (404, 403, 500, 419, 503)
   ========================================================================== */
.nc-error-wrapper {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem;
}

.nc-error-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  max-width: 680px;
  width: 100%;
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nc-error-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #dc2626, #ea580c, #0284c7);
}

.nc-error-number {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #dc2626 0%, #1e293b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}

.nc-error-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.nc-error-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #0f172a;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.nc-error-desc {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 1.75rem auto;
}

.nc-error-search {
  max-width: 480px;
  margin: 0 auto 2rem auto;
}

.nc-error-search .form-control {
  border-radius: 50px 0 0 50px;
  padding-left: 1.25rem;
  border: 1px solid #cbd5e1;
}

.nc-error-search .btn {
  border-radius: 0 50px 50px 0;
  padding: 0.6rem 1.5rem;
}


