/* ══════════ BLOG PAGES STYLES ══════════ */

:root {
    --blog-card-bg: rgba(255, 255, 255, 0.03);
    --blog-card-border: rgba(255, 255, 255, 0.08);
}

/* ─── Blog Listing ─── */
.blog-hero {
    padding: 120px 0 80px;
    background: linear-gradient(to bottom, #0a0a0a, #111);
    text-align: center;
}

.blog-grid-page {
    padding: 80px 0;
    background: #0a0a0a;
}

.blog-card-alt {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    text-decoration: none;
    display: block;
}

.blog-card-alt:hover {
    transform: translateY(-10px);
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.blog-img-wrap {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card-alt:hover .blog-img-wrap img {
    transform: scale(1.1);
}

.blog-category-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--text-main);
    color: #fff;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-body {
    padding: 30px;
}

.blog-date-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.7;
}

.blog-card-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 600;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--blog-card-border);
}

.blog-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-author-name {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
}

.blog-read-more {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── Single Blog Post Overhaul ─── */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.05);
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--text-main), #ff8a80);
    width: 0%;
    transition: width 0.1s ease;
}

.blog-post-hero {
    height: 85vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(10,10,10,0.8) 70%, #0a0a0a);
}

/* Heritage Pattern for Hero */
.blog-post-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L35 15 L50 20 L35 25 L30 40 L25 25 L10 20 L25 15 Z' stroke='%23D32F2F' stroke-width='0.5' fill='none' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.15;
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 5;
    max-width: 1000px;
    padding: 0 20px;
}

.section-tag.blog-tag {
    background: rgba(211, 47, 47, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(211, 47, 47, 0.2);
    padding: 6px 20px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 50px;
    display: inline-block;
}

.blog-post-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1;
    font-weight: 800;
    color: #fff;
    margin-top: 20px;
    text-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.blog-post-author {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--text-main);
    padding: 3px;
    background: #fff;
}

.blog-post-body {
    margin-top: -120px;
    position: relative;
    z-index: 20;
    padding-bottom: 100px;
}

.blog-content-card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 80px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Subtle Batik Corner Motif */
.blog-content-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' stroke='%23D32F2F' stroke-width='0.5' fill='none' opacity='0.2'/%3E%3Cpath d='M50 10 L60 40 L90 50 L60 60 L50 90 L40 60 L10 50 L40 40 Z' stroke='%23D32F2F' stroke-width='0.5' fill='none' opacity='0.2'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.3;
}

.lead-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1.5;
    color: #fff;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 50px;
    position: relative;
    padding-left: 0;
    border: none;
    text-align: center;
}

.blog-main-content {
    font-size: 1.25rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.blog-main-content p { margin-bottom: 35px; }

.blog-main-content h2, .blog-main-content h3 {
    font-family: var(--font-display);
    color: #fff;
    margin: 80px 0 30px;
    font-weight: 700;
    position: relative;
}

.blog-main-content h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--text-main);
}

.blog-main-content blockquote {
    background: rgba(211, 47, 47, 0.03);
    border: 1px solid rgba(211, 47, 47, 0.1);
    border-radius: 30px;
    padding: 60px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.8rem;
    color: #fff;
    margin: 70px 0;
    text-align: center;
    line-height: 1.4;
}

.blog-main-content blockquote::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    color: var(--text-main);
    opacity: 0.2;
}

/* Sticky Share Upgraded */
.sticky-share-bar {
    position: sticky;
    top: 150px;
    z-index: 100;
}

.share-label {
    writing-mode: vertical-rl;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 30px;
    opacity: 0.6;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.share-btn:hover {
    background: var(--text-main);
    border-color: var(--text-main);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

/* Related Posts Upgrade */
.related-posts-section .section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 40px;
}

.related-post-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    overflow: hidden;
}

.rp-img { height: 200px; }

.rp-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 10px;
}

/* CTA Box Upgrade */
.blog-cta-box {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.15), rgba(0,0,0,0.6));
    border: 1px solid rgba(211, 47, 47, 0.1);
    padding: 80px 40px !important;
}

.blog-cta-box h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: #fff;
}

@media (max-width: 991px) {
    .blog-post-hero {
        height: 60vh;
        padding-top: 120px;
    }
    
    .blog-post-title {
        font-size: 2.2rem !important;
        padding: 0 1rem;
    }
    
    .blog-post-author {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center !important;
    }
    
    .blog-post-author .border-start {
        border-left: none !important;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding: 1.5rem 0 0 0 !important;
        margin: 0 !important;
    }
    
    .blog-content-card {
        padding: 2.5rem 1.5rem !important;
        margin-top: -30px;
    }
    
    /* Horizontal Share Bar for Mobile */
    .sticky-share-bar {
        position: relative;
        top: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        margin-bottom: 2rem;
        width: 100%;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 20px;
        gap: 1rem;
    }
    
    .share-label {
        writing-mode: horizontal-tb;
        margin-bottom: 0;
        margin-right: 0;
    }
    
    .share-btn {
        margin-bottom: 0;
    }
    
    .blog-main-content blockquote {
        padding: 40px 20px;
        font-size: 1.2rem;
        margin: 40px 0;
    }
}

@media (max-width: 576px) {
    .blog-post-hero {
        height: 55vh;
    }
    
    .blog-post-title {
        font-size: 1.8rem !important;
    }
    
    .lead-text {
        font-size: 1.1rem;
    }
    
    .blog-cta-box h2 {
        font-size: 2rem;
    }
}
