/* ==========================================================================
   TOYSSON — Professional Blog Theme
   ========================================================================== */

:root {
    --primary: #ff6b35;
    --primary-dark: #e0522a;
    --primary-soft: #fff1ea;
    --secondary: #4f46e5;
    --secondary-dark: #4338ca;
    --accent: #f59e0b;
    --teal: #0d9488;
    --pink: #db2777;
    --success: #059669;
    --danger: #dc2626;
    --info: #0284c7;

    --ink: #111827;
    --ink-soft: #374151;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-tint: #fff7f2;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-xs: 0 1px 2px rgba(17,24,39,.05);
    --shadow-sm: 0 1px 3px rgba(17,24,39,.08), 0 1px 2px rgba(17,24,39,.06);
    --shadow: 0 10px 30px rgba(17,24,39,.08), 0 4px 10px rgba(17,24,39,.05);
    --shadow-lg: 0 24px 60px rgba(17,24,39,.14), 0 10px 24px rgba(17,24,39,.10);

    --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; color: var(--ink); }
a { color: var(--primary); text-decoration: none; transition: color .2s, background .2s, transform .2s, box-shadow .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .2px;
    transition: all .2s;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255,107,53,.25);
}
.btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,107,53,.32); }
.btn-block { width: 100%; }

/* ---------- Badges & tags ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    box-shadow: var(--shadow-xs);
}
.tag-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink-soft);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
}
.tag-pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(180%) blur(12px);
    background: rgba(255,255,255,.92);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), #ff9f45);
    color: #fff;
    font-size: 19px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(255,107,53,.35);
}
.logo-text { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); }
a.logo:hover .logo-text { color: var(--primary); }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    display: block;
    padding: 9px 18px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 15px;
    transition: all .2s;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav a.active { color: #fff; background: var(--primary); box-shadow: 0 6px 14px rgba(255,107,53,.25); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.search-toggle, .menu-toggle {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.search-toggle:hover, .menu-toggle:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.menu-toggle { display: none; }

/* ---------- Search overlay ---------- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay-inner {
    width: min(680px, 90%);
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: transform .3s;
    position: relative;
}
.search-overlay.open .search-overlay-inner { transform: translateY(0); }
.search-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-soft);
    color: var(--ink);
}
.search-close:hover { background: var(--danger); color: #fff; }
.search-overlay-form {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.search-overlay-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 22px;
    font-size: 16px;
    color: var(--ink);
}
.search-overlay-form button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0 26px;
    font-size: 17px;
    transition: background .2s;
}
.search-overlay-form button:hover { background: var(--primary-dark); }
.search-hint { text-align: center; margin-top: 16px; color: var(--muted); font-size: 13px; }
.search-hint kbd {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 2px 8px;
    font-family: inherit;
    font-size: 12px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(255,255,255,.5), transparent 60%),
        linear-gradient(135deg, #ffd166 0%, #ff9f45 55%, #ff6b35 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.float-shape {
    position: absolute;
    color: rgba(255,255,255,.35);
    font-size: 34px;
    animation: floaty 7s ease-in-out infinite;
}
.float-shape.s1 { top: 18%; left: 8%; animation-delay: 0s; }
.float-shape.s2 { top: 12%; right: 12%; animation-delay: 1.2s; font-size: 46px; }
.float-shape.s3 { bottom: 20%; left: 14%; animation-delay: .6s; font-size: 26px; }
.float-shape.s4 { bottom: 26%; right: 8%; animation-delay: 2s; }
.float-shape.s5 { top: 45%; left: 28%; animation-delay: 1.6s; font-size: 22px; }
@keyframes floaty {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-22px) rotate(8deg); }
}
.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 84px 24px 90px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.9);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
}
.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,.12);
    margin-bottom: 18px;
}
.hero-title .highlight { color: inherit; }
.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 500;
    color: rgba(255,255,255,.96);
    max-width: 680px;
    margin: 0 auto 34px;
}
.hero-search { max-width: 600px; margin: 0 auto 42px; }
.search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 20px 45px rgba(0,0,0,.18);
}
.search-bar > i { margin-left: 18px; color: var(--primary); font-size: 15px; }
.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 15px;
    background: transparent;
    color: var(--ink);
}
.search-bar button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    transition: background .2s;
}
.search-bar button:hover { background: var(--primary-dark); }
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.hero-stat b {
    display: block;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.hero-stat span { font-size: 13px; color: rgba(255,255,255,.92); font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.hero-stat { border-right: 1px solid rgba(255,255,255,.35); padding-right: 48px; }
.hero-stat:last-child { border-right: 0; padding-right: 0; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.page-hero {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-tint), #fff3e6);
    border: 1px solid #ffe3d1;
    border-radius: var(--radius-xl);
    padding: 52px 30px;
    margin-bottom: 44px;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--ink); margin-bottom: 10px; }
.page-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 16px; }
.page-hero .hero-eyebrow { margin-bottom: 14px; background: #fff; }

.featured-section, .latest-section, .category-section { margin-bottom: 72px; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink);
    border: 1px solid var(--border);
}
.section-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateX(2px); }
.section-block { margin: 56px 0; }

/* ---------- Featured ---------- */
.featured-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-areas: "a b c";
    gap: 24px;
}
.featured-card {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--bg-soft);
    min-height: 420px;
    transition: transform .3s, box-shadow .3s;
}
.featured-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feat-1 { grid-area: a; }
.feat-2 { grid-area: b; }
.feat-3 { grid-area: c; }
.featured-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
    z-index: 0;
}
.featured-card:hover .featured-img { transform: scale(1.06); }
.featured-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    background: linear-gradient(to top, rgba(17,24,39,.92) 0%, rgba(17,24,39,.55) 45%, rgba(17,24,39,.05) 100%);
    color: #fff;
}
.featured-overlay h3 {
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin: 12px 0 10px;
    line-height: 1.35;
}
.featured-overlay .post-meta { color: rgba(255,255,255,.9); }
.featured-overlay .post-meta i { color: #ffd166; }

/* ---------- Post cards ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-img-wrap { position: relative; display: block; height: 200px; overflow: hidden; }
.post-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
}
.post-card:hover .post-img { transform: scale(1.07); }
.post-img-wrap .badge {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--primary); }
.post-body h3 { font-size: 19px; line-height: 1.4; }
.post-excerpt { color: var(--muted); font-size: 14px; flex: 1; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-weight: 600; }
.post-meta i { color: var(--primary); margin-right: 4px; }

/* ---------- Category grid ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.category-grid.all { grid-template-columns: repeat(4, 1fr); }
.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all .25s;
    color: var(--ink);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--ink);
}
.category-icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 20px;
    border-radius: 14px;
    transition: all .25s;
}
.category-card:hover .category-icon { background: var(--primary); color: #fff; }
.category-icon.lg { width: 64px; height: 64px; font-size: 26px; }
.category-card h3 { font-size: 16px; }
.category-card p { font-size: 13px; color: var(--muted); }
.category-arrow { margin-left: auto; color: var(--border); transition: all .25s; }
.category-card:hover .category-arrow { color: var(--primary); transform: translateX(3px); }

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.breadcrumb .container { display: flex; align-items: center; gap: 10px; padding: 14px 24px; font-size: 13px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i.fa-chevron-right { font-size: 9px; color: #c9cfd6; }
.breadcrumb .current { color: var(--primary); font-weight: 700; }

/* ==========================================================================
   POST LAYOUT (main + sidebar)
   ========================================================================== */
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
    padding: 44px 24px;
}
.post-main { min-width: 0; }

/* ---------- Single article ---------- */
.single-article {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 44px);
    margin-bottom: 34px;
}
.article-header { margin-bottom: 24px; }
.article-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    margin: 14px 0 16px;
    line-height: 1.22;
}
.article-meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}
.article-meta i { color: var(--primary); margin-right: 5px; }
.article-meta .meta-author i { color: var(--secondary); }
.article-hero-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.article-hero-image img { width: 100%; }
.article-content { font-size: 17px; line-height: 1.85; color: var(--ink-soft); }
.article-content h2 { font-size: 26px; margin: 40px 0 14px; color: var(--ink); }
.article-content h3 { font-size: 22px; margin: 32px 0 12px; color: var(--ink); }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 22px 24px; list-style: revert; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-tint);
    padding: 20px 26px;
    margin: 30px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 18px;
    font-style: italic;
    color: var(--ink);
    font-weight: 500;
}
.article-content img { border-radius: var(--radius); margin: 22px 0; }
.article-content a { font-weight: 600; border-bottom: 2px solid #ffd0bd; }
.article-content a:hover { border-color: var(--primary); }

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}
.tags-label { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }

.share-box {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 26px;
}
.share-label { font-weight: 700; font-size: 14px; color: var(--ink); }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    transition: all .2s;
}
.share-btn:hover { transform: translateY(-2px); opacity: .92; }
.share-btn.fb { background: #1877f2; } .share-btn.tw { background: #111827; }
.share-btn.li { background: #0a66c2; } .share-btn.wa { background: #25d366; }

/* ---------- Post nav ---------- */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 34px;
}
.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    transition: all .25s;
}
.post-nav-link:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.post-nav-link span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.post-nav-link strong { font-size: 14px; color: var(--ink); line-height: 1.4; }
.post-nav-link.next { text-align: right; }

/* ---------- Author box ---------- */
.author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--bg-tint), #fef6f0);
    border: 1px solid #ffe3d1;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 34px;
}
.author-avatar {
    width: 70px; height: 70px;
    flex-shrink: 0;
    border-radius: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), #ff9f45);
    color: #fff; font-size: 30px;
    box-shadow: 0 8px 18px rgba(255,107,53,.35);
}
.author-info span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.author-info h4 { margin: 4px 0 8px; font-size: 19px; }
.author-info p { font-size: 14px; color: var(--muted); }
.author-big-avatar {
    width: 92px; height: 92px;
    margin: 0 auto 12px;
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), #ff9f45);
    color: #fff; font-size: 42px;
    box-shadow: 0 12px 26px rgba(255,107,53,.4);
}
.author-hero { padding: 40px 30px; }

/* ==========================================================================
   COMMENTS
   ========================================================================== */
.comment-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.comments-list { margin-bottom: 30px; }
.comment { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.comment:last-of-type { border-bottom: 0; }
.comment.reply {
    margin: 18px 0 0 56px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 18px;
    border-bottom: 0;
}
.comment-avatar {
    width: 46px; height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 17px;
}
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 5px; flex-wrap: wrap; }
.comment-head strong { font-size: 15px; }
.comment-head span { font-size: 12px; color: var(--muted); }
.comment-body p { font-size: 14px; color: var(--ink-soft); }
.reply-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    padding: 0;
}
.reply-btn:hover { text-decoration: underline; }
.reply-form { margin-top: 14px; }
.reply-form .reply-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.reply-form input, .reply-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 8px;
}
.reply-form input:focus, .reply-form textarea:focus { outline: none; border-color: var(--primary); }
.reply-form textarea { min-height: 80px; }
.comment-form-box h3 { margin-bottom: 20px; font-size: 20px; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: #fff;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,.12); }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-success { background: #ecfdf5; color: var(--success); border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 96px; }
.widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--bg-soft);
}
.widget-title i { color: var(--primary); }

.widget-newsletter {
    background: linear-gradient(135deg, var(--primary), #ff9f45);
    border: none;
    color: #fff;
}
.widget-newsletter .widget-title { color: #fff; border-color: rgba(255,255,255,.25); }
.widget-newsletter .widget-title i { color: #fff; }
.widget-newsletter p { font-size: 14px; margin-bottom: 16px; color: rgba(255,255,255,.95); }
.widget-form { display: flex; flex-direction: column; gap: 10px; }
.widget-form input {
    padding: 12px 16px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    outline: none;
}
.widget-form .btn { background: var(--ink); box-shadow: none; }
.widget-form .btn:hover { background: #000; }
.widget-form-success {
    background: rgba(255,255,255,.22);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: center;
    color: #fff;
}

.widget-list li { border-bottom: 1px solid var(--bg-soft); }
.widget-list li:last-child { border: 0; }
.widget-list a { display: flex; gap: 14px; padding: 12px 0; align-items: center; }
.widget-list img {
    width: 72px; height: 54px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.widget-list div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.widget-list-title {
    font-size: 14px;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.widget-list a:hover .widget-list-title { color: var(--primary); }
.widget-list-meta { font-size: 12px; color: var(--muted); font-weight: 600; }

.widget-cats { display: flex; flex-direction: column; }
.widget-cats a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
}
.widget-cats li:last-child a { border: 0; }
.widget-cats a i { color: var(--primary); font-size: 14px; width: 18px; text-align: center; }
.widget-cats b {
    margin-left: auto;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 12px;
    border-radius: 999px;
    padding: 2px 10px;
}
.widget-cats a:hover b { background: var(--primary); color: #fff; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.widget-cta {
    text-align: center;
    background: var(--bg-soft);
    border: 1px dashed var(--border);
}
.widget-cta > i { font-size: 26px; color: var(--primary); margin-bottom: 8px; }
.widget-cta h4 { font-size: 16px; margin-bottom: 14px; }

/* ==========================================================================
   CATEGORY & SEARCH HERO
   ========================================================================== */
.category-hero {
    background: linear-gradient(135deg, var(--bg-tint), #fff7f0);
    border: 1px solid #ffe3d1;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 34px 24px;
    margin-bottom: 0;
}
.category-hero-inner { display: flex; align-items: center; gap: 20px; }
.category-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 4px; }
.category-hero p { color: var(--muted); max-width: 620px; font-size: 15px; }

.search-page-hero { text-align: center; padding: 40px 0 10px; }
.search-page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 20px; }
.result-count { color: var(--muted); font-weight: 600; margin-top: 4px; }
.search-page-hero .hero-search { max-width: 620px; margin-bottom: 0; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 34px; }
.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
    transition: all .25s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card-icon {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 14px;
    font-size: 20px;
    margin-bottom: 14px;
}
.contact-card h4 { font-size: 17px; margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--muted); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}
.contact-text {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: var(--ink-soft);
    line-height: 1.85;
}
.contact-text h2, .contact-text h3 { margin-bottom: 16px; }
.contact-text p { margin-bottom: 16px; }
.contact-form-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
}
.contact-form-box h2 { font-size: 20px; margin-bottom: 22px; }

/* ==========================================================================
   STATIC PAGE
   ========================================================================== */
.static-page {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 44px);
    max-width: 840px;
    margin: 0 auto;
    color: var(--ink-soft);
    line-height: 1.9;
}
.page-hero.simple { padding: 40px 30px; margin-bottom: 30px; }
.static-page h2 { font-size: 26px; margin: 36px 0 14px; color: var(--ink); }
.static-page h3 { font-size: 20px; margin: 28px 0 10px; color: var(--ink); }
.static-page p { margin-bottom: 18px; }
.static-page ul, .static-page ol { margin: 0 0 18px 24px; list-style: revert; }
.static-page li { margin-bottom: 6px; }

/* ==========================================================================
   PAGINATION / EMPTY / PAGE HERO
   ========================================================================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 14px;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(255,107,53,.3); }

.empty-box {
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 70px 30px;
    color: var(--ink);
}
.empty-box i { font-size: 46px; color: #d4dade; margin-bottom: 16px; display: inline-block; }
.empty-box h2 { margin-bottom: 8px; }
.empty-box p { color: var(--muted); margin-bottom: 18px; }

/* ==========================================================================
   READING PROGRESS + SCROLL TOP
   ========================================================================== */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #ff9f45);
    width: 0;
    z-index: 3000;
    border-radius: 0 999px 999px 0;
}
.scroll-top {
    position: fixed;
    right: 24px; bottom: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 10px 24px rgba(255,107,53,.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s;
    z-index: 1500;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 72px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding: 60px 24px 40px;
}
.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; }
.footer-about p, .footer-text { font-size: 14px; line-height: 1.8; color: #94a3b8; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08);
    color: #e2e8f0;
    font-size: 15px;
    transition: all .2s;
}
.social-links a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-title {
    position: relative;
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
}
.footer-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 34px; height: 3px;
    background: var(--primary);
    border-radius: 3px;
}
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #94a3b8; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.footer-links a i { font-size: 9px; transition: transform .2s; }
.footer-links a:hover { color: #fff; }
.footer-links a:hover i { transform: translateX(3px); color: var(--primary); }
.footer-form { display: flex; margin-top: 14px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.footer-form input {
    flex: 1;
    min-width: 0;
    padding: 13px 18px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}
.footer-form input::placeholder { color: #64748b; }
.footer-form button {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0 22px;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s;
    white-space: nowrap;
}
.footer-form button:hover { background: var(--primary-dark); }
.footer-form-success {
    margin-top: 14px;
    background: rgba(5,150,105,.15);
    border: 1px solid rgba(5,150,105,.4);
    color: #6ee7b7;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
}
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 13px; color: #94a3b8; }
.footer-contact i { color: var(--primary); margin-right: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 24px;
    font-size: 13px;
    color: #64748b;
}
.footer-bottom-inner ul { display: flex; gap: 22px; }
.footer-bottom-inner a { color: #94a3b8; }
.footer-bottom-inner a:hover { color: #fff; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .featured-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c"; }
    .category-grid, .category-grid.all { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .post-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: inline-flex; }
    .main-nav {
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
        z-index: 999;
    }
    .main-nav.open { max-height: 340px; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 12px 16px; }
    .main-nav a { border-radius: var(--radius-sm); }
    .main-nav a.active { box-shadow: none; }
    .posts-grid { grid-template-columns: 1fr 1fr; }
    .category-grid, .category-grid.all { grid-template-columns: 1fr 1fr; }
    .hero-inner { padding: 60px 24px 70px; }
    .hero-stats { gap: 30px; }
    .hero-stat { padding-right: 30px; }
    .post-nav { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .search-bar button { padding: 12px 18px; }
    .float-shape { display: none; }
}

@media (max-width: 480px) {
    .posts-grid, .category-grid, .category-grid.all { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c"; }
    .form-row, .reply-form .reply-fields { grid-template-columns: 1fr; }
    .comment.reply { margin-left: 24px; }
    .container { padding: 0 16px; }
}