/*
Theme Name: Portfolio - Chirag Kumar Deo
Author: Chirag Kumar Deo
Description: Personal integration-developer portfolio in a minimal, card-based magazine layout. Projects, Services, Experience and Certifications are custom post types; every visible string is editable under Appearance -> Customize.
Version: 2.1
*/

/* ---------------------------------------------------------------
   Design tokens
   --------------------------------------------------------------- */
:root {
  --primary: #fe4f70;
  --secondary: #ffa387;
  --gradient: linear-gradient(to right, #fe4f70 0%, #ffa387 51%, #fe4f70 100%);
  --heading: #203656;
  --text: #6b7a90;          /* body copy: a touch darker than pure Katen grey for readability */
  --text-muted: #8f9bad;    /* meta lines, counts */
  --bg: #ffffff;
  --card: #ffffff;
  --border: #ebebeb;
  --shadow: 0 10px 30px rgba(32, 54, 86, 0.08);
  --overlay: rgba(32, 54, 86, 0.6);
  --avatar-bg: #ffe9ed;

  --font-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 10px;
  --container: 1170px;
  --gap: 30px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --heading: #f1f4f9;
    --text: #a7b2c3;
    --text-muted: #8391a6;
    --bg: #0f1726;
    --card: #141f33;
    --border: #22304a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --overlay: rgba(10, 16, 28, 0.62);
    --avatar-bg: #2a2236;
  }
}
:root[data-theme="dark"] {
  --heading: #f1f4f9;
  --text: #a7b2c3;
  --text-muted: #8391a6;
  --bg: #0f1726;
  --card: #141f33;
  --border: #22304a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --overlay: rgba(10, 16, 28, 0.62);
  --avatar-bg: #2a2236;
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* Anything marked hidden must stay hidden even if a rule below gives it a
   display value (e.g. the search popup's display:flex) -- otherwise an
   invisible full-screen layer sits on top and blocks every click. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease;
}
body.no-scroll { overflow: hidden; }
.site-main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--heading); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
}
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.pf-icon { display: inline-block; flex-shrink: 0; vertical-align: -0.125em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.screen-reader-text, .hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--heading); color: var(--bg);
  padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.dot { color: var(--primary); }

/* ---------------------------------------------------------------
   Buttons, badges, tags
   --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 25px;
  font-family: var(--font-head); font-size: 14px; font-weight: 400; line-height: 1;
  padding: 13px 30px;
  transition: background-position .4s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-default { color: #fff; background: var(--gradient); background-size: 200% auto; }
.btn-default:hover { color: #fff; background-position: right center; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { color: var(--heading); }
.btn-outline { color: var(--heading); border: 1px solid var(--border); background: var(--card); padding: 12px 28px; }
.btn-outline .pf-icon { color: var(--primary); }
.btn-outline:hover { color: var(--primary); border-color: var(--primary); }
.btn-full { width: 100%; }

.badge {
  display: inline-block;
  background: var(--gradient); background-size: 200% auto;
  color: #fff; font-size: 13px; line-height: 1;
  padding: 6px 11px; border-radius: 25px;
  transition: background-position .4s ease;
}
.badge:hover { color: #fff; background-position: right center; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  border: 1px solid var(--border); border-radius: 25px;
  color: var(--text-muted); font-size: 13px; line-height: 1;
  padding: 9px 12px;
}
a.tag:hover { border-color: var(--primary); color: var(--primary); }

/* ---------------------------------------------------------------
   Avatars (photo, or initials on a soft tint until one is uploaded)
   --------------------------------------------------------------- */
.pf-avatar { border-radius: 50%; object-fit: cover; object-position: 50% 22%; flex-shrink: 0; }
.pf-avatar-initials {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--avatar-bg); color: var(--primary);
  font-family: var(--font-head); font-weight: 600; line-height: 1;
}
.pf-avatar-xs { width: 32px; height: 32px; font-size: 12px; }
.pf-avatar-md { width: 56px; height: 56px; font-size: 19px; }
.pf-avatar-lg { width: 80px; height: 80px; font-size: 26px; }
.pf-avatar-xl { width: 110px; height: 110px; font-size: 36px; }

/* ---------------------------------------------------------------
   Reading progress
   --------------------------------------------------------------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--gradient); }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-header { background: var(--bg); }
.header-top {
  display: flex; justify-content: center;
  padding: 30px 0 26px;
  border-bottom: 1px solid var(--border);
}
/* One bar: socials left, menu centre, search + menu buttons right */
.nav-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.nav-left { justify-self: start; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.home .main-nav, .single-pf_team .main-nav { border-bottom: 1px solid var(--border); }
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand .pf-avatar { margin-bottom: 12px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.2; color: var(--heading); }
.brand-name .dot { margin-left: 3px; }
.brand-tagline { color: var(--text-muted); font-family: var(--font-head); font-size: 14px; line-height: 1.5; margin-top: 8px; }

.social-icons { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.social-icons a { color: var(--heading); font-size: 16px; display: inline-flex; }
.social-icons a:hover { color: var(--primary); }

.icon-button {
  width: 37px; height: 37px; padding: 0; border-radius: 50%; border: 0;
  background: var(--gradient); background-size: 200% auto;
  color: #fff; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(254, 79, 112, 0.28);
  transition: background-position .4s ease;
}
.icon-button:hover { background-position: right center; }

.main-nav { background: var(--bg); z-index: 200; }
.main-nav.is-sticky {
  position: fixed; top: 0; left: 0; right: 0;
  box-shadow: 0 1px 0 var(--border), 0 4px 18px rgba(32, 54, 86, 0.06);
  animation: slideDown .3s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }
.nav-list {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px;
  padding: 20px 0;
}
.main-nav.is-sticky .nav-list { padding: 14px 0; }
.nav-list a {
  display: block;
  font-family: var(--font-head); font-size: 14px; line-height: 24px;
  color: var(--text);
  padding: 7px 21px; border-radius: 25px;
}
.nav-list a:hover { color: var(--primary); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: #fff;
  background: var(--gradient); background-size: 200% auto;
}

/* Floating light/dark switch on the right edge */
.theme-toggle {
  position: fixed; right: 0; top: 40vh; z-index: 250;
  width: 46px; height: 46px; padding: 0 0 0 4px; border: 0;
  border-radius: 23px 0 0 23px;
  background: var(--card); color: var(--heading);
  box-shadow: 0 2px 14px rgba(32, 54, 86, 0.14);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.theme-toggle span { display: inline-flex; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: inline-flex; }
}

/* ---------------------------------------------------------------
   Search popup + slide-out menu
   --------------------------------------------------------------- */
.search-popup {
  position: fixed; inset: 0; z-index: 400;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; transition: opacity .2s ease;
}
.search-popup.is-open { opacity: 1; }
.search-form { width: 100%; max-width: 640px; position: relative; }
.search-form input {
  width: 100%;
  border: 0; border-bottom: 2px solid var(--border);
  background: transparent; color: var(--heading);
  font-family: var(--font-head); font-size: 26px;
  padding: 12px 56px 12px 0;
}
.search-form input:focus { outline: none; border-bottom-color: var(--primary); }
.search-form button {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--primary); font-size: 24px; display: inline-flex;
}
.popup-close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card); color: var(--heading);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.popup-close:hover { color: var(--primary); border-color: var(--primary); }

.canvas-overlay {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(10, 16, 28, 0.45);
  opacity: 0; transition: opacity .3s ease;
}
.canvas-overlay.is-open { opacity: 1; }
.offcanvas {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 360;
  width: min(340px, 88vw);
  background: var(--card);
  padding: 80px 36px 36px;
  overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.offcanvas.is-open { transform: none; visibility: visible; }
.offcanvas .popup-close { top: 20px; right: 20px; }
.offcanvas-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.offcanvas-brand .brand-name { font-size: 20px; }
.offcanvas-menu { list-style: none; margin-bottom: 28px; }
.offcanvas-menu li { border-bottom: 1px solid var(--border); }
.offcanvas-menu a { display: block; padding: 12px 0; font-family: var(--font-head); font-size: 15px; color: var(--heading); }
.offcanvas-menu a:hover, .offcanvas-menu .current-menu-item > a { color: var(--primary); }
.offcanvas-about { font-size: 14px; }
.offcanvas .btn { margin: 6px 0 26px; }

/* ---------------------------------------------------------------
   Generated covers (projects without a picture)
   A pale tint with a small "system → system" diagram, so the site stays
   calm and light like a photo-led layout instead of loud colour blocks.
   --------------------------------------------------------------- */
.pf-cover {
  container-type: size;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--tint);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.4px);
  background-size: 18px 18px;
  overflow: hidden;
}
:root[data-theme="dark"] .pf-cover { background-color: color-mix(in srgb, var(--tint) 12%, #141f33); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pf-cover { background-color: color-mix(in srgb, var(--tint) 12%, #141f33); }
}
.diagram { display: flex; align-items: center; justify-content: center; width: 86%; }
.sys {
  display: flex; align-items: center; gap: 9px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 8px 22px rgba(32, 54, 86, 0.1);
  min-width: 0; max-width: 44%;
}
.diagram-solo .sys { max-width: 80%; padding: 14px 20px; gap: 12px; }
.diagram-solo .sys-icon { width: 38px; height: 38px; }
.diagram-solo .sys-name { font-size: 15px; }
.sys-icon {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 12%, #fff); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1;
}
.diagram-solo .sys-icon { font-size: 18px; }
.sys-name {
  font-family: var(--font-head); font-weight: 600; font-size: 13px; line-height: 1.3;
  color: #203656;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.link {
  position: relative; flex: 1; min-width: 24px; height: 2px; margin: 0 6px;
  background-image: linear-gradient(to right, var(--ink) 50%, transparent 50%);
  background-size: 8px 2px; opacity: .55;
}
.link::after {
  content: ""; position: absolute; right: -2px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px;
  border-top: 2px solid var(--ink); border-right: 2px solid var(--ink);
  transform: rotate(45deg);
}
.pulse {
  position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--ink);
  animation: pulse-move 2.4s ease-in-out infinite;
}
@keyframes pulse-move { from { left: 0; } to { left: calc(100% - 8px); } }

/* Narrow covers: stack the two systems vertically */
@container (max-width: 260px) {
  .diagram { flex-direction: column; width: 80%; }
  .sys { max-width: 100%; width: 100%; padding: 8px 10px; }
  .link { flex: none; width: 2px; height: 18px; min-width: 0; margin: 6px 0;
    background-image: linear-gradient(to bottom, var(--ink) 50%, transparent 50%); background-size: 2px 8px; }
  .link::after { right: auto; left: 50%; top: auto; bottom: -2px; margin: 0 0 0 -3.5px; transform: rotate(135deg); }
  .pulse { display: none; }
  .sys-icon { width: 24px; height: 24px; font-size: 12px; }
  .sys-name { font-size: 11px; }
  .diagram-solo .sys { width: auto; padding: 12px; }
  .diagram-solo .sys-name { display: none; }
}
/* Tiny covers (sidebar circles): just the first system's icon */
@container (max-width: 110px) {
  .pf-cover .diagram { width: auto; }
  .pf-cover .diagram .sys { background: none; box-shadow: none; padding: 0; width: auto; max-width: none; }
  .pf-cover .diagram .sys-name, .pf-cover .diagram .link, .pf-cover .diagram .sys + .link + .sys { display: none; }
  .pf-cover .diagram .sys-icon { width: 34px; height: 34px; font-size: 15px; background: #fff; }
}

.pf-cover-img { width: 100%; height: 100%; object-fit: cover; }

/* Real logos inside cover boxes */
.sys-icon-img { background: #fff; padding: 3px; box-shadow: inset 0 0 0 1px rgba(32, 54, 86, 0.08); }
.sys-icon-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.sys-logo { flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 14px; }
.sys-wordmark img { display: block; height: 26px; width: auto; max-width: 118px; object-fit: contain; }
.sys-caption { font-family: var(--font-head); font-weight: 500; font-size: 11px; line-height: 1.2; color: #6b7a90; text-align: center; }
.link-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  box-shadow: 0 6px 16px rgba(32, 54, 86, 0.14);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.link-hub img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; }
.link:has(.link-hub) { min-width: 56px; opacity: 1; }
.link:has(.link-hub)::before { content: ""; }
.diagram-solo .sys-wordmark img { height: 34px; max-width: 160px; }
.single-cover .sys-wordmark img { height: 36px; max-width: 170px; }

/* ---------------------------------------------------------------
   Home intro
   --------------------------------------------------------------- */
.intro { padding: 10px 0 60px; }
.intro-card {
  display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card);
  padding: 40px 50px 40px 40px;
}
.intro-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background-color: #fdecef;
  background-image: radial-gradient(rgba(254, 79, 112, 0.18) 1px, transparent 1.4px);
  background-size: 18px 18px;
}
.intro-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: 0;
  border: 2px solid var(--primary); border-radius: var(--radius); opacity: .35;
}
.intro-photo img, .intro-photo-placeholder {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius);
}
.intro-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 84px; color: var(--primary);
}
.intro-greeting {
  display: inline-block; font-family: var(--font-head); font-size: 15px; color: var(--primary);
  margin-bottom: 6px;
}
.intro-name { font-size: 44px; line-height: 1.15; margin: 0 0 14px; }
.intro-headline { font-family: var(--font-head); font-weight: 600; font-size: 21px; line-height: 1.45; color: var(--heading); margin-bottom: 16px; }
.intro-headline em { font-style: normal; color: var(--primary); }
.intro-body { font-size: 16px; margin-bottom: 22px; }
.intro-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.intro-chips li {
  font-size: 13px; line-height: 1; color: var(--heading);
  background: var(--avatar-bg); border-radius: 25px; padding: 8px 13px;
}
.intro-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 991px) {
  .intro-card { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding: 30px; }
  .intro-name { font-size: 36px; }
}
@media (max-width: 767px) {
  .intro { padding: 20px 0 40px; }
  .intro-card { grid-template-columns: 1fr; gap: 34px; padding: 24px 24px 30px; }
  .intro-photo { max-width: 260px; }
  .intro-name { font-size: 32px; }
  .intro-headline { font-size: 18px; }
}

.section-title { font-size: 24px; margin: 0 0 24px; }

/* My Team page */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 56px 48px; }
.team-grid .team-card { width: 270px; }
@media (max-width: 640px) { .team-grid { gap: 36px; } .team-grid .team-card { width: min(320px, 100%); } }
.team-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  color: var(--heading); transition: box-shadow .3s ease, transform .3s ease;
}
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); color: var(--heading); }
.team-photo {
  display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background-color: #fdecef;
  background-image: radial-gradient(rgba(254, 79, 112, 0.18) 1px, transparent 1.4px); background-size: 18px 18px;
}
.team-photo img, .team-photo .intro-photo-placeholder { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .6s ease; }
.team-photo .intro-photo-placeholder { font-size: 64px; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-info { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 20px 24px; }
.team-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.3; }
.team-role { font-size: 14px; color: var(--text-muted); }
.team-info .more-link { margin-top: 12px; }
.team-stats { padding: 0 0 50px; }
.team-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.team-stat-row .stat { background: var(--card); padding: 24px 16px; }
.team-stat-row .stat-value { font-size: 34px; }
.badge-year { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Certification badges */
.badge-strip { padding: 0 0 60px; }
.badge-strip .section-title { text-align: center; }
.badge-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.badge-row li { width: 130px; text-align: center; }
.badge-row img.cert-badge-img { width: 110px; height: 110px; object-fit: contain; margin: 0 auto 10px; transition: transform .3s ease; }
.badge-row .gen-badge { margin: 0 auto 10px; transition: transform .3s ease; }
.badge-row li:hover .gen-badge { transform: translateY(-4px); }

/* Theme-drawn badge for certifications without an uploaded badge image */
.gen-badge {
  --s: 110px;
  position: relative; display: block; width: calc(var(--s) * 0.9); height: var(--s);
  clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%);
  background: linear-gradient(160deg, var(--b1), var(--b2));
  filter: drop-shadow(0 8px 18px rgba(32, 54, 86, 0.15));
}
.gen-badge-inner {
  position: absolute; inset: 6px;
  clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--b1) 70%, #fff), color-mix(in srgb, var(--b2) 70%, #fff));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 0 8px; text-align: center; color: #fff;
}
.gen-badge-logo-wrap { width: 22px; height: 22px; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 2px; }
.gen-badge-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.gen-badge-issuer { font-family: var(--font-head); font-weight: 700; font-size: 11px; line-height: 1; letter-spacing: .02em; }
.gen-badge-title {
  font-family: var(--font-head); font-weight: 600; font-size: 7.5px; line-height: 1.25;
  background: rgba(16, 24, 40, 0.75); border-radius: 3px; padding: 3px 5px; margin: 0 -6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cert-card .gen-badge { --s: 130px; }
.cert-card .gen-badge-issuer { font-size: 13px; }
.cert-card .gen-badge-title { font-size: 9px; }
.cert-card .gen-badge-logo-wrap { width: 26px; height: 26px; }
.badge-row li:hover img { transform: translateY(-4px); }
.badge-name { display: block; font-family: var(--font-head); font-size: 12px; line-height: 1.4; color: var(--heading); }
.intro-chips .chip-badge { width: 18px; height: 18px; object-fit: contain; margin: -4px 6px -4px -4px; display: inline-block; vertical-align: middle; }
.list-topics .topic-badge { width: 22px; height: 22px; object-fit: contain; }
.diagram-badge { width: auto; }
.cover-badge { width: auto; height: 62%; max-height: 150px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(32, 54, 86, 0.15)); }

/* ---------------------------------------------------------------
   Main layout: content + sidebar
   --------------------------------------------------------------- */
.main-content { padding: 0 0 60px; }
.main-content-single { padding-top: 10px; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 991px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 50px; } }
.content-col { min-width: 0; }

/* ---------------------------------------------------------------
   Project cards
   --------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 575px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
.post-card {
  background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: box-shadow .3s ease;
}
.post-card[hidden] { display: none; }
.post-card:hover { box-shadow: var(--shadow); }
.post-card .thumb { position: relative; height: 236px; }
.thumb-link { display: block; height: 100%; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.thumb-link > * { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .thumb-link > * { transform: scale(1.05); }
.post-card .thumb .badge { position: absolute; top: 20px; left: 20px; z-index: 2; }
.thumb-icon {
  position: absolute; right: 20px; bottom: -25px; z-index: 2;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient); background-size: 200% auto;
  color: #fff; font-size: 19px;
  box-shadow: 0 6px 16px rgba(254, 79, 112, 0.3);
}
.thumb-icon:hover { color: #fff; background-position: right center; }
.post-card .details { padding: 30px 30px 0; display: flex; flex-direction: column; flex: 1; }

.meta {
  list-style: none;
  display: flex; flex-wrap: wrap; align-items: center;
  font-size: 14px; line-height: 1.7; color: var(--text-muted);
}
.meta li { display: inline-flex; align-items: center; }
.meta li + li::before {
  content: ""; width: 3px; height: 3px; border-radius: 50%;
  background: var(--primary); margin: 0 12px;
}
.meta-author .pf-avatar { margin-right: 12px; }
.post-card .post-title { font-size: 20px; line-height: 1.4; margin: 16px 0; }
.post-title a { color: var(--heading); }
.post-title a:hover { color: var(--primary); }
.excerpt { font-size: 16px; line-height: 1.7; margin: 0; flex: 1; }
.post-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 30px; padding: 18px 0 20px;
}
.share {
  border: 0; background: none; padding: 0; color: var(--text-muted); font-size: 16px;
  display: inline-flex; align-items: center;
}
.share:hover { color: var(--primary); }
.bottom-links { display: inline-flex; align-items: center; gap: 20px; }
.more-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 13px; line-height: 1;
  color: var(--heading);
}
.more-link .pf-icon { color: var(--primary); font-size: 15px; transition: transform .2s ease; }
.more-link:hover { color: var(--primary); }
.more-link:hover .pf-icon { transform: translateX(3px); }

/* Blog list: horizontal cards */
.post-list { display: flex; flex-direction: column; gap: var(--gap); }
.post-list .post-card { flex-direction: row; }
.post-list .post-card .thumb { width: 44%; flex-shrink: 0; height: auto; min-height: 250px; }
.post-list .thumb-link { border-radius: var(--radius) 0 0 var(--radius); }
.post-list .post-card .details { padding: 26px 28px 0; }
.post-list .post-card .post-title { font-size: 19px; margin: 12px 0 10px; }
.post-list .excerpt { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-list .post-bottom { margin-top: 18px; padding: 14px 0 16px; }
.post-list .thumb-icon { bottom: auto; top: 50%; right: -25px; transform: translateY(-50%); }
@media (max-width: 640px) {
  .post-list .post-card { flex-direction: column; }
  .post-list .post-card .thumb { width: 100%; height: 220px; min-height: 0; }
  .post-list .thumb-link { border-radius: var(--radius) var(--radius) 0 0; }
}

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.pagination .page-numbers {
  width: 45px; height: 45px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--heading); font-size: 14px;
}
.pagination .page-numbers.current { border-color: transparent; background: var(--gradient); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }

.empty { text-align: center; padding: 30px 0; margin: 0; }

/* ---------------------------------------------------------------
   Sidebar widgets
   --------------------------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 40px; }
.widget, .card {
  background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 35px 30px;
}
.widget-header { text-align: center; margin-bottom: 30px; }
.widget-title { font-size: 20px; margin-bottom: 8px; }
.wave { display: block; margin: 0 auto; }

.post-list-sm .post-sm { display: flex; align-items: center; gap: 20px; }
.post-list-sm .post-sm + .post-sm { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.thumb-circle { position: relative; width: 60px; height: 60px; flex-shrink: 0; display: block; }
.thumb-circle > :not(.number) { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; object-fit: cover; }
.number {
  position: absolute; top: -4px; left: -4px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient); color: #fff; border: 2px solid var(--card);
  font-size: 11px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.post-sm .details { min-width: 0; }
.post-sm .post-title { font-size: 15px; line-height: 1.4; margin: 0 0 4px; }
.meta-sm { font-size: 14px; color: var(--text-muted); }

.list-topics { list-style: none; }
.list-topics li { border-bottom: 1px solid var(--border); }
.list-topics li:first-child { border-top: 1px solid var(--border); }
.list-topics a { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--heading); }
.list-topics a .pf-icon { color: var(--primary); font-size: 14px; }
.list-topics .name { font-family: var(--font-head); font-weight: 600; font-size: 14px; flex: 1; }
.list-topics .count { color: var(--text-muted); font-size: 14px; }
.list-topics a:hover .name { color: var(--primary); }

.widget-cta { text-align: center; }
.widget-cta p { color: var(--heading); font-family: var(--font-head); font-weight: 500; font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.small-print { display: block; font-size: 13px; color: var(--text-muted); margin-top: 14px; }

.mini-slider { position: relative; }
.mini-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.mini-track::-webkit-scrollbar { display: none; }
.mini-slide { scroll-snap-align: start; }
.cert-card {
  position: relative; height: 170px; border-radius: var(--radius); overflow: hidden;
  background-color: var(--c1, #fdecef);
  background-image: radial-gradient(rgba(32, 54, 86, 0.12) 1px, transparent 1.4px);
  background-size: 18px 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.cert-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff; color: var(--c2, var(--primary));
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 8px 22px rgba(32, 54, 86, 0.1);
}
.cert-card .badge { position: absolute; top: 16px; left: 16px; }
.cert-badge-img { height: 130px; width: auto; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(32, 54, 86, 0.15)); }
.mini-slide .post-title { font-size: 16px; line-height: 1.4; margin: 0; }
.slider-arrows { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.slider-arrows button {
  width: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card); color: var(--text-muted); font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.slider-arrows button:hover { border-color: var(--primary); color: var(--primary); }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer { flex-shrink: 0; }
.footer-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.copyright { font-size: 14px; color: var(--text-muted); }
.footer-note { font-size: 12px; line-height: 1.6; color: var(--text-muted); text-align: center; margin: -16px 0 0; padding-bottom: 30px; }
.footer-social { justify-self: center; }
.btn-back-top {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 25px;
  padding: 9px 20px; font-size: 13px; line-height: 1; color: var(--text-muted);
}
.btn-back-top:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 767px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-social, .btn-back-top { justify-self: center; }
}

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 500;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--heading); color: var(--bg);
  padding: 10px 22px; border-radius: 25px; font-size: 14px;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------
   Inner pages
   --------------------------------------------------------------- */
.page-header { text-align: center; padding: 20px 0 50px; }
.page-header h1 { font-size: 32px; margin-bottom: 10px; }
.page-subtitle { max-width: 620px; margin: 0 auto 14px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1; }
.breadcrumb .pf-icon { font-size: 12px; color: var(--text-muted); }
.breadcrumb span { color: var(--text-muted); }

.content-col > .card + .card,
.content-col > .card + .cta-card,
.content-col > .service-grid + .cta-card { margin-top: 30px; }
.card-title { font-size: 18px; margin: 26px 0 10px; }

/* About */
.about-head { display: flex; align-items: center; gap: 24px; }
.about-name { font-size: 26px; margin: 0 0 6px; }
.about-headline { margin: 0; font-family: var(--font-head); font-size: 15px; color: var(--text); }
.about-headline em, .cta-card h2 em { font-style: normal; color: var(--primary); }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.stat { text-align: center; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 10px; }
.stat-value { display: block; font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-muted); }
@media (max-width: 575px) { .about-head { flex-direction: column; text-align: center; } .stat-row { grid-template-columns: 1fr; } }

.skill-group + .skill-group { margin-top: 22px; }
.skill-group h4 { font-size: 15px; margin-bottom: 10px; }

.timeline { list-style: none; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; }
.timeline-item + .timeline-item { margin-top: 30px; }
.timeline-item::before {
  content: ""; position: absolute; left: -30px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gradient); box-shadow: 0 0 0 4px var(--card);
}
.timeline-date { font-size: 13px; line-height: 1.5; color: var(--primary); font-family: var(--font-head); display: block; }
.timeline-role { font-size: 18px; margin: 4px 0 2px; }
.timeline-company { display: block; font-family: var(--font-head); font-size: 14px; color: var(--text); margin-bottom: 10px; }

.cert-list { list-style: none; }
.cert-list li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.cert-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cert-list li:first-child { padding-top: 0; }
.cert-list .pf-icon { color: var(--primary); font-size: 20px; }
.cert-name { flex: 1; color: var(--heading); font-family: var(--font-head); font-weight: 500; font-size: 14px; line-height: 1.5; }

.entry-content { color: var(--text); font-size: 16px; }
.entry-content ul, .entry-content ol { padding-left: 20px; margin-bottom: 16px; }
.entry-content li { margin-bottom: 6px; }
.entry-content li::marker { color: var(--primary); }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content img { border-radius: var(--radius); }
.entry-content .lead { font-size: 18px; line-height: 1.65; color: var(--heading); font-family: var(--font-head); font-weight: 500; margin-bottom: 26px; }
.entry-content h3 { font-size: 20px; margin: 30px 0 14px; }
.entry-content ul.wp-block-list { list-style: none; padding: 0; }
.entry-content ul.wp-block-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.entry-content ul.wp-block-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--avatar-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fe4f70' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.entry-content figure.wp-block-table { margin: 0; }
.entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.entry-content th, .entry-content td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.entry-content tr:last-child th, .entry-content tr:last-child td { border-bottom: 0; }
.entry-content th { width: 34%; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--heading); background: color-mix(in srgb, var(--avatar-bg) 55%, var(--card)); }
.entry-content td { color: var(--text); }
/* Override WordPress's default table-block borders */
.entry-content .wp-block-table table { border: 1px solid var(--border); border-collapse: separate; }
.entry-content .wp-block-table th, .entry-content .wp-block-table td { border: 0; border-bottom: 1px solid var(--border); }
.entry-content .wp-block-table th { border-right: 1px solid var(--border); }
.entry-content .wp-block-table tr:last-child th, .entry-content .wp-block-table tr:last-child td { border-bottom: 0; }

/* Article typography (blog posts) */
.entry-content h2 { font-size: 24px; margin: 38px 0 14px; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content p { margin-bottom: 18px; }
.entry-content a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--primary); }
.entry-content strong { color: var(--heading); }
.entry-content :not(pre) > code {
  font-family: Menlo, Consolas, "SF Mono", monospace; font-size: .86em;
  background: color-mix(in srgb, var(--avatar-bg) 70%, var(--card)); color: #c42b4a;
  padding: 2px 6px; border-radius: 5px;
}
.entry-content pre.wp-block-code {
  margin: 0 0 22px; padding: 20px 22px; border-radius: var(--radius); overflow-x: auto;
  background: #1b2433; border: 0;
  box-shadow: inset 0 3px 0 0 var(--primary);
}
.entry-content pre.wp-block-code code {
  font-family: Menlo, Consolas, "SF Mono", monospace; font-size: 14px; line-height: 1.65;
  color: #e6edf3; background: none; padding: 0; white-space: pre;
}
.entry-content ol.wp-block-list:not(.steps) { padding-left: 0; list-style: none; counter-reset: li; }
.entry-content ol.wp-block-list:not(.steps) > li { counter-increment: li; position: relative; padding-left: 36px; margin-bottom: 12px; }
.entry-content ol.wp-block-list:not(.steps) > li::before {
  content: counter(li); position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--avatar-bg); color: var(--primary);
  font-family: var(--font-head); font-weight: 600; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.entry-content figure.wp-block-image { margin: 26px 0 30px; }
.entry-content figure.wp-block-image img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.entry-content figcaption { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.entry-content figure.wp-block-table { margin: 0 0 24px; overflow-x: auto; }
.entry-content .wp-block-table thead th { background: var(--heading); color: #fff; border-right-color: transparent; font-size: 13px; text-transform: none; }
.entry-content .wp-block-table thead { border-bottom: 0; }
.entry-content .wp-block-table tbody th, .entry-content .wp-block-table td { font-size: 14px; }
.entry-content .wp-block-table:not(.is-style-glance) td:first-child { font-weight: 600; color: var(--heading); }
.entry-content p.callout {
  position: relative; padding: 16px 18px 16px 52px; border-radius: var(--radius); font-size: 15px;
  border: 1px solid var(--border); background: var(--card);
}
.entry-content p.callout::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 13px;
}
.entry-content p.callout-tip { border-color: color-mix(in srgb, #139a85 35%, var(--border)); background: color-mix(in srgb, #e8f5f0 60%, var(--card)); }
.entry-content p.callout-tip::before { background-color: #139a85; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.6.6 1 1.3 1 2.5h6c0-1.2.4-1.9 1-2.5A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.entry-content p.callout-note { border-color: color-mix(in srgb, #4f74e8 35%, var(--border)); background: color-mix(in srgb, #eaf0fc 60%, var(--card)); }
.entry-content p.callout-note::before { background-color: #4f74e8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E"); }
.entry-content p.callout-warning { border-color: color-mix(in srgb, #e07a2a 40%, var(--border)); background: color-mix(in srgb, #fcf1e6 60%, var(--card)); }
.entry-content p.callout-warning::before { background-color: #e07a2a; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E"); }

/* Code blocks: language tag + copy button */
.entry-content .code-wrap { position: relative; margin: 0 0 22px; }
.entry-content .code-wrap pre.wp-block-code { margin: 0; padding-top: 44px; }
.code-lang {
  position: absolute; left: 18px; top: 14px;
  font-family: Menlo, Consolas, monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: #8b96a8;
}
.code-copy {
  position: absolute; right: 12px; top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: #e6edf3;
  font-family: var(--font-head); font-size: 12px; line-height: 1; padding: 7px 12px; border-radius: 20px;
  transition: background .2s ease, border-color .2s ease;
}
.code-copy:hover { background: rgba(255, 255, 255, 0.14); }
.code-copy.is-copied { background: #139a85; border-color: #139a85; color: #fff; }

/* "How it works" numbered steps */
.entry-content ol.steps { list-style: none; padding: 0; counter-reset: step; margin-bottom: 10px; }
.entry-content ol.steps li { counter-increment: step; position: relative; padding: 0 0 18px 50px; margin: 0; }
.entry-content ol.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.entry-content ol.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--border);
}
.entry-content ol.steps strong { color: var(--heading); font-family: var(--font-head); font-weight: 600; }

/* Tools & systems logo row (single project / resource) */
.systems-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: -6px 0 30px; }
.systems-label { font-family: var(--font-head); font-size: 13px; color: var(--text-muted); }
.systems-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.systems-strip li {
  display: inline-flex; align-items: center; gap: 8px; height: 38px;
  border: 1px solid var(--border); border-radius: 25px; padding: 0 14px 0 6px; background: var(--card);
  font-family: var(--font-head); font-size: 13px; color: var(--heading);
}
.systems-strip li.is-wordmark { padding: 0 14px; background: #fff; }
.systems-icon { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; }
.systems-wordmark { height: 20px; width: auto; max-width: 110px; object-fit: contain; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 575px) { .service-grid { grid-template-columns: minmax(0, 1fr); } }
.service-card { transition: box-shadow .3s ease; }
.service-card:hover { box-shadow: var(--shadow); }
.service-card .entry-content { font-size: 15px; }
.service-index {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--avatar-bg); color: var(--primary); font-family: var(--font-head); font-weight: 600; line-height: 1;
  margin-bottom: 18px;
}
.service-card .post-title { font-size: 19px; margin-bottom: 6px; }
.service-tagline { font-family: var(--font-head); font-size: 14px; color: var(--primary); }

.cta-card {
  border-radius: var(--radius);
  padding: 44px 36px; text-align: center;
  background: var(--gradient); color: rgba(255, 255, 255, 0.95);
}
.cta-card h2 { color: #fff; font-size: 26px; }
.cta-card h2 em { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Contact */
.contact-card .entry-content { margin-bottom: 24px; }
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 575px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 8px; }
.contact-form label span { font-family: var(--font-head); font-size: 14px; color: var(--heading); }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--border); border-radius: 25px;
  background: var(--bg); color: var(--heading);
  font: inherit; padding: 11px 22px;
  transition: border-color .2s ease;
}
.contact-form textarea { border-radius: 20px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form .btn { justify-self: start; }
.sent-card { text-align: center; padding: 20px 10px 10px; animation: sent-in .5s ease both; }
@keyframes sent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sent-emoji {
  display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; border-radius: 50%; font-size: 38px; line-height: 1;
  background: #e7f6f2; box-shadow: 0 0 0 10px color-mix(in srgb, #e7f6f2 50%, transparent);
  margin-bottom: 26px; animation: sent-pop .6s .15s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes sent-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.sent-title { font-size: 26px; margin-bottom: 12px; }
.sent-text { font-size: 16px; max-width: 460px; margin: 0 auto 14px; }
.sent-note {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted);
  margin: 0 0 28px;
}
.sent-note .pf-icon { color: #139a85; font-size: 16px; }
.sent-steps {
  list-style: none; counter-reset: s; text-align: left; max-width: 380px; margin: 0 auto 30px; padding: 0;
  border-top: 1px solid var(--border);
}
.sent-steps li { counter-increment: s; position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--heading); }
.sent-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--gradient); color: #fff;
  font-family: var(--font-head); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.sent-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact-form button[disabled] { opacity: .75; cursor: progress; }
.form-banner { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: 14px; }
.form-banner.success { background: #e7f6f2; color: #0b7a6f; }
.form-banner.error { background: #fdecef; color: #c42b4a; }

/* Single project */
.single-header { margin-bottom: 26px; }
.single-header .badge { margin-bottom: 16px; }
.single-title { font-size: 30px; margin-bottom: 16px; }
.single-cover { height: 380px; border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.single-cover > * { width: 100%; height: 100%; object-fit: cover; }
.single-cover .diagram { width: 70%; }
.single-cover .sys { padding: 14px 18px; }
.single-cover .sys-icon { width: 38px; height: 38px; font-size: 17px; }
.single-cover .sys-name { font-size: 16px; }
.single-footer { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--border); margin-top: 30px; padding-top: 24px; }
.share-pill {
  margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border) !important;
  justify-content: center;
}
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 30px; }
.post-nav-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; background: var(--card); }
.post-nav-item.next { text-align: right; }
.post-nav-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1; color: var(--text-muted); }
.post-nav-title { display: block; font-family: var(--font-head); font-weight: 600; color: var(--heading); margin-top: 8px; line-height: 1.4; }
.post-nav-item:hover .post-nav-title { color: var(--primary); }
@media (max-width: 575px) { .post-nav { grid-template-columns: 1fr; } .single-cover { height: 220px; } }

/* Related project box (blog post) + posts list (project) */
.related-box {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; margin-top: 30px; color: var(--heading);
}
.related-box:hover { border-color: var(--primary); color: var(--heading); }
.related-box > .pf-icon { color: var(--primary); font-size: 18px; margin-left: auto; }
.related-thumb { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.related-thumb > * { width: 100%; height: 100%; object-fit: cover; }
.related-text { display: flex; flex-direction: column; min-width: 0; }
.related-label { font-size: 13px; color: var(--text-muted); }
.related-title { font-family: var(--font-head); font-weight: 600; line-height: 1.4; }
.content-col > .single-post + .related-posts { margin-top: 30px; }

/* Filter pills (Projects / Resources pages) */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-chip {
  border: 1px solid var(--border); border-radius: 25px; background: var(--card);
  color: var(--text); font-family: var(--font-head); font-size: 14px; line-height: 1;
  padding: 10px 18px;
  display: inline-flex; align-items: center; gap: 6px;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.is-active { border-color: transparent; background: var(--gradient); color: #fff; }
.chip-count { opacity: .75; font-size: 12px; }

/* ---------------------------------------------------------------
   Small screens
   --------------------------------------------------------------- */
@media (max-width: 767px) {
  .header-top { padding: 18px 0 14px; }
  .brand { align-items: center; }
  .brand .pf-avatar { width: 44px; height: 44px; font-size: 15px; margin: 0; }
  .brand-name { font-size: 20px; }
  .brand-tagline { display: none; }
  .nav-list, .nav-left { display: none; }
  .nav-bar { grid-template-columns: 1fr; padding-top: 12px; padding-bottom: 12px; }
  .post-card .details { padding: 26px 24px 0; }
  .widget, .card { padding: 28px 24px; }
  .page-header h1 { font-size: 26px; }
  .single-title { font-size: 24px; }
  .theme-toggle { top: auto; bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .pulse { display: none; }
}
