/*
Theme Name: Identity Bytes
Theme URI: https://identitybytes.com
Author: Identity Bytes
Author URI: https://identitybytes.com
Description: A dark editorial WordPress theme for IAM & PAM cybersecurity content. Blog-first design with consulting hybrid. Built for Orbitron/Rajdhani/JetBrains Mono typography stack.
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: identity-bytes
Tags: blog, dark, cybersecurity, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --ib-teal: #00d9b5;
  --ib-teal-hover: #00f0c8;
  --ib-teal-bg: rgba(0, 217, 181, 0.06);
  --ib-teal-border: rgba(0, 217, 181, 0.15);
  --ib-teal-glow: rgba(0, 217, 181, 0.25);
  --ib-purple: #7c3aed;
  --ib-purple-bg: rgba(124, 58, 237, 0.06);
  --ib-purple-border: rgba(124, 58, 237, 0.15);
  --ib-amber: #f59e0b;
  --ib-amber-bg: rgba(245, 158, 11, 0.06);
  --ib-amber-border: rgba(245, 158, 11, 0.15);
  --ib-green: #10b981;
  --ib-green-bg: rgba(16, 185, 129, 0.06);
  --ib-green-border: rgba(16, 185, 129, 0.15);
  --ib-bg: #0f1117;
  --ib-card: #161821;
  --ib-card-hover: #1a1d2a;
  --ib-surface: #1a1c2b;
  --ib-border: #1e2030;
  --ib-border-hover: #2a2d42;
  --ib-text-primary: #e8e9ed;
  --ib-text-secondary: #8b8fa3;
  --ib-text-muted: #5c6078;
  --ib-white: #ffffff;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --content-width: 740px;
  --content-padding: 24px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: var(--ib-bg);
  color: var(--ib-text-secondary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--ib-teal); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--ib-teal-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================================
   ANIMATED GRID BACKGROUND
   ============================================================ */
.ib-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,217,181,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,217,181,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: ib-grid-drift 25s linear infinite;
}
@keyframes ib-grid-drift {
  from { transform: translate(0,0); }
  to { transform: translate(64px,64px); }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.ib-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  position: relative;
  z-index: 1;
}

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */
.ib-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ib-text-muted);
  display: block;
  margin-bottom: 16px;
}
.ib-label--teal { color: var(--ib-teal); }

.ib-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}
.ib-badge--teal { background: var(--ib-teal-bg); color: var(--ib-teal); border: 1px solid var(--ib-teal-border); }
.ib-badge--purple { background: var(--ib-purple-bg); color: var(--ib-purple); border: 1px solid var(--ib-purple-border); }
.ib-badge--amber { background: var(--ib-amber-bg); color: var(--ib-amber); border: 1px solid var(--ib-amber-border); }
.ib-badge--green { background: var(--ib-green-bg); color: var(--ib-green); border: 1px solid var(--ib-green-border); }
.ib-badge--muted { background: var(--ib-card); color: var(--ib-text-muted); border: 1px solid var(--ib-border); }

/* Buttons */
.ib-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}
.ib-btn--primary { background: var(--ib-teal); color: var(--ib-bg); }
.ib-btn--primary:hover {
  background: var(--ib-teal-hover); color: var(--ib-bg);
  box-shadow: 0 0 24px var(--ib-teal-glow);
  transform: translateY(-1px);
}
.ib-btn--ghost { background: transparent; color: var(--ib-text-secondary); border: 1px solid var(--ib-border); }
.ib-btn--ghost:hover { border-color: var(--ib-border-hover); color: var(--ib-text-primary); }
.ib-btn--outline {
  background: transparent; color: var(--ib-teal);
  border: 1px solid var(--ib-teal-border);
  font-size: 0.875rem; font-weight: 600; padding: 10px 22px;
}
.ib-btn--outline:hover { border-color: var(--ib-teal); background: var(--ib-teal-bg); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.ib-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(15,17,23,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ib-border);
  transition: all 0.3s ease;
}
.ib-nav.scrolled {
  background: rgba(15,17,23,0.96);
  border-bottom-color: rgba(0,217,181,0.1);
}
.ib-nav__inner {
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ib-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ib-nav__logo-mark {
  width: 28px; height: 28px;
  border: 1.5px solid var(--ib-teal);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ib-nav__logo-mark::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(0,217,181,0.12);
  border-radius: 9px;
}
.ib-nav__logo-mark span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--ib-teal);
  letter-spacing: 0.5px;
}
.ib-nav__logo-text {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ib-text-primary);
  letter-spacing: 2px;
}

/* WordPress Nav Menu */
.ib-nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ib-nav__menu li { list-style: none; }
.ib-nav__menu li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ib-text-muted);
  transition: color 0.2s;
  padding: 4px 0;
}
.ib-nav__menu li a:hover,
.ib-nav__menu li.current-menu-item a,
.ib-nav__menu li.current_page_item a {
  color: var(--ib-teal);
}
/* CTA button in menu - add CSS class "nav-cta" to menu item */
.ib-nav__menu li.nav-cta a {
  padding: 7px 16px;
  border: 1px solid var(--ib-teal-border);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ib-teal);
  text-transform: uppercase;
}
.ib-nav__menu li.nav-cta a:hover {
  background: var(--ib-teal);
  color: var(--ib-bg);
  border-color: var(--ib-teal);
  box-shadow: 0 0 16px var(--ib-teal-glow);
}

.ib-nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ib-text-secondary);
  cursor: pointer;
  padding: 4px;
}

/* Mobile menu */
.ib-mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(15,17,23,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 32px var(--content-padding);
}
.ib-mobile-menu.active { display: block; }
.ib-mobile-menu ul { list-style: none; }
.ib-mobile-menu ul li { border-bottom: 1px solid var(--ib-border); }
.ib-mobile-menu ul li a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ib-text-secondary);
}
.ib-mobile-menu ul li.current-menu-item a,
.ib-mobile-menu ul li a:hover { color: var(--ib-teal); }

@media (max-width: 768px) {
  .ib-nav__menu { display: none; }
  .ib-nav__mobile-toggle { display: block; }
}


/* ============================================================
   HERO
   ============================================================ */
.ib-hero {
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}
.ib-hero__orb {
  position: absolute;
  top: -120px; right: -180px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,217,181,0.06) 0%, transparent 65%);
  pointer-events: none;
  animation: ib-orb-pulse 8s ease-in-out infinite alternate;
}
@keyframes ib-orb-pulse {
  from { opacity: 0.6; transform: scale(1); }
  to { opacity: 1; transform: scale(1.1); }
}
.ib-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.ib-hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ib-teal);
  box-shadow: 0 0 10px var(--ib-teal-glow);
  animation: ib-dot-pulse 2s ease-in-out infinite;
}
@keyframes ib-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ib-hero__eyebrow-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ib-teal);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.ib-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--ib-text-primary);
  line-height: 1.15;
  margin-bottom: 22px;
}
.ib-hero__title span { color: var(--ib-teal); display: block; }
.ib-hero__desc {
  font-size: 1.1rem;
  color: var(--ib-text-secondary);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 36px;
}
.ib-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Stagger reveal */
.ib-hero__eyebrow, .ib-hero__title, .ib-hero__desc, .ib-hero__actions {
  opacity: 0; transform: translateY(20px);
  animation: ib-fade-up 0.7s ease forwards;
}
.ib-hero__eyebrow { animation-delay: 0.1s; }
.ib-hero__title { animation-delay: 0.2s; }
.ib-hero__desc { animation-delay: 0.35s; }
.ib-hero__actions { animation-delay: 0.5s; }
@keyframes ib-fade-up {
  to { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   TOPIC SILO CARDS
   ============================================================ */
.ib-silos { padding: 40px 0 70px; }
.ib-silos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.ib-silo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--ib-card);
  border: 1px solid var(--ib-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.ib-silo-card:hover {
  border-color: var(--ib-border-hover);
  background: var(--ib-card-hover);
  transform: translateY(-2px);
}
.ib-silo-card:hover .ib-silo-card__name { color: var(--ib-white); }
.ib-silo-card__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ib-silo-card__icon--teal { background: var(--ib-teal-bg); border: 1px solid var(--ib-teal-border); }
.ib-silo-card__icon--purple { background: var(--ib-purple-bg); border: 1px solid var(--ib-purple-border); }
.ib-silo-card__icon--amber { background: var(--ib-amber-bg); border: 1px solid var(--ib-amber-border); }
.ib-silo-card__icon--green { background: var(--ib-green-bg); border: 1px solid var(--ib-green-border); }
.ib-silo-card__name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ib-text-primary);
  transition: color 0.2s;
}
.ib-silo-card__count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ib-text-muted);
  margin-top: 1px;
}


/* ============================================================
   FEATURED POST CARD
   ============================================================ */
.ib-featured { padding: 20px 0 70px; }
.ib-featured__card {
  background: var(--ib-card);
  border: 1px solid var(--ib-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: block;
}
.ib-featured__card:hover {
  border-color: rgba(0,217,181,0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.ib-featured__image {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #0d1a1e;
}
.ib-featured__image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ib-featured__image-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(13,26,30,0.8));
  pointer-events: none;
}
.ib-featured__body { padding: 28px 28px 32px; }
.ib-featured__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ib-featured__meta-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ib-text-muted);
}
.ib-featured__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ib-text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.ib-featured__card:hover .ib-featured__title { color: var(--ib-teal); }
.ib-featured__excerpt {
  font-size: 0.9rem;
  color: var(--ib-text-secondary);
  line-height: 1.7;
}

@media (max-width: 480px) {
  .ib-featured__image { height: 180px; }
  .ib-featured__body { padding: 20px; }
}


/* ============================================================
   POST ROW (Recent posts list)
   ============================================================ */
.ib-recent { padding: 20px 0 70px; }
.ib-recent__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.ib-recent__view-all {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ib-teal);
}
.ib-post-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ib-border);
  transition: all 0.15s ease;
}
.ib-post-row:last-child { border-bottom: none; }
.ib-post-row:hover { padding-left: 6px; }
.ib-post-row:hover .ib-post-row__title { color: var(--ib-teal); }
.ib-post-row__content { flex: 1; min-width: 0; }
.ib-post-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ib-post-row__silo {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--ib-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ib-post-row__date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ib-text-muted);
}
.ib-post-row__dot { font-size: 0.5rem; color: var(--ib-text-muted); }
.ib-post-row__title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ib-text-primary);
  line-height: 1.4;
  transition: color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ib-post-row__time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ib-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 480px) {
  .ib-post-row__title {
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }
}


/* ============================================================
   CONSULTING CTA BANNER
   ============================================================ */
.ib-consult-cta { padding: 20px 0 80px; }
.ib-consult-cta__card {
  background: linear-gradient(135deg, var(--ib-surface), var(--ib-card));
  border: 1px solid var(--ib-border);
  border-radius: 14px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.ib-consult-cta__orb {
  position: absolute;
  top: -50px; right: -50px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.ib-consult-cta__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ib-consult-cta__eyebrow-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--ib-teal);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.ib-consult-cta__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ib-text-primary);
  margin-bottom: 8px;
}
.ib-consult-cta__desc {
  font-size: 0.9rem;
  color: var(--ib-text-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 22px;
}


/* ============================================================
   NEWSLETTER
   ============================================================ */
.ib-newsletter { padding: 0 0 100px; }
.ib-newsletter__card {
  background: var(--ib-card);
  border: 1px solid var(--ib-border);
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
}
.ib-newsletter__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ib-text-primary);
  margin-bottom: 6px;
}
.ib-newsletter__desc {
  font-size: 0.85rem;
  color: var(--ib-text-secondary);
  margin-bottom: 22px;
}
.ib-newsletter__form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.ib-newsletter__input {
  flex: 1;
  padding: 11px 16px;
  background: var(--ib-bg);
  border: 1px solid var(--ib-border);
  border-radius: 6px;
  color: var(--ib-text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.ib-newsletter__input::placeholder { color: var(--ib-text-muted); }
.ib-newsletter__input:focus { border-color: var(--ib-teal-border); }
.ib-newsletter__submit {
  padding: 11px 20px;
  background: var(--ib-teal);
  color: var(--ib-bg);
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.ib-newsletter__submit:hover {
  background: var(--ib-teal-hover);
  box-shadow: 0 0 16px var(--ib-teal-glow);
}
@media (max-width: 480px) {
  .ib-newsletter__form { flex-direction: column; }
}


/* ============================================================
   BLOG ARCHIVE / CATEGORY PAGE
   ============================================================ */
.ib-archive { padding: 100px 0 40px; }
.ib-archive__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ib-text-primary);
  margin-bottom: 8px;
}
.ib-archive__desc {
  font-size: 0.9rem;
  color: var(--ib-text-secondary);
  margin-bottom: 32px;
}

/* Search bar on blog */
.ib-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--ib-card);
  border: 1px solid var(--ib-border);
  border-radius: 8px;
  margin-bottom: 28px;
  transition: border-color 0.2s;
}
.ib-search-bar:focus-within { border-color: var(--ib-teal-border); }
.ib-search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--ib-text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}
.ib-search-bar input::placeholder { color: var(--ib-text-muted); }
.ib-search-bar button {
  background: none;
  border: none;
  color: var(--ib-text-muted);
  cursor: pointer;
}

/* Silo filter tabs */
.ib-silo-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ib-border);
}
.ib-silo-tab {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--ib-border);
  background: transparent;
  color: var(--ib-text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ib-silo-tab:hover { border-color: var(--ib-border-hover); color: var(--ib-text-secondary); }
.ib-silo-tab.active,
.ib-silo-tab.current-cat {
  border-color: var(--ib-teal-border);
  background: var(--ib-teal-bg);
  color: var(--ib-teal);
}

/* Archive post list */
.ib-archive-posts { margin-bottom: 40px; }

/* Pagination */
.ib-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0 60px;
}
.ib-pagination a,
.ib-pagination span {
  width: 36px; height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid var(--ib-border);
  color: var(--ib-text-muted);
  transition: all 0.2s;
}
.ib-pagination a:hover {
  border-color: var(--ib-border-hover);
  color: var(--ib-text-primary);
}
.ib-pagination .current {
  background: var(--ib-teal-bg);
  color: var(--ib-teal);
  border-color: var(--ib-teal-border);
}


/* ============================================================
   SINGLE POST
   ============================================================ */
.ib-single { padding: 80px 0 40px; }
.ib-single__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 24px 0 8px;
}
.ib-single__breadcrumb a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ib-text-muted);
}
.ib-single__breadcrumb a:hover { color: var(--ib-teal); }
.ib-single__breadcrumb-sep {
  font-size: 0.6rem;
  color: var(--ib-text-muted);
}
.ib-single__breadcrumb-current {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ib-teal);
}

.ib-single__header { padding: 16px 0 24px; }
.ib-single__badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ib-single__title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 800;
  color: var(--ib-text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}
.ib-single__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ib-border);
  flex-wrap: wrap;
}
.ib-single__author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ib-single__author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ib-teal-bg);
  border: 1px solid var(--ib-teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ib-single__author-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.ib-single__author-name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ib-text-primary);
}
.ib-single__author-role {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ib-text-muted);
}
.ib-single__read-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ib-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* TOC */
.ib-toc {
  background: var(--ib-card);
  border: 1px solid var(--ib-border);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0 32px;
}
.ib-toc__title {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ib-text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ib-toc__list { counter-reset: toc-counter; }
.ib-toc__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ib-border);
  counter-increment: toc-counter;
}
.ib-toc__item:last-child { border-bottom: none; }
.ib-toc__item::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ib-teal);
  width: 22px;
  flex-shrink: 0;
}
.ib-toc__item a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ib-text-primary);
}
.ib-toc__item a:hover { color: var(--ib-teal); }

/* Article body content */
.ib-content {
  padding: 8px 0 40px;
}
.ib-content h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ib-text-primary);
  margin: 40px 0 14px;
  padding-top: 20px;
}
.ib-content h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ib-text-primary);
  margin: 28px 0 10px;
}
.ib-content p {
  font-size: 0.95rem;
  color: var(--ib-text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}
.ib-content ul, .ib-content ol {
  margin: 0 0 16px 24px;
  list-style: disc;
}
.ib-content ol { list-style: decimal; }
.ib-content li {
  font-size: 0.95rem;
  color: var(--ib-text-secondary);
  line-height: 1.75;
  margin-bottom: 6px;
}
.ib-content a { color: var(--ib-teal); text-decoration: underline; text-underline-offset: 3px; }
.ib-content a:hover { color: var(--ib-teal-hover); }
.ib-content strong { color: var(--ib-text-primary); font-weight: 600; }

/* Blockquote / callout */
.ib-content blockquote {
  border-left: 3px solid var(--ib-teal);
  padding: 16px 20px;
  background: var(--ib-teal-bg);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.ib-content blockquote p {
  font-size: 0.9rem;
  color: var(--ib-text-primary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Code blocks */
.ib-content pre {
  background: var(--ib-card);
  border: 1px solid var(--ib-border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.ib-content pre code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ib-text-secondary);
  line-height: 1.7;
  background: none;
  padding: 0;
}
.ib-content code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--ib-card);
  border: 1px solid var(--ib-border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ib-teal);
}
.ib-content img {
  border-radius: 10px;
  margin: 24px 0;
}
.ib-content hr {
  border: none;
  border-top: 1px solid var(--ib-border);
  margin: 40px 0;
}

/* Related posts */
.ib-related {
  padding: 32px 0 60px;
  border-top: 1px solid var(--ib-border);
}


/* ============================================================
   SERVICES PAGE
   ============================================================ */
.ib-services { padding: 100px 0 40px; }
.ib-services__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.ib-services__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--ib-text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}
.ib-services__desc {
  font-size: 0.95rem;
  color: var(--ib-text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

.ib-service-card {
  background: var(--ib-card);
  border: 1px solid var(--ib-border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.ib-service-card:hover { border-color: var(--ib-border-hover); }
.ib-service-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.ib-service-card__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ib-text-primary);
}
.ib-service-card__price {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ib-teal);
  font-weight: 600;
  text-align: right;
}
.ib-service-card__duration {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ib-text-muted);
}
.ib-service-card__desc {
  font-size: 0.875rem;
  color: var(--ib-text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}
.ib-service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ib-service-card__tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ib-text-muted);
  background: var(--ib-bg);
  border: 1px solid var(--ib-border);
}

/* Process steps */
.ib-process {
  padding: 32px 0 40px;
  border-top: 1px solid var(--ib-border);
}
.ib-process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.ib-process__step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(0,217,181,0.2);
}
.ib-process__step-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ib-text-primary);
  margin-top: 4px;
}
.ib-process__step-desc {
  font-size: 0.75rem;
  color: var(--ib-text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* Services CTA */
.ib-services-cta {
  background: linear-gradient(135deg, var(--ib-surface), var(--ib-card));
  border: 1px solid var(--ib-border);
  border-radius: 12px;
  padding: 32px 28px;
  margin: 32px 0 60px;
  text-align: center;
}
.ib-services-cta__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ib-text-primary);
  margin-bottom: 8px;
}
.ib-services-cta__desc {
  font-size: 0.875rem;
  color: var(--ib-text-secondary);
  margin-bottom: 20px;
}


/* ============================================================
   STATIC PAGES (About, Contact, Privacy, etc.)
   ============================================================ */
.ib-page { padding: 100px 0 60px; }
.ib-page__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ib-text-primary);
  margin-bottom: 24px;
}


/* ============================================================
   FOOTER
   ============================================================ */
.ib-footer {
  border-top: 1px solid var(--ib-border);
  padding: 48px 0 40px;
  position: relative;
  z-index: 1;
}
.ib-footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}
.ib-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.ib-footer__brand-text {
  font-size: 0.8rem;
  color: var(--ib-text-muted);
  max-width: 280px;
  line-height: 1.65;
  margin-top: 10px;
}
.ib-footer__cols { display: flex; gap: 48px; }
.ib-footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ib-text-muted);
  margin-bottom: 12px;
}
.ib-footer__col a {
  display: block;
  font-size: 0.85rem;
  color: var(--ib-text-secondary);
  margin-bottom: 6px;
}
.ib-footer__col a:hover { color: var(--ib-teal); }
.ib-footer__bottom {
  border-top: 1px solid var(--ib-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ib-footer__copy, .ib-footer__tech {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ib-text-muted);
}

/* WordPress menu in footer */
.ib-footer__col ul { list-style: none; }
.ib-footer__col ul li a {
  display: block;
  font-size: 0.85rem;
  color: var(--ib-text-secondary);
  margin-bottom: 6px;
}
.ib-footer__col ul li a:hover { color: var(--ib-teal); }

@media (max-width: 600px) {
  .ib-footer__top { flex-direction: column; gap: 28px; }
  .ib-footer__cols { gap: 32px; }
  .ib-footer__bottom { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.ib-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.ib-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   404 PAGE
   ============================================================ */
.ib-404 {
  padding: 160px 0 100px;
  text-align: center;
}
.ib-404__code {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  color: var(--ib-teal);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 16px;
}
.ib-404__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ib-text-primary);
  margin-bottom: 8px;
}
.ib-404__desc {
  font-size: 0.9rem;
  color: var(--ib-text-secondary);
  margin-bottom: 28px;
}


/* ============================================================
   COMMENTS (WordPress default)
   ============================================================ */
.ib-comments { padding: 32px 0; border-top: 1px solid var(--ib-border); }
.ib-comments .comment-respond { margin-top: 24px; }
.ib-comments .comment-reply-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ib-text-primary);
  margin-bottom: 12px;
}
.ib-comments textarea,
.ib-comments input[type="text"],
.ib-comments input[type="email"],
.ib-comments input[type="url"] {
  width: 100%;
  padding: 10px 14px;
  background: var(--ib-card);
  border: 1px solid var(--ib-border);
  border-radius: 6px;
  color: var(--ib-text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.ib-comments textarea:focus,
.ib-comments input:focus { border-color: var(--ib-teal-border); }
.ib-comments input[type="submit"] {
  padding: 10px 22px;
  background: var(--ib-teal);
  color: var(--ib-bg);
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
}
</style>
</head>
</html>
