﻿/* ═══════════════════════════════════════════════════════════════════════════
   home.css  —  Blog system styles + Book Loader + Full Mobile Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --ink: #0d0d0d;
    --cream: #fff;
    --warm: #e93c49;
    --accent: #e93c49;
    --accent2: #2d6a4f;
    --gold: #d4a853;
    --muted: #6b6560;
    --border: #ddd;
    --card-bg: #ffffff;
    --sidebar-bg: #faf8f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'CenturyGothicRegular', sans-serif;
}

@font-face {
    font-family: 'CenturyGothicRegular';
    src: url('/fonts/gothic/gothic.woff') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    background: var(--cream);
    color: var(--ink);
}

/* ─── SCROLLBAR ─────────────────────────────────────────────────────────── */
*::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 0.6rem rgba(0,0,0,.3);
    background-color: #ffffff;
    border-radius: 0;
}

*::-webkit-scrollbar {
    width: .4rem;
    height: .4rem;
    background-color: #ffffff;
}

*::-webkit-scrollbar-thumb {
    border-radius: 0;
    background-color: #ffffff;
    background-image: -webkit-linear-gradient(5deg, #555555dd 53%, #4a4747 99%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOOK LOADER OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */

#globalLoaderOverlay {
    position: fixed;
    inset: 0;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

    #globalLoaderOverlay.active {
        opacity: 1;
        pointer-events: all;
    }

.loader-book {
    width: 12.5rem;
    height: 8.75rem;
    background: #979794;
    box-sizing: border-box;
    position: relative;
    border-radius: 1rem;
    perspective: 62.5rem;
}

.loader-book::before {
    content: '';
    position: absolute;
    left: .625rem;
    right: .625rem;
    top: .625rem;
    bottom: .625rem;
    border-radius: .5rem;
    background: #f5f5f5 no-repeat;
    background-size: 3.75rem .625rem;
    background-image: linear-gradient(#ddd 6.25rem, transparent 0), linear-gradient(#ddd 6.25rem, transparent 0), linear-gradient(#ddd 6.25rem, transparent 0), linear-gradient(#ddd 6.25rem, transparent 0), linear-gradient(#ddd 6.25rem, transparent 0), linear-gradient(#ddd 6.25rem, transparent 0);
    background-position: .9375rem 1.875rem, .9375rem 3.75rem, .9375rem 5.625rem, 6.5625rem 1.875rem, 6.5625rem 3.75rem, 6.5625rem 5.625rem;
    box-shadow: 0 0 .625rem rgba(0,0,0,.25);
}

.loader-book::after {
    content: '';
    position: absolute;
    width: calc(50% - .625rem);
    right: .625rem;
    top: .625rem;
    bottom: .625rem;
    border-radius: .5rem;
    background: #fff no-repeat;
    background-size: 3.75rem .625rem;
    background-image: linear-gradient(#ddd 6.25rem, transparent 0), linear-gradient(#ddd 6.25rem, transparent 0), linear-gradient(#ddd 6.25rem, transparent 0);
    background-position: 50% 1.875rem, 50% 3.75rem, 50% 5.625rem;
    transform: rotateY(0deg);
    transform-origin: left center;
    animation: paging 1s linear infinite;
}

@keyframes paging {
    to {
        transform: rotateY(-180deg);
        transition: all 0.1s ease-in-out;
    }
}

.loader-label {
    margin-top: 1.5rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse-label 1.4s ease-in-out infinite;
}

@keyframes pulse-label {
    0%, 100% {
        opacity: .4;
    }

    50% {
        opacity: 1;
    }
}

/* ─── Inline skeleton loaders for sidebar widgets ─────────────────────────── */
.skeleton-line {
    height: .75rem;
    border-radius: .4rem;
    background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    margin-bottom: .6rem;
}

    .skeleton-line.short {
        width: 55%;
    }

    .skeleton-line.medium {
        width: 75%;
    }

    .skeleton-line.full {
        width: 100%;
    }

@keyframes shimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Card skeleton */
.card-skeleton {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.card-skeleton-img {
    height: 210px;
    background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

.card-skeleton-body {
    padding: 1.4rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.navbar-custom {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,.04);
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--ink) !important;
    letter-spacing: -1px;
}

    .navbar-brand span {
        color: var(--accent);
    }

.nav-link {
    font-size: .88rem;
    font-weight: 500;
    color: var(--muted) !important;
    padding: .5rem 1rem !important;
    letter-spacing: .3px;
    transition: color .2s;
}

    .nav-link:hover {
        color: var(--accent) !important;
    }

    .nav-link.active {
        color: var(--ink) !important;
    }

.btn-nav-admin {
    background: var(--ink);
    color: #fff !important;
    border-radius: 30px;
    padding: .4rem 1.2rem !important;
    font-size: .82rem;
    font-weight: 600;
}

    .btn-nav-admin:hover {
        background: var(--accent);
    }

.search-bar-nav {
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: .3rem 1rem;
    font-size: .85rem;
    width: 220px;
    outline: none;
}

    .search-bar-nav:focus {
        border-color: var(--accent);
    }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-section {
    background: url(/assets/Blogs.svg.svg) no-repeat center center / cover;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}


.hero-tag {
    background: rgba(200,85,61,.15);
    border: 1px solid rgba(200,85,61,.3);
    color: #f4a58a;
    padding: .25rem .8rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: rgba(255,255,255,.6);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 520px;
}

.hero-search {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.51);
    border-radius: 50px;
    padding: .4rem .4rem .4rem 1.2rem;
    display: flex;
    align-items: center;
    max-width: 500px;
    margin-top: 2rem;
}

    .hero-search input {
        background: transparent;
        border: none;
        outline: none;
        color: #fff;
        font-size: .9rem;
        flex: 1;
        min-width: 0;
    }

        .hero-search input::placeholder {
            color: rgba(255,255,255,.4);
        }

    .hero-search button {
        background: var(--accent);
        border: none;
        color: #fff;
        border-radius: 2rem;
        padding: .5rem 1.5rem;
        font-size: .8rem;
        font-weight: 500;
        cursor: pointer;
        transition: background .2s;
        letter-spacing: .6px;
        white-space: nowrap;
        flex-shrink: 0;
    }

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-dark {
    border-color: #242c35 !important;
    background-color: #242c35 !important;
}

.hero-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero-stat-num {
    font-size: 1.85rem;
    font-weight: 700;
    color: #fff;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,.5);
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORIES BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.categories-bar {
    background: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 65px;
    z-index: 99;
    box-shadow: 0 -1px 30px rgba(0,0,0,.19);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .categories-bar::-webkit-scrollbar {
        height: 0;
    }

    .categories-bar .container > div {
        flex-wrap: nowrap;
    }

.cat-pill {
    display: inline-block;
    padding: .3rem 1.25rem;
    border-radius: .75rem;
    font-size: .835rem;
    font-weight: 400;
    cursor: pointer;
    border: 1.5px solid var(--border);
    color: var(--muted);
    transition: all .2s;
    letter-spacing: .5px;
    margin: .2rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

    .cat-pill:hover, .cat-pill.active {
        background: #242c35;
        color: #fff;
        border-color: var(--ink);
    }

    .cat-pill.active {
        background: var(--accent);
        border-color: var(--accent);
    }

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG GRID
   ═══════════════════════════════════════════════════════════════════════════ */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .3s;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    height: 100%;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,.1);
    }

.blog-card-img {
    position: relative;
    overflow: hidden;
/*    height: 210px;*/
    background: #242c35;
}

    .blog-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position:left;
        transition: transform .4s;
    }

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.badge-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    padding: .2rem .7rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-proj {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent2);
    color: #fff;
    border-radius: 20px;
    padding: .2rem .7rem;
    font-size: .72rem;
    font-weight: 600;
}

.blog-card-body {
    padding: 1.4rem;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: .5rem;
    color: var(--ink);
    text-decoration: none;
    display: block;
}

    .blog-card-title:hover {
        color: var(--accent);
    }

.blog-card-desc {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-top: .8rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: .5px;
}

.author-name {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
}

.meta-sep {
    color: var(--border);
}

.meta-date {
    font-size: .78rem;
    color: var(--muted);
}

.btn-read-more {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap .2s;
}

    .btn-read-more:hover {
        gap: .7rem;
        color: var(--accent);
    }

/* ── FEATURED CARD ───────────────────────────────────────────────────────── */
.blog-card-featured {
    grid-column: span 2;
    display: flex;
    gap: 0;
    flex-direction: row;
}

    .blog-card-featured .blog-card-img {
        width: 45%;
        height: 100%;
        min-height: 260px;
        flex-shrink: 0;
    }

    .blog-card-featured .blog-card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
    }

    .blog-card-featured .blog-card-title {
        font-size: 1.4rem;
    }

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.sidebar-widget {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin: 1.5rem 0rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.sidebar-search {
    border: 1.5px solid var(--border);
    border-radius: 1.5rem;
    padding: .6rem 1rem;
    font-size: .85rem;
    width: 100%;
    outline: none;
}

    .sidebar-search:focus {
        border-color: var(--accent);
    }

.cat-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
    cursor: pointer;
    transition: color .2s;
    text-decoration: none;
    color: var(--ink);
    gap: .5rem;
}

    .cat-list-item:last-child {
        border-bottom: none;
    }

    .cat-list-item:hover {
        color: var(--accent);
    }

    .cat-list-item.active {
        color: var(--accent);
    }

.cat-count {
    background: var(--warm);
    border-radius: .5rem;
    padding: .1rem .5rem;
    font-size: .75rem;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}

.recent-post {
    display: flex;
    gap: .8rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    text-decoration: none;
    color: inherit;
}

    .recent-post:last-child {
        border-bottom: none;
    }

.recent-post-img {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    flex-shrink: 0;
    overflow: hidden;
}

    .recent-post-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.recent-post-title {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    letter-spacing: .5px;
}

.recent-post-date {
    font-size: .75rem;
    color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════════════════ */
.page-link {
    border-radius: 1.2rem !important;
    border: 1.5px solid var(--border);
    color: var(--ink);
    font-size: .85rem;
    margin: .3rem;
    font-weight: 500;
}

.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.page-link:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════════════════ */
.empty-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    background: #fff;
    border-radius: 1rem;
    margin: 1rem 0;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.empty-state-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: .5rem;
}

.empty-state-sub {
    color: #6c757d;
    font-size: .95rem;
    max-width: 380px;
    margin: 0 auto 1.5rem;
}

.empty-state-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.empty-state-badge {
    display: inline-flex;
    align-items: center;
    font-size: .82rem;
    color: #6c757d;
    background: #f1f3f5;
    border-radius: 2rem;
    padding: .35rem .85rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
#BlogsFooter {
    background: #f3f3f3;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    border-radius: 0rem !important;
/*    border-top: 1px solid var(--border);*/
    overflow: hidden;
}

.footer-bg-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #242c35 !important;
    color: #fff !important;
    font-size: .9rem !important;
}

.list-unstyled li a {
    font-size: .9rem !important;
    color: #6b6560 !important;
}
    .list-unstyled li a:hover {
        color: #e93c49 !important;
    }

.footer-font-size {
    font-size: 1.2rem;
    color: #000 !important;
}

.footer-font-size-s {
    font-size: .95rem !important;
    color: #6b6560 !important;
    letter-spacing: .25px;
}

.social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #fff;
    border-radius: .75rem;
    padding: .15rem;
    border: 1px solid var(--border);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG DETAIL — POST NAV
   ═══════════════════════════════════════════════════════════════════════════ */
.post-nav {
    background: #e8e8e8;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all .3s;
    height: 100%;
}

    .post-nav:hover {
        border-color: var(--warm);
        box-shadow: 0 5px 20px rgba(0,0,0,.06);
        color: inherit;
    }

.post-nav-label {
    font-size: .75rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: .4rem;
}

.post-nav-title {
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .3px;
}

/* ─── HERO (detail page) ───────────────────────────────────────────────── */
.badge-cat-hero {
    background: var(--accent);
    color: #fff;
    border-radius: 1.5rem;
    padding: .5rem 1rem;
    font-size: .85rem;
    font-weight: 600;
}

.badge-proj-hero {
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
    border-radius: 1.5rem;
    padding: .5rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.2);
}

.post-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.post-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,.65);
    font-weight: 300;
    max-width: 680px;
    line-height: 1.7;
}

.post-author-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.author-av-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
    letter-spacing: .5px;
}

.post-author-info .name {
    font-weight: 600;
    color: #fff;
    font-size: .9rem;
}

.post-author-info .meta {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.post-stat {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
}

    .post-stat i {
        font-size: .9rem;
    }

/* ─── BLOG CONTENT ───────────────────────────────────────────────────────── */
.post-container {
    max-width: 780px;
}

.blog-content {
    font-size: .95rem;
    line-height: 1.9;
    color: #2a2520;
}

    .blog-content h2 {
        font-size: 1.7rem;
        font-weight: 700;
        color: var(--ink);
        margin: 2.5rem 0 1rem;
    }

    .blog-content h3 {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--ink);
        margin: 2rem 0 .8rem;
    }

    .blog-content p {
        margin-bottom: 1.4rem;
    }

    .blog-content img {
        width: 100%;
        border-radius: 1rem;
        margin: 2rem 0;
        box-shadow: 0 10px 30px rgba(0,0,0,.1);
        height: auto;
    }

    .blog-content blockquote {
        border-left: 4px solid var(--accent);
        padding: 1rem 1.5rem;
        background: #f3f3f3;
        border-radius: 0 10px 10px 0;
        margin: 2rem 0;
        font-style: italic;
        color: var(--muted);
    }

    .blog-content code {
        background: var(--warm);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: .15rem .4rem;
        font-size: .88em;
        color: var(--accent);
    }

    .blog-content pre {
        background: #1a1a2e;
        border-radius: 10px;
        padding: 1.5rem;
        overflow-x: auto;
        margin: 2rem 0;
    }

        .blog-content pre code {
            background: none;
            border: none;
            color: #a8dadc;
            font-size: .88rem;
            line-height: 1.7;
            padding: 0;
        }

    .blog-content ul, .blog-content ol {
        padding-left: 1.5rem;
        margin-bottom: 1.4rem;
    }

    .blog-content li {
        margin-bottom: .4rem;
    }


/* ─── SHARE BAR ──────────────────────────────────────────────────────────── */
.share-bar {
    position: sticky;
    top: 90px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin: .3rem auto;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all .2s;
    text-decoration: none;
}

    .share-btn:hover {
        background: var(--ink);
        color: #fff;
        border-color: var(--ink);
    }

/* ─── READING PROGRESS ───────────────────────────────────────────────────── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 9999;
    transition: width .1s linear;
    width: 0%;
}

/* ─── COMMENT TOGGLE REPLIES ────────────────────────────────────────────── */
.btn-toggle-replies {
    display: inline-flex;
    align-items: center;
    margin-top: .5rem;
    padding: .2rem .6rem;
    font-size: .7rem;
    font-weight: 500;
    color: #000;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 1rem;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
    line-height: 1.4;
}

    .btn-toggle-replies:hover {
        color: var(--bs-body-color);
        border-color: currentColor;
        background: rgba(0,0,0,.04);
    }

.replies-container {
    margin-top: .5rem;
}

/* ─── TAG / BADGE ────────────────────────────────────────────────────────── */
.tag-badge {
    background: var(--warm);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .2rem .65rem;
    font-size: .78rem;
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    display: inline-block;
    margin: .2rem;
}

    .tag-badge:hover {
        background: var(--ink);
        color: #fff;
        border-color: var(--ink);
    }

/* ─── MOBILE FILTER TOGGLE ───────────────────────────────────────────────── */
.mobile-filter-toggle {
    display: none;
}

#sidebarSearchBtn {
    border-radius: 0 2rem 2rem 0 !important;
    padding-right: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤991px) ───────────────────────────────────────────────────── */
@media (max-width: 991px) {

    .hero-section {
        padding: 3rem 0 2.5rem;
    }

    .hero-img-block {
        display: none;
    }

    .blog-card-featured {
        flex-direction: column;
    }

        .blog-card-featured .blog-card-img {
            width: 100%;
            height: 220px;
        }

    .mobile-filter-toggle {
        display: flex;
    }

    .sidebar-desktop {
        display: none !important;
    }

    .share-col {
        display: none;
    }

    /* Categories bar – horizontal scroll */
    .categories-bar {
        top: 56px;
    }

    .col-md-6 {
        width: 50%;
    }
}

/* ── Small mobile (≤576px) ─────────────────────────────────────────────── */
@media (max-width: 576px) {

    .hero-section {
        padding: 2.5rem 0 2rem;
    }

    .hero-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: .95rem;
        text-align: center;
    }

    .hero-search {
        max-width: 100%;
        padding: .35rem .35rem .35rem 1rem;
    }

        .hero-search button {
            padding: .45rem 1rem;
            font-size: .78rem;
        }

    .hero-stats {
        gap: 1.2rem;
        justify-content: center;
    }

    .hero-stat-num {
        font-size: 1.4rem;
    }

    /* All blog cards full width on mobile */
    #blogGrid .col-md-6 {
        width: 100% !important;
    }

    .blog-card-featured {
        flex-direction: column;
    }

        .blog-card-featured .blog-card-img {
            width: 100%;
            height: 200px;
        }

        .blog-card-featured .blog-card-body {
            padding: 1.2rem;
        }

        .blog-card-featured .blog-card-title {
            font-size: 1.1rem;
        }

    /* Footer */
    .footer-font-size-s {
        font-size: 14px;
        line-height: 1.7;
    }

    #BlogsFooter h5 {
        font-size: 16px;
    }

    #BlogsFooter ul li a {
        font-size: 14px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .footer-links {
        gap: 6px;
        font-size: 13px;
    }

    /* Detail page */
    .post-title {
        font-size: 1.5rem;
    }

    .post-subtitle {
        font-size: .92rem;
    }

    .post-stats {
        gap: 1rem;
    }

    .blog-content h2 {
        font-size: 1.4rem;
    }

    .blog-content h3 {
        font-size: 1.15rem;
    }

    .sidebar-widget {
        padding: 1.1rem;
    }

    /* Loader smaller on phones */
    .loader-book {
        width: 12.5rem;
        height: 8.75rem;
    }
}

/* ── Very small (≤380px) ────────────────────────────────────────────────── */
@media (max-width: 380px) {
    .cat-pill {
        font-size: .75rem;
        padding: .25rem .9rem;
    }
}

/* ── Medium tablets (577–991px) ─────────────────────────────────────────── */
@media (min-width: 577px) and (max-width: 991px) {
    .footer-links {
        gap: 8px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }
}

/* ── Offcanvas filter ────────────────────────────────────────────────────── */
.offcanvas-filter .offcanvas-header {
    background: #242c35 !important;
    color: #fff;
}

.offcanvas-filter .btn-close {
    filter: invert(1);
}

.social-icons {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.social-link {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #111;
    text-decoration: none;
    transition: .3s ease;
}

.social-link:hover {
    background: #e93c49;
    color: #fff;
}

.social-link i {
    font-size: 0.8rem;
}