/* Blog2 - Custom Styles */

/* Hero */
.blog-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    text-align: center;
    margin-bottom: 0;
}
.blog-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.blog-hero .lead {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Category Bar */
.blog-categories-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    margin-bottom: 1rem;
}
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.category-pill:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.category-pill.active {
    background: #3182ce;
    color: #fff;
    border-color: #3182ce;
}
.category-pill .count {
    font-size: 0.75rem;
    background: rgba(0,0,0,0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
}
.category-pill.active .count {
    background: rgba(255,255,255,0.25);
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: row;
}
.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.blog-card-image {
    flex: 0 0 250px;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}
.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-categories {
    font-size: 0.8rem;
    color: #3182ce;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.blog-card-title a {
    color: #1e293b;
    text-decoration: none;
}
.blog-card-title a:hover {
    color: #3182ce;
}
.blog-card-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0.75rem;
}
.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}
.blog-read-more {
    color: #3182ce;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}
.blog-read-more:hover {
    color: #2c5282;
}

/* Breadcrumbs */
.blog-breadcrumb {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.65rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}
.blog-breadcrumb .breadcrumb {
    margin-bottom: 0;
    font-size: 0.85rem;
}
.blog-breadcrumb .breadcrumb-item a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.blog-breadcrumb .breadcrumb-item a:hover {
    color: #1a365d;
}
.blog-breadcrumb .breadcrumb-item.active {
    color: #64748b;
    font-weight: 400;
}
.blog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "\F285";
    font-family: "bootstrap-icons";
    font-size: 0.65rem;
    color: #94a3b8;
    vertical-align: middle;
}

/* Single Article */
.blog-article-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
    margin-bottom: 1rem;
}
.blog-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.blog-article-image img {
    border-radius: 12px;
    width: 100%;
}
.blog-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}
.blog-article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.blog-article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.blog-article-content p {
    margin-bottom: 1.25rem;
}
.blog-article-content ul, .blog-article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.blog-article-content li {
    margin-bottom: 0.5rem;
}
.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.blog-article-content blockquote {
    border-left: 4px solid #3182ce;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

/* Category Tag */
.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: #eff6ff;
    color: #3182ce;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.25rem;
    transition: all 0.2s;
}
.category-tag:hover {
    background: #3182ce;
    color: #fff;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3182ce;
}
.sidebar-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-post-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.sidebar-post-list li:last-child {
    border-bottom: none;
}
.sidebar-post-list a {
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}
.sidebar-post-list a:hover {
    color: #3182ce;
}
.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-category-list li {
    margin-bottom: 0.25rem;
}
.sidebar-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.sidebar-category-list a:hover {
    background: #f1f5f9;
    color: #3182ce;
}

/* Pagination */
.blog-pagination {
    margin-top: 2rem;
}
.blog-pagination .page-link {
    border-radius: 8px;
    margin: 0 0.2rem;
    color: #3182ce;
    border: 1px solid #e2e8f0;
}
.blog-pagination .page-item.active .page-link {
    background: #3182ce;
    border-color: #3182ce;
}

/* Share buttons */
.blog-article-share .btn {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* CTA Buttons (shortcode) */
.blog-cta-wrapper {
    text-align: center;
    margin: 1.5rem 0;
}
.blog-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    letter-spacing: 0.01em;
}
.blog-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.blog-cta-btn i {
    font-size: 1.1rem;
}
.blog-cta-primary {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: #fff;
}
.blog-cta-primary:hover {
    background: linear-gradient(135deg, #2c5282, #1a365d);
    color: #fff;
}
.blog-cta-success {
    background: linear-gradient(135deg, #38a169, #276749);
    color: #fff;
}
.blog-cta-success:hover {
    background: linear-gradient(135deg, #276749, #1a4731);
    color: #fff;
}
.blog-cta-dark {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    color: #fff;
}
.blog-cta-dark:hover {
    background: linear-gradient(135deg, #1a202c, #0d1117);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 2rem 0 1.5rem;
    }
    .blog-hero h1 {
        font-size: 1.5rem;
    }
    .blog-card {
        flex-direction: column;
    }
    .blog-card-image {
        flex: none;
        height: 200px;
    }
    .blog-article-title {
        font-size: 1.5rem;
    }
    .blog-article-content {
        font-size: 1rem;
    }
    .blog-sidebar {
        position: static;
        margin-top: 2rem;
    }
}
