/* Blog Specific Styles */
.blog-header {
    background: linear-gradient(135deg, rgb(0 0 0 / 60%) 0%, rgb(32 32 32 / 80%) 100%),
        url("../img/blog/blog_cover1.jpg") center/cover;
    color: white;
    padding: 120px 0 80px;
    /*margin-top: 70px;*/
    position: relative;
    background-attachment: fixed;
}

/*.blog-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1;
        }*/

.blog-header .container {
    position: relative;
    z-index: 2;
}

.blog-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.blog-header p {
    font-size: 2.5rem;
    line-height: 1.5em;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.blog-container {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    margin-bottom: 50px;
    border: none;
    position: relative;
}

.blog-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.blog-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-image::before {
    opacity: 1;
}

.blog-content {
    padding: 40px;
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.blog-meta span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.blog-meta i {
    margin-right: 5px;
}

.blog-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-title:hover {
    color: #667eea;
    text-decoration: none;
}

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

.blog-tags {
    margin-bottom: 20px;
}

.blog-tag {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.blog-tag:hover {
    background: #764ba2;
    color: white;
    text-decoration: none;
}

.read-more-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.sidebar {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.sidebar h4 {
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.sidebar h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

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

.recent-posts li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: #667eea;
}

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

.categories li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.categories li:last-child {
    border-bottom: none;
}

.categories a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories a:hover {
    color: #667eea;
}

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

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination {
    background: white;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pagination .page-link {
    border: none;
    color: #333;
    padding: 12px 18px;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.pagination .page-link:hover {
    background: #f8f9fa;
    color: #667eea;
}

/*serach btn*/
.input-group-btn>.btn {
    position: relative;
    padding: 7px 20px;
}

@media (max-width: 768px) {
    .blog-header {
        padding: 80px 0 60px;
        /*margin-top: 60px;*/
        background-attachment: scroll;
    }

    .blog-header h1 {
        font-size: 2.5rem;
    }

    .blog-header p {
        font-size: 1rem;
        line-height: 1em;

    }

    .blog-title {
        font-size: 20px;
    }

    .blog-content {
        padding: 30px 20px;
    }

    .sidebar {
        padding: 30px 20px;
    }
}


/* for blog details page css */

/* Reuse styles from blogs.html or add specific styles for single post */
.blog-container {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.blog-header {
    background: linear-gradient(135deg, rgb(0 0 0 / 60%) 0%, rgb(32 32 32 / 80%) 100%),
        url("../img/blog/blog_cover1.jpg") center/cover;
    color: white;
    padding: 120px 0 80px;
    position: relative;
    background-attachment: fixed;
}

.blog-header .container {
    position: relative;
    z-index: 2;
}

.blog-header h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    transition: all 0.4s ease;
    border: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 40px;
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.blog-meta span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.blog-meta i {
    margin-right: 5px;
}

.blog-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-body {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.blog-tags {
    margin-bottom: 30px;
}

.blog-tag {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.blog-tag:hover {
    background: #764ba2;
    color: white;
}

.author-box {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    border-top: 3px solid #667eea;
}

.related-posts {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.related-posts ul {
    padding-left: 20px;
}

.related-posts li {
    margin-bottom: 10px;
}

.social-sharing {
    margin: 30px 0;
}

.social-sharing a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 50%;
    margin-right: 10px;
    color: #666;
    transition: all 0.3s ease;
}

.social-sharing a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

.comment-form {
    margin-top: 50px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .blog-header {
        /* padding: 80px 0 60px; */
        background-attachment: scroll;
    }

    .blog-header h1 {
        font-size: 2.5rem;
    }

    .blog-title {
        font-size: 22px;
    }

    .blog-content {
        padding: 30px 20px;
    }

    .blog-meta {
        flex-wrap: wrap;
    }

    .blog-meta span {
        margin-bottom: 10px;
    }
}

/*alart*/
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}