    /* Replies and Posts Styling */
        .replies, .posts {
            margin-top: 20px;
        }

        .reply, .post {
            transition: all 0.3s ease;
        }

		/* General Styles for Posts and Replies */
.post, .reply {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #fff;
    position: relative; /* To ensure absolute elements are positioned correctly */
	overflow: hidden;
}

/* Header Container with Flexbox */
.post-header, .reply-header, .post-title {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-bottom: 0px; /* Space between header and content */
}

.post-title { font-weight: 700; font-size: 1.1em;}

/* Metadata Styling */
.post-meta, .reply-meta {
    font-size: 0.85em;
    color: #555;
	margin-bottom: 10px;
	padding:0;
	font-weight:200;
}

/* Delete Button Styling */
.delete-post, .delete-reply {
    background: none;
    border: none;
    color: #dc3545; /* Bootstrap's danger color */
    cursor: pointer;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.delete-post:hover, .delete-reply:hover {
    color: #a71d2a; /* Darker shade on hover */
}

/* Ensuring the delete button doesn't take up space */
.delete-post:focus, .delete-reply:focus {
    outline: none;
}

@media (max-width: 600px) {
    .post-header, .reply-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .delete-post, .delete-reply {
        margin-top: 5px; /* Add space above the delete button on small screens */
    }
}

        .reply-form, .toggle-new-post {
            margin-top: 10px;
            display: none;
        }

        .toggle-reply, .toggle-newpost {
            cursor: pointer;
            
            font-size: 0.9em;
        }

        /* Form styling */
        .form-group {
            margin-bottom: 10px;
        }

        label {
            display: block;
            margin-bottom: 3px;
        }

        input[type="text"], textarea {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
        }

        button {
            padding: 8px 12px;
            background-color: #28a745;
            color: white;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }

        button:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

        /* Success and error messages */
        .message {
            margin-bottom: 15px;
            padding: 10px;
            border-radius: 3px;
        }

        .success {
            background-color: #d4edda;
            color: #155724;
        }

        .error {
            background-color: #f8d7da;
            color: #721c24;
        }


#pagination-controls {
    text-align: center;
    margin-top: 20px;
}

.pagination-link {
    display: inline-block;
    padding: 10px;
    background-color: #f1f1f1;
    margin: 0 5px;
    text-decoration: none;
    color: #333;
}

.pagination-link.active {
    font-weight: bold;
    background-color: #007bff;
    color: #fff;
}


.error-messages {
	
	padding: 10px;
	background-color: #f8d7da;
            color: #721c24;
			margin-bottom: 10px;
}

.error-messages ul {
list-style-type: none;
padding: 0;
margin:0;
}

.post-content {
	display:block;
	overflow:hidden;
}

/* Style all links that point to files with common extensions */
.post-content a[href$=".pdf"],
.post-content a[href$=".doc"],
.post-content a[href$=".docx"],
.post-content a[href$=".xls"],
.post-content a[href$=".xlsx"],
.post-content a[href$=".ppt"],
.post-content a[href$=".pptx"],
.post-content a[href$=".zip"],
.post-content a[href$=".rar"] {
    display: inline-block;
    padding: 8px 12px 8px 35px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background-color: #f9f9f9;
    position: relative;
    margin: 5px 0;
 overflow-wrap: break-word;
  word-wrap: break-word;

  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;
}

.post-content a[href$=".pdf"]::before,
.post-content a[href$=".doc"]::before,
.post-content a[href$=".docx"]::before,
.post-content a[href$=".xls"]::before,
.post-content a[href$=".xlsx"]::before,
.post-content a[href$=".ppt"]::before,
.post-content a[href$=".pptx"]::before,
.post-content a[href$=".zip"]::before,
.post-content a[href$=".rar"]::before {
    content: "\f15b"; /* Font Awesome file icon */
    font-family: "Font Awesome 5 Free"; /* Adjust based on your Font Awesome version */
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.post-content a[href$=".pdf"]::before {
    content: "\f1c1"; 
	color: #e74c3c; /* Red color for PDFs */

}


.post-content a[href$=".doc"]::before, .post-content a[href$=".docx"]::before {
    content: "\f1c2"; /* Font Awesome file icon */

}

.post-content a[href$=".xls"]::before, .post-content a[href$=".xls"]::before {
    content: "\f1c3"; /* Font Awesome file icon */

}

.post-content a[href$=".doc"],
.post-content a[href$=".docx"]::before {
    color: #2c3e50; /* Blue color for Word documents */
}

.cke_editable  p { font-family: "Figtree", sans-serif;}



/* Adjust colors and icons as needed for other file types */


/* Messages */
.chat-window {
	background-color: #fff;
	padding:20px;
}