:root {
    --primary: #007355;
    --primary-dark: #023d38;
}

html {
    direction: rtl;
    font-family: "Shabnam", serif;
}

* {
    direction: rtl;
    margin: 0;
    padding: 0;
    font-family: "Shabnam", serif;
}

a {
    text-decoration: none !important;
    font-size: 15px;
    color: var(--primary);
}

header nav {
    width: 100%;
    height: 70px;
    background: rgba(241, 241, 241, 0.6);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    padding: 0 10px;
}

header nav .container-fluid {
    height: inherit;
}

header nav .container-fluid .row {
    height: inherit;
}

@media only screen and (max-width: 650px) {
    header nav .nav-desktop {
        display: none !important;
    }

    header nav .nav-buttons {
        width: 60% !important;
    }

    header nav .nav-main {
        width: 40% !important;
    }

    .hide-mobile {
        display: none !important;
    }
}

@media only screen and (min-width: 650px) {
    .hide-desktop {
        display: none !important;
    }
}

header nav .nav-brand {
    height: inherit;
    text-align: start;
    padding: 0 10px !important;
    line-height: 70px;
    display: inline-block;
}

header nav .nav-brand img {
    height: 40px;
    width: 40px;
}

header nav .nav-brand span {
    font-family: "Lobster", serif;
    color: var(--primary-dark) !important;
    font-size: 14px !important;
    margin: 5px !important;
}

header nav .nav-brand span {
    font-weight: 900;
    color: var(--primary);
    line-height: 70px;
    font-size: 20px;
    margin: 0 15px;
}

header nav .nav-desktop {
    display: inline-block;
}

header nav .nav-desktop ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
}

header nav .nav-desktop ul li a {
    padding: 0 10px;
    line-height: 73px;
    cursor: pointer;
    color: #222222;
}

header nav .nav-buttons {
    line-height: 70px;
    width: 40%;
    text-align: left;
}

header nav .nav-buttons .btn {
    padding: 10px 20px;
}

header nav .nav-main {
    width: 60%;
}

.btn {
    padding: 5px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    margin: 0 1px;
}

.btn-primary {
    background-color: var(--primary);
    color: whitesmoke !important;
    border: none !important;
}

.btn.icon {
    position: relative;
    width: 30px;
    height: 30px;
}

.btn.icon i {
    position: absolute;
    top: 13px;
    left: 13px;
}

.nav-mobile {
    display: none;
    z-index: 2000;
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: #f1f1f1;
}

.nav-mobile .top-button {
    margin-top: 20px;
    margin-left: 20px;
}


.nav-mobile .top-button .icon {
    display: inline-block;
    height: 40px;
    width: 40px;
}

.nav-mobile .top-button .icon i {
    left: 14px;
}

.nav-mobile ul {
    list-style: none;
    text-align: center;
    padding: 0 20px;
}

.nav-mobile ul li {
    margin: 10px 0;
}

.nav-mobile ul li a {
    font-size: 16px;
    line-height: 2;
    border-radius: 5px;
    border: 1px solid var(--primary-dark);
    width: 100%;
    display: block;
    padding: 5px 20px;
    color: var(--primary-dark) !important;
}

.nav-mobile ul li a.fill {
    background: var(--primary);
    color: whitesmoke !important;
}


@keyframes slide-in-left {
    from {
        left: -100%;
    }
    to {
        left: 0;
    }
}

.slide-in-left {
    animation-name: slide-in-left;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    display: block;
}

@keyframes slide-out-left {
    from {
        display: block;
        left: 0;
    }
    to {
        display: none;
        left: -100%;
    }
}

.slide-out-left {
    animation-name: slide-out-left;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    display: none;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    padding: 0;
    margin: 0;
    z-index: 200;
}

@keyframes fade-in {
    from {
        display: none;
        opacity: 0;
    }
    to {
        display: block;
        opacity: 1;
    }
}

.fade-in {
    animation-name: fade-in;
    animation-duration: 0.2s;
    animation-timing-function: ease-in-out;
    display: block;
}

@keyframes fade-out {
    from {
        display: block;
        opacity: 1;
    }

    to {
        display: none;
        opacity: 0;
    }
}

.fade-out {
    animation-name: fade-out;
    animation-duration: 0.2s;
    animation-timing-function: ease-in-out;
    display: none;
}

footer {
    padding: 20px 0;
    width: 100%;
    background: #f1f1f1;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

footer p {
    line-height: 2;
}

.title {
    font-size: 40px;
    color: var(--primary-dark);
    line-height: 1.5;
    text-align: center;
}

.category-list h3 {
    text-align: right;
    color: var(--primary-dark);
    margin: 0 0 10px;
}

.category-list h4 {
    text-align: right;
    color: #222222;
    margin: 0;
    padding-right: 20px;
}

.category-list ul {
    list-style: none;
    text-align: right;
}

.category-list ul li {
    padding-right: 20px;
}

.category-list ul li a {
    border: 1px solid #222222;
    display: block;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 10px 0;
    color: #222222;
    cursor: pointer;
    background: #fff;
}

.side-bar {
    background: #f1f1f1;
    border-radius: 5px;
    padding: 20px;
}

@media only screen and (max-width: 999px) {
    .side-bar {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

.side-bar .search-box {
    text-align: right;
    color: var(--primary-dark);
    margin: 0;
}

.side-bar .search-box input {
    position: relative;
}

.side-bar .search-box button {
    position: absolute;
    margin-top: 6px;
    left: 40px;
}

.input-text {
    border-radius: 5px;
    width: 100%;
    border: 1px solid var(--primary-dark);
    padding: 10px 20px;
}

.input-text:focus {
    transition: 0.2s;
    background: rgba(255, 255, 255, 0.8);
    outline: none;
    border: 1px solid var(--primary-dark);
}

.post-card {
    position: relative;
    text-align: right;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.post-card .post-image img {
    width: 100%;
    border-radius: 5px 5px 0 0;
}

.post-card .post-body h2 {
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: center;
    color: #2c2c2c;
}

.post-card .post-body {
    border-radius: 0 0 5px 5px;
    background: #f1f1f1;
    padding: 10px 10px 20px;
}

.post-card .post-body p {
    color: #505050;
}

.post-card .post-overlay {
    position: absolute;
    top: 15px;
    left: 10px;
}

.post .post-image img {
    width: 100%;
    border-radius: 5px 5px 0 0;
}

.post .post-content {
    background: #f1f1f1;
    line-height: 1.5;
    border-radius: 0 0 5px 5px;
    padding: 20px;
}

.post .post-content .post-header {
    text-align: center;
}

.post .post-content .post-header h1 {
    color: #222222;
}

.post .post-content .post-header .post-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.post .post-content .post-header .post-details div {
    margin: 5px 10px;
}

.post .post-content .post-header .post-details i {
    color: var(--primary);
}

.post .post-content .post-header .post-details a {
    color: #222222;
}

.post .post-body {
    margin-top: 20px;
}

.post .post-body p {
    text-align: justify;
    line-height: 2;
    box-sizing: border-box;
}

.post .post-body h2, h3, h4, h5, h6, span, strong {
    text-align: right;
    line-height: 2;
    background-color: transparent !important;
}

.post .post-body img {
    width: 100%;
    height: auto;
}

.post .post-body ul, ol {
    text-align: right;
    padding: 0 20px;
    background-color: transparent !important
}

.post .post-body li {
    line-height: 2;
    background-color: transparent !important
}

.post .post-body table {
    border-collapse: collapse;
    border-spacing: 5px;
    overflow-x: auto;
    white-space: nowrap;
    display: block;
    border: none !important;
}

.post .post-body td {
    border: 1px solid gray !important;
}

.post .post-body table {
    width: 100%;

}

.post .insert-comment {
    margin-top: 20px;
    border-radius: 5px;
    padding: 20px;
    background: #f1f1f1;
    text-align: right;
}

.post .comment-header h6 {
    font-size: 2rem;
    text-align: center;
}

.post .comment-header p {
    text-align: center;
}

.post .post-comments {
    margin-top: 20px;
    border-radius: 5px;
    padding: 20px;
    background: #f1f1f1;
    text-align: right;
}

.post .post-comments .comment {
    padding: 10px;
    background: white;
    border-radius: 5px;
    margin: 20px 0;
}


.post .post-comments .comment p {
    margin: 0;
    text-align: justify;
    line-height: 2;
}

.post .post-comments .comment .comment-details {
    margin-top: 5px;
}

.post .post-comments .comment .user {
    color: var(--primary);
    font-size: .9rem;
}

.post .post-comments .comment .clock {
    font-size: .9rem;
    color: #6c757d;
}


.post .post-comments .comment-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.post .post-comments .comment .reply {
    background: var(--primary);
    border-radius: 5px;
    padding: 10px 20px;
    color: whitesmoke;
    margin: 20px 0 0;
}

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    text-align: center;
    margin: 10px 0;
}

.alert-primary {
    background: rgba(69, 175, 148, 0.50);
    border: 1px solid var(--primary-dark);
}

.alert-primary p {
    color: var(--primary-dark);
    margin: 0;
    text-align: center;
}

.swal2-actions {
    direction: ltr !important;
}

.swal2-btn {
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    margin: 0 1px;
}

.swal-ul{
    padding-right: 20px;
    text-align: right;
    margin-bottom: 0;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: whitesmoke !important;
    border: none !important;
}

.pagination{
    display: flex;
    justify-content: center;
    list-style: none;
}

.pagination li .page-link{
    background: var(--primary);
    color: whitesmoke;
    margin: 0 5px;
    padding: 5px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}

.pagination li .current-page{
    padding: 5px 20px;
}

.pagination li .current-page:hover{
    color: var(--primary-dark);
}


#blogSidebar {
    display: none;
}

@media (min-width: 992px) {
    #blogSidebar {
        display: block !important;
    }

    .d-lg-none{
        display:none;
    }
}

