body {
    background-color: #f7f7f7;
    font-family: Georgia, "Times New Roman", Times, serif;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: auto;
}

.header {
    background: rgb(255, 255, 255);
    color: #000000;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    flex: 1;
    margin-left: 35%;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 8px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #1c06ac;
    color: #fff;
    border-color: #1c06ac;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-back .arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-back:hover .arrow {
    transform: translateX(-3px);
}

.blog-layout {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 30px;
}

.main-content {
    background: #fff;
    padding: 30px 65px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.meta {
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    margin: 25px;
}

.meta .date {
    margin-right: 5px;
    font-weight: normal;
    color: #6c757d;
}

.meta .author {
    font-weight: bold;
    color: #1c06ac;
}

.blog-article {
    line-height: 1.6;
    padding: 5px 25px;
}

.related-posts {
    flex: 0 0 350px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    margin-left: 20px;
}

.related-posts h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts li {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.related-posts .post-preview {
    display: flex;
    flex-direction: row;
    padding: 10px 20px;
}

.related-posts .thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

a {
    text-decoration: none;
}

.related-posts .post-info h3 {
    font-size: 1rem;
    margin: 0 0 5px;
    color: #333;
}

.related-posts .post-info p {
    font-size: 0.8rem;
    color: #555;
}

.post-item.selected {
    background-color: #f0f0f0;
    border-radius: 0px;
}

/* Social links and tags styles */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
}

.tag {
    background-color: #d4edda;
    color: #155724;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.tag:hover {
    background-color: #c3e6cb;
    color: #0b2e13;
}

.social-links {
    margin-top: 45px;
    padding: 25px;
    background-color: #f9f9f9;
    border-left: 5px solid #1c06ac;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    width: 75%;
}

.social-links h3 {
    font-size: 1.4rem;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.social-links p {
    margin: 5px 0;
    color: #555;
    font-size: 1rem;
}

.social-links a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #0b5ed7;
    text-decoration: underline;
}


.clap-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    border-top: 0.5px solid #969696;
    margin-top: 40px;
}

.clap-btn {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clap-btn:active {
    transform: scale(1.2);
}

.clap-count {
    font-weight: bold;
    color: #969696;
    font-family: Arial, sans-serif;
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cancel {
    background-color: #cbc8c8;
}

.btn-connect {
    background-color: #1c06ac;
    color: white;
}


.scroll-indicator {
    display: none; /* Masqué par défaut */
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    padding: 10px;
    animation: fade-in 1.5s ease-in-out infinite;
}


@media (max-width: 768px) {
    body {
        overflow-x: auto;
        font-size: 14px;
    }

    .blog-layout {
        width: unset;
    }

    .main-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 20px;
    }

    .related-posts {
        flex: 0 0 100%;
        overflow-y: auto;
    }

    .header-title {
        font-size: 1.5rem;
        margin-left: 25%;
    }

    .btn-back {
        font-size: 11px;
        padding: 4px 9px;
    }

    .blog-header h1 {
        font-size: 1.6rem;
        line-height: 1.4;
    }

    .meta {
        font-size: 0.9rem;
        margin: 15px;
    }

    .blog-article {
        font-size: 1rem;
        line-height: 1.5;
    }

    .related-posts h2 {
        font-size: 1.2rem;
    }

    .related-posts .post-info h3 {
        font-size: 0.9rem;
    }

    .related-posts .post-info p {
        font-size: 0.8rem;
    }

    .social-links h3 {
        font-size: 1.1rem;
    }

    .social-links p {
        font-size: 0.9rem;
    }

    .tag {
        font-size: 12px;
        padding: 3px 8px;
    }

    .clap-btn {
        font-size: 24px;
    }

    .clap-count {
        font-size: 0.9rem;
    }

    .scroll-indicator {
        display: block;
    }

    img {
        width: 60% !important;
        margin-left: 0px !important;
        height: unset !important;
    }
}

/* Animation 'scroll to see more' */
@keyframes fade-in {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}
