/* Dark Mode Styles */
body {
  background-color: #1a172e;;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Blog Container */
.blog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 28px;
    margin: 20px auto;
    max-width: 85%;
    padding-top: 50px;
    padding-bottom: 50px;
}
.blog-content h3{
    font-family: Poppins, sans-serif;
}

/* Blog Card */
.blog-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #fff;
    position: relative;
    height: 271px;
    display: flex;
}

.blog-card:hover {
    transform: scale(1.05);
}

.blog-card img {
    width: 375px;
    height: 100%;
    /* object-fit: cover; */
}

.blog-content {
    padding: 15px;
    box-sizing: border-box;
    height: 100%;
    width: calc(100% - 378px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-content h3 {
    color: #262626;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    font-family: Poppins, sans-serif !important;
}

.blog-content p {
    color: #3c3c3cbd;
}

/* Read More Button */
.read-more {
    display: inline-block;
    /* margin-top: 10px; */
    padding: 8px 12px;
    background-color: #262626;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s;
    font-size: 0.9em;
    
}
.read-more-container{    
    display: flex;
    align-items: center;
    justify-content: space-between;    
    bottom: 7px;
    width: 100%;
    box-sizing: border-box;
}

.read-more:hover {
    background-color: #262626;
	cursor:pointer;
}
.edit-icon .fa-solid, .fas{
	color:#fff;
}
.fa-solid, .fas{
	color:#262626;
}
.card-user-icon span{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
    width: 152px;
	color:#262626;
}
/* Create Blog Button */
.create-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 10px;
    background-color: #42a8ad;
    color: white;
    border: none;
    width: 70px;
    height: 70px;
    float: l;
    float: right;
    border-radius: 50%;
    right: 30px;
    top: 50%;
    position: fixed;
    cursor: pointer;
    font-size: 40px;
    font-weight: 300;
    z-index: 99999;
    transition: 0.3s;
}


/* Popup */
.popups {
    display: none;
    z-index: 999999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:rgb(0 0 0 / 91%);
    justify-content: center;
    align-items: center;
}

.popup-contents {
    background: #2f2f2f;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 530px;
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
}

.popup-contents input,
.popup-contents textarea {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #444;
    background: #171717;
    color: white;
    border-radius: 5px;
    resize: none;
    box-sizing: border-box;
}

.popup-contents button {
    background: #fff;
    color: #262626;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-contents form{
    background: #2f2f2f;
    padding: 15px;
    border-radius: 10px;
    animation: slideIn 0.6sease-in-out !important;
    text-align: left;
    box-shadow: none !important;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

/* Author Icon */
.author {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #b3b3b3;
    margin-top: 10px;
}

.author i {
    font-size: 18px;
    margin-right: 8px;
    color: #007bff;
}
.blog-container-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* gap: 20px; */
    margin: 20px auto;
    max-width: 85%;
    align-items: center;
}
#blogPopup textarea{
    height: 230px;
    resize: none; 
}


/* Edit and Delete Icons */
.icons {
    display: none;
    justify-content: center;    
    position: absolute;
    width: 100%;
    top: 0;
    box-sizing: border-box;
    left: 0;
    padding: 0px 15px;
    height: 100%;
    box-sizing: border-box;
    align-items: center;
}

.edit-icon, .delete-icon {
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Blog Card Style */


/* On hover, expand and add shadow */
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Show icons when hovering over the blog card */
.blog-card:hover .icons {
    display: flex;
    gap: 35px;
    background: #0000008c;
}
/* .blog-card:hover .icons span p,.blog-card:hover .icons span h2{
    display: none;
}  */

/* Edit/Delete Icon Styling */
.icons .edit-icon,
.icons .delete-icon {
    font-size: 20px;
    padding: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Change color when hovering over icons */
.icons .edit-icon:hover {
    color: #007bff;
}

.icons .delete-icon:hover {
    color: #e74c3c;
}

/* Blog View Container */
.view-details {   
    /* border-radius: 10px; */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    animation: fadeIn 0.8sease -in-out;
    display: flex;
    gap: 0px;
    flex-wrap: wrap;
    width: 50%;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    margin: 0 auto;
    background: #fff;
    height: 100vh;
}


/* Blog Title */
.view-details h2 {  
    font-size: 22px;
    padding: 20px;
    color: #262626;
    text-align: left;
	margin-bottom:0px;
}

/* Blog Image */
.view-details img {
    width: 100%;  
    height: 380px;
    object-fit: cover;
}

/* Blog Description */
.view-details p {
    font-size: 18px;   
    line-height: 1.6;
    margin: 10px 0;
}

/* Author & Date */
.view-details p strong {
    color: #444;
}

/* Comments Section */
h3 {
    margin-top: 0px;
    margin-bottom: 0;
    font-size: 18px;    
    padding-bottom: 2px;
    display: inline-block;
}
.blog-content h2,.blog-content p{
    margin:5px 0;
    line-height: 25px;
}
/* Comments Box */
.view-details p strong {
    font-size: 18px;
    color: #262626;
}

.view-details p {
    background: #fff;
    text-align: left;
	color:#262626;
    font-size: 1rem;
}

/* Comment Form */
form {
   
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.6s ease-in-out;
}

/* Input Fields */
form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #dfdfdf;
    /* border-radius: 5px; */
    font-size: 16px;
    box-sizing: border-box;
    background: none;
    color: #fff;

}

/* Disable Resizing of Textarea */
form textarea {
    resize: none;
    height: 80px;
}

/* Submit Button */
form button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

form button:hover {
    background: #0056b3;
}
.publisher-details,.commentetor-details,.view-content{
    display: flex;   
    background: #fff;
    border-radius: 5px;
    justify-content: space-between;
    padding: 0 25px;
}
.view-content{
    flex-direction: column;
}


.comment-box {
    background: #171717;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.reply-box {
    background: #171717;
    padding: 0 20px;
    margin-left: 20px;   
    border-radius: 5px;
}

.reply-btn {
    background: #007bff;
    color: white;
    border: none;
    /* padding: 5px 10px; */
    cursor: pointer;   
    border-radius: 2px;
    text-align: center;
    
}

.reply-btn:hover {
    background: #0056b3;
}

.reply-form {
    background: #171717;
    padding: 10px;
    margin-top: 0;
    padding-top: 0;
    display: none;
    border-radius: 5px;
}
.Success-msg,.Success-msg-delete ,.edit-success-msg{
    position: fixed;
    top: -50px; /* Start position (hidden above screen) */
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    background: #82c482;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    border-bottom: 3px solid green;
    z-index: 1000;
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}
.Success-msg-delete,.edit-success-msg{
    background: #e79548;
    border-bottom: 3px solid rgb(141, 80, 11);
}
/* When active, the message slides down */
.Success-msg.show,.Success-msg-delete.show,.edit-success-msg.show {
    top: 20px; /* Visible position */
    opacity: 1;
}

/* Slide up when hiding */
.Success-msg.hide,.Success-msg-delete.hide,.edit-success-msg.hide {
    top: -50px;
    opacity: 0;
}


input:-internal-autofill-selected {
    background-color: none;
}

.blog-content ol,.blog-content ul {
    padding-left: 20px !important;
}

    /* Dimmer background */
    .confirm-popup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
       
        justify-content: center;
        align-items: center;
        z-index: 99;
    }
    
    .confirm-popup-content {
        background: #262626;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
    }

    .confirm-popup-buttons {
        margin-top: 15px;
    }

    .confirm-popup-buttons button {
        padding: 8px 15px;
        margin: 5px;
        border: none;
        cursor: pointer;
        border-radius: 3px;
        color: #262626;
    }

    #confirmDelete {
        background: red;
        color: white;
    }


     /* Toast Notification */
     #toastMessage {
        /* display: none; */
        position: fixed;
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
        background: #4CAF50;
        color: white;
        padding: 12px 20px;
        border-radius: 5px;
        box-shadow: 0px 4px 6px rgba(0,0,0,0.2);
        transition: top 0.5s ease-in-out;
        font-size: 16px;
    }
    .comment-box .comment-user-detail{
        display: flex;
        justify-content: left;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .comment-box .comment-content{
        flex-direction: column;
        display: flex;
        padding-left: 40px;
        justify-content: left;
        text-align: left;
        padding-bottom: 0px;
        padding-top: 0;
    }
    .user-icon{
        height: 30px;
        width: 30px;
        background: #9b9b9b;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .reply-box div{
        display: flex;
        justify-content: flex-start;
        align-items: left;
        gap: 10px;
        padding: 5px 0;
    }
    .reply-form form{
        position: relative;
        padding-top:0;
        padding-left: 30px;
        padding-right: 30px;
    }
    .comment-content p{
        margin-top: 5px;
        margin-bottom: 5px;
    }
    form input{
        width: 320px;
    }

/*Rich Text Editor*/
.tox{
    border: none !important;
    background-color: #171717 !important;
}
.tox div{
    background-color: #171717 !important;
}
.tox .tox-statusbar{
    display: none !important;
}
.tox .tox-tbtn svg {
    display: block;
    fill: #ffffff !important;
}
.tox .tox-edit-area__iframe{
    background-color: #171717 !important;
    color: #fff !important;
}
.tox:not(.tox-tinymce-inline) .tox-editor-header{
    box-shadow: 0 2px 2px -2px rgb(255 255 255), 0 0px 0px 0px rgb(255 255 255) !important;
}
.mce-content-body,#tinymce{
    color: #fff !important;
}


.icons .edit-icon i::before, .icons .delete-icon i::before{
    background: #000000;
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 50%;
}
.publisher-details {
    width: 100%;
    justify-content: flex-end;
    gap: 20px;
}