/*
Theme Name:   Stock Utility SaaS
Theme URI:    https://yoursite.com
Author:       Azeez Onifade
Description:  A fully customizable, responsive SaaS theme for the Stock Utility plugin. All colours, text, and layout options are controlled via the WordPress Customizer.
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  stock-utility-theme
Tags:         saas, inventory, stock, business, responsive, customizable
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   (base values — overridden by Customizer via wp_head)
============================================================ */
:root {
    --t-primary:    #6c63ff;
    --t-primary-d:  #5a52d5;
    --t-secondary:  #4a9eff;
    --t-dark:       #0f172a;
    --t-text:       #1e293b;
    --t-soft:       #64748b;
    --t-bg:         #f1f5f9;
    --t-white:      #ffffff;
    --t-border:     #e2e8f0;
    --t-radius:     12px;
    --t-shadow-sm:  0 1px 4px rgba(0,0,0,.06);
    --t-shadow:     0 4px 24px rgba(0,0,0,.08);
    --t-shadow-lg:  0 12px 48px rgba(0,0,0,.14);
    --t-font:       'Inter', system-ui, -apple-system, sans-serif;
    --t-header-h:   68px;
    --t-max-width:  1140px;
    --t-gutter:     clamp(16px, 4vw, 40px);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family:  var(--t-font);
    font-size:    clamp(15px, 1.1vw, 17px);
    line-height:  1.7;
    color:        var(--t-text);
    background:   var(--t-white);
    -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--t-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   LAYOUT UTILITIES
============================================================ */
.t-container {
    width: 100%;
    max-width: var(--t-max-width);
    margin-inline: auto;
    padding-inline: var(--t-gutter);
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1000;
    height: var(--t-header-h);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--t-border);
    transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--t-shadow); }

.site-header-inner {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    height: 100%;
    max-width: var(--t-max-width);
    margin-inline: auto;
    padding-inline: var(--t-gutter);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--t-primary), var(--t-secondary));
    border-radius: calc(var(--t-radius) - 2px);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 17px;
}
.site-logo-name {
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 800;
    color: var(--t-text);
    line-height: 1;
}
.site-logo--footer .site-logo-name { color: var(--t-white); }

/* Desktop Nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.site-nav a {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--t-soft);
    text-decoration: none;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active { color: var(--t-primary); background: color-mix(in srgb, var(--t-primary) 8%, transparent); }

/* CTA group */
.site-header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-inline-start: auto;
}

/* Hamburger */
.t-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    border-radius: 8px;
    margin-inline-start: auto;
}
.t-hamburger {
    display: block;
    width: 22px; height: 2px;
    background: var(--t-text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.t-menu-toggle.is-open .t-hamburger:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.t-menu-toggle.is-open .t-hamburger:nth-child(2) { opacity: 0; }
.t-menu-toggle.is-open .t-hamburger:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.t-mobile-nav {
    position: fixed;
    inset-block-start: var(--t-header-h);
    inset-inline: 0;
    z-index: 999;
    background: var(--t-white);
    border-bottom: 1px solid var(--t-border);
    box-shadow: var(--t-shadow-lg);
    padding: 20px var(--t-gutter) 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
}
.t-mobile-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}
.t-mobile-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--t-text);
    text-decoration: none;
    transition: background .2s;
}
.t-mobile-nav a:hover { background: var(--t-bg); }
.t-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--t-border);
}
.t-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0,0,0,.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.t-nav-overlay.is-open { opacity: 1; pointer-events: all; }

/* ============================================================
   BUTTONS
============================================================ */
.t-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: calc(var(--t-radius) - 2px);
    border: 2px solid transparent;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s ease;
    line-height: 1;
}
.t-btn:hover { text-decoration: none; }

.t-btn-primary {
    background: var(--t-primary);
    color: #fff;
    border-color: var(--t-primary);
}
.t-btn-primary:hover {
    background: var(--t-primary-d);
    border-color: var(--t-primary-d);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--t-primary) 35%, transparent);
}

.t-btn-outline {
    background: transparent;
    color: var(--t-primary);
    border-color: var(--t-primary);
}
.t-btn-outline:hover {
    background: color-mix(in srgb, var(--t-primary) 8%, transparent);
}

.t-btn-ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.35);
}
.t-btn-ghost:hover { background: rgba(255,255,255,.22); }

.t-btn-ghost-light {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.9);
    border-color: rgba(255,255,255,.25);
}
.t-btn-ghost-light:hover { background: rgba(255,255,255,.2); }

.t-btn-white {
    background: #fff;
    color: var(--t-primary);
    border-color: #fff;
}
.t-btn-white:hover { background: #f0eeff; }

.t-btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--t-radius); }
.t-btn-sm { padding: 7px 16px; font-size: 13px; }
.t-btn-full { width: 100%; }

/* ============================================================
   HERO
============================================================ */
.t-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(100px, 16vw, 160px) clamp(60px, 10vw, 100px);
    padding-block-start: calc(var(--t-header-h) + clamp(60px, 10vw, 100px));
    background: linear-gradient(135deg, var(--t-dark) 0%, #1e1b4b 55%, #312e81 100%);
    text-align: center;
}
.t-hero::before,
.t-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.t-hero::before {
    width: clamp(300px, 50vw, 700px);
    height: clamp(300px, 50vw, 700px);
    background: radial-gradient(circle, color-mix(in srgb, var(--t-primary) 30%, transparent), transparent 70%);
    inset-block-start: -20%; inset-inline-start: -10%;
}
.t-hero::after {
    width: clamp(200px, 40vw, 500px);
    height: clamp(200px, 40vw, 500px);
    background: radial-gradient(circle, color-mix(in srgb, var(--t-secondary) 20%, transparent), transparent 70%);
    inset-block-end: -10%; inset-inline-end: -5%;
}

.t-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin-inline: auto;
    padding-inline: var(--t-gutter);
}

.t-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108,99,255,.18);
    border: 1px solid rgba(108,99,255,.35);
    padding: 6px 18px;
    border-radius: 99px;
    font-size: clamp(12px, 1.1vw, 14px);
    font-weight: 600;
    color: #a5b4fc;
    margin-block-end: 24px;
}

.t-hero h1 {
    font-size: clamp(32px, 6vw, 62px);
    font-weight: 900;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin-block-end: 20px;
}

.t-hero-highlight {
    background: linear-gradient(90deg, var(--t-primary), var(--t-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.t-hero-sub {
    font-size: clamp(15px, 1.5vw, 19px);
    color: rgba(255,255,255,.72);
    max-width: 560px;
    margin-inline: auto;
    margin-block-end: 36px;
}

.t-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-block-end: 40px;
}

.t-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    justify-content: center;
}
.t-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: clamp(13px, 1vw, 14px);
    color: rgba(255,255,255,.65);
}
.t-trust-item i { color: var(--t-primary); }

/* ============================================================
   STATS BAR
============================================================ */
.t-stats-bar {
    background: var(--t-white);
    border-bottom: 1px solid var(--t-border);
    padding-block: clamp(24px, 3vw, 40px);
}
.t-stats-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
    gap: clamp(16px, 2vw, 32px);
    text-align: center;
    max-width: var(--t-max-width);
    margin-inline: auto;
    padding-inline: var(--t-gutter);
}
.t-stat-num {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--t-primary);
    line-height: 1;
}
.t-stat-item p {
    font-size: clamp(12px, 1vw, 14px);
    color: var(--t-soft);
    margin-block-start: 6px;
}

/* ============================================================
   SECTIONS
============================================================ */
.t-section {
    padding-block: clamp(56px, 8vw, 100px);
}
.t-section-alt { background: var(--t-bg); }

.t-section-inner {
    max-width: var(--t-max-width);
    margin-inline: auto;
    padding-inline: var(--t-gutter);
}

.t-section-header {
    text-align: center;
    margin-block-end: clamp(36px, 5vw, 60px);
    max-width: 640px;
    margin-inline: auto;
}

.t-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--t-primary);
    margin-block-end: 12px;
}

.t-section-header h2 {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--t-text);
    letter-spacing: -.02em;
    margin-block-end: 14px;
    line-height: 1.2;
}

.t-section-header p {
    font-size: clamp(15px, 1.2vw, 17px);
    color: var(--t-soft);
}

/* ============================================================
   FEATURES GRID
============================================================ */
.t-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.t-feature-card {
    background: var(--t-white);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    padding: clamp(20px, 2.5vw, 32px);
    transition: transform .2s ease, box-shadow .2s ease;
}
.t-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--t-shadow);
}

.t-feature-icon {
    width: 52px; height: 52px;
    border-radius: calc(var(--t-radius) - 2px);
    display: flex; align-items: center; justify-content: center;
    font-size: 21px;
    margin-block-end: 18px;
}
.t-icon-purple { background: #ede9fe; color: #7c3aed; }
.t-icon-blue   { background: #dbeafe; color: #1d4ed8; }
.t-icon-green  { background: #dcfce7; color: #16a34a; }
.t-icon-orange { background: #ffedd5; color: #ea580c; }
.t-icon-red    { background: #fee2e2; color: #dc2626; }
.t-icon-teal   { background: #ccfbf1; color: #0d9488; }

.t-feature-card h3 {
    font-size: clamp(16px, 1.3vw, 19px);
    font-weight: 700;
    margin-block-end: 10px;
    color: var(--t-text);
}
.t-feature-card p {
    font-size: clamp(13px, 1vw, 15px);
    color: var(--t-soft);
    line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS — STEPS
============================================================ */
.t-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(20px, 3vw, 36px);
    counter-reset: none;
    position: relative;
}

/* Connector line between steps on wide screens */
@media (min-width: 640px) {
    .t-steps {
        --connector-top: 28px;
    }
}

.t-step {
    text-align: center;
    padding: clamp(20px, 2.5vw, 32px) clamp(12px, 2vw, 20px);
    position: relative;
}

.t-step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--t-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin-inline: auto;
    margin-block-end: 18px;
    box-shadow: 0 4px 18px color-mix(in srgb, var(--t-primary) 40%, transparent);
}

.t-step h3 {
    font-size: clamp(16px, 1.3vw, 18px);
    font-weight: 700;
    margin-block-end: 8px;
    color: var(--t-text);
}
.t-step p {
    font-size: clamp(13px, 1vw, 15px);
    color: var(--t-soft);
    line-height: 1.7;
}

/* ============================================================
   TESTIMONIALS
============================================================ */
.t-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(14px, 2vw, 24px);
}

.t-testimonial {
    background: var(--t-white);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    padding: clamp(20px, 2.5vw, 28px);
    display: flex;
    flex-direction: column;
}

.t-stars {
    color: #f59e0b;
    font-size: 16px;
    letter-spacing: 2px;
    margin-block-end: 14px;
}

.t-testimonial > p {
    font-size: clamp(14px, 1.1vw, 16px);
    color: var(--t-text);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin-block-end: 20px;
}

.t-reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.t-reviewer-avatar {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--t-primary), var(--t-secondary));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.t-reviewer-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    font-style: normal;
    color: var(--t-text);
}
.t-reviewer-role {
    font-size: 13px;
    color: var(--t-soft);
    margin-block-start: 2px;
}

/* ============================================================
   BOTTOM CTA SECTION
============================================================ */
.t-cta-section {
    background: linear-gradient(135deg, var(--t-primary) 0%, var(--t-secondary) 100%);
    padding-block: clamp(56px, 8vw, 100px);
    padding-inline: var(--t-gutter);
    text-align: center;
}

.t-cta-section h2 {
    font-size: clamp(26px, 3.5vw, 44px);
    font-weight: 800;
    color: #fff;
    margin-block-end: 14px;
    letter-spacing: -.02em;
}

.t-cta-section p {
    font-size: clamp(15px, 1.3vw, 18px);
    color: rgba(255,255,255,.8);
    max-width: 540px;
    margin-inline: auto;
    margin-block-end: 36px;
}

.t-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: var(--t-dark);
    color: #94a3b8;
    padding-block: clamp(48px, 6vw, 72px) 0;
}

.site-footer-inner {
    max-width: var(--t-max-width);
    margin-inline: auto;
    padding-inline: var(--t-gutter);
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: clamp(24px, 3vw, 48px);
    padding-block-end: clamp(36px, 4vw, 56px);
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    max-width: 280px;
}

.site-footer-social {
    display: flex;
    gap: 10px;
}
.site-footer-social a {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: #1e293b;
    color: #64748b;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.site-footer-social a:hover { background: var(--t-primary); color: #fff; }

.site-footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-block-end: 16px;
}
.site-footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.site-footer-col a {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: color .2s;
}
.site-footer-col a:hover { color: #fff; }

.site-footer-bottom {
    border-top: 1px solid #1e293b;
    padding-block: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #475569;
}
.site-footer-bottom a { color: var(--t-primary); text-decoration: none; }
.site-footer-bottom a:hover { text-decoration: underline; }

/* ============================================================
   CONTENT PAGES (non-landing pages)
============================================================ */
.site-content {
    max-width: 860px;
    margin-inline: auto;
    padding-block-start: calc(var(--t-header-h) + 48px);
    padding-block-end: 80px;
    padding-inline: var(--t-gutter);
}
.entry-title {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--t-text);
    margin-block-end: 28px;
    letter-spacing: -.02em;
}
.entry-content { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.8; color: var(--t-text); }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { margin-block: 1.5em .6em; line-height: 1.3; font-weight: 700; }
.entry-content p  { margin-block-end: 1.2em; }
.entry-content a  { color: var(--t-primary); }
.entry-content ul, .entry-content ol { margin-block: 1em; margin-inline-start: 1.5em; list-style: revert; }
.entry-content li { margin-block-end: .4em; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
============================================================ */

/* Tablet — ≤ 1024px */
@media (max-width: 1024px) {
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
    .site-footer-brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 20px; }
    .site-footer-desc  { max-width: 100%; }
}

/* Mobile landscape — ≤ 768px */
@media (max-width: 768px) {
    :root { --t-header-h: 60px; }

    .site-nav,
    .site-header-cta .t-btn-signin { display: none; }

    .t-menu-toggle { display: flex; }
    .site-header-cta { gap: 8px; }

    .t-features-grid { grid-template-columns: 1fr; }
    .t-steps         { grid-template-columns: 1fr 1fr; }
    .t-testimonials  { grid-template-columns: 1fr; }
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
    .site-footer-brand { grid-column: 1 / -1; }
}

/* Mobile portrait — ≤ 480px */
@media (max-width: 480px) {
    .t-hero-ctas    { flex-direction: column; align-items: stretch; }
    .t-hero-ctas .t-btn { justify-content: center; }
    .t-hero-trust   { flex-direction: column; align-items: center; }
    .t-steps        { grid-template-columns: 1fr; }
    .t-cta-btns     { flex-direction: column; align-items: stretch; }
    .t-cta-btns .t-btn { justify-content: center; }
    .site-footer-grid { grid-template-columns: 1fr; }
    .site-header-cta .t-btn-outline { display: none; }
    .site-footer-bottom { flex-direction: column; text-align: center; }
}

/* Print */
@media print {
    .site-header, .site-footer, .t-hero, .t-cta-section { display: none; }
    .site-content { padding-block-start: 0; }
}

/* ============================================================
   BLOG — Complete Stylesheet
   ============================================================ */

/* ── Shared container ───────────────────────────────────── */
.sut-container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 48px);
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.sut-breadcrumb { margin-bottom: 20px; }
.sut-breadcrumb ol {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
}
.sut-breadcrumb li { display: flex; align-items: center; gap: 4px; }
.sut-breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.sut-breadcrumb a:hover { color: #fff; text-decoration: underline; }
[aria-current="page"] { color: #fff; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════════════ */

/* ── Post hero ──────────────────────────────────────────── */
.sut-post-hero {
    background: linear-gradient(135deg, var(--t-dark) 0%, color-mix(in srgb, var(--t-primary) 80%, black) 100%);
    color: #fff;
    padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 64px);
}

.sut-post-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: rgba(255,255,255,.75);
}
.sut-post-meta-top i { margin-right: 4px; }

.sut-post-title {
    font-size: clamp(26px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #fff;
}

.sut-post-excerpt {
    font-size: clamp(15px, 1.8vw, 18px);
    opacity: .85;
    max-width: 680px;
    line-height: 1.65;
    margin: 0 0 20px;
}

.sut-post-author-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.8);
}
.sut-avatar-mini {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
}

/* ── Category pill ──────────────────────────────────────── */
.sut-cat-pill {
    display: inline-block;
    background: var(--t-primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.sut-cat-pill:hover { opacity: .85; }
.sut-cat-pill-sm { font-size: 11px; padding: 2px 8px; }

/* ── Featured image ─────────────────────────────────────── */
.sut-post-thumb-wrap {
    background: var(--t-dark);
    padding-bottom: clamp(16px, 3vw, 32px);
}
.sut-post-thumb {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--t-radius, 12px);
    display: block;
    margin-top: -32px;
    box-shadow: 0 16px 48px rgba(0,0,0,.25);
}

/* ── Post layout ────────────────────────────────────────── */
.sut-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    padding-block: 48px;
    align-items: start;
}

/* ── Table of Contents ──────────────────────────────────── */
.sut-toc {
    background: #f8f9ff;
    border: 1px solid var(--t-border, #e5e7eb);
    border-left: 4px solid var(--t-primary);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 32px;
}
.sut-toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--t-text, #1e293b);
    margin-bottom: 12px;
}
.sut-toc-toggle {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--t-primary);
    line-height: 1;
}
.sut-toc-list { margin: 0; padding-left: 18px; }
.sut-toc-list li { margin: 6px 0; font-size: 13.5px; }
.sut-toc-list li a { color: var(--t-primary); text-decoration: none; }
.sut-toc-list li a:hover { text-decoration: underline; }
.sut-toc-h3 { padding-left: 14px; }
.sut-toc-h3::marker { color: var(--t-soft, #64748b); }

/* ── Post body typography ───────────────────────────────── */
.sut-post-body {
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.8;
    color: var(--t-text, #1e293b);
}
.sut-post-body h2 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    margin: 2em 0 .6em;
    color: var(--t-dark, #0f172a);
    scroll-margin-top: 80px;
}
.sut-post-body h3 {
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 600;
    margin: 1.6em 0 .5em;
    scroll-margin-top: 80px;
}
.sut-post-body p { margin: 0 0 1.4em; }
.sut-post-body a { color: var(--t-primary); }
.sut-post-body ul, .sut-post-body ol {
    padding-left: 1.5em;
    margin: 0 0 1.4em;
}
.sut-post-body li { margin: .4em 0; }
.sut-post-body blockquote {
    margin: 1.8em 0;
    padding: 16px 20px 16px 24px;
    border-left: 4px solid var(--t-primary);
    background: #f8f9ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--t-soft, #64748b);
    font-size: 1.05em;
}
.sut-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}
.sut-post-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    margin: 1.6em 0;
}
.sut-post-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .9em;
    color: var(--t-primary);
}
.sut-post-body pre code { background: none; padding: 0; color: inherit; }
.sut-post-body table {
    width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14px;
}
.sut-post-body th, .sut-post-body td {
    padding: 10px 14px;
    border: 1px solid var(--t-border, #e5e7eb);
    text-align: left;
}
.sut-post-body th { background: #f1f5f9; font-weight: 600; }

/* ── Tags ───────────────────────────────────────────────── */
.sut-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-block: 24px;
    border-top: 1px solid var(--t-border, #e5e7eb);
    margin-top: 32px;
    font-size: 13px;
    color: var(--t-soft);
}
.sut-tag-pill {
    display: inline-block;
    background: #f1f5f9;
    color: var(--t-text);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: .15s;
}
.sut-tag-pill:hover { background: var(--t-primary); color: #fff; }

/* ── Share bar ──────────────────────────────────────────── */
.sut-share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid var(--t-border, #e5e7eb);
    font-size: 13px;
    color: var(--t-soft);
}
.sut-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: .15s;
}
.sut-share-twitter  { background: #1da1f2; color: #fff; }
.sut-share-linkedin { background: #0077b5; color: #fff; }
.sut-share-facebook { background: #1877f2; color: #fff; }
.sut-share-copy     { background: #f1f5f9; color: var(--t-text); border-color: var(--t-border, #e5e7eb); }
.sut-share-btn:hover { opacity: .85; transform: translateY(-1px); }

/* ── Author box ─────────────────────────────────────────── */
.sut-author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #f8f9ff;
    border: 1px solid var(--t-border, #e5e7eb);
    border-radius: 14px;
    padding: 24px;
    margin: 40px 0;
}
.sut-author-avatar { border-radius: 50%; flex-shrink: 0; width: 80px; height: 80px; }
.sut-author-name { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.sut-author-bio { font-size: 14px; color: var(--t-soft); margin: 0 0 8px; line-height: 1.6; }
.sut-author-link { font-size: 13px; color: var(--t-primary); text-decoration: none; }
.sut-author-link:hover { text-decoration: underline; }

/* ── Post nav ───────────────────────────────────────────── */
.sut-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 32px 0;
    border-top: 1px solid var(--t-border, #e5e7eb);
}
.sut-post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--t-border, #e5e7eb);
    transition: .15s;
}
.sut-post-nav-link:hover { border-color: var(--t-primary); background: #fff; }
.sut-post-nav-next { text-align: right; }
.sut-nav-label { font-size: 12px; color: var(--t-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.sut-nav-title { font-size: 14px; font-weight: 600; color: var(--t-text); line-height: 1.4; }

/* ── Comments ───────────────────────────────────────────── */
.sut-comments-section { padding-top: 32px; border-top: 1px solid var(--t-border, #e5e7eb); margin-top: 8px; }
.sut-comments-section .comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.sut-comments-section .comment { padding: 16px 0; border-bottom: 1px solid var(--t-border, #e5e7eb); }
.sut-comments-section .comment-author .fn { font-weight: 600; font-size: 14px; }
.sut-comments-section .comment-metadata { font-size: 12px; color: var(--t-soft); margin-bottom: 8px; }
.sut-comments-section .comment-body p { font-size: 15px; }
.sut-comments-section .comment-form input,
.sut-comments-section .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--t-border, #e5e7eb);
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 12px;
    font-family: inherit;
}
.sut-comments-section .comment-form input:focus,
.sut-comments-section .comment-form textarea:focus {
    outline: none;
    border-color: var(--t-primary);
}

/* ── Blog CTA strip (bottom of post) ───────────────────── */
.sut-blog-cta-strip {
    background: var(--t-dark);
    color: #fff;
    text-align: center;
    padding: 32px 0;
}
.sut-blog-cta-strip p { margin: 0 0 16px; font-size: 16px; opacity: .85; }

/* ═══════════════════════════════════════════════════════════
   ARCHIVE / BLOG LISTING
═══════════════════════════════════════════════════════════ */

/* ── Archive hero ───────────────────────────────────────── */
.sut-archive-hero {
    background: linear-gradient(135deg, var(--t-dark) 0%, color-mix(in srgb, var(--t-primary) 70%, black) 100%);
    color: #fff;
    padding: clamp(40px, 7vw, 80px) 0;
}
.sut-archive-title {
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 800;
    margin: 0 0 12px;
}
.sut-archive-desc {
    font-size: clamp(15px, 1.8vw, 18px);
    opacity: .8;
    max-width: 600px;
    margin: 0 0 24px;
}

/* ── Blog search ────────────────────────────────────────── */
.sut-blog-search { max-width: 500px; }
.sut-blog-search-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 10px;
    padding: 6px 6px 6px 14px;
}
.sut-blog-search-inner i { color: #9ca3af; font-size: 14px; }
.sut-blog-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--t-text);
    background: transparent;
    min-width: 0;
}

/* ── Blog layout ────────────────────────────────────────── */
.sut-blog-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 48px;
    padding-block: 48px;
    align-items: start;
}

/* ── Category filter ────────────────────────────────────── */
.sut-cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.sut-cat-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: #f1f5f9;
    color: var(--t-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid transparent;
    transition: .15s;
}
.sut-cat-filter-pill:hover,
.sut-cat-filter-pill.active {
    background: var(--t-primary);
    color: #fff;
}
.sut-cat-count {
    background: rgba(0,0,0,.1);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
}
.sut-cat-filter-pill.active .sut-cat-count,
.sut-cat-filter-pill:hover .sut-cat-count { background: rgba(255,255,255,.2); }

/* ── Featured post card ─────────────────────────────────── */
.sut-post-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--t-border, #e5e7eb);
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    margin-bottom: 32px;
    background: #fff;
}
.sut-post-featured .sut-card-thumb-link { display: block; height: 100%; }
.sut-post-featured .sut-card-thumb { width: 100%; height: 100%; object-fit: cover; min-height: 280px; border-radius: 0; }
.sut-post-featured .sut-card-body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; justify-content: center; }
.sut-post-featured .sut-card-title { font-size: clamp(18px, 2.5vw, 26px); margin: 8px 0; }
.sut-post-featured .sut-card-excerpt { font-size: 15px; }

/* ── Post grid ──────────────────────────────────────────── */
.sut-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ── Post card ──────────────────────────────────────────── */
.sut-post-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--t-border, #e5e7eb);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.sut-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
.sut-card-thumb-link { display: block; overflow: hidden; }
.sut-card-thumb {
    width: 100%; height: 200px; object-fit: cover;
    display: block;
    transition: transform .3s;
}
.sut-card-thumb-link:hover .sut-card-thumb { transform: scale(1.03); }
.sut-card-thumb-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 32px;
}
.sut-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sut-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--t-soft);
}
.sut-card-title { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.35; }
.sut-card-title a { color: var(--t-dark); text-decoration: none; }
.sut-card-title a:hover { color: var(--t-primary); }
.sut-card-title-sm { font-size: 15px; }
.sut-card-excerpt { font-size: 14px; color: var(--t-soft); line-height: 1.6; flex: 1; margin: 0; }
.sut-card-excerpt-sm { font-size: 13px; }
.sut-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--t-soft);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--t-border, #e5e7eb);
}
.sut-avatar-xs { width: 24px; height: 24px; border-radius: 50%; }
.sut-read-more {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--t-primary);
    text-decoration: none;
    white-space: nowrap;
}
.sut-read-more:hover { gap: 6px; }
.sut-reading-dot { margin-inline: 2px; }

/* ── Pagination ─────────────────────────────────────────── */
.sut-pagination { margin-top: 40px; }
.sut-pagination .page-numbers {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.sut-pagination .page-numbers li a,
.sut-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--t-border, #e5e7eb);
    background: #fff;
    color: var(--t-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: .15s;
}
.sut-pagination .page-numbers li a:hover { border-color: var(--t-primary); color: var(--t-primary); }
.sut-pagination .page-numbers li .current { background: var(--t-primary); color: #fff; border-color: var(--t-primary); }

/* ── No posts ───────────────────────────────────────────── */
.sut-no-posts {
    text-align: center;
    padding: 64px 24px;
    color: var(--t-soft);
}
.sut-no-posts i { margin-bottom: 16px; opacity: .4; }
.sut-no-posts h2 { font-size: 22px; margin: 0 0 12px; color: var(--t-dark); }
.sut-no-posts a { color: var(--t-primary); }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR (shared between single & archive)
═══════════════════════════════════════════════════════════ */
.sut-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--t-dark);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--t-primary);
    display: inline-block;
}

/* CTA card */
.sut-sidebar-cta {
    background: linear-gradient(135deg, var(--t-primary), var(--t-secondary, #4a9eff));
    color: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    text-align: center;
}
.sut-sidebar-logo { max-height: 40px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); }
.sut-sidebar-cta h3 { font-size: 17px; margin: 0 0 6px; }
.sut-sidebar-cta p { font-size: 13px; opacity: .85; margin: 0 0 16px; }
.sut-sidebar-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff;
    color: var(--t-primary);
    font-weight: 700;
    border-radius: 8px;
    padding: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: .15s;
}
.sut-sidebar-cta-btn:hover { opacity: .9; transform: scale(1.01); }

/* Widget */
.sut-sidebar-widget {
    background: #fff;
    border: 1px solid var(--t-border, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

/* Related posts */
.sut-sidebar-related { background: #fff; border: 1px solid var(--t-border, #e5e7eb); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.sut-related-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--t-border, #f1f5f9);
    text-decoration: none;
    color: var(--t-text);
}
.sut-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.sut-related-item:hover .sut-related-title { color: var(--t-primary); }
.sut-related-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sut-related-title { font-size: 13px; font-weight: 600; line-height: 1.4; display: block; }
.sut-related-date  { font-size: 11px; color: var(--t-soft); display: block; margin-top: 3px; }

/* Categories list */
.sut-sidebar-cats { list-style: none; margin: 0; padding: 0; }
.sut-sidebar-cats li { border-bottom: 1px solid var(--t-border, #f1f5f9); }
.sut-sidebar-cats li:last-child { border-bottom: none; }
.sut-sidebar-cats a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 4px;
    font-size: 14px;
    color: var(--t-text);
    text-decoration: none;
    transition: .15s;
}
.sut-sidebar-cats a:hover { color: var(--t-primary); padding-left: 8px; }
.sut-cat-count {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    color: var(--t-soft);
}

/* Popular */
.sut-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--t-border, #f1f5f9);
    text-decoration: none;
    color: var(--t-text);
    font-size: 13px;
}
.sut-popular-item:last-child { border-bottom: none; }
.sut-popular-item:hover .sut-popular-title { color: var(--t-primary); }
.sut-popular-num {
    flex-shrink: 0;
    width: 22px; height: 22px;
    background: var(--t-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.sut-popular-title { font-weight: 500; line-height: 1.4; }

/* Tag cloud */
.sut-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Blog search sidebar blog-main ──────────────────────── */
.sut-blog-main { min-width: 0; }
.sut-blog-sidebar { position: sticky; top: 80px; }
.sut-post-sidebar { position: sticky; top: 80px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sut-post-layout,
    .sut-blog-layout { grid-template-columns: 1fr; }
    .sut-post-sidebar,
    .sut-blog-sidebar { position: static; }
    .sut-post-featured { grid-template-columns: 1fr; }
    .sut-post-featured .sut-card-thumb { min-height: 220px; }
}

@media (max-width: 768px) {
    .sut-post-nav { grid-template-columns: 1fr; }
    .sut-author-box { flex-direction: column; }
    .sut-post-thumb { margin-top: -16px; }
    .sut-posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .sut-share-bar { gap: 6px; }
    .sut-share-btn { padding: 6px 10px; font-size: 12px; }
    .sut-post-meta-top { gap: 8px; font-size: 12px; }
}
