/*
Theme Name:  Prokits Child
Theme URI:   https://prokits.xyz
Description: Custom child theme for prokits.xyz — AI tools blog
Author:      Prokits
Author URI:  https://prokits.xyz
Template:    astra
Version:     0.1.26
License:     GNU General Public License v2 or later
Text Domain: prokits-child
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --pk-purple:        #5b21b6;
  --pk-purple-dark:   #3b0e8c;
  --pk-purple-light:  #7c3aed;
  --pk-purple-xlight: #ede9fe;
  --pk-accent:        #f59e0b;
  --pk-accent-dark:   #d97706;

  /* Neutrals */
  --pk-white:         #ffffff;
  --pk-off-white:     #f9f8ff;
  --pk-gray-50:       #f8fafc;
  --pk-gray-100:      #f1f5f9;
  --pk-gray-200:      #e2e8f0;
  --pk-gray-400:      #94a3b8;
  --pk-gray-600:      #475569;
  --pk-gray-800:      #1e293b;
  --pk-gray-900:      #0f172a;

  /* Typography */
  --pk-font-head:     'Syne', sans-serif;
  --pk-font-body:     'Inter', sans-serif;
  --pk-font-mono:     'JetBrains Mono', monospace;

  /* Sizes */
  --pk-radius:        10px;
  --pk-radius-lg:     18px;
  --pk-radius-pill:   999px;
  --pk-shadow-sm:     0 1px 3px rgba(91,33,182,.08), 0 1px 2px rgba(0,0,0,.06);
  --pk-shadow:        0 4px 16px rgba(91,33,182,.12), 0 2px 6px rgba(0,0,0,.06);
  --pk-shadow-lg:     0 12px 40px rgba(91,33,182,.18), 0 4px 12px rgba(0,0,0,.08);

  /* Layout */
  --pk-max-width:     1160px;
  --pk-content-width: 780px;
  --pk-sidebar-width: 320px;
  --pk-gap:           2rem;
}

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--pk-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--pk-gray-800);
  background: var(--pk-off-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--pk-purple);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--pk-purple-light); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--pk-font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--pk-gray-900);
  margin-top: 1.8em;
  margin-bottom: .6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.4em; }

strong { font-weight: 600; color: var(--pk-gray-900); }

code, kbd, pre {
  font-family: var(--pk-font-mono);
  font-size: .88em;
}

code {
  background: var(--pk-purple-xlight);
  color: var(--pk-purple-dark);
  padding: .15em .45em;
  border-radius: 5px;
}

pre {
  background: var(--pk-gray-900);
  color: #e2e8f0;
  padding: 1.4rem 1.6rem;
  border-radius: var(--pk-radius);
  overflow-x: auto;
  margin: 1.8rem 0;
  border-left: 4px solid var(--pk-purple);
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

blockquote {
  border-left: 4px solid var(--pk-purple);
  background: var(--pk-purple-xlight);
  margin: 2rem 0;
  padding: 1.2rem 1.6rem;
  border-radius: 0 var(--pk-radius) var(--pk-radius) 0;
  font-style: italic;
  color: var(--pk-purple-dark);
}

blockquote cite { font-style: normal; font-weight: 600; font-size: .9em; }

/* ============================================================
   LAYOUT WRAPPERS
   ============================================================ */
.ast-container,
.site-content .ast-container {
  max-width: var(--pk-max-width) !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* ============================================================
   TOP BAR — Clock (left) + Social & Email (right)
   ============================================================ */
.pk-topbar {
  background: var(--pk-gray-900);
  border-bottom: 1px solid rgba(255,255,255,.06);
  width: 100%;
  z-index: 1001;
}

.pk-topbar__inner {
  max-width: var(--pk-max-width);
  margin: 0 auto;
  padding: .45rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Left: Clock ── */
.pk-topbar__left {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.55);
  font-size: .75rem;
  font-family: var(--pk-font-mono);
  flex-shrink: 0;
}

.pk-topbar__left svg { opacity: .6; flex-shrink: 0; }

.pk-topbar__clock {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  letter-spacing: .5px;
  min-width: 80px;
}

.pk-topbar__date {
  color: rgba(255,255,255,.4);
  font-family: var(--pk-font-body);
  font-size: .72rem;
  letter-spacing: .2px;
}

/* ── Right: Email + Socials ── */
.pk-topbar__right {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}

.pk-topbar__email {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}

.pk-topbar__email:hover { color: var(--pk-accent); }
.pk-topbar__email svg { opacity: .6; flex-shrink: 0; }

.pk-topbar__sep {
  color: rgba(255,255,255,.15);
  font-size: .7rem;
  padding: 0 .1rem;
}

.pk-topbar__socials {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.pk-topbar__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: rgba(255,255,255,.45);
  border-radius: 5px;
  transition: color .2s, background .2s;
  text-decoration: none;
}

.pk-topbar__social-link:hover {
  color: var(--pk-white);
  background: rgba(255,255,255,.1);
}

.pk-topbar__social-hint a {
  font-size: .72rem;
  color: var(--pk-accent);
  opacity: .7;
  text-decoration: none;
}

.pk-topbar__social-hint a:hover { opacity: 1; }

/* Offset sticky header to account for topbar */
#masthead,
.site-header,
.ast-header-wrap {
  top: 0 !important; /* topbar is not sticky, so header still sticks from top=0 */
}

/* ── Topbar responsive ── */
@media (max-width: 768px) {
  .pk-topbar__date { display: none; }
  .pk-topbar__email span { display: none; } /* hide email text, keep icon */
  .pk-topbar__inner { padding: .4rem 1rem; }
}

@media (max-width: 480px) {
  .pk-topbar__sep { display: none; }
  .pk-topbar__email { display: none; }
  .pk-topbar__clock { font-size: .7rem; min-width: 68px; }
}

/* ============================================================
   HEADER
   ============================================================ */

/* ── Sticky header base ── */
#masthead,
.site-header,
.ast-header-wrap {
  background: var(--pk-white) !important;
  border-bottom: 1px solid var(--pk-gray-200);
  box-shadow: none;
  position: sticky !important;
  top: 0;
  z-index: 999;
  transition: box-shadow .3s ease;
}

#masthead.pk-header-scrolled,
.site-header.pk-header-scrolled {
  box-shadow: 0 4px 20px rgba(91,33,182,.1) !important;
}

/* ── Astra header container ── */
.ast-header-break-point .main-header-bar,
.main-header-bar {
  padding: 0 !important;
}

.ast-container.main-header-bar-wrap {
  max-width: var(--pk-max-width) !important;
  padding: 0 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  height: 68px !important;
}

/* ── Logo ── */
.site-title a,
.ast-site-identity a,
.ast-site-identity .site-title a,
.ast-header-break-point .site-title a {
  font-family: var(--pk-font-head) !important;
  font-weight: 800 !important;
  font-size: 2.4rem !important;
  color: var(--pk-purple) !important;
  letter-spacing: -1.5px;
  line-height: 1;
  text-decoration: none !important;
}

.site-title a:hover,
.ast-site-identity a:hover { color: var(--pk-purple-light) !important; }

.site-title a::after,
.ast-site-identity a::after {
  content: '.xyz';
  font-size: .5em;
  color: var(--pk-accent);
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: middle;
  margin-left: 2px;
}

.site-description,
.ast-site-identity .tagline {
  display: none !important;
}

/* ── Logo responsive ── */
@media (max-width: 1024px) {
  .site-title a, .ast-site-identity a,
  .ast-site-identity .site-title a,
  .ast-header-break-point .site-title a { font-size: 2.2rem !important; letter-spacing: -1.2px; }
}
@media (max-width: 768px) {
  .site-title a, .ast-site-identity a,
  .ast-site-identity .site-title a,
  .ast-header-break-point .site-title a { font-size: 2rem !important; letter-spacing: -1px; }
  .ast-container.main-header-bar-wrap { height: 60px !important; }
}
@media (max-width: 480px) {
  .site-title a, .ast-site-identity a,
  .ast-site-identity .site-title a,
  .ast-header-break-point .site-title a { font-size: 1.8rem !important; letter-spacing: -.8px; }
}
@media (max-width: 360px) {
  .site-title a, .ast-site-identity a,
  .ast-site-identity .site-title a,
  .ast-header-break-point .site-title a { font-size: 1.6rem !important; letter-spacing: -.5px; }
}

/* ============================================================
   DESKTOP NAVIGATION
   ============================================================ */

/* ── Astra hides its nav on mobile via .ast-header-break-point ── */
.ast-header-break-point .main-header-bar-navigation,
.ast-header-break-point #site-navigation,
.ast-header-break-point .main-navigation { display: none !important; }

.main-header-bar-navigation,
#site-navigation,
.main-navigation { display: flex !important; }

/* ── Top-level links ── */
.ast-nav-menu > li > a,
.main-header-menu > li > a {
  font-family: var(--pk-font-head) !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  color: var(--pk-gray-800) !important;
  padding: .4rem .8rem !important;
  border-radius: var(--pk-radius-pill) !important;
  transition: background .18s, color .18s !important;
  letter-spacing: .02em !important;
  white-space: nowrap !important;
}

.ast-nav-menu > li > a:hover,
.main-header-menu > li > a:hover,
.ast-nav-menu > li.current-menu-item > a,
.ast-nav-menu > li.current-menu-ancestor > a {
  background: var(--pk-purple-xlight) !important;
  color: var(--pk-purple) !important;
}

/* ── Dropdown caret (pure CSS chevron) ── */
.ast-nav-menu > li.menu-item-has-children > a::after,
.main-header-menu > li.menu-item-has-children > a::after {
  content: '' !important;
  display: inline-block !important;
  width: 6px !important; height: 6px !important;
  border-right: 1.8px solid currentColor !important;
  border-bottom: 1.8px solid currentColor !important;
  transform: rotate(45deg) translateY(-2px) !important;
  margin-left: .4rem !important;
  opacity: .55 !important;
  vertical-align: middle !important;
  transition: transform .2s !important;
}

.ast-nav-menu > li.menu-item-has-children:hover > a::after,
.main-header-menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(225deg) translateY(2px) !important;
  opacity: .75 !important;
}

/* ── Dropdown panel ── */
.ast-nav-menu .sub-menu,
.main-header-menu .sub-menu {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  min-width: 210px !important;
  background: var(--pk-white) !important;
  border: 1px solid var(--pk-gray-200) !important;
  border-radius: var(--pk-radius-lg) !important;
  box-shadow: 0 10px 32px rgba(91,33,182,.12), 0 2px 8px rgba(0,0,0,.06) !important;
  padding: .35rem !important;
  z-index: 9999 !important;
  animation: pk-drop-in .16s ease forwards !important;
}

@keyframes pk-drop-in {
  from { opacity: 0; transform: translateY(-6px) scale(.985); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.ast-nav-menu > li:hover > .sub-menu,
.main-header-menu > li:hover > .sub-menu { display: block !important; }

/* ── Dropdown items ── */
.ast-nav-menu .sub-menu li a,
.main-header-menu .sub-menu li a {
  font-family: var(--pk-font-body) !important;
  font-size: .86rem !important;
  font-weight: 500 !important;
  color: var(--pk-gray-700) !important;
  padding: .5rem .85rem !important;
  border-radius: 7px !important;
  display: flex !important;
  align-items: center !important;
  gap: .45rem !important;
  transition: background .14s, color .14s !important;
  white-space: nowrap !important;
}

.ast-nav-menu .sub-menu li a:hover,
.main-header-menu .sub-menu li a:hover {
  background: var(--pk-purple-xlight) !important;
  color: var(--pk-purple) !important;
}

/* ── Desktop search button (right of nav) ── */
.pk-nav-search-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important; height: 36px !important;
  border-radius: 50% !important;
  border: 1.5px solid var(--pk-gray-200) !important;
  background: transparent !important;
  color: var(--pk-gray-600) !important;
  cursor: pointer !important;
  transition: background .18s, border-color .18s, color .18s !important;
  margin-left: .4rem !important;
  flex-shrink: 0 !important;
}
.pk-nav-search-btn:hover {
  background: var(--pk-purple-xlight) !important;
  border-color: var(--pk-purple) !important;
  color: var(--pk-purple) !important;
}
.ast-header-break-point .pk-nav-search-btn { display: none !important; }

/* ── Hide Astra's own mobile hamburger — we replace it ── */
.ast-header-break-point .ast-mobile-menu-buttons,
.ast-header-break-point .ast-button-wrap { display: none !important; }

/* ── Scroll state: header gets subtle shadow ── */
.pk-header--scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08) !important; }

/* ── Lock scroll when any modal/drawer is open ── */
.pk-modal-open { overflow: hidden !important; }

/* ============================================================
   MOBILE NAV BUTTONS (search + hamburger)
   ============================================================ */

.pk-mobile-btns {
  display: none;
  align-items: center;
  gap: .35rem;
  margin-left: .4rem;
}
.ast-header-break-point .pk-mobile-btns { display: flex !important; }

/* ── Shared button base ── */
.pk-mobile-search-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important; height: 38px !important;
  border-radius: var(--pk-radius) !important;
  border: 1.5px solid var(--pk-gray-200) !important;
  background: transparent !important;
  color: var(--pk-gray-700) !important;
  cursor: pointer !important;
  transition: background .18s, border-color .18s, color .18s !important;
}
.pk-mobile-search-btn:hover {
  background: var(--pk-purple-xlight) !important;
  border-color: var(--pk-purple) !important;
  color: var(--pk-purple) !important;
}

/* ── Animated hamburger ── */
.pk-hamburger {
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  width: 38px !important; height: 38px !important;
  border-radius: var(--pk-radius) !important;
  border: 1.5px solid var(--pk-gray-200) !important;
  background: transparent !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: background .18s, border-color .18s !important;
}
.pk-hamburger:hover {
  background: var(--pk-purple-xlight) !important;
  border-color: var(--pk-purple) !important;
}
.pk-hamburger__bar {
  display: block !important;
  width: 18px !important; height: 1.8px !important;
  background: var(--pk-gray-700) !important;
  border-radius: 2px !important;
  transform-origin: center !important;
  transition: transform .28s ease, opacity .18s ease, background .18s !important;
}
.pk-hamburger:hover .pk-hamburger__bar { background: var(--pk-purple) !important; }

/* X state */
.pk-hamburger--open { background: var(--pk-purple) !important; border-color: var(--pk-purple) !important; }
.pk-hamburger--open .pk-hamburger__bar { background: var(--pk-white) !important; }
.pk-hamburger--open .pk-hamburger__bar:nth-child(1) { transform: translateY(6.8px) rotate(45deg) !important; }
.pk-hamburger--open .pk-hamburger__bar:nth-child(2) { opacity: 0 !important; transform: scaleX(0) !important; }
.pk-hamburger--open .pk-hamburger__bar:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg) !important; }

/* ============================================================
   SEARCH MODAL
   ============================================================ */

.pk-search-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  background: rgba(10,10,20,.72);
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  animation: pk-modal-in .22s ease;
}
.pk-search-modal[hidden] { display: none; }

@keyframes pk-modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pk-search-modal__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.pk-search-modal__inner {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 1.25rem;
  animation: pk-modal-slide .22s ease;
}

@keyframes pk-modal-slide {
  from { transform: translateY(-14px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.pk-search-modal__form {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--pk-white);
  border-radius: var(--pk-radius-lg);
  padding: .55rem .55rem .55rem 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.30), 0 0 0 1px rgba(255,255,255,.08);
}

.pk-search-modal__label { color: var(--pk-gray-400); flex-shrink: 0; display: flex; align-items: center; }

.pk-search-modal__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--pk-font-body);
  font-size: 1.05rem;
  color: var(--pk-gray-900);
  background: transparent;
  min-width: 0;
}
.pk-search-modal__input::placeholder { color: var(--pk-gray-400); }

.pk-search-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--pk-radius);
  border: none;
  background: var(--pk-purple);
  color: var(--pk-white);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .18s;
}
.pk-search-modal__submit:hover { background: var(--pk-purple-light); }

.pk-search-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: var(--pk-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, border-color .18s;
}
.pk-search-modal__close:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
}

.pk-search-modal__hint {
  text-align: center;
  margin-top: .75rem;
  font-size: .75rem;
  color: rgba(255,255,255,.38);
  pointer-events: none;
}
.pk-search-modal__hint kbd {
  display: inline-block;
  padding: .1em .4em;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.25);
  font-size: .7rem;
  background: rgba(255,255,255,.1);
}

/* Mobile: shift modal down on small screens */
@media (max-width: 480px) {
  .pk-search-modal { padding-top: 60px; }
  .pk-search-modal__inner { margin: 0 1rem; }
  .pk-search-modal__close { top: -44px; }
  .pk-search-modal__input { font-size: .95rem; }
}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */

/* ── Backdrop ── */
.pk-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.pk-drawer-backdrop--open {
  opacity: 1;
  visibility: visible;
}

/* ── Panel ── */
.pk-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 90vw);
  height: 100dvh;
  background: var(--pk-white);
  z-index: 10001;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 48px rgba(0,0,0,.14);
  overflow: hidden;
}
.pk-drawer--open { transform: translateX(0); }

/* ── Head ── */
.pk-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--pk-gray-100);
  flex-shrink: 0;
  background: var(--pk-white);
}

.pk-drawer__logo {
  font-family: var(--pk-font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--pk-purple);
  text-decoration: none;
  letter-spacing: -.06em;
}
.pk-drawer__logo-dot { color: var(--pk-accent); font-size: .58em; }

.pk-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--pk-gray-200);
  background: transparent;
  color: var(--pk-gray-500);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.pk-drawer__close:hover {
  background: var(--pk-purple-xlight);
  border-color: var(--pk-purple-xlight);
  color: var(--pk-purple);
}

/* ── Inline search ── */
.pk-drawer__search {
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--pk-gray-100);
  flex-shrink: 0;
}
.pk-drawer__search-wrap {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: var(--pk-gray-50);
  border: 1.5px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-pill);
  padding: .45rem .45rem .45rem .9rem;
  transition: border-color .18s, background .18s;
}
.pk-drawer__search-wrap:focus-within {
  border-color: var(--pk-purple);
  background: var(--pk-white);
}
.pk-drawer__search-wrap svg { color: var(--pk-gray-400); flex-shrink: 0; }
.pk-drawer__search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: .875rem;
  color: var(--pk-gray-900);
  font-family: var(--pk-font-body);
  min-width: 0;
}
.pk-drawer__search-input::placeholder { color: var(--pk-gray-400); }
.pk-drawer__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--pk-purple);
  color: var(--pk-white);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .18s;
}
.pk-drawer__search-btn:hover { background: var(--pk-purple-light); }

/* ── Nav list ── */
.pk-drawer__nav {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .5rem 0;
}

.pk-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Top-level item ── */
.pk-drawer__item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .72rem 1.25rem;
  font-family: var(--pk-font-head);
  font-size: .92rem;
  font-weight: 600;
  color: var(--pk-gray-800);
  text-decoration: none;
  transition: background .15s, color .15s;
  user-select: none;
}
.pk-drawer__item > a:hover { background: var(--pk-gray-50); color: var(--pk-purple); }

.pk-drawer__item--active > a {
  background: var(--pk-purple-xlight);
  color: var(--pk-purple);
  font-weight: 700;
}

/* Chevron badge */
.pk-drawer__chevron {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--pk-gray-100);
  color: var(--pk-gray-500);
  flex-shrink: 0;
  transition: background .2s, color .2s, transform .3s cubic-bezier(.22,1,.36,1);
}
.pk-drawer__item--has-children.pk-drawer__item--open > a .pk-drawer__chevron {
  transform: rotate(180deg);
  background: var(--pk-purple-xlight);
  color: var(--pk-purple);
}

/* ── Submenu (accordion) ── */
.pk-drawer__submenu {
  list-style: none;
  margin: 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 2px solid var(--pk-purple-xlight);
  margin-left: 1.25rem;
  margin-bottom: .2rem;
}
.pk-drawer__submenu[hidden] { display: none; }

.pk-drawer__subitem > a {
  display: block;
  padding: .52rem .9rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--pk-gray-600);
  text-decoration: none;
  border-radius: 7px;
  transition: background .14s, color .14s;
}
.pk-drawer__subitem > a:hover { background: var(--pk-purple-xlight); color: var(--pk-purple); }
.pk-drawer__subitem--active > a { color: var(--pk-purple); font-weight: 600; }

/* ── Divider line between items (optional) ── */
.pk-drawer__item + .pk-drawer__item { border-top: 1px solid rgba(0,0,0,.04); }

/* ── Footer ── */
.pk-drawer__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--pk-gray-100);
  flex-shrink: 0;
  background: var(--pk-gray-50);
}

.pk-drawer__footer-links {
  display: flex;
  gap: .4rem 1rem;
  flex-wrap: wrap;
  margin-bottom: .7rem;
}
.pk-drawer__footer-links a {
  font-size: .75rem;
  color: var(--pk-gray-400);
  text-decoration: none;
  transition: color .18s;
}
.pk-drawer__footer-links a:hover { color: var(--pk-purple); }

.pk-drawer__footer-socials {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.pk-drawer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  color: var(--pk-gray-500);
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
}
.pk-drawer__social:hover {
  background: var(--pk-purple);
  border-color: var(--pk-purple);
  color: var(--pk-white);
}

/* ============================================================
   HERO / HOME BANNER
   ============================================================ */
.pk-hero {
  background: linear-gradient(135deg, var(--pk-purple-dark) 0%, var(--pk-purple) 60%, var(--pk-purple-light) 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pk-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,158,11,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.08) 0%, transparent 50%);
  pointer-events: none;
}

.pk-hero__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.pk-hero__tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: var(--pk-radius-pill);
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: 1.2rem;
}

.pk-hero__title {
  font-family: var(--pk-font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--pk-white);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.pk-hero__title span {
  color: var(--pk-accent);
}

.pk-hero__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  margin: 0 auto 2rem;
  max-width: 560px;
  line-height: 1.65;
}

.pk-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--pk-accent);
  color: var(--pk-gray-900) !important;
  font-family: var(--pk-font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: var(--pk-radius-pill);
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(245,158,11,.4);
}

.pk-hero__cta:hover {
  background: var(--pk-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,.5);
  color: var(--pk-gray-900) !important;
}

/* ============================================================
   CATEGORY PILLS (homepage)
   ============================================================ */
.pk-cat-strip {
  background: var(--pk-white);
  border-bottom: 1px solid var(--pk-gray-200);
  padding: .9rem 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.pk-cat-strip::-webkit-scrollbar { display: none; }

.pk-cat-strip__inner {
  display: inline-flex;
  gap: .6rem;
  max-width: var(--pk-max-width);
  margin: 0 auto;
}

.pk-cat-pill {
  display: inline-block;
  font-family: var(--pk-font-head);
  font-size: .8rem;
  font-weight: 600;
  color: var(--pk-gray-600);
  background: var(--pk-gray-100);
  padding: .35rem 1rem;
  border-radius: var(--pk-radius-pill);
  border: 1px solid var(--pk-gray-200);
  transition: all .2s;
  cursor: pointer;
}

.pk-cat-pill:hover,
.pk-cat-pill.active {
  background: var(--pk-purple-xlight);
  color: var(--pk-purple);
  border-color: var(--pk-purple);
}

/* ============================================================
   ARCHIVE / CATEGORY / BLOG — LAYOUT FIX
   Force full-width content, hide sidebar, proper grid
   ============================================================ */

/* Full-width content on all archive/blog pages */
.blog #primary,
.archive #primary,
.search-results #primary,
.blog .content-area,
.archive .content-area,
.search-results .content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

/* Hide sidebar on archive pages */
.blog #secondary,
.archive #secondary,
.search-results #secondary,
.blog .widget-area,
.archive .widget-area,
.search-results .widget-area {
  display: none !important;
}

/* Remove Astra column classes interference */
.blog .ast-col-md-8,
.blog .ast-col-md-9,
.archive .ast-col-md-8,
.archive .ast-col-md-9,
.search-results .ast-col-md-8 {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  flex: none !important;
}

/* Container max-width on archive pages */
.blog .ast-container,
.archive .ast-container,
.search-results .ast-container {
  max-width: var(--pk-max-width) !important;
  padding: 0 1.5rem !important;
}

/* Archive page background */
.blog,
.archive,
.search-results {
  background: var(--pk-gray-50);
}

/* ── ARCHIVE HEADER ── */
.archive .ast-archive-description,
.ast-archive-description {
  display: none !important;
}

.pk-archive-header {
  background: linear-gradient(135deg, var(--pk-purple-dark) 0%, var(--pk-purple) 100%);
  padding: 2.8rem 1.5rem 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.pk-archive-header__label {
  display: inline-block;
  font-family: var(--pk-font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: .3rem .9rem;
  border-radius: var(--pk-radius-pill);
  margin-bottom: 1rem;
}

.pk-archive-header__title {
  font-family: var(--pk-font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--pk-white);
  margin: 0 0 .5rem;
  line-height: 1.2;
}

.pk-archive-header__count {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}

/* ============================================================
   BLOG / POST GRID
   ============================================================ */
.ast-archive-description { display: none; }

/* Override Astra's row/col system completely */
.blog .ast-row,
.archive .ast-row,
.search-results .ast-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.6rem !important;
  padding: 2rem 0 3rem !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Also target posts-container fallback */
.posts-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.6rem !important;
  padding: 2rem 0 3rem !important;
}

/* Remove Astra's column widths from individual post wrappers */
.blog .ast-col-md-6,
.archive .ast-col-md-6,
.blog .ast-article-post-wrap,
.archive .ast-article-post-wrap {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  flex: none !important;
  padding: 0 !important;
}

/* ============================================================
   POST CARD — Complete redesign
   ============================================================ */
.post-card,
article.ast-article-post,
.blog article,
.archive article {
  background: var(--pk-white) !important;
  border: 1px solid var(--pk-gray-200) !important;
  border-radius: var(--pk-radius-lg) !important;
  overflow: hidden !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
  box-shadow: var(--pk-shadow-sm) !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important; /* prevent overflow */
}

.post-card:hover,
article.ast-article-post:hover,
.blog article:hover,
.archive article:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--pk-shadow-lg) !important;
  border-color: rgba(91,33,182,.3) !important;
}

/* ── Thumbnail ── */
.ast-article-post .ast-blog-featured-section,
.blog article .ast-blog-featured-section,
.archive article .ast-blog-featured-section {
  aspect-ratio: 16/9 !important;
  overflow: hidden !important;
  display: block !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  background: var(--pk-purple-xlight);
  position: relative;
}

.ast-article-post .ast-blog-featured-section img,
.blog article .ast-blog-featured-section img,
.archive article .ast-blog-featured-section img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .45s ease !important;
  display: block !important;
}

.blog article:hover .ast-blog-featured-section img,
.archive article:hover .ast-blog-featured-section img {
  transform: scale(1.05) !important;
}

/* No-thumbnail: colored top bar */
article.ast-article-post:not(:has(.ast-blog-featured-section))::before,
.blog article:not(:has(.ast-blog-featured-section))::before,
.archive article:not(:has(.ast-blog-featured-section))::before {
  content: '';
  display: block;
  height: 180px;
  background: linear-gradient(135deg, var(--pk-purple-dark), var(--pk-purple-light));
  flex-shrink: 0;
}

/* ── Card Body ── */
.ast-article-post .entry-header,
.blog article .entry-header,
.archive article .entry-header {
  padding: 1.3rem 1.4rem .4rem !important;
}

.ast-article-post .entry-content,
.blog article .entry-content,
.archive article .entry-content {
  padding: 0 1.4rem .8rem !important;
  flex: 1 !important;
}

.ast-article-post .entry-footer,
.blog article .entry-footer,
.archive article .entry-footer {
  padding: .6rem 1.4rem 1.3rem !important;
  margin-top: auto !important;
}

/* ── Category badge ── */
.ast-article-post .cat-links,
.blog article .cat-links,
.archive article .cat-links {
  margin-bottom: .5rem !important;
  display: block !important;
}

.ast-article-post .cat-links a,
.blog article .cat-links a,
.archive article .cat-links a {
  display: inline-block !important;
  font-family: var(--pk-font-head) !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: var(--pk-purple) !important;
  background: var(--pk-purple-xlight) !important;
  padding: .22rem .7rem !important;
  border-radius: var(--pk-radius-pill) !important;
  margin: 0 .3rem .3rem 0 !important;
  line-height: 1.4 !important;
  transition: background .2s, color .2s !important;
}

.ast-article-post .cat-links a:hover,
.blog article .cat-links a:hover,
.archive article .cat-links a:hover {
  background: var(--pk-purple) !important;
  color: var(--pk-white) !important;
}

/* ── Post title ── */
.ast-article-post .entry-title,
.blog article .entry-title,
.archive article .entry-title {
  font-family: var(--pk-font-head) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.38 !important;
  margin: .3rem 0 .6rem !important;
  word-break: break-word !important;
}

.ast-article-post .entry-title a,
.blog article .entry-title a,
.archive article .entry-title a {
  color: var(--pk-gray-900) !important;
  transition: color .2s !important;
  text-decoration: none !important;
}

.ast-article-post .entry-title a:hover,
.blog article .entry-title a:hover,
.archive article .entry-title a:hover {
  color: var(--pk-purple) !important;
}

/* ── Excerpt ── */
.ast-article-post .entry-content p,
.blog article .entry-content p,
.archive article .entry-content p {
  font-size: .875rem !important;
  color: var(--pk-gray-600) !important;
  line-height: 1.65 !important;
  margin-bottom: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-word !important;
}

/* ── Meta (date, author) ── */
.ast-article-post .entry-meta,
.blog article .entry-meta,
.archive article .entry-meta {
  font-size: .78rem !important;
  color: var(--pk-gray-400) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .3rem .6rem !important;
  align-items: center !important;
}

.ast-article-post .entry-meta a,
.blog article .entry-meta a,
.archive article .entry-meta a {
  color: var(--pk-gray-400) !important;
}

/* ── Read More ── */
.ast-article-post .more-link,
.ast-article-post .ast-read-more,
.blog article .more-link,
.archive article .more-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: .35rem !important;
  font-family: var(--pk-font-head) !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  color: var(--pk-purple) !important;
  transition: gap .2s, color .2s !important;
  text-decoration: none !important;
}

.ast-article-post .more-link:hover,
.blog article .more-link:hover,
.archive article .more-link:hover {
  color: var(--pk-purple-light) !important;
  gap: .55rem !important;
}

.ast-article-post .more-link::after { content: ' →'; }

/* ── Pagination ── */
.blog .pagination,
.archive .pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 0 3rem;
}

/* ============================================================
   ARCHIVE GRID RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .blog .ast-row,
  .archive .ast-row,
  .search-results .ast-row,
  .posts-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.3rem !important;
  }
}

@media (max-width: 600px) {
  .blog .ast-row,
  .archive .ast-row,
  .search-results .ast-row,
  .posts-container {
    grid-template-columns: 1fr !important;
    gap: 1.1rem !important;
    padding: 1.5rem 0 2rem !important;
  }

  .blog .ast-container,
  .archive .ast-container,
  .search-results .ast-container {
    padding: 0 1rem !important;
  }

  .ast-article-post .entry-header,
  .blog article .entry-header,
  .archive article .entry-header {
    padding: 1.1rem 1.2rem .3rem !important;
  }

  .ast-article-post .entry-content,
  .blog article .entry-content,
  .archive article .entry-content {
    padding: 0 1.2rem .6rem !important;
  }

  .ast-article-post .entry-footer,
  .blog article .entry-footer,
  .archive article .entry-footer {
    padding: .5rem 1.2rem 1.1rem !important;
  }
}

/* ============================================================
   SINGLE POST
   All single post styles moved to assets/css/single-post.css
   Loaded conditionally via wp_enqueue_scripts on is_single()
   ============================================================ */

/* ============================================================
   SIDEBAR
   ============================================================ */
#secondary,
.widget-area {
  width: var(--pk-sidebar-width) !important;
}

.widget {
  background: var(--pk-white) !important;
  border: 1px solid var(--pk-gray-200) !important;
  border-radius: var(--pk-radius-lg) !important;
  padding: 1.5rem !important;
  margin-bottom: 1.8rem !important;
  box-shadow: var(--pk-shadow-sm) !important;
}

.widget-title {
  font-family: var(--pk-font-head) !important;
  font-size: .9rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.2px !important;
  color: var(--pk-purple) !important;
  margin-bottom: 1rem !important;
  padding-bottom: .6rem !important;
  border-bottom: 2px solid var(--pk-purple-xlight) !important;
}

/* Recent posts widget */
.widget_recent_entries ul li {
  padding: .6rem 0 !important;
  border-bottom: 1px solid var(--pk-gray-100) !important;
  font-size: .88rem !important;
  line-height: 1.4 !important;
}

.widget_recent_entries ul li:last-child { border-bottom: none !important; }

.widget_recent_entries ul li a {
  color: var(--pk-gray-800) !important;
  font-weight: 500 !important;
  transition: color .2s !important;
}

.widget_recent_entries ul li a:hover { color: var(--pk-purple) !important; }

/* Categories widget */
.widget_categories ul li a {
  color: var(--pk-gray-700, #374151) !important;
  font-size: .88rem !important;
  transition: color .2s !important;
}

.widget_categories ul li a:hover { color: var(--pk-purple) !important; }

.widget_categories ul li .post-count {
  background: var(--pk-purple-xlight);
  color: var(--pk-purple);
  font-size: .72rem;
  font-weight: 700;
  padding: .1rem .55rem;
  border-radius: var(--pk-radius-pill);
  float: right;
}

/* Search widget */
.widget_search .search-form {
  display: flex;
  gap: .5rem;
}

.widget_search .search-field {
  flex: 1;
  padding: .55rem .9rem;
  border: 1.5px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-pill);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}

.widget_search .search-field:focus { border-color: var(--pk-purple); }

.widget_search .search-submit {
  background: var(--pk-purple);
  color: var(--pk-white);
  border: none;
  padding: .55rem 1.2rem;
  border-radius: var(--pk-radius-pill);
  font-family: var(--pk-font-head);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s;
}

.widget_search .search-submit:hover { background: var(--pk-purple-light); }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon,
.site-footer,
.ast-footer-wrap {
  background: var(--pk-gray-900) !important;
  color: var(--pk-gray-400) !important;
  border-top: none !important;
  padding-top: 0 !important;
}

.pk-footer-top {
  background: var(--pk-gray-900);
  padding: 4rem 1.5rem 2.5rem;
  border-top: 3px solid var(--pk-purple);
}

/* 2-column grid: About | Newsletter */
.pk-footer-grid {
  max-width: var(--pk-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Section 1: About ── */
.pk-footer-about {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pk-footer-logo {
  font-family: var(--pk-font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pk-white);
  display: inline-block;
  margin-bottom: .2rem;
  text-decoration: none;
}

.pk-footer-logo span { color: var(--pk-accent); }
.pk-footer-logo:hover { color: var(--pk-white); }

.pk-footer-about__desc {
  font-size: .92rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin: 0;
  max-width: 420px;
}

.pk-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .6rem;
  align-items: center;
  margin-top: .4rem;
}

.pk-footer-links a {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  transition: color .2s;
  text-decoration: none;
}

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

.pk-footer-links span {
  color: rgba(255,255,255,.2);
  font-size: .7rem;
}

/* ── Section 2: Newsletter ── */
.pk-footer-newsletter {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--pk-radius-lg);
  padding: 2.2rem 2rem;
  backdrop-filter: blur(8px);
}

.pk-footer-newsletter__icon {
  font-size: 2rem;
  margin-bottom: .8rem;
}

.pk-footer-newsletter__title {
  font-family: var(--pk-font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pk-white);
  margin: 0 0 .6rem;
}

.pk-footer-newsletter__desc {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin: 0 0 1.4rem;
}

/* Form row */
.pk-newsletter-form__row {
  display: flex;
  gap: .6rem;
  margin-bottom: .8rem;
}

.pk-newsletter-form__input {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--pk-radius-pill);
  padding: .75rem 1.2rem;
  font-family: var(--pk-font-body);
  font-size: .9rem;
  color: var(--pk-white);
  outline: none;
  transition: border-color .2s, background .2s;
  min-width: 0;
}

.pk-newsletter-form__input::placeholder { color: rgba(255,255,255,.35); }

.pk-newsletter-form__input:focus {
  border-color: var(--pk-purple-light);
  background: rgba(255,255,255,.12);
}

.pk-newsletter-form__btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--pk-purple);
  color: var(--pk-white) !important;
  border: none;
  border-radius: var(--pk-radius-pill);
  padding: .75rem 1.4rem;
  font-family: var(--pk-font-head);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(91,33,182,.4);
}

.pk-newsletter-form__btn:hover {
  background: var(--pk-purple-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91,33,182,.5);
}

.pk-newsletter-form__btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.pk-newsletter-form__note {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  margin: 0;
  line-height: 1.5;
}

.pk-newsletter-form__success {
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.3);
  border-radius: var(--pk-radius);
  padding: .9rem 1.2rem;
  font-size: .88rem;
  color: #6ee7b7;
  margin-top: .6rem;
  line-height: 1.5;
}

.pk-footer-email {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .84rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s;
  margin-bottom: .6rem;
}

.pk-footer-email:hover { color: var(--pk-accent); }
.pk-footer-email svg { opacity: .6; flex-shrink: 0; }

.pk-footer-socials {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
  flex-wrap: wrap;
}

.pk-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--pk-radius);
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.pk-footer-social:hover {
  background: var(--pk-purple);
  border-color: var(--pk-purple);
  color: var(--pk-white);
  transform: translateY(-2px);
}

/* ── Footer bottom bar ── */
.pk-footer-bottom {
  background: #080d17;
  padding: 1.2rem 1.5rem;
  text-align: center;
}

.pk-footer-bottom p {
  font-size: .8rem;
  color: #4b5563;
  margin: 0;
}

.pk-footer-bottom a {
  color: var(--pk-purple-light);
  text-decoration: none;
}

.pk-footer-bottom a:hover { color: var(--pk-accent); }

/* Astra footer override */
.ast-footer-copyright,
.site-info {
  background: #080d17 !important;
  color: #4b5563 !important;
  font-size: .8rem !important;
  padding: 1.2rem !important;
  text-align: center !important;
}

/* ── Footer Responsive ── */
@media (max-width: 900px) {
  .pk-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    display: flex !important;
    flex-direction: column;
  }
  /* Newsletter first on mobile, about second */
  .pk-footer-newsletter { order: -1; }
  .pk-footer-about      { order: 1;  }
  .pk-footer-about__desc { max-width: 100%; }
}

@media (max-width: 600px) {
  .pk-footer-top { padding: 3rem 1.2rem 2rem; }
  .pk-footer-newsletter { padding: 1.6rem 1.4rem; }
  .pk-newsletter-form__row { flex-direction: column; gap: .5rem; }
  .pk-newsletter-form__input,
  .pk-newsletter-form__btn { width: 100%; justify-content: center; border-radius: var(--pk-radius); }
  .pk-footer-logo { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .pk-footer-top { padding: 2.5rem 1rem 1.8rem; }
  .pk-footer-newsletter { padding: 1.4rem 1.1rem; }
  .pk-footer-newsletter__title { font-size: 1.1rem; }
  .pk-footer-bottom { padding: 1rem; }
  .pk-footer-bottom p { font-size: .75rem; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.wp-block-button__link,
.btn,
input[type="submit"],
button[type="submit"] {
  background: var(--pk-purple) !important;
  color: var(--pk-white) !important;
  font-family: var(--pk-font-head) !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: var(--pk-radius-pill) !important;
  padding: .75rem 1.8rem !important;
  cursor: pointer !important;
  transition: background .2s, transform .2s, box-shadow .2s !important;
}

.wp-block-button__link:hover,
.btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--pk-purple-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(91,33,182,.3) !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.4rem !important;
  height: 2.4rem !important;
  border-radius: 50% !important;
  font-family: var(--pk-font-head) !important;
  font-weight: 600 !important;
  font-size: .9rem !important;
  color: var(--pk-gray-600) !important;
  border: 1.5px solid var(--pk-gray-200) !important;
  margin: .2rem !important;
  transition: all .2s !important;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--pk-purple) !important;
  border-color: var(--pk-purple) !important;
  color: var(--pk-white) !important;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.ast-breadcrumbs-wrapper,
.breadcrumbs {
  background: var(--pk-gray-100) !important;
  padding: .6rem 0 !important;
  font-size: .82rem !important;
}

.ast-breadcrumbs-wrapper a,
.breadcrumbs a { color: var(--pk-purple) !important; }

/* ============================================================
   TAGS
   ============================================================ */
.tags-links a,
.post-tags a {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--pk-purple) !important;
  background: var(--pk-purple-xlight);
  border: 1px solid rgba(91,33,182,.2);
  padding: .25rem .8rem;
  border-radius: var(--pk-radius-pill);
  margin: .2rem;
  transition: all .2s;
}

.tags-links a:hover, .post-tags a:hover {
  background: var(--pk-purple);
  color: var(--pk-white) !important;
}

/* ============================================================
   INTERNAL LINK BOX (already used in posts)
   ============================================================ */
[style*="background:#f3f0ff"] {
  border-radius: var(--pk-radius) !important;
}

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.ast-author-bio-wrapper,
.author-bio {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-lg);
  padding: 1.8rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  box-shadow: var(--pk-shadow-sm);
}

.ast-author-bio-wrapper img,
.author-bio img {
  border-radius: 50%;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 3px solid var(--pk-purple-xlight);
  flex-shrink: 0;
}

/* ============================================================
   COMMENTS
   ============================================================ */
#comments {
  background: var(--pk-white);
  border: 1px solid var(--pk-gray-200);
  border-radius: var(--pk-radius-lg);
  padding: 2rem 2.5rem;
  margin-top: 2rem;
}

.comment-list .comment-body {
  border-bottom: 1px solid var(--pk-gray-100);
  padding: 1.2rem 0;
}

.comment-reply-link {
  color: var(--pk-purple) !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
}

/* ============================================================
   BACK TO TOP — hide Astra's + any plugin duplicate
   Keep only our .pk-back-top
   ============================================================ */
.ast-scroll-top,
#ast-scroll-top,
.astra-scroll-top,
#scroll-to-top,
.scroll-to-top,
.scrolltop,
#scrolltop,
.go-top,
#go-top,
[class*="scroll-top"]:not(.pk-back-top),
[id*="scroll-top"]:not(.pk-back-top),
[class*="back-to-top"]:not(.pk-back-top),
[id*="back-to-top"]:not(.pk-back-top),
[class*="backtotop"]:not(.pk-back-top),
[id*="backtotop"]:not(.pk-back-top) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ============================================================
   BACK TO TOP — our custom button
   ============================================================ */
.pk-back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--pk-purple);
  color: var(--pk-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--pk-shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 999;
  border: none;
  text-decoration: none;
}

.pk-back-top.visible { opacity: 1; transform: translateY(0); }
.pk-back-top:hover { background: var(--pk-purple-light); color: var(--pk-white) !important; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.pk-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--pk-purple), var(--pk-accent));
  z-index: 9999;
  transition: width .1s linear;
}

/* ============================================================
   RESPONSIVE — FULL SYSTEM
   Breakpoints:
     xl  : 1280px  (large desktops)
     lg  : 1024px  (laptops / small desktops)
     md  : 768px   (tablets)
     sm  : 600px   (large phones / landscape)
     xs  : 480px   (phones)
     xxs : 360px   (small phones)
   ============================================================ */

/* ── XL: 1280px ─────────────────────────────────────────── */
@media (max-width: 1280px) {
  :root {
    --pk-max-width: 1080px;
  }

  .pk-footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

/* ── LG: 1024px ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --pk-max-width: 960px;
    --pk-gap: 1.6rem;
  }

  /* Footer: 2-col grid */
  .pk-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Sidebar: move below content on tablets */
  #secondary,
  .widget-area {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
  }

  .widget { margin-bottom: 0 !important; }

  /* Post grid: 2 columns */
  .posts-container,
  .ast-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Hero */
  .pk-hero { padding: 4rem 2rem 3.5rem; }
  .pk-hero__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }

  /* Single post content */
  .single .entry-content {
    padding: 2rem 2.2rem;
  }

  /* Header nav spacing */
  .ast-primary-menu > li > a {
    padding: .4rem .7rem !important;
  }
}

/* ── MD: 768px ──────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --pk-gap: 1.2rem;
  }

  /* Container padding */
  .ast-container,
  .site-content .ast-container {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
  }

  /* ── HEADER ── */
  #masthead,
  .site-header,
  .ast-header-wrap {
    position: sticky !important;
    top: 0;
  }

  .site-title a,
  .ast-site-identity a {
    font-size: 1.25rem !important;
  }

  /* ── HERO ── */
  .pk-hero {
    padding: 3rem 1.4rem 2.8rem;
    text-align: center;
  }

  .pk-hero__title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .pk-hero__desc  { font-size: 1rem; }

  .pk-hero__cta {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* ── CATEGORY STRIP ── */
  .pk-cat-strip { padding: .8rem 1.2rem; }

  /* ── POST GRID: single column ── */
  .posts-container,
  .ast-row {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  /* ── POST CARD ── */
  article.ast-article-post,
  .post-card {
    border-radius: var(--pk-radius) !important;
  }

  /* ── SINGLE POST HEADER ── */
  .single .entry-header {
    padding: 2.5rem 1.4rem 2.2rem;
    border-radius: 0 0 var(--pk-radius) var(--pk-radius);
  }

  .single .entry-header .entry-title {
    font-size: clamp(1.4rem, 5vw, 2rem) !important;
  }

  /* ── SINGLE POST CONTENT ── */
  .single .entry-content {
    padding: 1.6rem 1.4rem;
    border-radius: var(--pk-radius);
    font-size: .97rem;
  }

  .single .entry-content h2 { font-size: 1.3rem; }
  .single .entry-content h3 { font-size: 1.1rem; }

  /* ── TABLES: horizontal scroll on mobile ── */
  .single .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: .84rem;
  }

  /* ── SIDEBAR ── */
  #secondary,
  .widget-area {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .widget { margin-bottom: 0 !important; }

  /* ── FOOTER ── */
  .pk-footer-top { padding: 2.5rem 1.4rem 1.8rem; }

  .pk-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
  }

  .pk-footer-brand {
    grid-column: 1 / -1; /* brand spans full width */
  }

  /* ── BACK TO TOP ── */
  .pk-back-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1rem;
  }

  /* ── TOC ── */
  .pk-toc { padding: 1.1rem 1.3rem; }
  .pk-toc__list { padding-left: 1rem; }

  /* ── AUTHOR BOX ── */
  .ast-author-bio-wrapper,
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* ── COMMENTS ── */
  #comments { padding: 1.5rem 1.2rem; }

  /* ── PAGINATION ── */
  .page-numbers {
    width: 2rem !important;
    height: 2rem !important;
    font-size: .82rem !important;
  }
}

/* ── SM: 600px ──────────────────────────────────────────── */
@media (max-width: 600px) {
  /* ── HERO ── */
  .pk-hero { padding: 2.8rem 1.2rem 2.4rem; }
  .pk-hero__tag { font-size: .72rem; }
  .pk-hero__title { font-size: 1.7rem; line-height: 1.2; }
  .pk-hero__desc { font-size: .95rem; }

  /* ── SIDEBAR: single column ── */
  #secondary,
  .widget-area {
    grid-template-columns: 1fr !important;
  }

  /* ── FOOTER: single column ── */
  .pk-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .pk-footer-brand { grid-column: auto; }

  /* ── SEARCH WIDGET ── */
  .widget_search .search-form {
    flex-direction: column;
    gap: .6rem;
  }

  .widget_search .search-field,
  .widget_search .search-submit {
    width: 100%;
    text-align: center;
  }

  /* ── POST CARD meta ── */
  .ast-article-post .entry-header,
  .ast-article-post .entry-content,
  .ast-article-post .entry-footer {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
  }
}

/* ── XS: 480px ──────────────────────────────────────────── */
@media (max-width: 480px) {
  /* ── BASE FONT ── */
  body { font-size: 15px; }

  /* ── HEADER ── */
  .site-title a,
  .ast-site-identity a {
    font-size: 1.1rem !important;
  }

  /* ── HERO ── */
  .pk-hero { padding: 2.4rem 1rem 2.2rem; }
  .pk-hero__title { font-size: 1.55rem; }
  .pk-hero__cta { font-size: .88rem; padding: .75rem 1.5rem; }

  /* ── SINGLE POST ── */
  .single .entry-header {
    padding: 2rem 1rem 1.8rem;
  }

  .single .entry-header .entry-title {
    font-size: 1.35rem !important;
  }

  .single .entry-content {
    padding: 1.3rem 1rem;
    border-radius: 8px;
    font-size: .95rem;
  }

  .single .entry-content h2 { font-size: 1.2rem; margin-top: 2rem; }
  .single .entry-content h3 { font-size: 1.05rem; }

  /* ── BLOCKQUOTE ── */
  blockquote { padding: 1rem 1.2rem; font-size: .95rem; }

  /* ── PRE/CODE ── */
  pre { padding: 1rem 1.1rem; font-size: .82rem; }

  /* ── FOOTER ── */
  .pk-footer-top { padding: 2rem 1rem 1.5rem; }
  .pk-footer-brand .pk-footer-logo { font-size: 1.3rem; }
  .pk-footer-bottom { padding: 1rem; }
  .pk-footer-bottom p { font-size: .75rem; }

  /* ── WIDGET ── */
  .widget { padding: 1.2rem !important; }
  .widget-title { font-size: .82rem !important; }

  /* ── TOC ── */
  .pk-toc { padding: 1rem 1.1rem; }
  .pk-toc__list li { font-size: .84rem; }

  /* ── BACK TO TOP ── */
  .pk-back-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.4rem;
    height: 2.4rem;
    font-size: .95rem;
  }

  /* ── BREADCRUMBS ── */
  .ast-breadcrumbs-wrapper,
  .breadcrumbs { font-size: .76rem !important; }

  /* ── POST THUMBNAIL aspect ratio on small screens ── */
  .ast-article-post .ast-blog-featured-section {
    aspect-ratio: 16/10;
  }
}

/* ── XXS: 360px ─────────────────────────────────────────── */
@media (max-width: 360px) {
  body { font-size: 14px; }

  .pk-hero__title { font-size: 1.35rem; }
  .pk-hero__desc  { font-size: .88rem; }

  .single .entry-header .entry-title {
    font-size: 1.2rem !important;
  }

  .single .entry-content { padding: 1.1rem .9rem; }

  .pk-footer-grid { gap: 1.2rem; }

  .ast-container,
  .site-content .ast-container {
    padding-left: .9rem !important;
    padding-right: .9rem !important;
  }

  .widget { padding: 1rem !important; }

  .page-numbers {
    width: 1.8rem !important;
    height: 1.8rem !important;
    font-size: .76rem !important;
  }
}

/* ── LANDSCAPE PHONES ───────────────────────────────────── */
@media (max-width: 768px) and (orientation: landscape) {
  .pk-hero {
    padding: 2rem 1.5rem 1.8rem;
  }

  .pk-hero__title { font-size: 1.6rem; }

  .single .entry-header { padding: 1.8rem 1.4rem 1.6rem; }
}

/* ── LARGE SCREENS: 1440px+ ─────────────────────────────── */
@media (min-width: 1440px) {
  :root { --pk-max-width: 1280px; }

  .pk-hero { padding: 6rem 2rem 5rem; }
  .pk-hero__title { font-size: 3.6rem; }

  body { font-size: 17px; }

  .single .entry-content {
    padding: 3rem 3.5rem;
    font-size: 1.06rem;
  }
}

/* ── PRINT ──────────────────────────────────────────────── */
@media print {
  #masthead,
  #secondary,
  .pk-hero,
  .pk-cat-strip,
  .pk-footer-top,
  .pk-footer-bottom,
  .pk-back-top,
  .pk-progress,
  .pk-toc,
  .tags-links,
  #comments,
  .ast-breadcrumbs-wrapper,
  nav { display: none !important; }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .single .entry-content {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .single .entry-header {
    background: none !important;
    padding: 0 0 1rem;
  }

  .single .entry-header .entry-title,
  .single .entry-header .entry-meta { color: #000 !important; }

  a::after { content: ' (' attr(href) ')'; font-size: .8em; color: #555; }
  pre, blockquote { page-break-inside: avoid; }
  h2, h3 { page-break-after: avoid; }
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .pk-back-top { transition: none !important; }
  .pk-progress { transition: none !important; }
}

/* ── HIGH CONTRAST MODE ─────────────────────────────────── */
@media (forced-colors: active) {
  .pk-hero { background: ButtonFace !important; }
  .pk-hero__title,
  .pk-hero__desc { color: ButtonText !important; }
  .pk-hero__cta { border: 2px solid ButtonText !important; }
}
