.blog .blog_block .blog_info ul:after {
    display: none;
}

.pagination li span {
    width: 60px;
    height: 60px;
    line-height: 58px;
    padding: 0;
    text-align: center;
    border-radius: 50px !important;
    font-size: 24px;
    margin: 0 10px;
    transition: all .3s;
}

.pagination li.active span {
    background-color: #FF7F00 !important;
    border: 1px solid #FF7F00 !important;
    color: #fff;
    margin-left: 0;
}

.pagination li a {
    margin-left: 0;
}

.pagination>li:last-child>a,
.pagination>li:last-child>span {
    margin-right: 10px !important;
}

.single_course .course_detail .word img {
    border-radius: 50%;
}

.single_course .course_detail .add_comment .form-group:first-child h4 {
    width: 150px;
}

.my-rating {
    width: 100%;
}

label.error {
    color: red;
}

#add_newsletter-alert {
    margin-left: 12px;
    margin-top: 20px;
}

footer .middle ul li a {
    line-height: 30px;
}

footer ul>li>ul {
    list-style: square;
    padding-right: 50px;
}

footer ul>li>ul>li>ul {
    list-style: circle;
    padding-right: 30px;
}

/* ===== المجتمعات ===== */

/* صفحة قائمة المجتمعات */
.communities-page {
    padding: 50px 0;
}

.communities-header {
    text-align: center;
    margin-bottom: 40px;
}

.communities-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.communities-header p {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.communities-section {
    margin-bottom: 50px;
}

.communities-section-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.communities-section-header h2 {
    font-size: 24px;
    color: #444;
}

.communities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.community-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    width: calc(33.333% - 14px);
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.community-card-header {
    background-color: #FF7F00;
    color: white;
    padding: 15px;
    text-align: center;
}

.community-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.community-card-body {
    padding: 15px;
    min-height: 80px;
}

.community-card-body p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.community-card-footer {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
}

.community-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.community-stat {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 13px;
}

.community-stat i {
    margin-right: 5px;
    color: #FF7F00;
}

.community-actions {
    display: flex;
    gap: 10px;
}

.community-action {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}

.community-action.primary {
    background-color: #FF7F00;
    color: white;
}

.community-action.primary:hover {
    background-color: #e67300;
}

.community-action.secondary {
    background-color: #f0f0f0;
    color: #333;
}

.community-action.secondary:hover {
    background-color: #e0e0e0;
}

/* صفحة عرض المجتمع */
.community-page {
    padding: 50px 0;
}

.create-post-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.create-post-header {
    background-color: #f8f8f8;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.create-post-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.create-post-body {
    padding: 15px;
}

.create-post-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    resize: vertical;
    font-size: 14px;
    transition: border-color 0.3s;
}

.create-post-textarea:focus {
    border-color: #FF7F00;
    outline: none;
}

.create-post-media-preview {
    margin-top: 10px;
    display: none;
}

.create-post-media-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
}

.create-post-footer {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.create-post-actions {
    display: flex;
    gap: 15px;
}

.create-post-action {
    display: flex;
    align-items: center;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.create-post-action:hover {
    color: #FF7F00;
}

.create-post-action i {
    margin-right: 5px;
    font-size: 16px;
}

.create-post-submit {
    background-color: #FF7F00;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.create-post-submit:hover {
    background-color: #e67300;
}

.create-post-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.posts-section {
    margin-bottom: 30px;
}

.posts-section-header {
    margin-bottom: 20px;
}

.posts-section-header h3 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.post-card.pinned {
    border: 2px solid #FF7F00;
    position: relative;
}

.post-card.pinned::before {
    content: "مثبت";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF7F00;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.post-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.post-user {
    display: flex;
    align-items: center;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-user-info {
    display: flex;
    flex-direction: column;
}

.post-username {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.post-time {
    color: #999;
    font-size: 12px;
}

.post-options {
    position: relative;
}

.post-options-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.post-options-toggle:hover {
    background-color: #f0f0f0;
}

.post-options-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 150px;
    z-index: 10;
    display: none;
}

.post-options:hover .post-options-menu {
    display: block;
}

.post-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.post-option:hover {
    background-color: #f8f8f8;
}

.post-option i {
    margin-right: 10px;
    font-size: 14px;
    width: 16px;
}

.post-body {
    padding: 15px;
}

.post-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.post-media {
    margin-top: 10px;
}

.post-media img {
    max-width: 100%;
    border-radius: 4px;
}

.post-footer {
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.post-stats {
    display: flex;
    gap: 15px;
}

.post-stat {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.post-stat i {
    margin-right: 5px;
}

.post-stat.like {
    cursor: pointer;
    transition: color 0.3s;
}

.post-stat.like:hover {
    color: #e74c3c;
}

.post-stat.like.liked {
    color: #e74c3c;
}

.post-actions {
    display: flex;
    gap: 15px;
}

.post-action {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.post-action:hover {
    color: #FF7F00;
}

.post-action i {
    margin-right: 5px;
}

.comments-section {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-create-textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    resize: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

.comment-create-textarea:focus {
    border-color: #FF7F00;
    outline: none;
}

.comment-submit {
    background-color: #FF7F00;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-submit:hover {
    background-color: #e67300;
}

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

.comment {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-user {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-username {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.comment-time {
    color: #999;
    font-size: 12px;
    margin-left: auto;
}

.comment-options {
    position: relative;
    margin-left: 10px;
}

.comment-options-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.comment-options-toggle:hover {
    background-color: #f0f0f0;
}

.comment-options-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 150px;
    z-index: 10;
    display: none;
}

.comment-options:hover .comment-options-menu {
    display: block;
}

.comment-option {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-option:hover {
    background-color: #f8f8f8;
}

.comment-option i {
    margin-right: 8px;
    font-size: 14px;
    width: 16px;
}

.comment-body {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 8px;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-stats {
    display: flex;
    gap: 15px;
}

.comment-stat {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 13px;
}

.comment-stat i {
    margin-right: 5px;
    font-size: 12px;
}

.comment-stat.like {
    cursor: pointer;
    transition: color 0.3s;
}

.comment-stat.like:hover {
    color: #e74c3c;
}

.comment-stat.like.liked {
    color: #e74c3c;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-action {
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s;
}

.comment-action:hover {
    color: #FF7F00;
}

.reply-form {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    padding-left: 38px;
    display: none;
}

.comment-replies {
    margin-top: 15px;
    padding-left: 38px;
    border-left: 2px solid #f0f0f0;
}

/* أنماط الصفحة الرئيسية للمجتمعات */
.communities-header {
    margin-bottom: 30px;
    text-align: center;
}

.communities-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.communities-header p {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.communities-section {
    margin-bottom: 40px;
}

.communities-section-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #FF7F00;
    padding-bottom: 10px;
}

.communities-section-header h2 {
    font-size: 22px;
    color: #333;
    margin: 0;
}

.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* أنماط متجاوبة */
@media (max-width: 768px) {
    .communities-grid {
        grid-template-columns: 1fr;
    }

    .post-header,
    .post-footer,
    .comment-header,
    .comment-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-options,
    .comment-options {
        align-self: flex-end;
    }

    .post-stats,
    .comment-stats {
        margin-bottom: 10px;
    }
}

.edit-post-footer,
.edit-comment-footer {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.current-media {
    margin-bottom: 15px;
}

.current-media img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
}

/* تصميم متجاوب للمجتمعات */
@media (max-width: 992px) {
    .community-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .community-card {
        width: 100%;
    }

    .create-post-footer {
        flex-direction: column;
        gap: 10px;
    }

    .create-post-actions {
        width: 100%;
        justify-content: space-between;
    }

    .post-header {
        flex-wrap: wrap;
    }

    .post-options {
        margin-top: 10px;
    }

    .post-footer {
        flex-direction: column;
        gap: 10px;
    }

    .post-stats,
    .post-actions {
        width: 100%;
        justify-content: space-around;
    }

    .chat-container {
        height: 500px;
    }
}

@media (max-width: 576px) {
    .create-post-action span {
        display: none;
    }

    .create-post-action i {
        margin-right: 0;
    }

    .comment-form {
        flex-direction: column;
    }

    .comment-submit {
        align-self: flex-end;
    }

    .reply-form {
        padding-left: 20px;
    }

    .comment-replies {
        padding-left: 20px;
    }
}