/* ============================================
   soft.bg — Magazine-Style Blog
   Bulgarian Tech & Business Blog
   ============================================ */

:root {
  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #6b7280;
  --color-accent: #e63946;
  --color-accent-dark: #c1121f;
  --color-secondary: #2563eb;
  --color-secondary-light: #dbeafe;
  --color-border: #e5e7eb;
  --color-card-bg: #ffffff;
  --color-header-bg: #0f172a;
  --color-footer-bg: #0f172a;
  --color-category-bg: #1e293b;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Courier New', monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
  --max-width: 1240px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
.site-header {
  background: var(--color-header-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.site-logo img {
  height: 36px;
  width: auto;
  display: block;
}
.logo-tagline {
  font-size: 0.68rem;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
  display: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.site-nav a:hover, .site-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.10);
}

/* Header dropdown menu */
.nav-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.nav-dropdown-btn {
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown:hover .nav-dropdown-btn {
  color: #fff;
  background: rgba(255,255,255,0.10);
}
.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-header-bg);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border-radius: var(--radius-md);
  margin-top: 0;
  z-index: 101;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 0;
}
/* Invisible bridge to prevent hover loss if there happens to be a 1-2px gap */
.nav-dropdown-content::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}
.nav-dropdown:hover .nav-dropdown-content {
  display: flex;
  flex-direction: column;
}
.nav-dropdown-content a {
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  text-transform: none;
  border-radius: 0;
}
.nav-dropdown-content a:hover {
  background-color: rgba(255,255,255,0.05);
}

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 6px 14px;
  gap: 8px;
  transition: background var(--transition);
}
.header-search:focus-within {
  background: rgba(255,255,255,0.14);
}
.header-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  width: 160px;
}
.header-search input::placeholder { color: #94a3b8; }
.header-search svg { color: #94a3b8; flex-shrink: 0; }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

/* ---- Breaking news ticker ---- */
.ticker-bar {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.82rem;
  padding: 6px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ticker-label {
  background: rgba(0,0,0,0.2);
  padding: 2px 10px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track {
  overflow: hidden;
  flex: 1;
}
.ticker-content {
  display: flex;
  gap: 48px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-content a { color: #fff; opacity: 0.92; }
.ticker-content a:hover { opacity: 1; text-decoration: underline; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ HERO SECTION ============ */
.hero-section {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-category-bg);
  min-height: 440px;
  display: flex;
  align-items: flex-end;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: #fff;
}
.hero-category-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #fff;
}
.hero-title a:hover { color: #e2e8f0; }
.hero-excerpt {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #94a3b8;
}
.hero-meta .dot { opacity: 0.5; }

/* Hero sidebar */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-article {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}
.sidebar-article:last-child { border-bottom: none; }
.sidebar-article:hover { background: #f8fafc; }
.sidebar-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #e5e7eb;
  line-height: 1;
  min-width: 28px;
  font-family: var(--font-heading);
}
.sidebar-article-body {}
.sidebar-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.sidebar-article-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}
.sidebar-article:hover .sidebar-article-title { color: var(--color-accent); }
.sidebar-article-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ============ CATEGORY STRIP ============ */
.category-strip {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-border);
  padding: 0;
}
.category-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.category-tab:hover { color: var(--color-text); border-color: var(--color-border); }
.category-tab.active-erp { color: #2563eb; border-color: #2563eb; }
.category-tab.active-ai { color: #7c3aed; border-color: #7c3aed; }
.category-tab.active-apps { color: #059669; border-color: #059669; }
.category-tab.active-news { color: var(--color-accent); border-color: var(--color-accent); }
.category-tab .count {
  background: #f1f5f9;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 10px;
}

/* ============ MAIN CONTENT AREA ============ */
.main-content {
  padding: 40px 0 60px;
}
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-text);
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-more {
  font-size: 0.82rem;
  color: var(--color-secondary);
  font-weight: 600;
}
.section-more:hover { text-decoration: underline; }

/* ---- Article Cards ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.articles-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}
.article-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-image-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--color-category-bg);
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .card-image { transform: scale(1.04); }
.card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  z-index: 2;
}
.cat-bg-erp { background: #2563eb; }
.cat-bg-ai { background: #7c3aed; }
.cat-bg-apps { background: #059669; }
.cat-bg-news { background: var(--color-accent); }
.cat-bg-default { background: #475569; }

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a:hover { color: var(--color-accent); }
.card-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-top: auto;
}
.card-date { display: flex; align-items: center; gap: 5px; }
.card-read-time { display: flex; align-items: center; gap: 5px; }
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-secondary);
}
.read-more-btn:hover { color: var(--color-accent); }

/* ---- Featured strip (horizontal card) ---- */
.article-card-horizontal {
  display: flex;
  gap: 0;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
  margin-bottom: 20px;
}
.article-card-horizontal:hover { box-shadow: var(--shadow-md); }
.card-h-image {
  width: 200px;
  flex-shrink: 0;
  position: relative;
  background: #1e293b;
}
.card-h-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-h-body {
  padding: 20px;
  flex: 1;
}
.card-h-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.cat-text-erp { color: #2563eb; }
.cat-text-ai { color: #7c3aed; }
.cat-text-apps { color: #059669; }
.cat-text-news { color: var(--color-accent); }
.cat-text-default { color: #475569; }
.card-h-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.card-h-title a:hover { color: var(--color-accent); }
.card-h-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.card-h-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ============ SIDEBAR ============ */
.sidebar { position: sticky; top: 84px; }
.sidebar-widget {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
}
.widget-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--color-border);
  background: #f8fafc;
}
.widget-body { padding: 16px 20px; }

/* Popular widget */
.popular-list { display: flex; flex-direction: column; gap: 16px; }
.popular-item { display: flex; gap: 12px; align-items: flex-start; }
.popular-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #e5e7eb;
  line-height: 1;
  font-family: var(--font-heading);
  min-width: 24px;
}
.popular-info {}
.popular-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}
.popular-item:hover .popular-title { color: var(--color-accent); }
.popular-meta { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 2px; }

/* Categories widget */
.cat-list { display: flex; flex-direction: column; gap: 0; }
.cat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item:hover { color: var(--color-accent); }
.cat-list-count {
  background: #f1f5f9;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.cat-list-item:hover .cat-list-count { background: #fee2e2; color: var(--color-accent); }

/* Newsletter widget */
.newsletter-widget { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); color: #fff; }
.newsletter-widget .widget-title { background: rgba(255,255,255,0.06); color: #94a3b8; border-color: rgba(255,255,255,0.08); }
.newsletter-text { font-size: 0.88rem; color: #94a3b8; margin-bottom: 14px; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-input {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}
.newsletter-input::placeholder { color: #64748b; }
.newsletter-btn {
  padding: 10px 14px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.newsletter-btn:hover { background: var(--color-accent-dark); }

/* Tags widget */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px; }
.tag-chip {
  padding: 4px 12px;
  background: #f1f5f9;
  color: var(--color-text-muted);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.tag-chip:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ============ ARTICLE PAGE ============ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0 60px;
  align-items: start;
}
.article-header { margin-bottom: 28px; }
.article-breadcrumb {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-breadcrumb a:hover { color: var(--color-accent); }
.article-category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 14px;
}
.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-text);
}
.article-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  font-style: italic;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--color-text-muted); }
.meta-item svg { flex-shrink: 0; }
.article-hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  aspect-ratio: 16/8;
  object-fit: cover;
  background: #1e293b;
}
/* Article body */
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text);
}
.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--color-text);
}
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 28px 0;
  padding: 16px 24px;
  background: #fff8f7;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.08rem;
  color: #374151;
}
.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }
.article-body a { color: var(--color-secondary); text-decoration: underline; }
.article-body a:hover { color: var(--color-accent); }
.article-body .highlight-box {
  background: var(--color-secondary-light);
  border: 1px solid #93c5fd;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}
.article-body .highlight-box p { margin-bottom: 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
}
.article-body th {
  background: var(--color-category-bg);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
}
.article-body tr:nth-child(even) td { background: #f8fafc; }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin: 36px 0;
  flex-wrap: wrap;
}
.share-label { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); flex: 1; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition);
}
.share-btn:hover { opacity: 0.85; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-li { background: #0a66c2; }

/* Related articles */
.related-section { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--color-border); }
.related-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ============ CATEGORY PAGE ============ */
.category-header {
  padding: 40px 0 32px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.cat-header-inner { display: flex; align-items: center; gap: 20px; }
.cat-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-icon-erp { background: #dbeafe; color: #2563eb; }
.cat-icon-ai { background: #ede9fe; color: #7c3aed; }
.cat-icon-apps { background: #d1fae5; color: #059669; }
.cat-icon-news { background: #fee2e2; color: var(--color-accent); }
.cat-header-text {}
.cat-header-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}
.cat-header-desc { font-size: 0.95rem; color: var(--color-text-muted); margin-top: 4px; }
.cat-articles-grid { padding: 40px 0 60px; }

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition);
  background: var(--color-white);
}
.page-btn:hover, .page-btn.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-footer-bg);
  color: #94a3b8;
  padding: 56px 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.footer-brand {}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--color-accent); }
.footer-desc { font-size: 0.88rem; line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: #94a3b8;
}
.social-btn:hover { background: var(--color-accent); color: #fff; }
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: #fff; }

/* ============ SEARCH PAGE ============ */
.search-box-wrap {
  padding: 48px 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.search-input-big {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
}
.search-input-big input {
  flex: 1;
  padding: 16px 20px;
  font-size: 1.05rem;
  border: none;
  outline: none;
  color: var(--color-text);
}
.search-input-big button {
  padding: 16px 24px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* ============ UTILITY ============ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { display: none; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-inner { gap: 12px; }
  .logo-text { font-size: 1.4rem; }
  .site-nav { display: none; }
  .header-search { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-main { min-height: 300px; }
  .hero-content { padding: 20px; }
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid.three-col { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .card-h-image { width: 120px; }
  .article-body h2 { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .article-meta { gap: 10px; }
  .share-bar { flex-direction: column; align-items: flex-start; }
}

/* ============ PRINT ============ */
@media print {
  .site-header, .ticker-bar, .sidebar, .share-bar, .related-section, .site-footer, .cookie-banner { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-title { font-size: 1.8rem; }
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-header-bg);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  color: #fff;
  font-size: 0.9rem;
  gap: 20px;
}
.cookie-banner .cookie-content {
  flex: 1;
  line-height: 1.5;
}
.cookie-banner a {
  color: #93c5fd;
  text-decoration: underline;
}
.cookie-btn {
  background-color: var(--color-accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.cookie-btn:hover {
  background-color: var(--color-accent-dark);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .cookie-btn {
    width: 100%;
  }
}
