/* ══════════════════════════════════════════════
   KUMARSOFT BLOG — WIRED-STYLE MAGAZINE LAYOUT
   Extracted from blog.php + refined
   ══════════════════════════════════════════════ */

:root {
    --blog-brand: #e65c00;
    --blog-brand-dark: #b84700;
    --blog-yellow: #f7c948;
    --blog-yellow-dark: #f0a500;
    --blog-border: #f5c4a4;
    --blog-bg: #fff8f4;
    --blog-ink: #1a1a1a;
    --blog-muted: #888888;
    --blog-ease: cubic-bezier(.22, 1, .36, 1);
}

.wired-section-wrap {
    background: var(--blog-bg);
    border-top: 3px solid var(--blog-brand);
    padding: 50px 0 60px;
}
.wired-cat-block { margin-bottom: 0; }
.wired-cat-mt { margin-top: 52px; padding-top: 48px; border-top: 1px solid var(--blog-border); }

/* ── Category filter chips ── */
.blog-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.blog-filter-chip {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    padding: 7px 18px; border: 1.5px solid var(--blog-border); color: var(--blog-brand-dark);
    background: #fff; text-decoration: none; transition: all .2s var(--blog-ease);
}
.blog-filter-chip:hover,
.blog-filter-chip.active { background: var(--blog-brand); border-color: var(--blog-brand); color: #fff; }
.blog-filter-chip:focus-visible,
.wired-big-post:focus-visible,
.wired-small-post:focus-visible,
.wired-see-all:focus-visible {
    outline: 2px solid var(--blog-brand);
    outline-offset: 3px;
}

/* ── Category header ── */
.wired-cat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.wired-cat-name-wrap { display: flex; align-items: center; gap: 16px; flex: 1; }
.wired-cat-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
    background: var(--blog-yellow); color: var(--blog-ink); padding: 5px 16px; white-space: nowrap;
}
.wired-cat-line { flex: 1; height: 2px; background: var(--blog-brand); opacity: .25; display: block; }
.wired-see-all {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    color: var(--blog-brand); border-bottom: 2px solid var(--blog-brand); padding-bottom: 2px;
    white-space: nowrap; transition: opacity .2s var(--blog-ease); text-decoration: none;
}
.wired-see-all:hover { opacity: .7; color: var(--blog-brand); }

.wired-posts-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }

/* ── BIG (featured) post ── */
.wired-big-post {
    display: block; color: inherit; text-decoration: none;
    background: #fff; transition: box-shadow .35s var(--blog-ease), transform .35s var(--blog-ease);
}
.wired-big-post:hover { box-shadow: 0 22px 44px rgba(230, 92, 0, .16); transform: translateY(-3px); }
.wired-big-img-wrap { position: relative; overflow: hidden; margin-bottom: 16px; aspect-ratio: 8 / 5; background: #f1e3d8; }
.wired-big-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .7s var(--blog-ease); border-bottom: 4px solid var(--blog-brand);
}
.wired-big-post:hover .wired-big-img-wrap img { transform: scale(1.045); }
.wired-img-cat {
    position: absolute; top: 14px; left: 14px; background: var(--blog-yellow); color: var(--blog-ink);
    font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 900;
    letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px;
}
.wired-big-title {
    font-family: 'Barlow Condensed', sans-serif; font-size: 1.75rem; font-weight: 900;
    text-transform: uppercase; color: var(--blog-ink); line-height: 1.15; margin-bottom: 10px;
    letter-spacing: -.5px; transition: color .2s var(--blog-ease);
}
.wired-big-post:hover .wired-big-title { color: var(--blog-brand); }
.wired-big-excerpt { font-family: 'Source Sans 3', sans-serif; font-size: .94rem; color: #555; line-height: 1.65; margin-bottom: 12px; }
.wired-big-meta {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: .5px;
    text-transform: uppercase; color: var(--blog-muted); padding-top: 12px; border-top: 1px solid var(--blog-border);
}
.wired-meta-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wired-read-time { color: var(--blog-muted); }
.wired-read-time i { color: var(--blog-yellow-dark); }
.wired-read-more { color: var(--blog-brand); font-weight: 800; font-size: 12px; }

/* ── SMALL posts — 2 col grid ── */
.wired-small-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; border-left: 1px solid var(--blog-border); padding-left: 28px; align-content: start; }
.wired-small-post { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: opacity .25s var(--blog-ease), transform .25s var(--blog-ease); }
.wired-small-post:hover { opacity: .9; transform: translateY(-2px); }
.wired-small-img { width: 100%; overflow: hidden; margin-bottom: 10px; aspect-ratio: 3 / 2; background: #f1e3d8; }
.wired-small-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-bottom: 3px solid var(--blog-brand); transition: transform .5s var(--blog-ease); }
.wired-small-post:hover .wired-small-img img { transform: scale(1.07); }
.wired-small-cat { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blog-yellow-dark); margin-bottom: 4px; display: block; }
.wired-small-title {
    font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 800; color: var(--blog-ink);
    line-height: 1.2; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden; transition: color .2s var(--blog-ease);
}
.wired-small-post:hover .wired-small-title { color: var(--blog-brand); }
.wired-small-date { font-size: 11px; color: #aaa; margin-top: 6px; display: flex; align-items: center; gap: 8px; }

/* ── Empty state ── */
.blog-empty-state { text-align: center; padding: 70px 0; color: var(--blog-muted); }
.blog-empty-state i { color: var(--blog-border); font-size: 2.6rem; margin-bottom: 16px; display: block; }
.blog-empty-state p { font-size: .95rem; }

/* ── VIEW TABS: Blog Posts / Case Studies ── */
.view-tabs-wrap { display: flex; justify-content: center; margin-bottom: 30px; }
.view-tabs {
    display: inline-flex; gap: 4px; background: #fff; border: 1.5px solid var(--blog-border);
    padding: 5px; border-radius: 50px;
}
.view-tab {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 800;
    letter-spacing: .5px; text-transform: uppercase; color: var(--blog-brand-dark);
    padding: 10px 24px; border-radius: 50px; text-decoration: none;
    transition: all .25s var(--blog-ease);
}
.view-tab:hover { background: var(--blog-bg); }
.view-tab.active { background: linear-gradient(135deg, var(--blog-brand), #ff7a1f); color: #fff; box-shadow: 0 6px 18px rgba(230,92,0,.3); }
.view-tab .vt-count {
    background: rgba(0,0,0,.08); font-size: 11px; padding: 1px 9px; border-radius: 10px; font-weight: 700;
}
.view-tab.active .vt-count { background: rgba(255,255,255,.25); }

.view-intro { text-align: center; max-width: 620px; margin: 0 auto 38px; }
.view-intro p { font-family: 'Source Sans 3', sans-serif; font-size: .96rem; color: #777; line-height: 1.6; }

/* ── CASE STUDY CARDS (embedded in blog.php Case Studies tab) ── */
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cs-card { display: block; background: #fff; border: 1px solid var(--blog-border); text-decoration: none; color: inherit; transition: transform .3s var(--blog-ease), box-shadow .3s var(--blog-ease); }
.cs-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(230,92,0,.16); }
.cs-card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 8/5.2; background: #f1e3d8; }
.cs-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; border-bottom: 3px solid var(--blog-brand); transition: transform .6s var(--blog-ease); }
.cs-card:hover .cs-card-img-wrap img { transform: scale(1.07); }
.cs-card-cat { position: absolute; top: 12px; left: 12px; background: var(--blog-yellow); color: var(--blog-ink); font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; }
.cs-card-logo { position: absolute; bottom: -18px; right: 16px; background: #fff; border-radius: 6px; padding: 6px 10px; box-shadow: 0 4px 12px rgba(0,0,0,.14); }
.cs-card-logo img { height: 24px; max-width: 90px; object-fit: contain; display: block; }
.cs-card-body { padding: 26px 18px 20px; }
.cs-card-client { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--blog-brand); margin-bottom: 6px; }
.cs-card-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--blog-ink); line-height: 1.25; margin-bottom: 10px; text-transform: uppercase; transition: color .2s var(--blog-ease); }
.cs-card:hover .cs-card-title { color: var(--blog-brand); }
.cs-card-excerpt { font-family: 'Source Sans 3', sans-serif; font-size: .88rem; color: #666; line-height: 1.6; margin-bottom: 14px; }
.cs-card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--blog-border); padding-top: 12px; }
.cs-card-metric { font-size: 12px; font-weight: 700; color: #1a7a1a; }
.cs-card-metric span { color: #888; font-weight: 500; }
.cs-card-view { color: var(--blog-brand); font-weight: 800; font-size: 12px; }

@media (max-width: 992px) { .cs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
    .cs-grid { grid-template-columns: 1fr; }
    .view-tab { padding: 9px 16px; font-size: 12px; }
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .wired-posts-grid { grid-template-columns: 1fr; }
    .wired-small-stack { grid-template-columns: 1fr 1fr; border-left: none; padding-left: 0; border-top: 1px solid var(--blog-border); padding-top: 20px; }
}
@media (max-width: 768px) {
    .wired-cat-name { font-size: 12px; padding: 4px 12px; }
    .wired-big-title { font-size: 1.45rem; }
}
@media (max-width: 480px) {
    .wired-small-stack { grid-template-columns: 1fr; }
    .blog-filter-bar { gap: 8px; }
    .blog-filter-chip { padding: 6px 14px; font-size: 12px; }
}