/* Blog System Styles - Shubham EPC */
:root {
    --blog-primary: #2F4195;
    --blog-accent: #47A632;
    --blog-text-main: #1F211C;
    --blog-text-muted: #64748b;
    --blog-bg-light: #f8fafc;
    --blog-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Blog Listing */
.blogs-listing-section {
    padding: 80px 0;
    background-color: var(--blog-bg-light);
}

.blogs-grid-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

@media (max-width: 992px) {
    .blogs-grid-container {
        grid-template-columns: 1fr;
    }
    .blogs-listing-section {
        padding: 50px 0;
    }
}

/* Featured Blog */
.featured-blog {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
    transition: transform 0.3s ease;
    align-items: stretch;
}

.featured-blog:hover {
    transform: translateY(-5px);
}

.featured-img {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 0; 
}

.featured-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    border-radius: 0 !important;
    transition: transform 0.5s ease;
}

.featured-blog:hover .featured-img img {
    transform: scale(1.05);
}

.featured-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

.featured-badge {
    background: var(--blog-accent);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 20px;
}

.featured-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-excerpt {
    color: var(--blog-text-muted);
    font-size: 18px;
    margin-bottom: 30px;
}

@media (max-width: 1100px) {
    .featured-blog {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .featured-img {
        height: 350px;
        min-height: 350px;
    }
    .featured-content {
        padding: 40px;
    }
    .featured-content h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .featured-content {
        padding: 30px;
    }
    .featured-content h2 {
        font-size: 24px;
    }
    .featured-excerpt {
        font-size: 16px;
    }
}

/* Blog Card */
.blog-card-v2 {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-v2:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(-8px);
}

.blog-card-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--blog-primary);
    text-transform: uppercase;
}

.blog-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 13px;
    color: var(--blog-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--blog-text-main);
}

.blog-card-content p {
    color: var(--blog-text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-link {
    font-weight: 700;
    color: var(--blog-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.read-link i {
    transition: transform 0.3s ease;
}

.blog-card-v2:hover .read-link i {
    transform: translateX(5px);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--blog-bg-light);
    color: var(--blog-primary);
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--blog-text-muted);
    transition: color 0.3s;
}

.category-list a:hover {
    color: var(--blog-accent);
}

.category-count {
    background: var(--blog-bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Search Bar */
.search-form {
    display: flex;
    background: var(--blog-bg-light);
    border-radius: 8px;
    padding: 5px;
}

.search-form input {
    border: none;
    background: transparent;
    padding: 10px 15px;
    flex-grow: 1;
    outline: none;
}

.search-btn {
    background: var(--blog-primary);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}

/* Share Buttons - Hide on Desktop if they appear on left */
.share-floating {
    display: none; /* User wants them removed from left side */
}

@media (max-width: 1200px) {
    .share-floating {
        display: none; /* Hide entirely if they were appearing at top/bottom as well */
    }
}

/* Blog Single Page refinements */
.blog-post-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}

@media (max-width: 900px) {
    .blog-post-content {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
}

.blog-post-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 0 20px;
}

.blog-post-header h2 {
    font-size: 36px;
}

@media (max-width: 768px) {
    .blog-post-header h2 {
        font-size: 28px;
    }
}

.blog-post-header .featured-badge {
    margin: 0 auto 20px;
}

.blog-body {
    padding: 40px;
}

@media (max-width: 768px) {
    .blog-body {
        padding: 25px 20px;
    }
}

.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 60px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}

.author-img {
    width: 60px; /* Smaller as requested */
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 17px;
    color: var(--blog-primary);
}

.author-info p {
    font-size: 14px;
    color: var(--blog-text-muted);
    line-height: 1.5;
}
