/* --- Root Variables (Same as your theme) --- */
:root {
    --text: #2a2e35;
    --primary-dark: #0D1B2A;
    --header: #0f172a;
    --navlink: #e6f3ff;
    --teal: #006562;
    --teal-glow: #00656280;
    --yellow: #FDEB9E;
    --logo: #9daec2;
    --white: #ffffff;
    --headind2: "Chelsea Market", system-ui;
    --font-main: "DM Serif Text", serif;
    --para: "Funnel Sans", sans-serif;
    --transition: all 0.3s ease-in-out;
}

/* --- Layout & SEO-friendly Typography --- */
body {
    background-color: #fcfdfe;
    /* Very clean, minimal blue-tinted white */
    margin: 0;
    font-family: var(--para);
    line-height: 1.8;
    /* Optimal for long reading */
    color: #333;
    /* Slightly softer than pure black for eyes */
}

/* BLOG PAGE STYLES - Wordora */
main {
    margin-top: 100px;
    margin-bottom: 50px;
}

/* Layout Container */
.blogSec {
    max-width: 1000px;
    /* Commercial standard width */
    margin: 7px auto;
    padding: 0 20px;
    color: var(--text);
    line-height: 1.4;
    
}

article {

    animation: fadeIn 0.8s ease-in-out;

}

/* Typography Hierarchy */
article h1 {
    font-family: var(--headind2);
    font-size: clamp(2rem, 5vw, 2.5rem);
    /* Responsive font size */
    color: var(--primary-dark);
    line-height: 1.1;
    margin-bottom: 30px;
    /* text-align: center; */
}

/* Blog Hero Section */
.blog-hero {
    margin-bottom: 40px;
    animation: slideDown 0.6s ease-out;
}

.blog-title {
    font-family: var(--headind2);
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Uploader / Meta Section */
.uploader {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
    border-left: 4px solid var(--teal);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 101, 98, 0.08);
    transition: var(--transition);
}

.uploader-img img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--teal);
    padding: 2px;
}

.uploader-det {
    display: flex;
    flex-direction: column;
}

#uploader-name {
    font-family: var(--para);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin: 0;
}

#uploader-date {
    font-family: var(--para);
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.blog-meta {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.read-time {
    background: linear-gradient(135deg, var(--teal) 0%, #00938d 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 101, 98, 0.2);
}

.blog-container{
    display: flex;
    flex-direction: row;
    gap: 2rem;
    

    /* flex-wrap: wrap; */
}
.content-container{
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

/* Featured Image */
.contentImg {
    max-width: 800px;
    margin: auto;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 11, 88, 0.1);
}

.contentImg img {
    width: 100%;
    /* height: auto; */
    aspect-ratio: 16 / 9;
    display: block;
    transition: var(--transition);
}

.contentImg img:hover {
    transform: scale(1.02);
}

/* Share Section */
.share-section {
    margin: 50px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid var(--teal);
    box-shadow: 0 4px 15px rgba(0, 101, 98, 0.08);
    text-align: center;
}

.share-section h3 {
    font-family: var(--font-main);
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #165bc0;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.share-btn.twitter {
    background: #000;
    color: white;
}

.share-btn.twitter:hover {
    background: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.share-btn.linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn.linkedin:hover {
    background: #0856a7;
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.4);
}

.share-btn.copy {
    background: var(--teal);
    color: white;
}

.share-btn.copy:hover {
    background: #00938d;
    box-shadow: 0 8px 20px rgba(0, 101, 98, 0.4);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Blog Body Content */
.content {
    max-width: 800px;
    /* Narrower for better reading experience */
    margin: 0 auto;
    font-family: var(--para);
    font-size: 1.15rem;
    color: var(--text);
    
}

/* SEO: Styling inner HTML tags from <%- blog.content %> */
.content p{

    line-height: 1.5;
}

.content h2,
.content h3 {
    font-family: var(--font-main);
    color: var(--primary-dark);
    margin: 40px 0 20px;
}

.content h2 {
    font-size: 2rem;
}

.content blockquote {
    border-left: 5px solid var(--teal);
    padding: 20px 30px;
    margin: 30px 0;
    background-color: var(--navlink);
    font-style: italic;
    font-size: 1.2rem;
    border-radius: 0 8px 8px 0;
}

.content a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--teal-glow);
    transition: var(--transition);
}

.content a:hover {
    background-color: var(--yellow);
    color: var(--primary-dark);
}

.content ul,
.content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.content li {
    margin-bottom: 10px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .blogSec {
        margin: 30px auto;
    }

    article h1 {
        font-size: 1.5rem;
    }

    .content {
        font-size: 1.05rem;
    }
}

aside{
    max-width: 300px;
    height: max-content;
    box-shadow: 0 2px 10px rgb(225, 226, 230);
}

/* Author Card */
.author-card {
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--teal);
    box-shadow: 0 4px 15px rgba(0, 101, 98, 0.08);
    margin-bottom: 25px;
    text-align: center;
    transition: var(--transition);
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 101, 98, 0.15);
}

.author-card h3 {
    font-family: var(--font-main);
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin: 15px 0 10px;
}

.author-card img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--teal);
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 101, 98, 0.2);
}

.author-bio {
    margin: 12px 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

.author-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--teal) 0%, #00938d 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
    text-transform: uppercase;
}

/* Recommended Posts Container */
.blogList-container {
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
    padding: 10px;
    border-radius: 12px;
    border-left: 4px solid var(--teal);
    box-shadow: 0 4px 15px rgba(0, 101, 98, 0.08);
}

.recommended-title {
    font-family: var(--font-main);
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin: 0 0 15px;
    text-align: center;
}
.blogList{
    margin-top: 0;
    background: transparent;
    padding: 0;
    height: 600px;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* scrollbar-color: var(--teal) #f0f0f0; */
}






.blog-post {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    background-color: #f8f9fb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.blog-post:hover {
    transform: translateX(5px);
    background-color: #f0f4ff;
    box-shadow: 0 4px 12px rgba(0, 101, 98, 0.15);
    border-left-color: var(--teal);
}

.blog-post img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.blogList-details {
    flex: 1;
    min-width: 0;
}

.blogList-title{
    font-size: 0.65rem;
    font-weight: bolder;
    color: black;
    line-height: 0.8rem;
}
.blogList-des{
    font-size: 0.55rem;
    color: rgb(65, 63, 63);
}


/* Entrance Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 800px) {
    .blog-container {
        flex-direction: column;
        gap: 1rem;
    }

    .uploader {
        flex-direction: column;
        text-align: center;
    }

    .blog-meta {
        margin-left: 0;
    }

    aside {
        max-width: 100%;
    }

    .blog-post {
        margin-bottom: 10px;
    }

    .blog-post img {
        width: 50px;
        height: 50px;
    }

    .blogList-title {
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .blogList-des {
        font-size: 0.7rem;
    }

    .author-card {
        margin-bottom: 20px;
    }

    .share-section {
        padding: 20px;
    }
}


