:root {
  --lw-primary: #1d4ed8;
  --lw-primary-hover: #1e40af;
  --lw-secondary: #0ea5e9;
  --lw-dark: #0f172a;
  --lw-text: #334155;
  --lw-muted: #64748b;
  --lw-bg-light: #f8fafc;
  --lw-card-border: #e2e8f0;
  --lw-accent: #f59e0b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--lw-text);
  background-color: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--lw-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Header & Navigation */
.navbar-brand-img {
  height: 48px;
  width: auto;
}

.top-bar-support {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 6px 0;
}

.top-bar-support a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

.top-bar-support a:hover {
  text-decoration: underline;
}

.nav-link {
  font-weight: 500;
  color: #334155 !important;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--lw-primary) !important;
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-gradient::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
}

.hero-lead {
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto;
}

/* Category Cards & Badges */
.category-card {
  border: 1px solid var(--lw-card-border);
  border-radius: 14px;
  transition: all 0.25s ease;
  background-color: #ffffff;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.12);
  color: inherit;
}

.category-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background-color: #eff6ff;
  color: var(--lw-primary);
  margin-bottom: 1rem;
}

/* Article Cards */
.article-card {
  border: 1px solid var(--lw-card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  background-color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.article-card .card-img-top {
  height: 190px;
  object-fit: cover;
  background-color: #f1f5f9;
}

.article-card .badge-cat {
  background-color: #eff6ff;
  color: var(--lw-primary);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.article-card .card-title a {
  color: var(--lw-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.article-card .card-title a:hover {
  color: var(--lw-primary);
}

/* Tools Card */
.tool-card {
  border: 1px solid var(--lw-card-border);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

/* Ad Unit Styling */
.ad-container {
  max-width: 100%;
  margin: 1.8rem auto;
}

.ad-slot-wrapper {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f8fafc;
}

/* QuickB AI Solution Banner */
.support-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 14px;
}

/* Footer Styling */
footer.site-footer {
  background-color: #0b1120;
  color: #94a3b8;
  font-size: 0.92rem;
}

footer.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

footer.site-footer a:hover {
  color: #38bdf8;
}

footer.site-footer h6 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
}

/* Single Article Details */
.article-content {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #27272a;
}

.article-content h2 {
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.article-content h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.article-content p {
  margin-bottom: 1.4rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.4rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--lw-primary);
  padding: 0.8rem 1.2rem;
  background-color: #f8fafc;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #475569;
}
