/* ==========================================================================
   Blog Styles - Paroles d'experts
   ========================================================================== */

/* ==========================================================================
   Sidebar Catégories
   ========================================================================== */
.category-sidebar {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c9372c;
}

.category-list-wrapper {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #c9372c #f0f0f0;
}

.category-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.category-list-wrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.category-list-wrapper::-webkit-scrollbar-thumb {
    background-color: #c9372c;
    border-radius: 3px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0;
    border-left: 4px solid #e0e0e0;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    cursor: pointer;
}

.category-list li a:hover {
    background-color: #f8f9fa;
    color: #1a3a5c;
}

.category-list li a.active {
    background-color: #f0f7ff;
    font-weight: 600;
    color: #1a3a5c;
}

.category-count {
    background-color: #c9372c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
}

/* ==========================================================================
   Header Articles
   ========================================================================== */
.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.articles-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0;
}

.articles-count {
    color: #666;
    font-size: 0.95rem;
}

/* ==========================================================================
   Article Cards (Blog List)
   ========================================================================== */
.article-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #0899C5 0%, #1a3a5c 100%);
}

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-img {
    transform: scale(1.05);
}

.article-card-category {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 30px 15px 10px;
}

.article-card-category span {
    display: inline-block;
    background-color: #DC3545;
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a3a5c;
    line-height: 1.4;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card-title a:hover {
    color: #0899C5;
}

.article-card-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.article-card-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.article-card-link {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.article-card-link a {
    color: #0899C5;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-link a:hover {
    color: #066a8c;
}

.article-card-link a i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.article-card-link a:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   No Articles Message
   ========================================================================== */
.no-articles {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border-radius: 12px;
    color: #666;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    display: none;
}

.no-articles.visible {
    display: block;
}

/* ==========================================================================
   Page Title
   ========================================================================== */
.blog-page-title {
    text-align: center;
    color: #c9372c;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

/* ==========================================================================
   Article Item (filtering & pagination)
   ========================================================================== */
.article-item {
    transition: opacity 0.3s ease;
}

.article-item.hidden {
    display: none;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 8px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    background-color: #fff;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-btn:hover {
    border-color: #0899C5;
    color: #0899C5;
    text-decoration: none;
}

.pagination-btn.active {
    background-color: #0899C5;
    border-color: #0899C5;
    color: #fff;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn i {
    font-size: 1rem;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
    margin: 0 15px;
}

/* ==========================================================================
   Article Detail Page - Hero
   ========================================================================== */
.article-hero {
    position: relative;
    background: linear-gradient(135deg, #1a3a5c 0%, #0899C5 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-hero.with-image {
    background-size: cover;
    background-position: center;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 92, 0.7);
}

.article-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
}

.article-category-badge {
    display: inline-block;
    background-color: #0899C5;
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #fff;
}

.article-meta {
    font-size: 1rem;
    opacity: 0.9;
}

/* ==========================================================================
   Article Detail Page - Content
   ========================================================================== */
.article-content-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    margin-top: -50px;
    position: relative;
    z-index: 2;
    padding: 40px;
    margin-bottom: 40px;
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2,
.article-body h3 {
    color: #1a3a5c;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Back to Blog Link
   ========================================================================== */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    color: #0899C5;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: #066a8c;
}

.back-to-blog i {
    margin-right: 8px;
}

/* ==========================================================================
   Related Articles
   ========================================================================== */
.related-articles-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.related-articles-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 40px;
}

.related-article-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-article-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #0899C5 0%, #1a3a5c 100%);
}

.related-article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-article-body {
    padding: 20px;
}

.related-article-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-article-title a {
    color: inherit;
    text-decoration: none;
}

.related-article-title a:hover {
    color: #0899C5;
}

.related-article-date {
    color: #999;
    font-size: 0.85rem;
}

/* ==========================================================================
   Share Section
   ========================================================================== */
.article-share {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 30px;
}

.article-share-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 15px;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-buttons a:hover {
    background-color: #0899C5;
    color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .category-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .category-list-wrapper {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }

    .article-content-wrapper {
        padding: 25px;
        margin-top: -30px;
    }

    .article-body {
        font-size: 1rem;
    }
}
