@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fa;
    color: #777;
    line-height: 1.6;
    margin: 0;
    justify-content: center;
}

/* Blog Container */
.blog-container {
    max-width: 850px;
    width: 90%;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);

    /* Centering */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Post Header */
.post-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
}

.post-header h2 {
    font-size: 1.25rem;
    color: #666;
    font-weight: 400;
    margin-bottom: 15px;
}

/* Timestamp */
.timestamp {
    display: block;
    color: #495057;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 20px;
}

/* Post Content */
.post-content {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

.post-content::after {
    content: '';
    display: block;
    border-bottom: 1px solid #e9ecef;
    margin-top: 30px;
}

.post-content h1, .post-content h2, .post-content h3 {
    margin: 1.5em 0 0.5em;
    color: #212529;
}

.post-content h1 { font-size: 2rem; font-weight: 600; }
.post-content h2 { font-size: 1.5rem; font-weight: 500; }
.post-content h3 { font-size: 1.2rem; font-weight: 500; }

.post-content p {
    margin: 1em 0;
}

.post-content blockquote {
    border-left: 5px solid #007bff;
    padding-left: 20px;
    margin: 1.5em 0;
    color: #666;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.post-content a {
    color: #007bff;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

/* Post Author */
.post-author {
    color: #495057;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

/* Post Keywords */
.post-keywords {
    margin-top: 15px;
    text-align: center;
}

.keyword-tag {
    background-color: transparent;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 5px 10px;
    border-radius: 4px;
    margin: 0 5px 5px 0;
    font-size: 0.9rem;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.keyword-tag:hover {
    background-color: #007bff;
    color: white;
}

/* Back Button */
.back-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: block;
    margin-top: 20px;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.back-button:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        margin: 20px;
        padding: 15px;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-header h2 {
        font-size: 1.1rem;
    }

    .post-content {
        font-size: 0.95rem;
    }

    .post-content h1 { font-size: 1.6rem; }
    .post-content h2 { font-size: 1.3rem; }
    .post-content h3 { font-size: 1.1rem; }

    .post-keywords {
        text-align: center;
    }

    .keyword-tag {
        margin: 0 3px 5px;
        font-size: 0.85rem;
        padding: 4px 8px;
    }

    .back-button {
        padding: 8px 16px;
        font-size: 0.9rem;
        max-width: 180px;
    }
}