/* =========================================
   ANNABHOJANAM BLOG POST STYLES
   ========================================= */

/* --- SCROLL PROGRESS BAR --- */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #e0e0e0; 
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color, #d35400); 
    width: 0%;
    transition: width 0.1s ease-out;
}

/* --- ARTICLE LAYOUT --- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 5% 80px 5%; /* Top padding clears the fixed navbar */
}

/* --- ARTICLE HEADER & META DATA --- */
.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.25; 
    color: var(--text-color);
    margin-bottom: 25px;
}

/* Elevated card style for meta data */
.article-meta {
    font-family: var(--font-body);
    color: #555;
    font-size: 0.95rem;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allows natural wrapping on smaller screens */
    align-items: center;
    background: #ffffff; 
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); 
    border-left: 4px solid var(--accent-color, #d35400); 
}

/* Standout author name */
.author {
    font-weight: 700;
    color: var(--accent-color, #d35400);
}

/* Vibrant glowing pill for the tag */
.tag {
    background: var(--accent-color, #d35400);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px; 
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(211, 84, 0, 0.25); 
}

/* --- IMAGES --- */
.article-image-container {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f4f4; /* Subtle background in case images don't fill the whole width */
    text-align: center;
}

.article-image {
    width: 100%;
    height: auto; /* Maintains the perfect aspect ratio */
    max-height: 650px; /* Generous height so tall images look good */
    object-fit: contain; /* NEVER crops the image, scales it perfectly */
    display: block;
    margin: 0 auto; /* Centers the image */
}

/* Optional: A beautiful caption for your photos */
.image-caption {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666;
    padding: 12px 20px;
    font-style: italic;
    background: #fff;
    border-bottom: 1px solid #eee;
}

/* --- TYPOGRAPHY & TEXT FORMATTING --- */
.article-content {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-color);
    margin: 60px 0 20px 0;
}

.dropcap {
    float: left;
    font-size: 5.5rem;
    line-height: 0.8;
    margin-right: 15px;
    margin-top: 5px;
    font-family: var(--font-heading);
    color: var(--accent-color, #d35400);
}

blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.5;
    border-left: 5px solid var(--accent-color, #d35400);
    padding-left: 25px;
    margin: 45px 0;
    color: #444;
}

strong {
    font-weight: 600;
    color: var(--text-color);
}

/* --- THE KAIZEN INSIGHT BOX --- */
.kaizen-box {
    background: rgba(211, 84, 0, 0.04); 
    padding: 35px 40px;
    border-left: 5px solid var(--accent-color, #d35400);
    margin: 50px 0;
    position: relative;
    border-radius: 0 8px 8px 0;
}

.kaizen-label {
    position: absolute;
    top: -14px;
    left: 20px;
    background: var(--bg-color, #F9F9F6);
    padding: 0 12px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color, #d35400);
}

.kaizen-box p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.7;
}

/* =========================================
   MOBILE RESPONSIVENESS (BLOG ONLY)
   ========================================= */
@media (max-width: 768px) {
    .article-container {
        padding: 120px 5% 50px 5%;
    }
    
    .article-title {
        font-size: 2rem; /* Scaled down slightly to prevent word-breaks */
        line-height: 1.3;
    }
    
    .article-meta {
        flex-direction: row; /* Keeps elements side-by-side naturally */
        gap: 12px;
        padding: 15px;
        font-size: 0.85rem;
    }
    
    .tag {
        margin-top: 4px; /* Gives the tag breathing room if it drops to a new line */
    }
    
    .dropcap {
        font-size: 4.5rem; 
        margin-right: 12px;
    }
    
    .image-placeholder {
        height: 220px; 
    }
    
    .article-content {
        font-size: 1.05rem; 
    }

    blockquote {
        font-size: 1.3rem;
        padding-left: 20px;
    }
    
    .kaizen-box {
        padding: 30px 20px;
    }
}