/* === Anigdha Italy — Blog Single Post, Sidebar & Hovers === */

/* ═══════════════════════════════════════
   SINGLE POST — Layout
   ═══════════════════════════════════════ */
.single-post-wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 40px 100px;
    font-family: 'Poppins', sans-serif;
}

.single-post-wrap::after {
    content: '';
    display: table;
    clear: both;
}

.blog-sidebar {
    float: right;
    width: 380px;
    margin-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-self: flex-start;
}

.single-post-article {
    overflow: hidden; /* BFC to fill remaining width */
    background: #FFFFFF;
    border: 1px solid #EDEFF1;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(22,24,26,0.04);
}

/* Featured Image — bleeds to card edges */
.single-post-hero {
    position: relative;
    height: 520px;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    margin: -40px -40px 30px;
}

.single-post-date-badge {
    position: absolute;
    right: 26px;
    bottom: 26px;
    width: 74px;
    height: 74px;
    border-radius: 6px;
    background: #C82935;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    line-height: 1.15;
    pointer-events: none;
}

/* Tags & Share Bar */
.single-post-tagbar {
    background: #fff;
    border: 1px solid #EDEFF1;
    border-radius: 8px;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    margin: 34px 0;
    box-shadow: 0 8px 24px rgba(22,24,26,0.05);
    flex-wrap: wrap;
    gap: 16px;
}

/* ═══════════════════════════════════════
   BLOG SIDEBAR — Cards
   ═══════════════════════════════════════ */
.blog-sidebar-card {
    background: #fff;
    border: 1px solid #EDEFF1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(22,24,26,0.05);
}

.blog-sidebar-form {
    background: #16181A;
    border-color: #16181A;
}

.blog-sidebar-flag {
    height: 3px;
    display: flex;
}

.blog-sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px 14px;
}

.blog-sidebar-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #F2F3F4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blog-sidebar-form .blog-sidebar-icon {
    background: #C82935;
}

.blog-sidebar-card-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #16181A;
}

/* Search */
.blog-search-form {
    display: flex;
    align-items: stretch;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #EDEFF1;
}

.blog-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 18px;
    font-size: 15px;
    color: #16181A;
    font-family: 'Poppins', sans-serif;
}

.blog-search-btn {
    width: 52px;
    background: #C82935;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}

.blog-search-btn:hover {
    background: #16181A;
}

/* Popular Posts */
.blog-popular-post {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-decoration: none;
}

.blog-popular-thumb {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border-radius: 6px;
    overflow: hidden;
}

/* ═══════════════════════════════════════
   BLOG LISTING — Layout
   ═══════════════════════════════════════ */
.blog-listing-wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 40px 100px;
    font-family: 'Poppins', sans-serif;
}

.blog-listing-wrap::after {
    content: '';
    display: table;
    clear: both;
}

.blog-listing-main {
    overflow: hidden; /* BFC */
}

/* Card Grid */
.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #EDEFF1;
    box-shadow: 0 4px 16px rgba(22,24,26,0.04);
    display: flex;
    flex-direction: column;
}

.blog-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.blog-card-date {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 62px;
    height: 62px;
    border-radius: 6px;
    background: #C82935;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    line-height: 1.15;
    pointer-events: none;
}

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

.blog-card-title {
    margin: 0 0 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #16181A;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.7;
    color: #7A8189;
    flex: 1;
}

.blog-read-more {
    font-size: 15px;
    font-weight: 600;
    color: #C82935;
    display: inline-flex;
    align-items: center;
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.blog-page-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: #F2F3F4;
    color: #16181A;
    transition: background .2s;
}

.blog-page-num.is-active {
    background: #C82935;
    color: #fff;
}

.blog-page-num:hover:not(.is-active) {
    background: #E8E9EB;
}

/* ═══════════════════════════════════════
   BLOG — Hover States
   ═══════════════════════════════════════ */
.blog-card,
.bc-card { transition: transform .25s, box-shadow .25s; }
.blog-card:hover,
.bc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,27,51,.12); }
.blog-card-title:hover { color: #C82935 !important; }
.blog-read-more:hover { color: #C82935 !important; }
.blog-sidebar-title:hover { color: #C82935 !important; }
.blog-sidebar-cat:hover { color: #C82935 !important; }
.blog-tag:hover { background: #C82935 !important; color: #fff !important; }
.blog-share-link:hover { color: #C82935 !important; }
.comment-submit-btn:hover { background: #16181A !important; }

/* Single post content styling moved to content.css */

/* ═══════════════════════════════════════
   SINGLE POST — Responsive
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .single-post-hero {
        height: 360px;
        margin: -30px -30px 24px;
    }
}

@media (max-width: 768px) {
    .single-post-wrap,
    .blog-listing-wrap {
        display: flex;
        flex-direction: column;
        padding: 60px 24px 80px;
    }
    .blog-sidebar {
        float: none;
        width: 100%;
        margin-left: 0;
        order: 2;
        position: static;
    }
    .single-post-article,
    .blog-listing-main {
        order: 1;
        margin-bottom: 40px;
    }
    .single-post-article {
        padding: 24px;
    }
    .single-post-hero {
        height: 260px;
        margin: -24px -24px 24px;
    }
    .single-post-date-badge {
        width: 60px;
        height: 60px;
        right: 16px;
        bottom: 16px;
    }
    .single-post-date-badge span:first-child {
        font-size: 18px;
    }
    .single-post-date-badge span:last-child {
        font-size: 11px;
    }
    .single-post-tagbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    /* Content responsive moved to content.css */
    .blog-card-grid {
        grid-template-columns: 1fr;
    }
    .blog-card-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .single-post-wrap,
    .blog-listing-wrap {
        padding: 40px 16px 60px;
    }
    .single-post-article {
        padding: 20px;
    }
    .single-post-hero {
        height: 200px;
        margin: -20px -20px 20px;
    }
    .blog-card-title {
        font-size: 18px;
    }
    /* Content responsive moved to content.css */
}
