/* ════════════════════════════════════════
   BLOGS PAGE — Enhanced Design
════════════════════════════════════════ */

/* ── Hero header ── */
.blogs-hero {
    position: relative;
    padding: 6rem 0 4rem;
    text-align: center;
    overflow: hidden;
}
.blogs-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(0,199,177,.08) 0%, transparent 65%);
    pointer-events: none;
}
.blogs-hero .blogs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 18px;
    border-radius: 100px;
    border: 1px solid rgba(0,199,177,.25);
    background: rgba(0,199,177,.06);
    color: #00C7B1;
    font-size: 12px;
    margin-bottom: 1.5rem;
    letter-spacing: .06em;
}
.blogs-hero h1 {
    background: linear-gradient(180deg, #FFF 35%, rgba(255,255,255,.5) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.blogs-hero p {
    color: rgba(255,255,255,.6);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ── Filter tabs ── */
.blogs-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 1.5rem 0 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 3rem;
}
.blogs-filter-bar button,
.blogs-filter-bar a {
    height: 40px;
    padding: 0 20px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.65);
    font-size: .88rem;
    transition: all .28s ease;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.blogs-filter-bar button:hover,
.blogs-filter-bar a:hover {
    border-color: rgba(0,199,177,.35);
    color: #00C7B1;
    background: rgba(0,199,177,.05);
}
.blogs-filter-bar button.active,
.blogs-filter-bar a.active {
    border-color: #00C7B1;
    color: #00C7B1;
    background: rgba(0,199,177,.1);
    font-weight: 600;
}

/* ── Card enhancements ── */
.cardBlog {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.cardBlog:hover {
    transform: translateY(-6px);
    border-color: rgba(0,199,177,.2);
    box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 30px rgba(0,199,177,.06);
}
.cardBlog .divImage {
    position: relative;
    overflow: hidden;
}
.cardBlog .divImage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45) 100%);
    opacity: 0;
    transition: opacity .3s ease;
}
.cardBlog:hover .divImage::after { opacity: 1; }
.cardBlog .divImage img { transition: transform .5s ease; }
.cardBlog:hover .divImage img { transform: scale(1.05); }
.cardBlog .divText {
    border-top: 1px solid rgba(0,199,177,.12);
}
.cardBlog .fxHead h4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── Pagination override ── */
.blogsContent .pagination {
    justify-content: center;
    margin-top: 3.5rem;
    gap: .75rem;
}

/* ── Empty state ── */
.blogs-empty {
    text-align: center;
    padding: 5rem 0;
    color: rgba(255,255,255,.35);
}
.blogs-empty svg {
    width: 48px;
    height: 48px;
    stroke: rgba(0,199,177,.4);
    margin: 0 auto 1rem;
    display: block;
}
.blogs-empty p {
    margin-bottom: 1.25rem;
}
.blogs-empty-link {
    display: inline-block;
    color: #00C7B1;
    border: 1px solid rgba(0,199,177,.4);
    border-radius: 100px;
    padding: 0 20px;
    height: 40px;
    line-height: 38px;
    text-decoration: none;
    transition: background .25s ease, border-color .25s ease;
}
.blogs-empty-link:hover {
    background: rgba(0,199,177,.1);
    border-color: #00C7B1;
    color: #00C7B1;
}
body.light-mode .blogs-empty { color: rgba(0,0,0,.4); }

@media (max-width: 614px) {
    .blogs-hero { padding: 4.5rem 0 2.5rem; }
    .blogs-filter-bar { gap: 8px; }
    .blogs-filter-bar button,
    .blogs-filter-bar a { height: 36px; padding: 0 16px; font-size: .82rem; }
}

/* ── Light mode overrides ── */
body.light-mode .blogs-hero h1 {
    background: linear-gradient(180deg, #0a0a0a 35%, rgba(0,0,0,.6) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-mode .blogs-hero p { color: rgba(0,0,0,.6); }
body.light-mode .blogs-filter-bar button,
body.light-mode .blogs-filter-bar a {
    border-color: rgba(0,0,0,.12);
    background: rgba(0,0,0,.03);
    color: rgba(0,0,0,.6);
}
body.light-mode .blogs-filter-bar button:hover,
body.light-mode .blogs-filter-bar a:hover { color: #00C7B1; border-color: rgba(0,199,177,.4); background: rgba(0,199,177,.06); }
body.light-mode .blogs-filter-bar button.active,
body.light-mode .blogs-filter-bar a.active { color: #00C7B1; border-color: #00C7B1; background: rgba(0,199,177,.1); }
body.light-mode .cardBlog { border-color: rgba(0,0,0,.08); }
body.light-mode .blogs-empty { color: rgba(0,0,0,.4); }
