﻿/* =========================
   Reset
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    direction: rtl;
    font-family: Tahoma, sans-serif;
    background: #f5f7fa;
    color: #222;
    line-height: 1.8;
}


a {
    text-decoration: none;
    color: inherit;
}


ul {
    list-style: none;
}



/* =========================
   Container
========================= */


.article-container {
    width: 100%;
    max-width: 1320px;
    margin: auto;
    padding: 0 15px;
}



/* =========================
   Header
========================= */


.article-header-site {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}


.article-logo img {
    max-height: 60px;
    width: auto;
}


.article-logo {
    font-size: 22px;
    font-weight: bold;
    color: #1f3b73;
}



/* =========================
   Menu
========================= */


.article-menu {
    background: #1f3b73;
}


    .article-menu ul {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }


    .article-menu li {
        margin-left: 20px;
    }


    .article-menu a {
        display: block;
        color: #fff;
        padding: 14px 16px;
    }


        .article-menu a:hover {
            background: rgba(255,255,255,.15);
        }



/* =========================
   Main
========================= */


.article-main {
    min-height: 500px;
    padding: 30px 0;
}



/* =========================
   Article Layout
========================= */


.article-layout {
    display: flex;
    gap: 30px;
}


.article-content-area {
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
}


.article-sidebar {
    width: 300px;
}



/* =========================
   Article
========================= */


.article-title {
    font-size: 28px;
    margin-bottom: 15px;
}


.article-info {
    color: #777;
    font-size: 13px;
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}


.article-cover img {
    width: 100%;
    border-radius: 10px;
}


.article-summary {
    background: #f5f7fa;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
}


.article-text {
    font-size: 16px;
    line-height: 2.2;
}



/* =========================
   Sidebar
========================= */


.sidebar-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}


    .sidebar-box h3 {
        margin-bottom: 15px;
        color: #1f3b73;
    }


    .sidebar-box a {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }



/* =========================
   Comments
========================= */


.comment-box {
    background: #f7f7f7;
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
}



/* =========================
   Footer
========================= */


.article-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 20px 0;
    text-align: center;
    color: #666;
    font-size: 13px;
}



/* =========================
   Mobile Menu
========================= */


.menu-toggle {
    display: none;
}



@media(max-width:768px) {


    .menu-toggle {
        display: block;
        background: none;
        border: 0;
        color: #fff;
        font-size: 28px;
        padding: 10px 15px;
        cursor: pointer;
    }



    .article-menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }



        .article-menu ul.active {
            display: flex;
        }



    .article-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,.15);
    }



    .article-menu a {
        padding: 12px 15px;
    }




    .article-layout {
        flex-direction: column;
    }



    .article-sidebar {
        width: 100%;
    }



    .article-content-area {
        padding: 15px;
    }



    .article-title {
        font-size: 22px;
    }



    .article-info {
        flex-direction: column;
        gap: 5px;
    }



    .article-text {
        font-size: 15px;
    }
}

/* =========================
   Article Archive
========================= */


.articles-title {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}



.articles-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}



.article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}



    .article-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }



.article-card-body {
    padding: 20px;
}



.article-card h2 {
    font-size: 18px;
    margin-bottom: 12px;
}



.article-card p {
    color: #666;
    font-size: 14px;
}



.article-card-meta {
    display: flex;
    gap: 15px;
    color: #777;
    font-size: 12px;
    margin: 15px 0;
}



.read-more {
    color: #1f3b73;
    font-weight: bold;
}



.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}



.page-link {
    background: #fff;
    border: 1px solid #eee;
    padding: 8px 14px;
    border-radius: 6px;
}



    .page-link.active {
        background: #1f3b73;
        color: #fff;
    }




@media(max-width:900px) {

    .articles-grid {
        grid-template-columns: repeat(2,1fr);
    }
}



@media(max-width:600px) {

    .articles-grid {
        grid-template-columns: 1fr;
    }


    .article-card img {
        height: auto;
    }
}
/*==========================
      Layout
==========================*/

.article-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.article-content-area {
    flex: 1;
    min-width: 0;
}

.article-sidebar {
    width: 320px;
    flex-shrink: 0;
}


/*==========================
      Grid
==========================*/

.article-list {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin-top: 25px;
}

.article-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    transition: .25s;
}

    .article-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,.08);
    }

    .article-card img {
        width: 100%;
        height: 210px;
        object-fit: cover;
        display: block;
    }

.article-card-body {
    padding: 15px;
}

    .article-card-body h2 {
        font-size: 17px;
        line-height: 1.8;
        margin: 0 0 10px;
    }

        .article-card-body h2 a {
            color: #222;
            text-decoration: none;
        }

    .article-card-body p {
        color: #666;
        font-size: 14px;
        line-height: 2;
        height: 84px;
        overflow: hidden;
    }

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 13px;
    color: #888;
}


/*==========================
      Tablet
==========================*/

@media(max-width:992px) {

    .article-layout {
        flex-direction: column;
    }

    .article-sidebar {
        width: 100%;
    }

    .article-list {
        grid-template-columns: repeat(3,1fr);
    }
}


/*==========================
      Mobile
==========================*/

@media(max-width:768px) {

    .article-list {
        grid-template-columns: repeat(2,1fr);
        gap: 15px;
    }

    .article-card img {
        height: 150px;
    }

    .article-card-body {
        padding: 10px;
    }

        .article-card-body h2 {
            font-size: 15px;
        }

        .article-card-body p {
            display: none;
        }

    .article-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}
/*==============================
        Card Style
===============================*/

.article-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #ececec;
    transition: .25s;
}

    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0,0,0,.08);
    }

    .article-card img {
        width: 100%;
        height: 210px;
        object-fit: cover;
        transition: .35s;
    }

    .article-card:hover img {
        transform: scale(1.05);
    }

.article-card-body {
    padding: 18px;
}

    .article-card-body h2 {
        margin: 0 0 12px;
        font-size: 18px;
        line-height: 1.8;
        height: 64px;
        overflow: hidden;
    }

        .article-card-body h2 a {
            color: #222;
            text-decoration: none;
        }

    .article-card-body p {
        font-size: 14px;
        color: #666;
        line-height: 2;
        height: 85px;
        overflow: hidden;
        margin-bottom: 18px;
    }

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    margin-bottom: 18px;
}

.article-more {
    display: block;
    width: 100%;
    text-align: center;
    background: #0d6efd;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: .25s;
}

    .article-more:hover {
        background: #0b5ed7;
        color: #fff;
    }
/*==========================
    Sidebar Articles
===========================*/

.sidebar-articles {
    display: flex;
    flex-direction: column;
}

.sidebar-article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #efefef;
    transition: .25s;
}

    .sidebar-article:last-child {
        border-bottom: none;
    }

    .sidebar-article:hover {
        background: #f8f9fb;
    }

    .sidebar-article img {
        width: 150px;
        height: 150px;
        min-width: 75px;
        border-radius: 10px;
        object-fit: cover;
        border: 1px solid #ececec;
    }

    .sidebar-article div {
        flex: 1;
        overflow: hidden;
    }

    .sidebar-article h4 {
        margin: 0 0 8px;
        font-size: 14px;
        line-height: 1.7;
        color: #222;
        font-weight: 700;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sidebar-article span {
        font-size: 12px;
        color: #888;
    }

/* موبایل */

@media (max-width:768px) {

    .sidebar-article img {
        width: 150px;
        height: 150px;
        min-width: 65px;
    }

    .sidebar-article h4 {
        font-size: 13px;
    }
}
.comment-form {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
}

    .comment-form h2 {
        margin-bottom: 20px;
    }

    .comment-form .form-group {
        margin-bottom: 18px;
    }

    .comment-form label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
    }

    .comment-form .form-control {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-family: inherit;
        box-sizing: border-box;
    }

    .comment-form textarea {
        resize: vertical;
    }

    .comment-form button {
        padding: 12px 30px;
    }
/* ==========================
   Article Comments
========================== */

.article-comments {
    margin-top: 40px;
}

    .article-comments h2,
    .comment-form h2 {
        font-size: 24px;
        margin-bottom: 25px;
        color: #222;
        font-weight: 700;
    }


/* Comment Box */

.comment-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: all .3s ease;
}

    .comment-box:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    }


    /* User name */

    .comment-box strong {
        font-size: 17px;
        color: #222;
        display: inline-block;
    }


    /* Date */

    .comment-box small {
        font-size: 13px;
        color: #999;
    }


    /* Comment text */

    .comment-box p {
        margin-top: 15px;
        line-height: 2;
        color: #444;
        font-size: 15px;
    }


/* ==========================
   Admin Reply
========================== */

.admin-reply {
    margin-top: 20px;
    padding: 18px 20px;
    background: #f7f9fc;
    border-right: 4px solid #0d6efd;
    border-radius: 10px;
}


    .admin-reply strong {
        color: #0d6efd;
        font-size: 15px;
    }


    .admin-reply p {
        margin-top: 10px;
        color: #555;
        line-height: 1.9;
    }



/* ==========================
   Comment Form
========================== */

.comment-form {
    margin-top: 40px;
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 16px;
}


.form-group {
    margin-bottom: 20px;
}


    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #333;
    }


.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: .3s;
}


    .form-control:focus {
        border-color: #0d6efd;
        outline: none;
        box-shadow: 0 0 0 3px rgba(13,110,253,.1);
    }


.btn-primary {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: .3s;
}


    .btn-primary:hover {
        opacity: .9;
        transform: translateY(-2px);
    }



/* ==========================
   Mobile
========================== */

@media(max-width:768px) {

    .comment-box {
        padding: 18px;
    }

    .comment-form {
        padding: 20px;
    }

        .article-comments h2,
        .comment-form h2 {
            font-size: 20px;
        }
}
/* =========================
   Breadcrumb
========================= */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding: 12px 18px;
    background: #f8f9fb;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    font-size: 14px;
}

    .breadcrumb a {
        color: #0b7dda;
        text-decoration: none;
        transition: .2s;
    }

        .breadcrumb a:hover {
            color: #0056b3;
            text-decoration: underline;
        }

    .breadcrumb span {
        color: #666;
    }

        .breadcrumb span:last-child {
            color: #222;
            font-weight: 700;
        }