/* Modern Blog Styles - Compact and Beautiful */

/* Blog Hero Section */
.blog-hero-new {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    margin-top: 80px; /* Account for fixed navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(70, 44, 97, 0.8) 0%, rgba(102, 126, 234, 0.6) 100%);
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-meta-top {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.blog-category {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.4;
}

.blog-meta-bottom {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.author-info,
.read-time,
.blog-date {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.author-info:hover,
.read-time:hover,
.blog-date:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.author-info i,
.read-time i,
.blog-date i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Blog Content Layout */
.blog-content-new {
    padding: 3rem 0;
    background: #f8f9fa;
    margin-top: 0; /* No additional margin needed as hero already has it */
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-main-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.blog-article {
    padding: 2.5rem;
}

/* Google Docs Content Styling */
#google-docs-content {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
}

#google-docs-content h1,
#google-docs-content h2,
#google-docs-content h3,
#google-docs-content h4,
#google-docs-content h5,
#google-docs-content h6 {
    color: #462c61;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

#google-docs-content h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

#google-docs-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.3rem;
}

#google-docs-content h3 {
    font-size: 1.4rem;
    color: #667eea;
}

#google-docs-content h4 {
    font-size: 1.2rem;
    color: #667eea;
}

#google-docs-content p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.7;
}

#google-docs-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

#google-docs-content a:hover {
    color: #462c61;
    border-bottom-color: #667eea;
}

#google-docs-content ul,
#google-docs-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

#google-docs-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

#google-docs-content blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #495057;
}

#google-docs-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#google-docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

#google-docs-content th,
#google-docs-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

#google-docs-content th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

#google-docs-content tr:nth-child(even) {
    background: #f8f9fa;
}

#google-docs-content code {
    background: #f1f3f4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #d63384;
}

#google-docs-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

#google-docs-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #e9ecef;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.author-details h4 {
    margin: 0 0 0.5rem 0;
    color: #462c61;
    font-size: 1.2rem;
}

.author-details p {
    margin: 0 0 1rem 0;
    color: #6c757d;
    line-height: 1.5;
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    color: #667eea;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: #462c61;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.sidebar-widget h3 {
    color: #462c61;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Table of Contents */
.toc-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-widget li {
    margin-bottom: 0.5rem;
}

.toc-widget a {
    color: #6c757d;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.toc-widget a:hover {
    background: #f8f9fa;
    color: #667eea;
    transform: translateX(5px);
}

/* Related Posts */
.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.related-post-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.related-post-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.related-post-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #462c61;
    line-height: 1.3;
}

.related-post-content a {
    color: inherit;
    text-decoration: none;
}

.related-post-content a:hover {
    color: #667eea;
}

/* Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tags .tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.blog-tags .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

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

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

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.copy {
    background: #6c757d;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .sidebar-widget {
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero-new {
        min-height: 300px;
        margin-top: 70px; /* Slightly less margin on mobile */
    }
    
    .blog-hero-content {
        padding: 1rem;
    }
    
    .blog-meta-top,
    .blog-meta-bottom {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .blog-meta-top {
        margin-bottom: 2rem;
    }
    
    .blog-category,
    .author-info,
    .read-time,
    .blog-date {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .blog-category {
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-article {
        padding: 1.5rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .author-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    #google-docs-content h1 {
        font-size: 1.8rem;
    }
    
    #google-docs-content h2 {
        font-size: 1.5rem;
    }
    
    #google-docs-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .blog-hero-new {
        margin-top: 60px; /* Even smaller margin on very small mobile */
    }
    
    .blog-content-new {
        padding: 2rem 0;
    }
    
    .blog-layout {
        padding: 0 0.5rem;
    }
    
    .blog-article {
        padding: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 1.8rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .blog-category,
    .author-info,
    .read-time,
    .blog-date {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    .blog-meta-top,
    .blog-meta-bottom {
        gap: 0.6rem;
    }
    
    .blog-meta-top {
        margin-bottom: 1.5rem;
    }
    
    .blog-title {
        margin: 1.5rem 0 0.8rem 0;
    }
}
