/*
Theme Name: FixinityPro
Theme URI: https://fixinitypro.com
Author: FixinityPro Media
Author URI: https://fixinitypro.com
Description: A modern, professional IT blog theme featuring solutions, tutorials, and troubleshooting for tech enthusiasts and IT pros.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fixinitypro
Tags: blog, technology, modern, responsive, custom-menu, featured-images, post-thumbnails
*/

/* =========================================
   CSS Custom Properties
   ========================================= */
:root {
  --color-brand: #1e3a8a;
  --color-brand-light: #2563eb;
  --color-brand-accent: #0ea5e9;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* =========================================
   Reset & Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: #fff;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* =========================================
   Layout Utilities
   ========================================= */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* =========================================
   Header
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid #f3f4f6;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.site-branding:hover { opacity: 0.9; }

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.site-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111827;
}

/* Navigation */
.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .main-nav { display: flex; }
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item a { color: var(--color-brand); }

/* Header Search */
.header-search {
  display: none;
  position: relative;
}

@media (min-width: 1024px) { .header-search { display: block; } }

.header-search input {
  height: 2.5rem;
  width: 16rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding-left: 2.5rem;
  padding-right: 1rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.1);
}

.header-search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-menu-toggle:hover { background: #f3f4f6; }

@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }

/* Mobile Menu */
.mobile-menu {
  display: none;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}

.mobile-menu.is-active { display: block; }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1rem;
}

.mobile-menu-inner a {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  transition: color 0.2s;
}

.mobile-menu-inner a:hover { color: var(--color-brand); }

.mobile-search {
  position: relative;
  padding-top: 0.5rem;
}

.mobile-search input {
  height: 3rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding-left: 2.75rem;
  padding-right: 1rem;
  font-size: 0.875rem;
}

.mobile-search input:focus { outline: none; border-color: var(--color-brand); }

.mobile-search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 3.5rem 0 5rem;
}

@media (min-width: 1024px) { .hero-section { padding: 5rem 0 7rem; } }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(45% 45% at 50% 50%, rgba(37,99,235,0.05) 0, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: #eff6ff;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 2rem;
}

.hero-title {
  max-width: 56rem;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111827;
  line-height: 1.12;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) { .hero-title { font-size: clamp(1.8rem, 4vw, 3rem); } }

.hero-title span { color: var(--color-brand); }

.hero-subtitle {
  margin-top: 2rem;
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #4b5563;
}

@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-actions {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 2rem;
  border-radius: 0.75rem;
  background: var(--color-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30,58,138,0.3);
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn-primary:hover { background: var(--color-brand-light); color: #fff; }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 2rem;
  border-radius: 0.75rem;
  background: #fff;
  color: #111827;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn-secondary:hover { background: #f9fafb; color: #111827; }
.btn-secondary:active { transform: scale(0.97); }

/* =========================================
   Categories Bar
   ========================================= */
.categories-section {
  padding: 3rem 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  background: rgba(249,250,251,0.5);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

.category-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  border-color: rgba(30,58,138,0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.category-icon.it-support { background: #eff6ff; color: #2563eb; }
.category-icon.networking { background: #eef2ff; color: #4f46e5; }
.category-icon.cybersecurity { background: #fef2f2; color: #dc2626; }
.category-icon.cloud { background: #f0f9ff; color: #0284c7; }

.category-name {
  font-weight: 700;
  color: #111827;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.category-card:hover .category-name { color: var(--color-brand); }

.category-count {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

/* =========================================
   Blog Cards
   ========================================= */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111827;
}

@media (min-width: 768px) { .section-title { font-size: 3rem; } }

.section-sub {
  margin-top: 1rem;
  color: #4b5563;
}

.view-all-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-brand);
  transition: text-decoration 0.2s;
}

.view-all-link:hover { text-decoration: underline; color: var(--color-brand); }

@media (min-width: 768px) { .view-all-link { display: flex; } }

/* Grid of cards */
.posts-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) { .posts-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Vertical Card */
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s, transform 0.3s;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-8px);
}

.blog-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card:hover .blog-card-image img { transform: scale(1.1); }

.blog-card-category-badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  border-radius: 9999px;
  background: var(--color-brand);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.blog-card-meta span { display: flex; align-items: center; gap: 0.25rem; }

.blog-card-title {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover .blog-card-title { color: var(--color-brand); }

.blog-card-excerpt {
  flex: 1;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f9fafb;
  padding-top: 1rem;
  margin-top: auto;
}

.blog-card-author {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}

.blog-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #f9fafb;
  color: var(--color-brand);
  transition: background 0.2s, color 0.2s;
}

.blog-card:hover .blog-card-arrow {
  background: var(--color-brand);
  color: #fff;
}

/* Horizontal Card */
.blog-card-h {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 640px) {
  .blog-card-h {
    flex-direction: row;
    align-items: center;
  }
}

.blog-card-h:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.blog-card-h-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .blog-card-h-image { width: 33.333%; }
}

.blog-card-h-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card-h:hover .blog-card-h-image img { transform: scale(1.05); }

.blog-card-h-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.92);
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-brand);
  backdrop-filter: blur(4px);
}

.blog-card-h-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.blog-card-h-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.blog-card-h-meta span { display: flex; align-items: center; gap: 0.25rem; }

.blog-card-h-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.blog-card-h:hover .blog-card-h-title { color: var(--color-brand); }

.blog-card-h-excerpt {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-h-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand);
  transition: gap 0.2s;
}

.blog-card-h:hover .blog-card-h-link { gap: 0.75rem; }

/* =========================================
   Featured Section
   ========================================= */
.featured-section { padding: 6rem 0; }

/* =========================================
   Latest Posts Section
   ========================================= */
.latest-section {
  padding: 6rem 0;
  background: rgba(249,250,251,0.3);
}

.posts-list { display: grid; grid-template-columns: 1fr; gap: 3rem; }

.load-more-wrap {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.btn-load-more {
  height: 3.5rem;
  padding: 0 3rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.btn-load-more:hover {
  background: #f9fafb;
  border-color: rgba(30,58,138,0.2);
}

.btn-load-more:active { transform: scale(0.97); }

/* =========================================
   Newsletter Section
   ========================================= */
.newsletter-section {
  background: #111827;
  padding: 5rem 0;
}

.newsletter-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--color-brand);
  padding: 2rem;
  text-align: center;
}

@media (min-width: 768px) { .newsletter-card { padding: 4rem; } }

.newsletter-glow-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  filter: blur(3rem);
  transform: translate(50%, -50%);
  pointer-events: none;
}

.newsletter-glow-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  filter: blur(3rem);
  transform: translate(-50%, 50%);
  pointer-events: none;
}

.newsletter-icon {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.newsletter-icon-wrap {
  width: 4rem;
  height: 4rem;
  background: rgba(255,255,255,0.2);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}

.newsletter-content { position: relative; z-index: 1; }

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .newsletter-title { font-size: 3rem; } }

.newsletter-sub {
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
}

.newsletter-form {
  margin: 0 auto;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .newsletter-form { flex-direction: row; }
}

.newsletter-input {
  height: 3.5rem;
  flex: 1;
  border-radius: 0.75rem;
  border: none;
  background: #fff;
  padding: 0 1.25rem;
  color: #111827;
  font-size: 0.875rem;
}

.newsletter-input::placeholder { color: #9ca3af; }
.newsletter-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }

.newsletter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.5rem;
  padding: 0 2rem;
  border-radius: 0.75rem;
  background: #111827;
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.newsletter-btn:hover { background: #000; }

.newsletter-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* =========================================
   About Section
   ========================================= */
.about-section {
  padding: 6rem 0;
  border-top: 1px solid #f3f4f6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }

.about-image-wrap {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,58,138,0.2);
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.about-content p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
}

/* =========================================
   Single Post
   ========================================= */
.single-post-header {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
}

@media (min-width: 640px) { .single-post-header { padding: 4rem 1.5rem 2rem; } }
@media (min-width: 1024px) { .single-post-header { padding: 4rem 2rem 2rem; } }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--color-brand); }

.post-category-pill {
  display: inline-block;
  border-radius: 9999px;
  background: #eff6ff;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111827;
  line-height: 1.1;
  margin-bottom: 2rem;
}

@media (min-width: 768px) { .post-title { font-size: 3.5rem; } }
@media (min-width: 1024px) { .post-title { font-size: 4rem; } }

.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  padding: 1.5rem 0;
}

.post-author-info { display: flex; align-items: center; gap: 1rem; }

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-brand);
  font-size: 1.25rem;
  border: 2px solid rgba(30,58,138,0.1);
  flex-shrink: 0;
  overflow: hidden;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 9999px; }

.author-name {
  font-weight: 700;
  color: #111827;
  font-size: 0.875rem;
}

.post-meta-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  margin-top: 0.25rem;
}

.post-meta-info span { display: flex; align-items: center; gap: 0.375rem; }

.post-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-save,
.btn-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-save {
  border: 1px solid #e5e7eb;
  background: transparent;
  color: #4b5563;
}

.btn-save:hover { background: #f9fafb; }

.btn-share {
  border: none;
  background: #111827;
  color: #fff;
}

.btn-share:hover { background: #000; }

/* Single Post Layout */
.single-post-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .single-post-content { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .single-post-content { padding: 0 2rem; } }

.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .post-layout { grid-template-columns: 8fr 4fr; }
}

.post-featured-image {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Body */
.entry-content {
  color: #374151;
  line-height: 1.75;
  font-size: 1.05rem;
}

.entry-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.entry-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

.entry-content a {
  color: var(--color-brand);
  text-decoration: underline;
}

.entry-content code {
  font-family: var(--font-mono);
  background: #f3f4f6;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: var(--color-brand);
}

.entry-content pre {
  font-family: var(--font-mono);
  background: #1f2937;
  color: #f3f4f6;
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.entry-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.entry-content blockquote {
  border-left: 4px solid var(--color-brand);
  padding-left: 1rem;
  font-style: italic;
  color: #4b5563;
  margin: 1.5rem 0;
}

.entry-content ul, .entry-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

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

.entry-content img {
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

/* Sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 2rem; }

.sidebar-widget {
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  background: rgba(249,250,251,0.5);
  padding: 2rem;
}

.sidebar-widget-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.toc-nav { display: flex; flex-direction: column; gap: 1rem; }

.toc-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.2s;
  text-decoration: none;
}

.toc-nav a:hover,
.toc-nav a.active { color: var(--color-brand); }

.sidebar-cta {
  border-radius: 1rem;
  background: var(--color-brand);
  padding: 2rem;
  color: #fff;
}

.sidebar-cta h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sidebar-cta p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.sidebar-cta-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--color-brand);
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.sidebar-cta-btn:hover { background: #f9fafb; color: var(--color-brand); }

/* Comments placeholder */
.comments-area {
  margin-top: 4rem;
  border-top: 1px solid #f3f4f6;
  padding-top: 2.5rem;
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2rem;
}

/* Related Posts */
.related-section {
  padding: 6rem 0;
  border-top: 1px solid #f3f4f6;
  margin-top: 6rem;
}

.posts-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) { .posts-grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: #fff;
  border-top: 1px solid #f3f4f6;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 2fr; } }

.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; text-decoration: none; }

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111827;
}

.footer-tagline {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social { display: flex; align-items: center; gap: 1rem; }

.footer-social a {
  color: #9ca3af;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social a:hover { color: var(--color-brand); }

.footer-col-title {
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.footer-links a {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-newsletter-sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.footer-email-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-email-input:focus { outline: none; border-color: var(--color-brand); }

.footer-subscribe-btn {
  width: 100%;
  padding: 0.5rem;
  background: var(--color-brand);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.footer-subscribe-btn:hover { background: var(--color-brand-light); }

.footer-bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

.footer-legal { display: flex; gap: 2rem; }

.footer-legal a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--color-brand); }

/* =========================================
   SVG Icons (inline)
   ========================================= */
.icon { display: inline-block; vertical-align: middle; }

/* =========================================
   Utility Classes
   ========================================= */
.text-brand { color: var(--color-brand); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mt-auto { margin-top: auto; }

/* =========================================
   WordPress Core Alignment
   ========================================= */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: #6b7280; text-align: center; margin-top: 0.5rem; }

/* =========================================
   Pagination
   ========================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.pagination a {
  border: 1px solid #e5e7eb;
  color: #374151;
  background: #fff;
}

.pagination a:hover {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}

.pagination .current {
  background: var(--color-brand);
  color: #fff;
  border: 1px solid var(--color-brand);
}

/* =========================================
   404 Page
   ========================================= */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}

.not-found h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.not-found p { color: #6b7280; margin-bottom: 2rem; }

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 640px) {
  .post-title { font-size: 2rem; }
  .hero-title { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .section-title { font-size: 1.75rem; }
  .about-stats { flex-wrap: wrap; gap: 1.5rem; }
}

/* =========================================
   Responsive — Mobile (max 640px) OVERRIDE
   ========================================= */
@media (max-width: 640px) {

  /* ── Hero ── */
  .hero-section {
    padding: 3rem 0 4rem;
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1.25rem;
  }
  .hero-title {
    font-size: clamp(1.4rem, 5vw, 1.85rem) !important;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }
  .hero-subtitle {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.65;
    padding: 0 0.5rem;
  }
  .hero-actions {
    margin-top: 2rem;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }
  .btn-primary,
  .btn-secondary {
    width: 85%;
    max-width: 18rem;
    height: 3rem;
    font-size: 0.9rem;
  }

  /* ── Categories grid ── */
  .categories-section { padding: 1.75rem 0; }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .category-card {
    padding: 0.875rem;
    gap: 0.6rem;
    border-radius: 0.875rem;
  }
  .category-icon {
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 0.6rem;
    flex-shrink: 0;
  }
  .category-name { font-size: 0.82rem; font-weight: 700; }
  .category-count { font-size: 0.72rem; }

  /* ── Section titles ── */
  .post-title    { font-size: 2rem !important; }
  .section-title { font-size: 1.6rem !important; }

  /* ── Newsletter ── */
  .newsletter-section { padding: 2.5rem 0; }
  .newsletter-card {
    padding: 2rem 1.25rem !important;
    border-radius: 1.25rem;
    margin: 0 0.25rem;
  }
  .newsletter-title {
    font-size: 1.6rem !important;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }
  .newsletter-sub {
    font-size: 0.9rem !important;
    margin-bottom: 1.75rem;
    line-height: 1.6;
    padding: 0 0.25rem;
  }
  .newsletter-form {
    flex-direction: column !important;
    gap: 0.65rem;
    max-width: 100% !important;
  }
  .newsletter-input {
    height: 3rem !important;
    font-size: 0.9rem;
    border-radius: 0.75rem;
    width: 100%;
  }
  .newsletter-btn {
    height: 3rem !important;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    width: 100%;
    padding: 0 1.5rem;
  }
  .newsletter-note {
    margin-top: 0.75rem;
    font-size: 0.72rem;
  }

  /* ── About stats ── */
  .about-stats { flex-wrap: wrap; gap: 1.5rem; }

  /* ── Posts grid ── */
  .posts-grid-3,
  .posts-grid-2 { grid-template-columns: 1fr; gap: 1.25rem; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}


/* =========================================
   GUIDES PAGE  (page-guides.php)
   ========================================= */

/* ── Hero ── */
.guides-hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    background: var(--color-brand-dark, #0f1c4d);
    text-align: center;
}
.guides-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,.35) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 110%, rgba(59,130,246,.20) 0%, transparent 65%);
    pointer-events: none;
}
.guides-hero-content {
    position: relative;
    z-index: 1;
    max-width: 740px;
    margin: 0 auto;
}
.guides-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    color: #c7d2fe;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}
.guides-hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}
.guides-hero-sub {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

/* Search form */
.guides-search-form { width: 100%; }
.guides-search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    overflow: hidden;
    position: relative;
}
.guides-search-icon {
    flex-shrink: 0;
    margin-left: 1rem;
    color: #9ca3af;
    pointer-events: none;
}
.guides-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    color: #111827;
    background: transparent;
    font-family: inherit;
}
.guides-search-input::placeholder { color: #9ca3af; }
.guides-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    padding: 0 .5rem;
    transition: color .2s;
}
.guides-search-clear:hover { color: #ef4444; }
.guides-search-btn {
    flex-shrink: 0;
    background: var(--color-brand, #1e3a8a);
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    height: 100%;
    min-height: 52px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
}
.guides-search-btn:hover { background: var(--color-brand-light, #2563eb); }

/* ── Filter bar ── */
.guides-filter-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.guides-filter-nav {
    display: flex;
    align-items: center;
    gap: .5rem;
    overflow-x: auto;
    padding: .75rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.guides-filter-nav::-webkit-scrollbar { display: none; }
.guides-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border: 1.5px solid transparent;
    transition: all .2s;
    text-decoration: none;
}
.guides-filter-pill:hover {
    background: #e0e7ff;
    color: var(--color-brand, #1e3a8a);
    border-color: #c7d2fe;
}
.guides-filter-pill.is-active {
    background: var(--color-brand, #1e3a8a);
    color: #fff;
    border-color: var(--color-brand, #1e3a8a);
}
.guides-filter-count {
    font-size: .75rem;
    font-weight: 700;
    background: rgba(0,0,0,.1);
    border-radius: 999px;
    padding: .1rem .45rem;
    min-width: 1.4rem;
    text-align: center;
}
.guides-filter-pill.is-active .guides-filter-count {
    background: rgba(255,255,255,.2);
}

/* ── Results section ── */
.guides-results-section {
    padding: 3rem 0 5rem;
    background: #f9fafb;
    min-height: 50vh;
}
.guides-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: .75rem;
}
.guides-results-label {
    font-size: .95rem;
    color: #6b7280;
    font-weight: 500;
}
.guides-clear-all {
    font-size: .85rem;
    font-weight: 600;
    color: #ef4444;
    text-decoration: none;
    padding: .3rem .75rem;
    border-radius: 6px;
    background: #fef2f2;
    transition: background .2s;
}
.guides-clear-all:hover { background: #fee2e2; }

/* ── Guide grid ── */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

/* ── Guide card ── */
.guide-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,.1);
    border-color: #c7d2fe;
}
.guide-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}
.guide-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.guide-card:hover .guide-card-thumb img { transform: scale(1.04); }

/* Category badge colours */
.guide-card-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .25rem .6rem;
    border-radius: 6px;
    color: #fff;
    background: var(--color-brand, #1e3a8a);
}
.guide-badge-it-support    { background: #7c3aed; }
.guide-badge-networking    { background: #0891b2; }
.guide-badge-cybersecurity { background: #dc2626; }
.guide-badge-cloud         { background: #0369a1; }

/* Card body */
.guide-card-body {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.guide-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: .78rem;
    color: #9ca3af;
    margin-bottom: .75rem;
}
.guide-card-meta span {
    display: flex;
    align-items: center;
    gap: .3rem;
}
.guide-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin-bottom: .6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.guide-card-excerpt {
    font-size: .875rem;
    color: #6b7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .9rem;
    flex: 1;
}
.guide-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 1rem;
}
.guide-tag {
    font-size: .72rem;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    border-radius: 4px;
    padding: .15rem .5rem;
}
.guide-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .9rem;
    border-top: 1px solid #f3f4f6;
}
.guide-card-author {
    font-size: .78rem;
    color: #9ca3af;
}
.guide-card-cta {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--color-brand, #1e3a8a);
    transition: gap .2s;
}
.guide-card:hover .guide-card-cta { gap: .55rem; }

/* ── Responsive ── */
@media (max-width: 767px) {
    .guides-hero { padding: 3rem 0 2.5rem; }
    .guides-hero-title { font-size: 1.75rem; }
    .guides-search-btn { display: none; }
    .guides-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .guides-filter-bar { position: static; }
    .guides-results-header { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .guides-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   Blog / Guides Page — Additional Styles
   (page-blog.php & page-guides.php)
   ========================================= */

/* ── Guides Hero ── */
.guides-hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1e40af 100%);
}
.guides-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 70% 30%, rgba(14,165,233,.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(99,102,241,.12) 0%, transparent 60%);
}
.guides-hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 700px; margin: 0 auto;
}
.guides-hero-title {
  font-size: 2.5rem; color: #fff; margin-bottom: 1rem;
}
@media(min-width:768px){ .guides-hero-title { font-size: 3.5rem; } }
.guides-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,.7);
  margin-bottom: 2.5rem; line-height: 1.7;
}

/* ── Guides Search ── */
.guides-search-form { width: 100%; max-width: 520px; margin: 0 auto; }
.guides-search-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; padding: 6px 6px 6px 16px;
  gap: 8px; backdrop-filter: blur(10px);
  transition: background .2s, border-color .2s;
}
.guides-search-wrap:focus-within {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.4);
}
.guides-search-icon { color: rgba(255,255,255,.5); flex-shrink: 0; }
.guides-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: .9rem; font-family: inherit;
  min-width: 0;
}
.guides-search-input::placeholder { color: rgba(255,255,255,.45); }
.guides-search-clear {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  color: rgba(255,255,255,.6); transition: background .2s, color .2s;
}
.guides-search-clear:hover { background: rgba(255,255,255,.1); color: #ef4444; }
.guides-search-btn {
  padding: 10px 20px; border-radius: 8px; border: none;
  background: #fff; color: var(--color-brand, #1e3a8a);
  font-size: .875rem; font-weight: 700; cursor: pointer;
  transition: background .2s, box-shadow .2s; white-space: nowrap;
  font-family: inherit;
}
.guides-search-btn:hover {
  background: #f0f7ff;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

/* ── Filter Bar ── */
.guides-filter-bar {
  position: sticky; top: 60px; z-index: 20;
  background: #fff; border-bottom: 1px solid #e5e7eb;
  padding: .875rem 0;
}
.guides-filter-nav {
  display: flex; gap: .625rem; overflow-x: auto;
  padding-bottom: 2px; scrollbar-width: none;
}
.guides-filter-nav::-webkit-scrollbar { display: none; }
.guides-filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 9999px;
  border: 1.5px solid #e5e7eb; background: #fff;
  color: #4b5563; font-size: .8rem; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  text-decoration: none;
}
.guides-filter-pill:hover {
  border-color: var(--color-brand, #1e3a8a);
  color: var(--color-brand, #1e3a8a);
}
.guides-filter-pill.is-active {
  background: var(--color-brand, #1e3a8a);
  border-color: var(--color-brand, #1e3a8a);
  color: #fff;
}
.guides-filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 9999px; background: rgba(0,0,0,.08);
  font-size: .7rem; font-weight: 700;
}
.guides-filter-pill.is-active .guides-filter-count {
  background: rgba(255,255,255,.2);
}

/* ── Results ── */
.guides-results-section { padding: 3.5rem 0 5rem; }
.guides-results-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem;
}
.guides-results-label { font-size: .875rem; color: #6b7280; }
.guides-clear-all {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .8rem; font-weight: 600; color: #ef4444;
  background: #fef2f2; border-radius: 6px;
  padding: 5px 12px; transition: background .2s; text-decoration: none;
}
.guides-clear-all:hover { background: #fee2e2; }

/* ── Guide Cards Grid ── */
.guides-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media(min-width:640px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .guides-grid { grid-template-columns: repeat(3, 1fr); } }

.guide-card {
  display: flex; flex-direction: column;
  overflow: hidden; border-radius: 1rem;
  background: #fff; border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  cursor: pointer; transition: box-shadow .3s, transform .3s;
  text-decoration: none; color: inherit;
}
.guide-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  transform: translateY(-6px);
}
.guide-card-thumb {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
}
.guide-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.guide-card:hover .guide-card-thumb img { transform: scale(1.06); }
.guide-card-badge {
  position: absolute; left: 1rem; top: 1rem;
  border-radius: 9999px; background: var(--color-brand, #1e3a8a);
  color: #fff; font-size: .68rem; font-weight: 700;
  padding: 4px 10px; letter-spacing: .02em;
}
.guide-badge-it-support    { background: #2563eb; }
.guide-badge-networking    { background: #4f46e5; }
.guide-badge-cybersecurity { background: #dc2626; }
.guide-badge-cloud         { background: #0284c7; }

.guide-card-body {
  display: flex; flex: 1; flex-direction: column; padding: 1.5rem;
}
.guide-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .7rem; font-weight: 500; color: #9ca3af; margin-bottom: .75rem;
}
.guide-card-meta span { display: flex; align-items: center; gap: .25rem; }
.guide-card-title {
  font-size: 1rem; font-weight: 700; line-height: 1.4;
  color: #111827; margin-bottom: .75rem; transition: color .2s;
}
.guide-card:hover .guide-card-title { color: var(--color-brand, #1e3a8a); }
.guide-card-excerpt {
  flex: 1; font-size: .875rem; line-height: 1.6;
  color: #4b5563; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-card-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: 1rem; }
.guide-tag {
  font-size: .68rem; font-weight: 600; padding: 3px 8px;
  border-radius: 9999px; background: #f3f4f6; color: #6b7280;
}
.guide-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #f9fafb; padding-top: 1rem; margin-top: auto;
}
.guide-card-author { font-size: .75rem; font-weight: 600; color: #6b7280; }
.guide-card-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700;
  color: var(--color-brand, #1e3a8a); transition: gap .2s;
}
.guide-card:hover .guide-card-cta { gap: .55rem; }

/* ── No results ── */
.not-found {
  text-align: center; padding: 5rem 0;
}
.not-found h2 { font-size: 1.5rem; margin-bottom: 1rem; color: #374151; }
.not-found p  { color: #6b7280; max-width: 440px; margin: 0 auto 2rem; }

/* ── Pagination ── */
.load-more-wrap { margin-top: 3rem; display: flex; justify-content: center; }
.pagination { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 8px; font-size: .875rem; font-weight: 600;
  border: 1.5px solid #e5e7eb; background: #fff; color: #4b5563;
  text-decoration: none; transition: all .2s;
}
.pagination a:hover { border-color: var(--color-brand, #1e3a8a); color: var(--color-brand, #1e3a8a); }
.pagination .current {
  background: var(--color-brand, #1e3a8a);
  border-color: var(--color-brand, #1e3a8a); color: #fff;
}

/* ── Responsive fixes ── */
@media(max-width:639px) {
  .guides-hero          { padding: 3rem 0 2.5rem; }
  .guides-hero-title    { font-size: 1.75rem; }
  .guides-search-btn    { display: none; }
  .guides-filter-bar    { position: static; }
  .guides-results-header{ flex-direction: column; align-items: flex-start; }
}
