/* Blog List Page */
.layout-page.blog.list {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.layout-page.blog.list h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.layout-page.blog.list .layout-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.layout-page.blog.list .layout-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.layout-page.blog.list .layout-article:hover {
    transform: translateY(-5px);
}

.layout-page.blog.list .layout-article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.layout-page.blog.list .layout-article .article-meta {
    padding: 0 20px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 15px;
}

.layout-page.blog.list .layout-article .category {
    color: #e63946;
    font-weight: 600;
}

.layout-page.blog.list .layout-article h3 {
    padding: 10px 20px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.layout-page.blog.list .layout-article h3 a {
    color: #1d1d1d;
    text-decoration: none;
}

.layout-page.blog.list .layout-article .extract {
    padding: 0 20px 20px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Blog Detail Page */
.layout-page.blog.detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 5%;
}

/* ------- .blog.detail .layout-head ------- */
.blog.detail .layout-head {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.blog.detail .layout-head h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 30px;
    line-height: 1.3;
}

.blog.detail .layout-head > img {
    max-width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.blog.detail .layout-head > a {
    margin-top: 20px;
}

.blog.detail .layout-head > a img {
    width: 40px;
    height: 40px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.blog.detail .layout-head > a img:hover {
    opacity: 1;
}

/* ------- .blog.detail .layout-body ------- */
.blog.detail .layout-body {
    padding: 60px 20px;
}

.blog.detail .layout-body .texte {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog.detail .layout-body .texte p {
    margin-bottom: 1.5em;
}

.blog.detail .layout-body .texte h1,
.blog.detail .layout-body .texte h2,
.blog.detail .layout-body .texte h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1d1d1d;
}

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

.blog.detail .layout-body .texte ul,
.blog.detail .layout-body .texte ol {
    margin-left: 20px;
    margin-bottom: 1.5em;
}

.blog.detail .layout-body .texte li {
    margin-bottom: 0.5em;
}

/* Placeholder for missing images */
.placeholder-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-articles {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 1.1rem;
}