:root {
    --first-color: #cccc;
    --second-color: #ccc;
    --third-color: #bbbbbb;
    --forth-color: #ffffff;
    --fifth-color: #ffffff;
    --text-color: #000;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: "yekan", sans-serif;
    font-size: 18px;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    min-height: 100vh;
}
.content {
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
    gap: 5px;
    padding: 5px;
}
.main-bar {
    width: 100%;
    padding: 0px;
}
.first-bar, .last-bar {
    display: flex;
    flex-flow: column nowrap;
    width: 20%;
    padding: 0px;
}
.first-bar ul, .last-bar ul {
    list-style: none;
    padding: 10px 10px;
    border: solid 1px var(--first-color);
    border-radius: 4px;
    margin: 0;
}
.first-bar li, .last-bar li {
    border-bottom: solid 1px #ccc;
    margin: 5px 0;
    padding: 5px 0;
}
.first-bar li:last-child, .last-bar li:last-child {
    border-bottom: 0;
}
.first-bar a, .last-bar a {
    text-decoration: unset;
    color: var(--text-color);
}
.first-bar img, .last-bar img {
    width: 100%;
}

/* header */
.nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0px 15px;
    background: var(--first-color);
}
.nav .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.nav .logo img {
    height: 70px;
}
.nav a {
    color: var(--text-color);
    text-decoration: unset;
}
.nav ul {
    display: flex;
    margin: 0;
}
.nav li {
    list-style: none;
}
.nav li a {
    padding: 28px 15px;
    min-width: 80px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}
.nav li a:hover {
    background: var(--second-color);
}

/* footer */
footer {
    display: flex;
    flex-flow: column nowrap;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    background: var(--first-color);
}
footer .top-side {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
    width: 100%;
    padding: 15px 0;
}
footer .top-side .col {
    display: flex;
    flex-flow: column nowrap;
}
footer .top-side .contact {
    text-align: center;
}
footer .bottom-side {
    background: var(--second-color);
    width: 100%;
    text-align: center;
}
footer a {
    color: var(--text-color);
}


/* index */
.container.index .main-bar {
    padding: 0;
}
.index .top-side, .index .bottom-side {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.index .top-side {
    background: var(--third-color);
    padding: 40px;
}
.index .bottom-side {
    padding: 20px;
}
.index h1 {
    font-size: 50px;
    margin: 10px 0 0 0;
}

/* layouts */
.categories {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}
.categories .item {
    color: #000;
    text-decoration: unset;
    border: solid 1px var(--second-color);
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}
.categories .item:hover {
    background: var(--second-color);
}
.categories h2 {
    font-size: 20px;
    margin: 0;
}
.posts {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 15px;
}
.posts .item {
    color: #000;
    text-decoration: unset;
    border: solid 1px var(--second-color);
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 2px 2px #ccc;
}
.posts .item img {
    width: 300px;
}
.desc-area {
    text-align: justify;
}
.breadcrumb {
    padding: 20px 15px 0px;
    font-size: 14px;
    color: var(--third-color);
}
.breadcrumb a {
    color: var(--third-color);
    text-decoration: unset;
}
.breadcrumb a:hover {
    color: var(--third-color);
}
.content .box {
    border: solid 1px var(--first-color);
    border-radius: 4px;
    box-shadow: 0 0 2px -2px var(--second-color);
    width: 100%;
    display: flex;
    flex-flow: column wrap;
    padding: 10px 20px;
    gap: 10px;
}
.paginate {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.paginate .item {
    padding: 10px;
    border: solid 1px var(--first-color);
    color: var(--text-color);
    text-decoration: unset;
}
.paginate .current {
    background: var(--third-color);
}

@media screen and (max-width: 768px) {
    .content {
        flex-flow: column nowrap;
    }
    .first-bar, .last-bar {
        width: 100%;
    }
    .first-bar img, .last-bar img {
        max-height: 150px;
        object-fit: contain;
    }
}

@media screen and (max-width: 500px) {
    .nav {
        padding: 0px 5px;
    }
    .nav .logo {
        flex-flow: column;
        gap: 0;
    }
    .nav .logo img {
        width: 50px;
        font-size: 16px;
    }
}