.post-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--post-bg);
    border-radius: 8px;
    text-align: left;
}

.post-container h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.post-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.post-body p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.post-body h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--header-border);
    padding-bottom: 0.5rem;
}

.post-body a {
    text-decoration: none;
    font-weight: bold;
    color: var(--gradient-accent-color);
    transition: color 0.3s;
}

.post-body a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.post-sources {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--header-border);
}

.post-sources h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.post-sources ul {
    list-style-type: none;
    padding: 0;
}

.post-sources li {
    margin-bottom: 0.5rem;
}

.post-sources a {
    color: var(--gradient-accent-color);
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.post-sources a:hover {
    text-decoration: underline;
}

.back-button {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.75rem 2.5rem;
    background: var(--gradient-main);
    background-size: 200% auto;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    border: 1px solid var(--gradient-accent-color);
}

.back-button:hover {
    background-position: right center;
    box-shadow: 0 0 20px var(--gradient-accent-color);
    color: #000;
}

/* Related Posts */
.related-posts-container {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--header-border);
}

.related-posts-container h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-post-card {
    background-color: var(--post-bg);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-post-card h3 {
    font-size: 1.2rem;
    padding: 1rem;
    margin: 0;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
    padding: 2rem;
    background-color: var(--post-bg);
    border-radius: 8px;
    border-top: 2px solid var(--header-border);
}

.author-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #aaa;
    font-weight: normal;
}

.author-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.author-info p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Share Buttons */
.share-buttons {
    margin-top: 3rem;
    text-align: center;
}

.share-buttons h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.share-btn {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.8rem;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn i {
    font-size: 24px;
    line-height: 1;
    vertical-align: middle;
}

.whatsapp { background-color: #25D366; }
.linkedin { background-color: #0A66C2; }
.x-logo { background-color: #000000; }

/* Comments Section */
.comments-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--post-bg);
    border-radius: 8px;
}

.comments-container h2 {
    text-align: center;
    margin-bottom: 2rem;
}

#comments-list .comment {
    border-bottom: 1px solid var(--header-border);
    padding: 1.5rem 0;
}

#comments-list .comment:last-child {
    border-bottom: none;
}

#comments-list .comment-author {
    font-weight: bold;
    color: var(--link-hover);
    margin-bottom: 0.5rem;
}

#comments-list .comment-date {
    font-size: 0.8rem;
    color: #888;
    margin-left: 0.5rem;
}

#comments-list .comment-body {
    line-height: 1.7;
}

#comment-form {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--header-border);
}

#comment-form h3 {
    margin-bottom: 1.5rem;
}

#comment-form .form-group {
    margin-bottom: 1rem;
}

#comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #888;
}

#comment-form input,
#comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--header-border);
    background-color: var(--background-color);
    color: var(--text-color);
    box-sizing: border-box;
}

#comment-form button {
    padding: 0.8rem 1.5rem;
    background: var(--gradient-main);
    color: #000;
    font-weight: 600;
    border: 1px solid var(--gradient-accent-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    background-size: 200% auto;
}

#comment-form button:hover {
    background-position: right center;
    box-shadow: 0 0 20px var(--gradient-accent-color);
}

#comment-status {
    margin-top: 1rem;
    font-weight: bold;
}
