/* ============================================================
   BLOG FRONT — FINAL STYLESHEET
   ============================================================ */

/* ===== Layout wrapper ===== */
.blog-page {
    background: #fafafa;
}

/* ============================================================
   FEATURED / HERO POST
   ============================================================ */
.featured-blog {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.featured-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.featured-img--placeholder {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.featured-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    padding: 24px;
    border-radius: 12px;
    max-width: 520px;
}

.featured-badge {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.featured-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #111;
}

.featured-excerpt {
    color: #555;
    font-size: .95rem;
    margin-bottom: 16px;
}

.featured-meta-row {
    display: flex;
    flex-wrap: wrap;
}

.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s ease;
}

.btn-read:hover {
    background: #333;
    color: #fff;
}

/* ============================================================
   CATEGORY FILTER PILLS
   ============================================================ */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.cat-pill {
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
}

.cat-pill:hover,
.cat-pill.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* ============================================================
   BLOG CARDS (listing grid)
   ============================================================ */
.blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.blog-card-img-link {
    position: relative;
    display: block;
}

.blog-card-img-link img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-img-placeholder {
    height: 200px;
    width: 100%;
    background: #eee;
}

.blog-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(17, 17, 17, .85);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.blog-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    font-size: .8rem;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 14px;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
}

.blog-card-title a {
    color: #111;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #556ee6;
}

.blog-card-author {
    display: flex;
    align-items: center;
    font-size: .82rem;
    color: #666;
    margin-bottom: 10px;
}

.author-name {
    color: inherit;
    text-decoration: none;
}

.author-name:hover {
    color: #556ee6;
}

.blog-card-excerpt {
    color: #666;
    font-size: .9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.read-more {
    font-size: .85rem;
    font-weight: 600;
    color: #556ee6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    text-decoration: underline;
}

/* ============================================================
   SHARE ROW / DROPDOWN (shared: listing + detail)
   ============================================================ */
.share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    margin-top: auto;
}

.article-options {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
}

.share-toggle {
    background: #111;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.share-toggle:hover {
    background: #333;
}

.share-toggle-icon {
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    font-size: 17px;
    padding: 4px;
    transition: all .2s ease;
}

.share-toggle-icon:hover,
.share-toggle-icon.active {
    color: #111;
    transform: scale(1.1);
}

.share-dropdown {
    display: none;
    position: absolute;
    z-index: 999;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.share-dropdown.active {
    display: block;
}

.blog-listing .share-dropdown {
    bottom: 120%;
    right: 0;
    margin-top: 1rem;
}

.blog-detail .share-wrapper {
    position: relative;
}

.blog-detail .share-dropdown {
    top: 100%;
    right: 0;
    margin-top: 8px;
}

.social-media-sharing {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-media-sharing a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 15px;
    transition: .2s;
}

.social-media-sharing a:hover {
    background: #111;
    color: #fff;
}

.social-media-sharing .social-icon {
    width: 22px;
    height: 22px;
    border-radius: 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.blog-pagination nav {
    display: flex;
    justify-content: center;
}

/* ============================================================
   ARTICLE / BLOG DETAIL
   ============================================================ */
.article-category {
    display: inline-block;
    background: #f1f3ff;
    color: #556ee6;
    font-size: .8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 14px;
}

.article-title {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
}

.blog-detail .blog-meta {
    gap: 0;
    font-size: .85rem;
}

.author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: -5px;
    margin-right: 4px;
}

.author-avatar--sm {
    width: 20px;
    height: 20px;
}

.author-avatar--lg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.author-bio-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 16px;
}

.author-bio-text {
    font-size: .9rem;
    color: #555;
    margin: 0;
}

.article-featured-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 14px;
}

.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.2rem 0;
}

.blog-content h2,
.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: .8rem;
    font-weight: 700;
    color: #111;
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.tag-pill {
    background: #f1f1f1;
    color: #444;
    font-size: .8rem;
    padding: 5px 12px;
    border-radius: 20px;
}

.tag-pill--sm {
    font-size: .72rem;
    padding: 3px 9px;
}

/* ===== Comments section ===== */
.comments-section {
    border-top: 1px solid #eee;
    padding-top: 28px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
    position: sticky;
    top: 20px;
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
}

.sidebar-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-post-img img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-post-title {
    font-size: .9rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
}

.sidebar-post-title:hover {
    color: #556ee6;
}

.sidebar-post-date {
    font-size: .78rem;
    color: #999;
    margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .featured-img,
    .featured-img--placeholder {
        height: 280px;
    }

    .featured-overlay {
        position: static;
        background: #fff;
        margin-top: -12px;
        border-radius: 0 0 14px 14px;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .sidebar {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 576px) {
    .blog-grid--mobile-1 > div {
        width: 100%;
    }
}
/* ===== Category page header ===== */
.category-header {
    text-align: center;
}

.category-header .cat-pill {
    display: inline-block;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin: 12px 0 6px;
}

.category-subtitle {
    color: #777;
    font-size: .95rem;
}

/* ===== Empty state ===== */
.empty-icon {
    font-size: 2.5rem;
    color: #ccc;
    display: block;
    margin-bottom: 12px;
}
.blog-detail {
    overflow: hidden;
}

.blog-article {
    width: 100%;
    overflow: hidden;
    word-break: break-word;
}

.blog-content {
    width: 100%;
    overflow: hidden;
}

.blog-content img,
.blog-content iframe,
.blog-content table,
.blog-content video,
.blog-content pre,
.blog-content code {
    max-width: 100%;
}

.blog-content table {
    display: block;
    overflow-x: auto;
}

.blog-content pre {
    overflow-x: auto;
}.blog-detail .row {
    align-items: flex-start;
}

.sidebar {
    position: sticky;
    top: 100px;
}.footer-main {
    margin-top: 80px;
}

.footer-newsletter {
    margin-top: 0;
}