@font-face {
    font-family: 'anteroly';
    src:
        url('../fonts/anteroly.otf') format('otf'),
        url('../fonts/anteroly.ttf') format('truetype');
}

@font-face {
    font-family: 'iran-sans';
    src:
        url('../fonts/IRANSansWeb.eot?#') format('eot'),
        url('../fonts//IRANSansWeb.ttf') format('truetype'),
        url('../fonts//IRANSansWeb.woff') format('woff');
}

body {
    margin: 0;
    font-family: 'iran-sans';
    /* font-size: 1.125rem; */
    font-weight: 300;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

/* main typography */

h1,
h2,
h3 {
    font-family: 'iran-sans';
    font-weight: 400;
    color: #143774;
    margin-top: 0;
}

h1 {
    font-size: 2rem;
    margin: 0;
}

h3 {
    color: #1792d2;
}

a {
    color: #1792d2;
}

a:hover {
    color: #143774;
}

strong {
    font-weight: 700;
}

.subtitle {
    font-weight: 700;
    color: #1792d2;
    font-size: 0.75rem;
    margin: 0;
    text-transform: uppercase;
}

/* end main typography */

/* Article typography */
.article-title {
    font-size: 1.5rem;
}

.article-read-more,
.article-info {
    font-size: .875rem;
}

.article-read-more {
    color: #ff0073;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    border: #ff0073 solid 1px;
    border-radius: 12px;
    background-color: #fff1f7;
    padding: 5px 10px;
    display: block;
    margin: 0;
    width: 50%;
    text-align: center;
    margin: 0 auto;
}

.article-read-more:hover {
    color: #143774;
    text-decoration: underline;
    border: 1px solid #1480bb;
    background-color: transparent;
    box-shadow:
        0 0 6px rgba(20, 128, 187, 0.4),
        0 0 12px rgba(20, 128, 187, 0.25);
}

.article-info {
    margin: 2em 0;
}

/* End Article typography */

/* Widget Typography */
.widget-title,
.widget-recent-post-title {
    font-size: 1rem;
    line-height: 1.4;
}

.widget-title {
    font-family: 'iran-sans';
    font-weight: 700;
    letter-spacing: 2px;
    border-top: #143774 solid 2px;
    border-bottom: #143774 solid 2px;
    padding: 10px 0;
}

.widget-recent-post-title {
    color: #143774;
    text-align:center;
}

/* End Widget Typography */

/* Main Layout */
.container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
}

.container-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


header {
    background: #f8f8f8;
    padding: 2em 0;
    text-align: center;
    margin-bottom: 3em;
}

footer {
    background: #143774;
    color: white;
    text-align: center;
    padding: 3em 0;
    margin-top: 4rem;
}

footer p {
    letter-spacing: 1px;
}



/* End Main Layout */

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin-left: 2em;
}

nav a {
    text-decoration: none;
    color: #707070;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    color: #1792d2;
}

.current-page {
    border-bottom: 1px solid #707070;
}

.current-page:hover {
    color: #707070;
}

/* End Navigation */

/* Articles */
.article-featured {
    /* border-bottom: #f02929 1px solid; */
    padding-top: 2em;
    margin-bottom: 2em;
}

.article-featured h2 {
    text-align: center;
}

.article-recent {
    display: flex;
    margin-bottom: 2em;
}

.article-recent-first {
    order: 2;
}

.article-recent-secondary {
    order: 1;
}

.table-of-contents{
    font-size: 12px;
}
.table-of-contents a{
    text-decoration: none;
    color: #143774;
}

.table-of-contents a:hover{
    color: #1792d2;
}
/* End Articles */

/* Widgets */
.sidebar-widget {
    margin-bottom: 2rem;
    /* padding: 1em; */
}

.sidebar-widget div h3 {
    margin: 0;
}

.sidebar-widget div a {
    text-decoration: none;
}

.sidebar-widget div {
    display: flex;
    border: 1px solid #1480bb;
    border-radius: 12px;
    padding: 10px;
    box-sizing: border-box;
    height: 100px;
    justify-content: center;
    align-items: center;
}

.sidebar-widget div:hover {
    box-shadow:
        0 0 6px rgba(20, 128, 187, 0.4),
        0 0 12px rgba(20, 128, 187, 0.25);
}

.widget-recent-post {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #1480bb;
    margin-bottom: 1rem;
}

/* .widget-recent-post:last-child {
    border: 0;
    margin: 0;
} */

/* End Widgets */

/* Responsive */
@media (min-width:675px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .header-first-section {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #main-box {
        margin-top: 170px;
    }

    .site-title {
        text-align: right;
    }

    .container-flex {
        flex-direction: row;
        align-items: flex-start;
        /* جدید */
    }

    /* نیاز به بازبینی */
    main {
        width: 70%;
        border: #143774 solid 2px;
        border-radius: 12px;
        padding: 15px;
        box-sizing: border-box;
    }

    aside {
        width: 25%;
        min-width: 175px;
    }

    .article-recent-first {
        width: 65%;
        margin-right: 10px;
    }

    .article-recent-secondary {
        width: 30%;
        min-width: 150px;
    }

    .article-image {
        height: 200px;
        width: 100%;
        object-fit: cover;
    }
}


@media (max-width: 675px) {
    nav ul {
        flex-direction: row;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    nav ul li:last-child {
        margin-right: 10%;
    }

    .current-page {
        border: none;
    }

    .article-recent-first {
        margin-left: 10px;
    }

    .header-first-section {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .site-logo {
        display: none;
    }

    main {
        width: 95%;
        border: #143774 solid 2px;
        border-radius: 12px;
        padding: 15px;
        box-sizing: border-box;
        /* margin-top: 100px; */
        /*margin-bottom: 4rem;*/
        margin: 0 auto;
        margin-bottom: 4rem;
    }
}


.main-article-image {
    width: 100%;
}

.site-logo {
    height: 60px;
}

.logo-image {
    height: 100%;
    padding-left: 10px;
}