/* 
   Industrial Blog & Article Stylesheet
   Company: Smart Well Fluid
   Theme: Industrial Green (#1B3D1A, #4D9B50)
*/

:root {
    --blog-primary: #1B3D1A;
    --blog-accent: #4D9B50;
    --blog-accent-light: #F1F8F1;
    --blog-dark: #122611;
    --blog-muted: #556254;
    --blog-border: #E5EBE5;
}

/* --- Blog Hero Banner --- */
.blog-hero {
    background: linear-gradient(135deg, rgba(18, 38, 17, 0.92) 0%, rgba(27, 61, 26, 0.85) 100%), 
                url('../images/carbon-hero.png') center/cover no-repeat;
    padding: 100px 0 70px 0;
    color: #ffffff;
    border-bottom: 3px solid var(--blog-accent);
}

/* --- Blog & Article Breadcrumbs --- */
.blog-hero .breadcrumb,
.single-blog-header .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1rem;
}

.blog-hero .breadcrumb-item,
.single-blog-header .breadcrumb-item {
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-hero .breadcrumb-item a,
.single-blog-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.blog-hero .breadcrumb-item a:hover,
.single-blog-header .breadcrumb-item a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

.blog-hero .breadcrumb-item.active,
.single-blog-header .breadcrumb-item.active {
    color: #ffffff !important;
}

.blog-hero .breadcrumb-item + .breadcrumb-item::before,
.single-blog-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* --- Category Filter Pills --- */
.blog-filter-pills .nav-link {
    color: var(--blog-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 50px;
    background: #f4f6f4;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.blog-filter-pills .nav-link:hover {
    background: #e8eee8;
    color: var(--blog-primary);
}

.blog-filter-pills .nav-link.active {
    background: var(--blog-accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(77, 155, 80, 0.35);
}

/* --- Blog Card --- */
.blog-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--blog-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 61, 26, 0.12);
    border-color: rgba(77, 155, 80, 0.4);
}

.blog-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f0f4f0;
}

.blog-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-card-img-wrapper img {
    transform: scale(1.08);
}

.blog-badge-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--blog-primary);
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--blog-accent);
}

.blog-card-excerpt {
    color: var(--blog-muted);
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-read-more {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--blog-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.blog-card:hover .blog-read-more {
    gap: 10px;
    color: var(--blog-primary);
}

/* --- Industrial CTA Banner Below Cards --- */
.blog-cta-banner {
    background: linear-gradient(135deg, #1B3D1A 0%, #294D28 100%);
    box-shadow: 0 25px 60px -15px rgba(27, 61, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(77, 155, 80, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

/* --- Single Blog Article Layout --- */
.single-blog-header {
    background: linear-gradient(135deg, rgba(18, 38, 17, 0.95) 0%, rgba(27, 61, 26, 0.88) 100%),
                url('../images/carbon-hero.png') center/cover no-repeat;
    padding: 90px 0 60px 0;
    color: #ffffff;
    border-bottom: 3px solid var(--blog-accent);
}

.single-blog-header h1 {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.25;
}

.blog-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #ffffff;
}

.blog-article-content {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.08rem;
    line-height: 1.85;
    color: #2e382d;
}

.blog-article-content h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--blog-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 8px;
}

.blog-article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--blog-accent);
    border-radius: 2px;
}

.blog-article-content h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--blog-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-article-content p {
    margin-bottom: 1.5rem;
}

.blog-article-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.75;
    color: #3b463a;
}

.blog-callout {
    background: var(--blog-accent-light);
    border-left: 4px solid var(--blog-accent);
    padding: 24px;
    border-radius: 0 16px 16px 0;
    margin: 2rem 0;
}

.blog-callout h5 {
    color: var(--blog-primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-callout p:last-child {
    margin-bottom: 0;
}

.blog-article-img {
    border-radius: 20px;
    overflow: hidden;
    margin: 2.5rem 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.blog-article-img img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-article-img figcaption {
    padding: 12px 16px;
    background: #f8faf8;
    color: #6c786b;
    font-size: 0.85rem;
    font-style: italic;
    border-top: 1px solid #eef2ee;
}

/* --- Previous & Next Navigation --- */
.blog-nav-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-color: #E2E8E2 !important;
}

.blog-nav-card:hover {
    border-color: var(--blog-accent) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(77, 155, 80, 0.15) !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xsmall {
    font-size: 0.785rem;
}

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}
