
:root {
  --bg-base: #020617;
  --bg-surface: #0f172a;
  --bg-elevated: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-primary: #22d3ee;
  --accent-secondary: #3b82f6;
  --accent-security: #34d399;
  --accent-purple: #a78bfa;
  --accent-indigo: #818cf8;
  --border: rgba(148,163,184,0.1);
  --border-accent: rgba(34,211,238,0.3);
  --glow-cyan: rgba(34,211,238,0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-base);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(59,130,246,0.07) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(34,211,238,0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(167,139,250,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── GLASS CARD ── */
.glass-card {
  background: rgba(15,23,42,0.5);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  transition: all 0.35s ease;
}
.glass-card:hover {
  background: rgba(15,23,42,0.85);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px var(--glow-cyan);
}

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(2,6,23,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  cursor: pointer;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links li a, .nav-links li span {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}

.nav-links li a:hover, .nav-links li span:hover,
.nav-links li a.active, .nav-links li span.active {
  color: var(--text-primary);
  background: rgba(34,211,238,0.08);
}

.nav-academy-btn {
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #020617 !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 0.4rem 1rem !important;
}
.nav-academy-btn:hover {
  background: linear-gradient(135deg, #06b6d4, #2563eb) !important;
  color: #020617 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(34,211,238,0.3);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── MAIN LAYOUT ── */
main {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HERO ── */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.25);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* ── SEARCH ── */
.search-wrap {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.search-input {
  width: 100%;
  background: rgba(15,23,42,0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem 0.85rem 3rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.25s;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.08);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ── ADSENSE BANNER ── */
.adsense-banner {
  margin: 1.5rem auto;
  max-width: 728px;
  min-height: 90px;
  background: rgba(15,23,42,0.3);
  border: 1px dashed rgba(148,163,184,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

.view-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.view-all:hover { gap: 0.6rem; }

/* ── FEATURED GRID ── */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.featured-grid .card-main {
  grid-column: 1 / -1;
}

/* ── ARTICLE CARD ── */
.article-card {
  padding: 1.5rem;
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.article-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(34,211,238,0.03), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.article-card:hover::after { opacity: 1; }

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.tag-Intune { background: rgba(34,211,238,0.12); color: #22d3ee; border: 1px solid rgba(34,211,238,0.2); }
.tag-Security { background: rgba(52,211,153,0.12); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.tag-Exchange { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.tag-PowerShell { background: rgba(167,139,250,0.12); color: #a78bfa; border: 1px solid rgba(167,139,250,0.2); }
.tag-Teams { background: rgba(129,140,248,0.12); color: #818cf8; border: 1px solid rgba(129,140,248,0.2); }

.article-card h2, .article-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.65rem;
  letter-spacing: -0.3px;
}

.article-card h2 { font-size: 1.25rem; }
.article-card h3 { font-size: 1.05rem; }
.card-main h2 { font-size: 1.6rem; }

.article-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.card-meta .sep { opacity: 0.4; }

.read-more-arrow {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 0.85rem;
  transition: all 0.25s;
  flex-shrink: 0;
}
.article-card:hover .read-more-arrow {
  background: rgba(34,211,238,0.2);
  transform: translateX(2px);
}

/* ── POSTS GRID ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ── KEYWORDS TAGS ── */
.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.keyword-tag {
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 500;
  background: rgba(30,41,59,0.8);
  color: var(--text-muted);
  border: 1px solid rgba(148,163,184,0.08);
}

/* ── CATEGORY FILTERS ── */
.cat-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cat-btn {
  padding: 0.45rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.5);
  color: var(--text-muted);
  transition: all 0.2s;
}
.cat-btn:hover, .cat-btn.active {
  border-color: var(--border-accent);
  color: var(--accent-primary);
  background: rgba(34,211,238,0.08);
}

/* ── ACADEMY BANNER ── */
.academy-banner {
  padding: 3rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(34,211,238,0.06) 0%, rgba(59,130,246,0.06) 50%, rgba(52,211,153,0.06) 100%);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: 24px;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.academy-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(34,211,238,0.1), transparent 70%);
  border-radius: 50%;
}

.academy-banner h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.academy-banner p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}

.academy-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.academy-stat strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.academy-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #020617;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34,211,238,0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-outline:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

/* ── ARTICLE VIEW ── */
#article-view {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-header .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.article-header .back-btn:hover { color: var(--accent-primary); }

.article-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 1rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── ARTICLE CONTENT STYLES ── */
.article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.article-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.3px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.article-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}

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

.article-content a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

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

.article-content pre, .article-content code {
  font-family: 'JetBrains Mono', monospace;
}

.article-content pre {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #e2e8f0;
}

.article-content :not(pre) > code {
  background: rgba(34,211,238,0.08);
  color: var(--accent-primary);
  padding: 0.15em 0.45em;
  border-radius: 5px;
  font-size: 0.88em;
}

.article-content blockquote {
  border-left: 3px solid var(--accent-primary);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(34,211,238,0.04);
  border-radius: 0 10px 10px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.article-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.article-content figure { margin: 1.5rem 0; }

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.article-content th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(148,163,184,0.07);
}

/* ── LINKEDIN SHARE ── */
.share-section {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-section p {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 0;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0077b5;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.linkedin-btn:hover {
  background: #005885;
  transform: translateY(-1px);
}

/* ── ABOUT THE AUTHOR ── */
.about-author {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.about-author-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}

.about-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-author-avatar-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  border-radius: 50%;
}

.about-author-info {
  flex: 1;
  min-width: 0;
}

.about-author-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.about-author-linkedin {
  color: #0a66c2;
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.about-author-linkedin:hover { opacity: 1; }

.about-author-role {
  font-size: 0.78rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
}

.about-author-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.about-author-bio a {
  color: var(--accent-primary);
  text-decoration: none;
}
.about-author-bio a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .about-author { flex-direction: column; gap: 1rem; }
  .about-author-avatar { width: 56px; height: 56px; }
}

/* ── ADSENSE BANNER INSIDE ARTICLE ── */
#article-view .adsense-banner {
  max-width: 100%;
  margin: 1.5rem 0;
}

/* ── ACADEMY CTA IN ARTICLE ── */
.article-academy-cta {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(34,211,238,0.06), rgba(59,130,246,0.06));
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 18px;
  text-align: center;
}

.article-academy-cta h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.article-academy-cta p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

/* ── NEWSLETTER ── */
.newsletter {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 3rem 0;
}

.newsletter h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.newsletter p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
}

.newsletter-form input:focus { border-color: var(--border-accent); }

/* ── FOOTER ── */
footer {
  padding: 3rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a, .footer-col ul li span {
  color: var(--text-muted);
  font-size: 0.83rem;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-col ul li a:hover, .footer-col ul li span:hover { color: var(--accent-primary); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-primary); }

/* ── STATIC PAGES ── */
.static-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.static-page h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.static-page .last-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.static-page h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.static-page p, .static-page li {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.static-page a { color: var(--accent-primary); }

/* ── ABOUT PAGE ── */
.about-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.author-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* ── PAGES HIDDEN BY DEFAULT ── */
#home-view { display: block; }
.page { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: rgba(2,6,23,0.97); padding: 1rem; border-bottom: 1px solid var(--border); gap: 0.25rem; z-index: 99; }
  .nav-hamburger { display: flex; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .card-main { grid-column: 1; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .academy-stats { gap: 1.5rem; }
  .share-section { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
  nav { padding: 0 1rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
  .container { padding: 0 1rem; }

  /* Article page */
  #article-view { padding: 1rem 1rem 3rem; }
  .article-header h1 { font-size: 1.45rem; }
  .article-meta-bar { font-size: 0.75rem; gap: 0.4rem; padding: 0.75rem 1rem; }
  .article-content { font-size: 0.95rem; }
  .article-content pre { font-size: 0.8rem; overflow-x: auto; }
  .article-academy-cta { padding: 1.5rem 1rem; }

  /* Section headers */
  .section-title { font-size: 1.3rem; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.5rem); }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .article-meta-bar { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .article-meta-bar span[style*="opacity"] { display: none; }
  .keyword-tags { display: none; }
}

/* ── NO RESULTS ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state svg { opacity: 0.3; margin-bottom: 1rem; }

/* ── LOADING ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── READING PROGRESS BAR ── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #34d399);
  z-index: 200;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

/* ── CODE COPY BUTTON ── */
.code-block-wrap {
  position: relative;
  margin: 1.5rem 0;
}
.code-block-wrap pre { margin: 0; }
.copy-code-btn {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  background: rgba(30,41,59,0.9);
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 7px;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  backdrop-filter: blur(4px);
  line-height: 1.5;
}
.copy-code-btn:hover {
  background: rgba(34,211,238,0.15);
  color: var(--accent-primary);
  border-color: rgba(34,211,238,0.3);
}
.copy-code-btn.copied {
  color: #34d399;
  border-color: rgba(52,211,153,0.3);
  background: rgba(52,211,153,0.1);
}

/* ── TABLE OF CONTENTS ── */
.article-toc {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 14px 14px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.article-toc:empty { display: none; }
.article-toc h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.85rem;
}
.article-toc ol {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: toc-counter;
}
.article-toc > ol > li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.article-toc > ol > li:not(.toc-h3) {
  counter-increment: toc-counter;
}
.article-toc > ol > li:not(.toc-h3)::before {
  content: counter(toc-counter) ".";
  font-size: 0.7rem;
  color: var(--accent-primary);
  font-weight: 700;
  min-width: 1.2rem;
  flex-shrink: 0;
}
.article-toc a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.875rem;
}
.article-toc a:hover { color: var(--accent-primary); }
.article-toc .toc-h3 {
  padding-left: 1.5rem;
  font-size: 0.82rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.article-toc .toc-h3 > span {
  color: var(--border);
  font-weight: 400;
  min-width: 1.2rem;
  flex-shrink: 0;
  font-size: 0.82rem;
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s, background 0.2s;
  color: var(--text-muted);
  text-decoration: none;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--border-accent);
  color: var(--accent-primary);
  background: rgba(34,211,238,0.1);
}

/* ── NAVBAR SCROLLED ── */
nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  border-bottom-color: rgba(148,163,184,0.15);
}

/* ── ARTICLES PAGE SEARCH ── */
.articles-search-wrap {
  position: relative;
  max-width: 380px;
  margin-bottom: 1.25rem;
}
.articles-search-wrap .search-icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.articles-search-wrap input {
  width: 100%;
  background: rgba(15,23,42,0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.articles-search-wrap input::placeholder { color: var(--text-muted); }
.articles-search-wrap input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.07);
}

/* ── TABLET BREAKPOINT ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .card-main { grid-column: 1; }
}

/* ── PRINT STYLES ── */
@media print {
  nav, footer, .share-section, .article-academy-cta,
  .adsense-banner, .back-to-top, #reading-progress,
  #cookie-banner { display: none !important; }
  body { background: white; color: black; }
  .article-content { color: black; }
  .article-content pre { border: 1px solid #ccc; background: #f5f5f5; color: black; }
  main { padding-top: 0; }
}

/* ── COOKIE CONSENT BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.97);
  border-top: 1px solid rgba(34,211,238,0.2);
  backdrop-filter: blur(20px);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
#cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner-text {
  flex: 1;
  min-width: 220px;
}
.cookie-banner-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.cookie-banner-text a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn-accept {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #020617;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
}
.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34,211,238,0.3);
}
.cookie-btn-decline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
}
.cookie-btn-decline:hover {
  border-color: rgba(148,163,184,0.3);
  color: var(--text-secondary);
}
@media (max-width: 600px) {
  #cookie-banner { padding: 1rem; gap: 1rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-accept, .cookie-btn-decline { flex: 1; justify-content: center; }
}
