.blog-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Homepage blog section cards to match provided design */
.home-blog-section {
    background: #eaf4f9; /* light blue background */
    padding: 60px 0;
}

.home-blog-section .container {
    max-width: 1200px;
}

.home-blog-section .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.home-blog-section .blog-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(16,24,40,0.06);
    display: flex;
    flex-direction: column;
}

.home-blog-section .blog-image {
    position: relative;
    overflow: hidden;
}

.home-blog-section .blog-image img {
    width: 100%;
    height: auto;
    display: block;
}

.home-blog-section .category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fff;
    color: #0b0c41;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(16,24,40,0.08);
    font-size: 14px;
}

.home-blog-section .blog-content {
    padding: 22px 24px 30px 24px;
    flex: 1 1 auto;
}

.home-blog-section .blog-post-title {
    font-size: 22px;
    color: #0b0c41;
    margin: 6px 0 14px 0;
    font-weight: 700;
}

.home-blog-section .blog-post-title a { color: inherit; text-decoration: none; }

.home-blog-section .blog-content p {
    color: #334155;
    margin-bottom: 18px;
}

.home-blog-section .blog-read-more {
    color: #0b0c41;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 992px) {
    .home-blog-section .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .home-blog-section .blog-grid { grid-template-columns: 1fr; }
    .home-blog-section .blog-image { height: 200px; }
}

.blog-post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

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

.blog-post-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 25px;
}

.blog-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #777;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-category {
    color: #191b41 !important;
    font-weight: 600;
}

.blog-post-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
}

.blog-post-title a {
    color: #191b41;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-post-title a:hover {
    color: #2a2d5e;
}

.blog-post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #191b41;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.2s;
}

.blog-read-more:hover {
    gap: 10px;
    color: #2a2d5e;
}

.blog-sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.widget-title {
    color: #191b41;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #191b41;
}

.widget-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-categories li {
    margin-bottom: 10px;
}

.widget-categories a {
    display: flex;
    justify-content: space-between;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.widget-categories a:hover,
.widget-categories li.active a {
    color: #191b41;
}

.category-count {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.widget-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-recent-posts li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.widget-recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.recent-post-content h4 a {
    color: #191b41;
    text-decoration: none;
    transition: color 0.2s;
}

.recent-post-content h4 a:hover {
    color: #2a2d5e;
}

.blog-single-post {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.blog-single-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

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

.blog-single-meta {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    color: #777;
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-single-content {
    line-height: 1.9;
    color: #334155;
    margin-bottom: 40px;
    font-size: 16px;
}

.blog-single-content p {
    margin-bottom: 24px;
}

.blog-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    display: block;
}

.blog-single-content h2 {
    color: #191b41;
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 700;
}

.blog-single-content h3 {
    color: #191b41;
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
}

.blog-single-content h4 {
    color: #191b41;
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.blog-single-content ul,
.blog-single-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.blog-single-content li {
    margin-bottom: 8px;
}

.blog-single-content blockquote {
    border-left: 4px solid #191b41;
    padding: 16px 20px;
    margin: 24px 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

.blog-single-content a {
    color: #191b41;
    text-decoration: underline;
}

.blog-share {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 30px;
}

.blog-share h4 {
    margin: 0 0 15px 0;
    color: #191b41;
    font-size: 16px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.share-btn.facebook {
    background: #3b5998;
}

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

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

.share-btn.email {
    background: #666;
}

.blog-back {
    text-align: center;
}
