/* Blogs Page CSS */

/* Hero Section */
/* Hero Section */
/* Hero Section */
.blog-hero {
    position: relative;
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 75, 167, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}

/* Blog Grid */
.blog-grid-section {
    padding: 80px 0;
    background: #f8fafc;
}

.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(29, 75, 167, 0.15);
    border-color: rgba(29, 75, 167, 0.2);
}

.blog-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
    /* Aspect ratio */
}

.blog-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #1d4ba7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-title {
    color: #1d4ba7;
}

.blog-excerpt {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-more {
    color: #1d4ba7;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.read-more:hover {
    gap: 10px;
}

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

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.page-link:hover,
.page-link.active {
    background: #1d4ba7;
    color: white;
    border-color: #1d4ba7;
}

/* --- Blog Single Page Styles (Premium Refinement) --- */

/* Reading Progress - Integrated in Sidebar */
.reading-status-card {
    background: white;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.progress-circle-container {
    position: relative;
    width: 48px;
    height: 48px;
}

.progress-circle-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 4;
}

.progress-circle-bar {
    fill: none;
    stroke: #1D4BA7;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

.progress-text {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
}

/* Single Hero - Extremely Clean */
.single-hero {
    position: relative;
    padding: 80px 0 120px;
    background: #ffffff;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(29, 75, 167, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(91, 203, 250, 0.3) 0%, transparent 50%);
    z-index: 1;
}

.single-hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.single-category {
    display: inline-block;
    background: #eff6ff;
    color: #1D4BA7;
    border: 1px solid #dbeafe;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-title {
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #64748b;
    font-size: 14px;
}

.single-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.single-meta-item i {
    color: #1D4BA7;
    font-size: 14px;
}

/* Featured Image - Adjusted Overlap */
.featured-image-container {
    margin-top: -100px;
    position: relative;
    z-index: 20;
    padding: 0 20px;
}

.featured-image {
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
    border-radius: 32px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

/* Article Layout */
.single-content-section {
    padding: 100px 0 140px;
    background: #ffffff;
}

/* TOC Sidebar - Premium */
.toc-wrapper {
    position: sticky;
    top: 100px;
    padding: 0;
    background: transparent;
    border: none;
}

.toc-title {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 24px;
    display: block;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toc-link {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s;
    display: block;
    line-height: 1.4;
}

.toc-link:hover,
.toc-link.active {
    color: #1D4BA7;
    transform: translateX(4px);
}

.toc-inner {
    background: #fdfdfe;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* Global Premium Shadow */
.premium-shadow {
    box-shadow: 0 20px 50px -12px rgba(29, 75, 167, 0.08);
}

/* Content Typography */
.article-body {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.8;
    color: #334155;
}

.article-body p {
    margin-bottom: 32px;
}

.article-body h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: #0f172a;
    margin: 48px 0 20px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 32px 0 16px;
}

/* Basic Typography inside Article */
.article-body p a {
    color: #1D4BA7;
    text-decoration: underline;
    text-decoration-color: rgba(29, 75, 167, 0.3);
    text-underline-offset: 4px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.article-body a:hover {
    color: #0f172a;
    text-decoration-color: #0f172a;
}

.article-body ul,
.article-body ol {
    margin-bottom: 32px;
    padding-left: 24px;
}

.article-body ul {
    list-style-type: disc;
}

.article-body ol {
    list-style-type: decimal;
}

.article-body li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-body strong {
    font-weight: 700;
    color: #0f172a;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 40px 0;
}

.article-body hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 48px 0;
}

/* Content Typography Refinement */
.article-body blockquote {
    margin: 40px 0;
    padding: 32px 40px;
    background: #f8fafc;
    border-radius: 24px;
    border-left: 4px solid #1D4BA7;
    font-size: 1.1rem;
    /* Shrunk from 1.2em */
    font-weight: 600;
    font-style: normal;
    /* Less traditional, more modern */
    color: #334155;
    position: relative;
    line-height: 1.6;
}

.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 60px;
    color: rgba(29, 75, 167, 0.08);
    font-family: serif;
    line-height: 1;
}

/* Share & Author Sections */
.article-footer {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #f1f5f9;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #f8fafc;
    padding: 40px;
    border-radius: 32px;
    margin-bottom: 60px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.author-bio {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.share-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1D4BA7;
    padding: 24px 40px;
    border-radius: 20px;
    color: white;
}

.share-btns {
    display: flex;
    gap: 16px;
}

.share-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s;
    color: white;
}

.share-btn:hover {
    background: white;
    color: #1D4BA7;
    transform: translateY(-2px);
}

/* Related Posts Section */
.related-posts {
    padding: 120px 0;
    background: #f8fafc;
}

@media (max-width: 1024px) {
    .featured-image-container {
        margin-top: -120px;
    }

    .single-hero {
        padding: 120px 0 180px;
    }
}