        .containerposts {
            max-width: 100%;
            margin: auto;
            padding: 5px;
        }
        .blog-header {
            background-color: #002aa1;
            color: #fff;
            border-radius: 5px;
            text-align: center;
            margin-bottom: 20px;
        }
        .post-card {
            border: 1px solid #a4f6ff;
            border-radius: 5px;
            padding: 5px;
            margin-bottom: 15px;
            background-image: linear-gradient(to bottom, #ffffff, #f0faff);
            display: flex;
            flex-direction: column;
        }
        .post-card img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-radius: 5px;
        }
        .post-title h1 {
            color: #002aa1;
            font-weight: bold;
            font-size: 16px;
        }
        .post-title h1:hover {
            color: #0056b3;
        }
        .post-metaindx {
            font-size: 0.7em;
            color: #555;
            margin-top: 5px;
        }
        .btn-adbost {
            background-color: #d6ba0f;
            color: #fff;
            padding: 5px 30px;
            border-radius: 4px;
            align-self: flex-start;
            margin-top: 10px;
            font-size: 1em;
            font-weight: bold;
        }
        .btn-more:hover {
            background-color: #004494;
        }

         .containerpostswiew {
            max-width: 1200px;
            margin: auto;
            padding: 10px;
            display: flex;
            flex-wrap: wrap;
        }
        .main-content {
            flex: 3;
            padding: 5px;
        }
        .sidebar {
            flex: 1;
            padding: 10px;
           background: #d9f4ff;  
           border-radius: 5px;
           border: 1px solid #00d0ff;
        }
        .titlejanby h3 {
            color: #ebaf00;
            font-weight: bold;
            font-size:20px;
            line-height: 0;
        }        
        .post-titleview h1 {
            color: #0032c1;
            font-weight: bold;
            font-size:20px;
        }
        .post-titleview h1:hover {
            color: #5d00ff;
        }        
      .post-wiew img {
         width: 80%; 
         height: auto;
         max-height: 300px; 
         border-radius: 5px;
       display: block; 
       margin: 15px auto; 
   }

        .post-meta {
    font-size: 14px;
    background: #f3f4f4;
    border-radius: 5px;
    border: 1px solid #cacaca;
    padding: 2px;
        }
        .related-post-wiew {
            margin-bottom: 15px;
            border-bottom: 1px solid #ddd;
            padding-bottom: 10px;
        }
        .related-post-wiew img {
            width: 100%;
            height: 150px;
            border-radius: 5px;
        }
        textarea {
            width: 100%;
            padding: 10px;
            margin-top: 5px;
            box-sizing: border-box;
            border-radius: 5px;
            border: 1px solid #ccc;
            height: 150px;
            resize: vertical;
        }

        input[type="file"] {
            margin-top: 10px;
        }

        .submit-btnadbost {
            margin-top: 20px;
            width: 100%;
            padding: 10px 15px;
            background-color: #00aaff;
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 5px;
            font-family: 'Cairo', sans-serif;
            transition: background-color 0.3s;
        }

        .submit-btnadbost:hover {
            background-color: #ffac00;
        } 
.like-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    background: #feeaff;
    border-radius: 5px;
    border: 1px solid #e14ff4;
    padding: 5px;
}

.like-message {
    font-size: 14px;
    color: #95004f;
}
.like-count {
    font-size: 14px;
    color: #95004f;
}
#like-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}

#like-btn.liked {
    color: red;
    transform: scale(1.2);
} 
/* التحكم في الأزرار */
.post-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* زر الرجوع */
.back-btn {
    background-color: #77aeff;
    color: white;
    padding: 3px 5px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

/* حاوية أزرار التعديل والحذف */
.action-buttons {
    display: flex;
    gap: 10px;
}

/* زر التعديل */
.edit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 3px 5px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

/* زر الحذف */
.delete-btn {
    background-color: #ff4d4d;
    color: white;
    padding: 3px 5px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

.edit-btn:hover {
    background-color: #388e3c;
}
 /* زر المشاركة العائم */
.share-button {
    position: fixed;
    bottom: 10px;
    left: 10px; /* وضع الزر في الزاوية السفلية اليسرى */
    z-index: 999;
}

.share-button button {
    background-color: #007bff;
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%; /* جعل الزر دائري بالكامل */
    font-size: 30px;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.share-button button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* تحسين التفاعل في الأجهزة التي تعمل باللمس */
.share-button button:active {
    background-color: #004494;
    transform: scale(0.95);
}      
        @media (max-width: 768px) {
            .containerpostswiew {
                flex-direction: column;
            }
            .containerpeq {
              width: 95%;   
            }
            .main-content {
                order: 1;
            }
            .sidebar {
                order: 2;
            }
          .post-wiew img {
             width: 100%; 
             height: 250px;
          }
        }
        .tags-container {
            margin-top: 15px;
        }
        
        .tag {
            display: inline-block;
            background-color: #f0faff;
            border: 1px solid #a4f6ff;
            color: #0056b3;
            border-radius: 4px;
            padding: 3px 8px;
            font-size: 0.8em;
            margin: 2px;
        }

.comments-section {
    margin-top:10px;
    padding:5px;
    border-top: 2px solid #90bdff;
}

.comment {
    padding:5px;
    border-bottom: 1px solid #eee;
}
.add-comment textarea {
    height: 80px;
}
.add-comment button {
    display: block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    background: #fefff2;
    border-radius: 5px;
    padding: 3px;
    border-bottom: 1px solid #5c4fff;
}

.comment strong {
    color: #333;
}

.comment-date {
    font-size: 12px;
    color: #888;
    white-space: nowrap; 
}
.comentxt {
 font-size: 13px;   
}
.comment-text {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.5;
}
/* ✅ تصميم المحرر العام */
#texteditor {
    border: 1px solid #8dc8ff;
    border-radius: 5px;
    background: #e1f6ff;
    padding: 5px;
    margin: auto;
}

/* ✅ تصميم شريط الأدوات */
#tools {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 5px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    border-radius: 5px 5px 0 0;
    overflow-x: auto;
    white-space: nowrap;
}

/* ✅ تصميم الأزرار */
.tool-btn {
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 28px;
}

/* ✅ أيقونات الأزرار */
.tool-btn b, .tool-btn i, .tool-btn u {
    font-size: 16px;
    margin: 0;
}

/* ✅ عند تمرير الماوس على الزر */
.tool-btn:hover {
    background: #ddd;
}

/* ✅ زر التنظيف (🧹) بلون مختلف */
.clear-btn {
    background: #ffdddd;
    border-color: #ffaaaa;
}

.clear-btn:hover {
    background: #ffbbbb;
}

/* ✅ تصميم قائمة التنسيق */
.editor-select {
    padding:1px;
    font-size: 12px;
    width: auto;
}

/* ✅ تحسين مظهر المحرر */
#editor {
    min-height: 200px;
    padding: 5px;
    background: #fff;
    border-radius: 0 0 5px 5px;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    outline: none;
}

/* ✅ عند التركيز على المحرر */
#editor:focus {
    border: 2px solid #007bff;
}
