/* ==========================================================================
   Dynamics ERP - Business Central Technical Learning Lab
   Inspired by yzhums.com & Microsoft Fluent Light Documentation Design
   ========================================================================== */

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", "Fira Code", Consolas, Monaco, "Courier New", monospace;
  
  /* Primary Palette - Microsoft BC Brand Colors */
  --primary: #0078d4;
  --primary-hover: #106ebe;
  --primary-light: #e8f3fb;
  --primary-dark: #004578;
  --teal-accent: #008272;
  --teal-light: #e6f6f4;
  
  /* Neutral Palette - Light Theme (yzhums inspired) */
  --bg-body: #f4f5f7;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-code: #1e1e1e;
  --border-color: #e5e7eb;
  --border-light: #f1f2f4;
  
  /* Text Colors */
  --text-main: #24292f;
  --text-secondary: #57606a;
  --text-muted: #6e7781;
  --text-title: #1f2328;
  
  /* Alert / Callout Colors */
  --info-bg: #f3fafe;
  --info-border: #bde4fc;
  --info-text: #0969da;
  
  --tip-bg: #ebf8f4;
  --tip-border: #8dd7c1;
  --tip-text: #0e7054;
  
  --warning-bg: #fff8e6;
  --warning-border: #fed37f;
  --warning-text: #8a5700;
  
  --danger-bg: #fdf2f2;
  --danger-border: #f6b9b9;
  --danger-text: #cf222e;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.09);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.25s ease-in-out;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-body: #0d1117;
  --bg-card: #161b22;
  --bg-header: #161b22;
  --bg-sidebar: #161b22;
  --bg-code: #0b0e14;
  --border-color: #30363d;
  --border-light: #21262d;
  --text-main: #c9d1d9;
  --text-secondary: #8b949e;
  --text-muted: #8b949e;
  --text-title: #f0f6fc;
  --info-bg: #0d2136;
  --info-border: #1f4266;
  --tip-bg: #0b2923;
  --tip-border: #1a5647;
  --warning-bg: #2d2208;
  --warning-border: #5c450f;
  --danger-bg: #301416;
  --danger-border: #66272b;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Top Notification Banner */
.top-notice-bar {
  background: linear-gradient(90deg, #0078d4, #008272);
  color: #ffffff;
  padding: 7px 16px;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.top-notice-bar a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

/* Header & Navigation */
.header-wrapper {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-area:hover {
  text-decoration: none;
}

.logo-badge {
  background: linear-gradient(135deg, #0078d4 0%, #008272 100%);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 120, 212, 0.35);
  letter-spacing: 0.5px;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.logo-title span {
  color: var(--primary);
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
  text-decoration: none;
}

[data-theme="dark"] .nav-link:hover, 
[data-theme="dark"] .nav-link.active {
  background-color: rgba(0, 120, 212, 0.15);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.domain-pill {
  background: var(--teal-light);
  color: var(--teal-accent);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(0, 130, 114, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Breadcrumb Bar */
.breadcrumb-wrap {
  max-width: 1260px;
  margin: 16px auto 0;
  padding: 0 20px;
}

.breadcrumb-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.breadcrumb-box a {
  color: var(--primary);
}

.breadcrumb-box a:hover {
  text-decoration: underline;
}

/* Main Layout Grid */
.layout-container {
  max-width: 1260px;
  margin: 20px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
}

/* Left Content Area */
.main-content-column {
  min-width: 0;
}

/* Hero / Filter Bar on Home */
.blog-intro-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.blog-intro-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--teal-accent));
}

.banner-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.banner-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 6px;
}

.banner-desc {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Filter Tags Bar */
.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Blog Cards List (yzhums style with Short Preview Window & Screenshot) */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .post-card {
    display: grid;
    grid-template-columns: 310px 1fr;
  }
}

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

.post-card-thumb-wrap {
  position: relative;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.post-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.post-card:hover .post-card-thumb-img {
  transform: scale(1.04);
}

.post-thumb-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-card-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.post-badge {
  background: var(--teal-light);
  color: var(--teal-accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid rgba(0, 130, 114, 0.2);
}

.post-date, .post-readtime {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}

.post-card-title a {
  color: var(--text-title);
}

.post-card-title a:hover {
  color: var(--primary);
  text-decoration: none;
}

.post-card-snippet {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  font-size: 13px;
}

/* Post Featured Hero Screenshot */
.post-featured-screenshot-wrap {
  margin: 20px 0 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  background: #000;
}

.post-featured-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

.post-screenshot-caption {
  background: var(--bg-body);
  border-top: 1px solid var(--border-color);
  padding: 8px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.read-more-link {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
}

.read-more-link:hover {
  text-decoration: none;
  gap: 7px;
}

/* ==========================================================================
   Single Post Detail View
   ========================================================================== */

.single-post-view {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 42px;
  box-shadow: var(--shadow-sm);
}

.post-detail-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.post-detail-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.25;
  margin: 14px 0 16px;
  letter-spacing: -0.4px;
}

.post-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.post-detail-meta .author-badge {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: 14px;
  font-weight: 600;
  color: var(--text-title);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Table of Contents (yzhums style) */
.table-of-contents-box {
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 32px;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-title);
  margin-bottom: 12px;
  cursor: pointer;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list li {
  font-size: 14px;
}

.toc-list li.toc-h2 {
  font-weight: 600;
}

.toc-list li.toc-h3 {
  padding-left: 18px;
  color: var(--text-muted);
}

.toc-list a {
  color: var(--text-secondary);
}

.toc-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Post Content Typography */
.post-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-title);
  margin: 36px 0 16px;
  padding: 12px 18px;
  background-color: var(--bg-body);
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.35;
}

.post-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-title);
  margin: 28px 0 12px;
  padding: 8px 14px;
  border-left: 4px solid var(--teal-accent);
  background: var(--border-light);
  border-radius: 0 4px 4px 0;
}

.post-content p {
  margin-bottom: 18px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-main);
}

.post-content ul, .post-content ol {
  margin: 0 0 20px 24px;
  font-size: 15px;
}

.post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Callout Boxes (yzhums inspired) */
.callout-box {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.65;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-content {
  flex-grow: 1;
}

.callout-content strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.callout-box.info {
  background-color: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-text);
}

.callout-box.tip {
  background-color: var(--tip-bg);
  border: 1px solid var(--tip-border);
  color: var(--tip-text);
}

.callout-box.warning {
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
}

.callout-box.danger {
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
}

/* Code Snippet Box (Syntax & Copy Button) */
.code-snippet-wrap {
  position: relative;
  margin: 24px 0 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #333d47;
  background: #1e1e1e;
  box-shadow: var(--shadow-md);
}

.code-header {
  background: #2d2d2d;
  color: #cccccc;
  padding: 8px 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3c3c3c;
}

.code-lang-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #61afef;
}

.copy-code-btn {
  background: #3c3c3c;
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.copy-code-btn:hover {
  background: #505050;
}

.copy-code-btn.copied {
  background: #107c41;
  color: #fff;
}

.code-snippet-wrap pre {
  margin: 0;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: #d4d4d4;
  background: #1e1e1e;
}

/* AL Syntax Highlights (VS Code Style) */
.al-keyword { color: #569cd6; font-weight: 600; }
.al-type { color: #4ec9b0; }
.al-string { color: #ce9178; }
.al-comment { color: #6a9955; font-style: italic; }
.al-number { color: #b5cea8; }
.al-func { color: #dcdcaa; }
.al-variable { color: #9cdcfe; }
.al-attr { color: #c586c0; }

/* Visual Diagram / Flow Mockup Box */
.visual-diagram-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
  text-align: center;
}

.diagram-header {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.diagram-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  color: var(--text-title);
  min-width: 130px;
}

.diagram-arrow {
  color: var(--primary);
  font-size: 18px;
  font-weight: bold;
}

/* Post Detail Author Box */
.author-bio-card {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  gap: 18px;
  align-items: center;
}

.author-bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0078d4, #008272);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 120, 212, 0.3);
}

.author-bio-info h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 4px;
}

.author-bio-info p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Post Navigation (Prev/Next) */
.post-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.page-nav-btn {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-title);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  max-width: 48%;
}

.page-nav-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-decoration: none;
}

/* ==========================================================================
   Sidebar Widgets (yzhums inspired)
   ========================================================================== */

.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-title);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

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

/* Search Box Widget */
.search-input-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 38px 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
  background: var(--bg-card);
}

.search-icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
}

/* About Author Widget */
.author-profile-widget {
  text-align: center;
}

.profile-avatar-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0078d4, #008272);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.25);
}

.profile-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 4px;
}

.profile-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-bio {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.profile-badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.micro-badge {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Categories List Widget */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
}

.category-item-link:hover {
  background: var(--bg-body);
  color: var(--primary);
  text-decoration: none;
  padding-left: 14px;
}

.category-count {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Feed Top Controls (Sort & Counter) */
.feed-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.feed-counter {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.sort-toggle-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.sort-btn:hover, .sort-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Pagination Controls */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pagination-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-title);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Recent Posts Scrollable Widget */
.recent-post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 6px;
  scroll-behavior: smooth;
}

.recent-post-list::-webkit-scrollbar {
  width: 5px;
}
.recent-post-list::-webkit-scrollbar-track {
  background: var(--bg-body);
  border-radius: 4px;
}
.recent-post-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.recent-post-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.recent-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.recent-post-item:hover {
  border-color: var(--primary);
  background: var(--bg-body);
  transform: translateX(3px);
}

.recent-post-mini-thumb {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.recent-post-number {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.recent-post-info {
  flex-grow: 1;
}

.recent-post-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-title);
  line-height: 1.4;
  display: block;
  margin-bottom: 2px;
}

.recent-post-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.recent-post-date {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Tag Cloud Widget */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud-item {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.tag-cloud-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-decoration: none;
}

/* Quick AL Cheat Sheet Widget */
.cheat-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

.cheat-sheet-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  background: var(--bg-body);
  border-radius: 4px;
}

.cheat-sheet-key {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
}

.cheat-sheet-val {
  color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-wrapper {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 48px 20px 24px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-light);
}

.footer-brand h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 14px;
}

.footer-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.footer-links a {
  color: var(--text-secondary);
}

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

.footer-bottom {
  max-width: 1260px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive Breakpoints */
@media screen and (max-width: 992px) {
  .layout-container {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media screen and (max-width: 680px) {
  .header-container {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .single-post-view {
    padding: 20px 18px;
  }
  .post-detail-title {
    font-size: 24px;
  }
  .post-pagination {
    flex-direction: column;
  }
  .page-nav-btn {
    max-width: 100%;
  }
}

/* ==========================================================================
   Monetization Styles: Freelance Consulting & Google AdSense
   ========================================================================== */

/* Header Hire Button Pill */
.hire-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 120, 212, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}
.hire-btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 120, 212, 0.5);
  background: linear-gradient(135deg, #106ebe 0%, #005a9e 100%);
}

/* In-Article Consulting Callout Banner */
.in-article-consulting-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 28px 24px;
  margin: 36px 0;
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}
.in-article-consulting-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0078d4, #10b981, #f59e0b);
}
.cta-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cta-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
}
.cta-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 20px 0;
}
.cta-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0078d4;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-cta-primary:hover {
  background: #106ebe;
  transform: translateY(-2px);
}
.btn-cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-cta-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

/* Sidebar Consulting Widget */
.sidebar-consulting-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.sidebar-consulting-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #ffffff;
}
.sidebar-consulting-card p {
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0 0 16px 0;
}
.sidebar-consulting-btn {
  display: block;
  text-align: center;
  background: #0078d4;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.sidebar-consulting-btn:hover {
  background: #106ebe;
}

/* Google AdSense Slot Containers (Compliant with AdSense Policy) */
.adsense-slot-container {
  margin: 24px 0;
  padding: 10px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  overflow: hidden;
}
.adsense-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}
.adsense-responsive-placeholder {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  padding: 14px;
  color: var(--text-muted);
  font-size: 12px;
}
.adsense-responsive-placeholder code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* Dedicated Consulting Page Styles */
.consulting-page-view {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.consulting-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px auto;
}
.consulting-hero h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.consulting-hero p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}
.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.service-feature-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.service-feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: inline-block;
}
.service-feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-title);
  margin: 0 0 8px 0;
}
.service-feature-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Consultation Inquiry Form */
.inquiry-form-card {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  margin-top: 36px;
}
.form-title-wrap {
  margin-bottom: 20px;
}
.form-title-wrap h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-title);
  margin: 0 0 6px 0;
}
.form-title-wrap p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}
.inquiry-grid-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .inquiry-grid-fields {
    grid-template-columns: 1fr;
  }
}
.form-group-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group-item label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}
.form-group-item input,
.form-group-item select,
.form-group-item textarea {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}
.form-group-item input:focus,
.form-group-item select:focus,
.form-group-item textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

/* Legal Pages (Privacy Policy / Terms) */
.legal-page-view {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  line-height: 1.7;
}
.legal-page-view h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 8px;
}
.legal-page-view .legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}
.legal-page-view h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-title);
  margin: 28px 0 12px 0;
}
.legal-page-view p, .legal-page-view ul {
  font-size: 14px;
  color: var(--text-main);
}
