/* C:\xampp\htdocs\techsolution\css\blog.css */
/* Dark theme with very subtle red accents */

:root {
    --red:       #b01c2a;      /* darker, less intense red */
    --red-dark:  #8a1622;
    --red-mid:   #a70707;      /* softer red for highlights */
    --red-soft:  rgba(176,28,42,0.25);
    --black:     #0d0d0d;
    --white:     #ffffff;
    --bg-main:   #0f0f12;      /* neutral dark, not reddish */
    --bg-card:   #16161a;
    --g100:      #1c1c22;
    --g200:      #2a2a32;
    --font-main: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --ease:      cubic-bezier(.4,0,.2,1);
}

/* ── Scope everything under body.page-blog ── */
body.page-blog {
    font-family: var(--font-main) !important;
    background: var(--bg-main) !important;
    color: #dddde6 !important;
    overflow-x: hidden;
    font-weight: 400;
    line-height: 1.5;
}

/* ---- HERO (subtle red glow) ---- */
body.page-blog .blog-hero {
    background: linear-gradient(160deg, #121216 0%, #0a0a0d 50%, #121216 100%) !important;
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}
body.page-blog .blog-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(176,28,42,0.12) 0%, transparent 70%);
    pointer-events: none;
}
body.page-blog .blog-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(176,28,42,0.4), transparent);
}
body.page-blog .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--red-mid);
    margin-bottom: 18px;
    animation: fadeUp .6s ease both .1s;
}
body.page-blog .hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px; height: 2px;
    background: rgba(176,28,42,0.5);
}
body.page-blog .blog-hero h1 {
    font-family: var(--font-main);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -.025em;
    margin-bottom: 16px;
    animation: fadeUp .6s ease both .2s;
}
body.page-blog .blog-hero h1 span { color: var(--red-mid); opacity: 0.85; }
body.page-blog .blog-hero .hero-sub {
    font-size: .98rem; font-weight: 400;
    color: rgba(255,255,255,.5);
    max-width: 500px;
    line-height: 1.75;
    margin: 0;
    animation: fadeUp .6s ease both .32s;
}

/* ---- SECTION ---- */
body.page-blog .blog-section {
    padding: 68px 0 90px;
    background: var(--bg-main) !important;
}
body.page-blog .section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 12px;
    flex-wrap: wrap;
}
body.page-blog .section-top h2 {
    font-family: var(--font-main);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
    color: #fff !important;
    margin: 0;
}
body.page-blog .section-top h2 .acc { color: var(--red-mid); opacity: 0.7; }
body.page-blog .post-count {
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,.3);
}

/* ---- CARDS (very subtle red border on hover) ---- */
body.page-blog .blog-card {
    background: var(--bg-card) !important;
    border-radius: 16px;
    border: 1px solid rgba(176,28,42,0.1) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    animation: fadeUp .5s ease both;
}
body.page-blog .blog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(176,28,42,0.5);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
body.page-blog .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,.5);
    border-color: rgba(176,28,42,0.25) !important;
}
body.page-blog .blog-card:hover::before { opacity: 0.6; }

body.page-blog .card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--g100);
    flex-shrink: 0;
}
body.page-blog .card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
body.page-blog .blog-card:hover .card-img-wrap img { transform: scale(1.04); }
body.page-blog .img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(176,28,42,0.2);
    font-size: 2rem;
    background: linear-gradient(135deg, #16161a, #1c1c22);
}
body.page-blog .cat-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(176,28,42,0.7);
    color: var(--white);
    font-size: 10px; font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 40px;
    z-index: 1;
    backdrop-filter: blur(2px);
}

body.page-blog .card-body-inner {
    padding: 20px 22px 24px;
    display: flex; flex-direction: column; flex: 1;
    background: var(--bg-card) !important;
}
body.page-blog .card-meta {
    display: flex; align-items: center;
    gap: 12px; margin-bottom: 9px;
}
body.page-blog .card-meta span {
    font-size: 11px; font-weight: 500;
    color: rgba(255,255,255,.3);
    display: flex; align-items: center; gap: 4px;
}
body.page-blog .card-meta i { font-size: 9px; color: var(--red-mid); opacity: 0.6; }
body.page-blog .card-title {
    font-family: var(--font-main);
    font-size: 1rem; font-weight: 700;
    color: #f0f0f4 !important;
    line-height: 1.35;
    margin-bottom: 9px;
    transition: color .22s ease;
}
body.page-blog .blog-card:hover .card-title { color: var(--red-mid) !important; opacity: 0.9; }
body.page-blog .card-excerpt {
    font-size: .83rem; font-weight: 400;
    color: rgba(255,255,255,.45) !important;
    line-height: 1.68;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.page-blog .card-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(176,28,42,0.1) !important;
    display: flex; align-items: center; justify-content: space-between;
}
body.page-blog .read-more {
    display: inline-flex; align-items: center;
    gap: 6px;
    font-size: 12px; font-weight: 700;
    color: rgba(176,28,42,0.8) !important;
    text-decoration: none;
    transition: gap .22s ease;
}
body.page-blog .read-more:hover { gap: 10px; text-decoration: none; color: var(--red-mid) !important; }
body.page-blog .read-more i { font-size: 10px; }
body.page-blog .read-time {
    font-size: 11px; font-weight: 500;
    color: rgba(255,255,255,.25);
}

/* ---- EMPTY STATE ---- */
body.page-blog .empty-state {
    text-align: center; padding: 80px 20px;
    color: rgba(255,255,255,.25);
}
body.page-blog .empty-state i { font-size: 3rem; margin-bottom: 14px; display: block; opacity: .3; }

/* ---- PAGINATION (subtle red on active/hover) ---- */
body.page-blog .pag-wrap {
    display: flex; justify-content: center; align-items: center;
    gap: 6px; margin-top: 52px; flex-wrap: wrap;
}
body.page-blog .pag-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(176,28,42,0.15) !important;
    background: var(--bg-card) !important;
    color: rgba(255,255,255,.5) !important;
    font-family: var(--font-main);
    font-size: .82rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: all .22s ease;
}
body.page-blog .pag-btn:hover {
    border-color: rgba(176,28,42,0.5) !important;
    color: #fff !important;
    background: rgba(176,28,42,0.08) !important;
    text-decoration: none;
}
body.page-blog .pag-btn.active {
    background: rgba(176,28,42,0.7) !important;
    border-color: rgba(176,28,42,0.7) !important;
    color: var(--white) !important;
    box-shadow: 0 2px 8px rgba(176,28,42,0.2);
    pointer-events: none;
}
body.page-blog .pag-btn.disabled { opacity: .3; pointer-events: none; }
body.page-blog .pag-btn i { font-size: 11px; }
body.page-blog .pag-info {
    font-size: 12px; font-weight: 500;
    color: rgba(255,255,255,.25);
    margin: 0 6px; white-space: nowrap;
}
body.page-blog .pag-ellipsis {
    font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,.25); padding: 0 4px;
}

/* ---- CTA SECTION (very soft red) ---- */
body.page-blog .cta-strip {
    background: linear-gradient(135deg, #121216 0%, #0a0a0d 60%, #121216 100%) !important;
    padding: 80px 0;
    position: relative; overflow: hidden;
}
body.page-blog .cta-strip::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(176,28,42,0.3), transparent);
}
body.page-blog .cta-strip::after {
    content: '';
    position: absolute; bottom: -100px; right: -60px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(176,28,42,0.08) 0%, transparent 70%);
    pointer-events: none;
}
body.page-blog .cta-eye {
    font-size: 11px; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--red-mid);
    margin-bottom: 13px;
    display: flex; align-items: center; gap: 8px;
    opacity: 0.8;
}
body.page-blog .cta-eye::before {
    content: ''; display: block;
    width: 20px; height: 2px;
    background: rgba(176,28,42,0.5);
}
body.page-blog .cta-strip h2 {
    font-family: var(--font-main);
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    font-weight: 800; color: var(--white) !important;
    line-height: 1.1; letter-spacing: -.02em; margin-bottom: 12px;
}
body.page-blog .cta-strip h2 span { color: var(--red-mid); opacity: 0.85; }
body.page-blog .cta-strip .cta-desc {
    color: rgba(255,255,255,.5);
    font-size: .93rem; font-weight: 400;
    line-height: 1.65; max-width: 420px; margin: 0;
}
body.page-blog .cta-col-right {
    display: flex; flex-direction: column;
    align-items: flex-end; justify-content: center;
    gap: 12px; height: 100%;
}
body.page-blog .btn-consult {
    display: inline-flex; align-items: center; gap: 12px;
    background: rgba(176,28,42,0.75);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: .92rem; font-weight: 700;
    padding: 15px 30px; border-radius: 60px;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
    white-space: nowrap; position: relative; z-index: 1;
    backdrop-filter: blur(2px);
}
body.page-blog .btn-consult:hover {
    background: rgba(176,28,42,0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(176,28,42,0.2);
    color: var(--white); text-decoration: none;
}
body.page-blog .btn-ci {
    width: 30px; height: 30px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    transition: transform .25s ease;
}
body.page-blog .btn-consult:hover .btn-ci { transform: rotate(45deg); }
body.page-blog .cta-note {
    font-size: 11px; font-weight: 500;
    color: rgba(255,255,255,.25);
}
body.page-blog .cta-note i { margin-right: 4px; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}
body.page-blog .blog-card:nth-child(1) { animation-delay: .05s; }
body.page-blog .blog-card:nth-child(2) { animation-delay: .12s; }
body.page-blog .blog-card:nth-child(3) { animation-delay: .19s; }
body.page-blog .blog-card:nth-child(4) { animation-delay: .26s; }
body.page-blog .blog-card:nth-child(5) { animation-delay: .33s; }
body.page-blog .blog-card:nth-child(6) { animation-delay: .40s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 767.98px) {
    body.page-blog .blog-hero   { padding: 60px 0 48px; }
    body.page-blog .blog-section { padding: 44px 0 60px; }
    body.page-blog .section-top  { flex-direction: column; align-items: flex-start; }
    body.page-blog .cta-col-right { align-items: flex-start; margin-top: 28px; }
    body.page-blog .btn-consult  { width: 100%; justify-content: center; }
}