body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
}

.header .nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header .nav ul li {
    margin-left: 20px;
}

.header .nav ul li a {
    color: #fff;
    text-decoration: none;
}

.footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer .footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.footer .footer-links li {
    margin: 0 10px;
}

.footer .footer-links li a {
    color: #fff;
    text-decoration: none;
}

.sidebar {
    width: 250px;
    background-color: #f4f4f4;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar .sidebar-section {
    margin-bottom: 20px;
}

.sidebar .sidebar-section h3 {
    margin-top: 0;
}

.sidebar .sidebar-section ul {
    list-style: none;
    padding: 0;
}

.sidebar .sidebar-section ul li {
    margin-bottom: 10px;
}

.sidebar .sidebar-section ul li a {
    color: #333;
    text-decoration: none;
}

.container {
    display: flex;
    margin: 20px;
}

main {
    flex: 1;
    margin-right: 20px;
}

.post {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.post h1 {
    margin-top: 0;
}

.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.post-content {
    line-height: 1.6;
}

.post-images {
    margin-top: 20px;
}

.post-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.post-tags {
    margin-top: 20px;
}

.tag {
    display: inline-block;
    background-color: #eee;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 3px;
    font-size: 14px;
}

.post-actions {
    margin-top: 20px;
}

.post-actions button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.post-actions button.liked {
    background-color: #28a745;
}

.post-actions button.disliked {
    background-color: #dc3545;
}

.comments {
    margin-top: 40px;
}

.comments h2 {
    margin-bottom: 20px;
}

.comments .form-group {
    margin-bottom: 15px;
}

.comments .form-group label {
    display: block;
    margin-bottom: 5px;
}

.comments .form-group input,
.comments .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.comments .form-group textarea {
    resize: vertical;
}

.comments button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.comments-list {
    margin-top: 20px;
}

.comment {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.comment strong {
    display: block;
    margin-bottom: 5px;
}

.comment small {
    color: #666;
    font-size: 12px;
}