/* Blog CSS - Stostep */

/* Réglages généraux */
.blog-section {
    padding: 120px 0 60px;
}

.section-title {
    text-align: center;
    padding-bottom: 30px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 10px;
    position: relative;
    color: #124265;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: #5846f9;
    bottom: 0;
    left: calc(50% - 25px);
}

.section-title p {
    margin-bottom: 0;
    color: #5a5a5a;
}

/* Blog Posts */
.blog-post {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.blog-img {
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.6s ease;
}

.blog-post:hover .blog-img img {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
}

.post-category {
    display: inline-block;
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.post-date {
    font-size: 14px;
    color: #6c757d;
    margin-left: 10px;
}

.post-title {
    margin: 15px 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.post-title a {
    color: #124265;
    text-decoration: none;
    transition: all 0.3s;
}

.post-title a:hover {
    color: #5846f9;
}

.post-excerpt {
    color: #5a5a5a;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 50px 10px 28px;
    border-radius: 5px;
    transition: 0.5s;
    color: #fff;
    background: linear-gradient(45deg, #5846f9 0%, #7b27d8 100%);
    position: relative;
  }
  
.read-more:hover {
    background: linear-gradient(180deg, #5846f9 0%, #7b27d8 100%);
    color: #fff;
  }

/* .read-more {
    color: #5846f9;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
} */

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

/* .read-more:hover {
    color: #124265;
} */

.read-more:hover i {
    transform: translateX(5px);
}

/* Blog Sidebar */
.blog-sidebar {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 20px;
    font-weight: 600;
    color: #124265;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eaf0;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: #5846f9;
    bottom: -2px;
    left: 0;
}

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

.category-list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.category-list a {
    color: #5a5a5a;
    text-decoration: none;
    transition: all 0.3s;
}

.category-list a:hover {
    color: #5846f9;
    padding-left: 5px;
}

.category-list span {
    background-color: #f0f0f0;
    color: #5a5a5a;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
}

/* Featured Posts */
.featured-post {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.featured-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.featured-img {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.featured-content h6 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.4;
}

.featured-content h6 a {
    color: #124265;
    text-decoration: none;
    transition: all 0.3s;
}

.featured-content h6 a:hover {
    color: #5846f9;
}

.featured-content span {
    font-size: 12px;
    color: #6c757d;
}

/* Tags */
.badge {
    margin: 5px 5px 5px 0;
    transition: all 0.3s;
}

.badge.bg-light {
    background-color: #f8f9fa;
    border: 1px solid #eaeaea;
}

.badge:hover {
    background-color: #5846f9 !important;
    color: #fff !important;
}

/* Newsletter */
.widget form .input-group {
    position: relative;
}

.widget form input[type="email"] {
    height: 46px;
    padding: 10px 15px;
    border: 1px solid #eaeaea;
    border-radius: 5px 0 0 5px;
    outline: none;
    width: 70%;
}

.widget form button {
    border: none;
    background: #5846f9;
    color: #fff;
    height: 46px;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    transition: all 0.3s;
}

.widget form button:hover {
    background: #124265;
}

/* Blog Details */
.blog-header-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.post-meta span {
    margin-right: 20px;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.post-meta span i {
    margin-right: 5px;
    color: #5846f9;
}

.blog-content h2 {
    color: #124265;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
}

.blog-content h3 {
    color: #124265;
    margin: 30px 0 15px;
    font-size: 22px;
    font-weight: 600;
}

.blog-content p {
    color: #5a5a5a;
    margin-bottom: 15px;
    line-height: 1.8;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 20px;
    color: #5a5a5a;
    padding-left: 20px;
}

.blog-content ul li, .blog-content ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

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

.blog-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #5846f9;
    padding: 20px;
    margin: 20px 0;
    color: #124265;
    font-style: italic;
}

.post-share {
    display: flex;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-title {
    font-weight: 600;
    margin-right: 15px;
    color: #124265;
}

.social-share {
    display: flex;
}

.social-share a {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a5a5a;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-share a:hover {
    background: #5846f9;
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-sidebar {
        margin-top: 50px;
    }

    .blog-header-img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 90px 0 40px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .post-meta {
        flex-direction: column;
    }

    .post-meta span {
        margin-bottom: 5px;
    }

    .blog-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .blog-header-img {
        height: 220px;
    }
}
