/* ============================================================
   /assets/css/pages.css
   Shared base for all /pages/ routes (blog, docs, AVM flow)
   ============================================================ */

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }

.pg-body {
    background: #080c10;
    color: #f0f0f0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    margin: 0;
}

/* ---- Layout shell ---- */
.pg-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 16px 80px;
}

.pg-shell--narrow {
    max-width: 680px;
}

.pg-shell--wide {
    max-width: 1200px;
}

/* ---- Top nav bar ---- */
.pg-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(8, 12, 16, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pg-topbar-brand {
    font-weight: 900;
    font-size: 18px;
    color: #00ffd5;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.pg-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- Progress bar (top of page) ---- */
.pg-progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.pg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffd5, #00b8ff);
    border-radius: 0 4px 4px 0;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Step counter badge ---- */
.pg-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0, 255, 213, 0.08);
    border: 1px solid rgba(0, 255, 213, 0.18);
    font-size: 12px;
    font-weight: 700;
    color: #00ffd5;
}

/* ---- Cards / panels ---- */
.pg-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px 20px;
    margin-top: 16px;
}

.pg-card--accent {
    border-color: rgba(0, 255, 213, 0.18);
    background: rgba(0, 255, 213, 0.04);
}

.pg-card--danger {
    border-color: rgba(255, 90, 90, 0.20);
    background: rgba(255, 90, 90, 0.04);
}

/* ---- Typography ---- */
.pg-h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.pg-h2 {
    font-size: clamp(20px, 3.5vw, 32px);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.pg-h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px;
}

.pg-lead {
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.88;
    margin: 0 0 16px;
}

.pg-muted {
    opacity: 0.65;
    font-size: 14px;
}

.pg-center { text-align: center; }

.pg-accent { color: #00ffd5; }

/* ---- Buttons ---- */
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

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

.pg-btn--primary {
    background: #00ffd5;
    color: #080c10;
    box-shadow: 0 0 0 1px rgba(0, 255, 213, 0.25), 0 4px 24px rgba(0, 255, 213, 0.20);
}

.pg-btn--primary:hover {
    box-shadow: 0 0 0 2px rgba(0, 255, 213, 0.40), 0 8px 32px rgba(0, 255, 213, 0.30);
    transform: translateY(-1px);
}

.pg-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.pg-btn--ghost:hover {
    border-color: rgba(0, 255, 213, 0.35);
    color: #00ffd5;
}

.pg-btn--wide { width: 100%; }

.pg-btn--pulse {
    animation: pgPulse 1.6s ease-in-out infinite;
}

@keyframes pgPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(0,255,213,0.25), 0 4px 24px rgba(0,255,213,0.20); }
    50% { box-shadow: 0 0 0 4px rgba(0,255,213,0.15), 0 8px 40px rgba(0,255,213,0.30); }
}

/* ---- Inputs ---- */
.pg-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pg-input:focus {
    border-color: rgba(0, 255, 213, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 255, 213, 0.10);
}

.pg-input::placeholder { color: rgba(255,255,255,0.35); }

.pg-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.pg-field { margin-bottom: 16px; }

/* ---- Error / success messages ---- */
.pg-msg {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.pg-msg.is-err {
    display: block;
    background: rgba(255, 90, 90, 0.10);
    border: 1px solid rgba(255, 90, 90, 0.22);
    color: #ffb3b3;
}

.pg-msg.is-ok {
    display: block;
    background: rgba(0, 255, 213, 0.08);
    border: 1px solid rgba(0, 255, 213, 0.20);
    color: #9affc6;
}

/* ---- Divider ---- */
.pg-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 20px 0;
}

/* ---- Utility ---- */
.pg-hidden { display: none !important; }
.pg-mt-0 { margin-top: 0 !important; }
.pg-mt-8 { margin-top: 8px; }
.pg-mt-12 { margin-top: 12px; }
.pg-mt-16 { margin-top: 16px; }
.pg-mt-24 { margin-top: 24px; }
.pg-gap-10 { gap: 10px; }

.pg-flex { display: flex; }
.pg-flex-col { flex-direction: column; }
.pg-items-center { align-items: center; }
.pg-justify-center { justify-content: center; }

/* ---- Blog list (for /pages/) ---- */
.pg-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.pg-blog-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease;
    display: block;
}

.pg-blog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0,255,213,0.22);
}

.pg-blog-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: rgba(255,255,255,0.05);
}

.pg-blog-card-body {
    padding: 14px 16px 18px;
}

.pg-blog-card-cat {
    font-size: 11px;
    font-weight: 800;
    color: #00ffd5;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.pg-blog-card-title {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 8px;
}

.pg-blog-card-meta {
    font-size: 12px;
    opacity: 0.55;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .pg-card { padding: 16px 14px; }
    .pg-btn { padding: 13px 18px; font-size: 15px; }
    .pg-h1 { font-size: 26px; }
}

/* ============================================================
   Blog Pages Module Additions
   For:
   /pages
   /pages/{slug}
   /pages/category/{id}
   ============================================================ */

/* ---------- Public pages nav ---------- */
.pg-public-shell {
    min-height: auto;
    background:
            radial-gradient(circle at top left, rgba(0, 255, 213, 0.10), transparent 34%),
            radial-gradient(circle at top right, rgba(0, 168, 255, 0.08), transparent 30%),
            #080c10;
    color: #f8fafc;
}

.pg-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(8, 12, 16, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pg-nav-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pg-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.pg-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(0, 255, 213, 0.12);
    border: 1px solid rgba(0, 255, 213, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00ffd5;
    box-shadow: 0 0 22px rgba(0, 255, 213, 0.12);
}

.pg-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.pg-brand-text small {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    margin-top: 3px;
}

.pg-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0f172a;
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
}

.pg-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg-nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid transparent;
}

.pg-nav-links a:hover,
.pg-nav-links a.active {
    color: #00ffd5;
    background: rgba(0, 255, 213, 0.08);
    border-color: rgba(0, 255, 213, 0.18);
}

/* ---------- Hero / headers ---------- */
.pg-blog-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 28px;
}

.pg-blog-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00ffd5;
    background: rgba(0, 255, 213, 0.08);
    border: 1px solid rgba(0, 255, 213, 0.18);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 14px;
}

.pg-blog-title {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -1px;
    max-width: 850px;
}

.pg-blog-sub {
    margin: 14px 0 0;
    color: #aeb8c7;
    font-size: 16px;
    line-height: 1.7;
    max-width: 720px;
}

.pg-blog-toolbar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pg-blog-search {
    flex: 1;
    min-width: 240px;
    position: relative;
}

.pg-blog-search input {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff;
    padding: 0 16px;
    outline: none;
}

.pg-blog-search input:focus {
    border-color: rgba(0, 255, 213, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 255, 213, 0.08);
}

.pg-blog-filter-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.86);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.10);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.pg-blog-filter-link:hover,
.pg-blog-filter-link.active {
    color: #00ffd5;
    border-color: rgba(0, 255, 213, 0.30);
}

/* ---------- List grid ---------- */
.pg-blog-list-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 10px 0 70px;
}

.pg-blog-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pg-post-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pg-post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 213, 0.24);
    box-shadow: 0 22px 70px rgba(0, 255, 213, 0.08);
}

.pg-post-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    overflow: hidden;
}

.pg-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.pg-post-card:hover .pg-post-img {
    transform: scale(1.04);
}

.pg-post-img-empty {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
            linear-gradient(135deg, rgba(0, 255, 213, 0.15), rgba(0, 168, 255, 0.08)),
            #0f172a;
    color: #00ffd5;
    font-size: 42px;
}

.pg-post-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #081018;
    background: #00ffd5;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-post-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pg-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.pg-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pg-post-title {
    margin: 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.pg-post-excerpt {
    margin: 10px 0 0;
    color: #aeb8c7;
    font-size: 14px;
    line-height: 1.6;
}

.pg-post-footer {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pg-read-more {
    color: #00ffd5;
    font-size: 13px;
    font-weight: 950;
}

.pg-post-arrow {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(0, 255, 213, 0.08);
    color: #00ffd5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Empty state ---------- */
.pg-empty-box {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    color: #cbd5e1;
}

.pg-empty-box h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
}

.pg-empty-box p {
    margin: 0;
    color: #94a3b8;
}

/* ---------- Pagination ---------- */
.pg-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.pg-pagination a,
.pg-pagination span {
    min-width: 40px;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.pg-pagination a:hover,
.pg-pagination .active {
    color: #081018;
    background: #00ffd5;
    border-color: #00ffd5;
}

.pg-pagination .disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* ---------- Single post ---------- */
.pg-single-wrap {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 74px;
}

.pg-single-head {
    text-align: center;
    margin-bottom: 24px;
}

.pg-single-category {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0, 255, 213, 0.08);
    border: 1px solid rgba(0, 255, 213, 0.20);
    color: #00ffd5;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    margin-bottom: 14px;
}

.pg-single-title {
    margin: 0 auto;
    color: #fff;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.06;
    font-weight: 950;
    letter-spacing: -0.8px;
    max-width: 900px;
}

.pg-single-meta {
    margin-top: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 13px;
    font-weight: 800;
}

.pg-single-image {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #020617;
    margin: 24px 0;
    box-shadow: 0 22px 75px rgba(0, 0, 0, 0.28);
}

.pg-single-image img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    display: block;
}

.pg-content-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: clamp(18px, 4vw, 34px);
}

.pg-content {
    color: #e5e7eb;
    font-size: 17px;
    line-height: 1.85;
}

.pg-content p {
    margin: 0 0 18px;
}

.pg-content h1,
.pg-content h2,
.pg-content h3,
.pg-content h4 {
    color: #fff;
    line-height: 1.25;
    margin: 28px 0 12px;
    font-weight: 950;
}

.pg-content h2 {
    font-size: 28px;
}

.pg-content h3 {
    font-size: 22px;
}

.pg-content a {
    color: #00ffd5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pg-content ul,
.pg-content ol {
    margin: 0 0 20px 22px;
    padding: 0;
}

.pg-content li {
    margin-bottom: 8px;
}

.pg-content blockquote {
    margin: 22px 0;
    padding: 16px 18px;
    border-left: 4px solid #00ffd5;
    background: rgba(0, 255, 213, 0.06);
    border-radius: 14px;
    color: #dbeafe;
}

.pg-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.pg-content iframe,
.pg-content video {
    max-width: 100%;
    border-radius: 16px;
}

.pg-post-actions-row {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Related posts ---------- */
.pg-related {
    margin-top: 34px;
}

.pg-related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.pg-related-head h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 950;
}

.pg-related-head p {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 14px;
}

.pg-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pg-related-card {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.pg-related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 213, 0.22);
}

.pg-related-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    overflow: hidden;
}

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

.pg-related-img-empty {
    width: 100%;
    height: 100%;
    display: flex;
    min-height: 110px;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 213, 0.08);
    color: #00ffd5;
    font-size: 28px;
}

.pg-related-body {
    padding: 13px;
}

.pg-related-title {
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
}

.pg-related-date {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

/* ---------- Admin page helpers ---------- */
.pg-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pg-admin-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
}

.pg-admin-card h3 {
    color: #fff;
    margin: 0 0 8px;
}

.pg-admin-card p {
    color: #94a3b8;
    margin: 0;
}

.pg-admin-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pg-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}

.pg-status-pill.active,
.pg-status-pill.visible {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.22);
}

.pg-status-pill.draft {
    color: #fde68a;
    background: rgba(251, 191, 36, 0.10);
    border-color: rgba(251, 191, 36, 0.22);
}

.pg-status-pill.hidden {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.22);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .pg-blog-grid-3,
    .pg-related-grid,
    .pg-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pg-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pg-nav-links {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: #0f172a;
        border: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    }

    .pg-nav-links.is-open {
        display: flex;
    }

    .pg-nav-links a {
        justify-content: flex-start;
        border-radius: 12px;
        min-height: 42px;
    }
}

@media (max-width: 640px) {
    .pg-nav-inner,
    .pg-blog-hero,
    .pg-blog-toolbar,
    .pg-blog-list-wrap,
    .pg-single-wrap {
        width: min(100% - 24px, 1180px);
    }

    .pg-blog-hero {
        padding-top: 34px;
    }

    .pg-blog-grid-3,
    .pg-related-grid,
    .pg-admin-grid {
        grid-template-columns: 1fr;
    }

    .pg-post-title {
        font-size: 18px;
    }

    .pg-single-meta {
        justify-content: center;
    }

    .pg-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .pg-content h2 {
        font-size: 24px;
    }

    .pg-related-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pg-post-actions-row {
        flex-direction: column;
    }

    .pg-post-actions-row .pg-btn,
    .pg-post-actions-row .btn {
        width: 100%;
        justify-content: center;
    }
}

.pg-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pg-editor-toolbar .btn {
    margin: 0;
}

/* WYSIWYG editor for admin pages */
.pg-panel-title {
    font-size: 1.2rem;
}

.pg-wysiwyg-wrap {
    width: 100%;
}

.pg-wysiwyg-editor {
    width: 100%;
    min-height: 360px;
    padding: 16px;
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 10px;
    outline: none;
    line-height: 1.75;
    font-size: 16px;
    overflow-y: auto;
}

.pg-wysiwyg-editor:focus {
    border-color: var(--brand, #00ffd5);
    box-shadow: 0 0 4px var(--brand, #00ffd5);
}

.pg-wysiwyg-editor:empty:before {
    content: attr(data-placeholder);
    color: #777;
}

.pg-wysiwyg-editor p {
    margin: 0 0 14px;
}

.pg-wysiwyg-editor h1,
.pg-wysiwyg-editor h2,
.pg-wysiwyg-editor h3,
.pg-wysiwyg-editor h4 {
    color: #fff;
    margin: 18px 0 10px;
    line-height: 1.25;
}

.pg-wysiwyg-editor h2 {
    font-size: 26px;
}

.pg-wysiwyg-editor h3 {
    font-size: 21px;
}

.pg-wysiwyg-editor ul,
.pg-wysiwyg-editor ol {
    margin: 0 0 16px 22px;
}

.pg-wysiwyg-editor li {
    margin-bottom: 6px;
}

.pg-wysiwyg-editor a {
    color: #00ffd5;
    text-decoration: underline;
}

.pg-wysiwyg-editor blockquote {
    margin: 16px 0;
    padding: 14px 16px;
    border-left: 4px solid #00ffd5;
    background: rgba(0, 255, 213, 0.06);
    border-radius: 10px;
}

.pg-wysiwyg-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.pg-wysiwyg-hidden {
    display: none;
}

.pg-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pg-editor-toolbar .btn {
    margin: 0;
}

.pg-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 10px;
    display: block;
    margin: 14px 0;
}

.pg-content img[style] {
    max-width: 100% !important;
    height: auto !important;
}

.pg-content figure,
.pg-content .wp-caption {
    max-width: 100%;
}

.pg-content figure img,
.pg-content .wp-caption img {
    max-width: 100%;
    height: auto !important;
}