@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/eot/IRANSansWeb(FaNum).eot');
    src: url('../fonts/eot/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb(FaNum).woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb(FaNum).woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb(FaNum).ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/eot/IRANSansWeb(FaNum)_Bold.eot');
    src: url('../fonts/eot/IRANSansWeb(FaNum)_Bold.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb(FaNum)_Bold.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb(FaNum)_Bold.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/eot/IRANSansWeb(FaNum)_Medium.eot');
    src: url('../fonts/eot/IRANSansWeb(FaNum)_Medium.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb(FaNum)_Medium.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb(FaNum)_Medium.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/eot/IRANSansWeb(FaNum)_Light.eot');
    src: url('../fonts/eot/IRANSansWeb(FaNum)_Light.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb(FaNum)_Light.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb(FaNum)_Light.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb(FaNum)_Light.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot');
    src: url('../fonts/eot/IRANSansWeb(FaNum)_UltraLight.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb(FaNum)_UltraLight.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb(FaNum)_UltraLight.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb(FaNum)_UltraLight.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/eot/IRANSansWeb(FaNum).eot');
    src: url('../fonts/eot/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb(FaNum).woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb(FaNum).woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb(FaNum).ttf') format('truetype');
}

body {
    font-family: "IRANSans";
    direction: rtl;
}

a:hover, a {
    text-decoration: none;
}

@media screen and (min-width: 1470px) {
    .container {
        max-width: 1470px;
    }
}

/* banner-top *********/

.banner-top {
    padding-top: 35px;
  
    padding-bottom: 5px;
}

.banner-top .logo-img {
    margin-bottom: 10px;
    background: #fff;
}

.search-group {
    width: 100%;
    height: 40px;
    box-shadow: 0 5px 18px 0 rgba(67, 67, 67, 0.07);
    background-color: #ffffff;
    font-size: 14px;
    padding: 5px;
    float: right;
    padding-top: 5px;
}

.search-group input {
    background-color: #ffffff;
    text-align: right;
    float: right;
    border: none;
    margin-top: 3px;
    width: 80%;
}

.search-group input:focus {
    border: none;
    outline: none;
}

.banner-top .xa {
    height: 30px;
    float: right;
    border-left: 1px solid #000;
    padding: 0 15px;
    line-height: 30px;
    margin-left: 10px;
    border: none;
    outline: none;
    background-color: #fff;
}

.banner-top button.xa:focus {
    outline: none;
    border: none;
}


.banner-top .user-logo .login {   
  padding-left: 5px;
  position: relative;

}
.banner-top .user-logo .signup{
    padding-right: 5px;
}
.banner-top .user-logo .login::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 15px;
    background: #4f4f4f;
    top: 3px;
    left: 0;
}

.banner-top .user-logo a {
    margin-left: 10px;
    font-size: 14px;
    color: #4f4f4f;
    font-weight: 500;
}
.banner {
    margin-top: 10px;
    margin-bottom: 50px;
}
.banner .main-banner img {
    width: 100%;
    /* height: 271px; */
}

@media screen and (max-width:1470px) {
    .banner-top .user-logo {
        text-align:left;
    }
    .banner-top .user-logo a {
        margin-left: 0px;
    }
}

@media screen and (max-width:1199px) {
    .user-logo {
        margin-right: -45px;
        margin-left: 20px;
    }
    .search-group {       
        font-size: 12px;
    }
  
}

@media screen and (max-width:991px) {
    .user-logo {
        margin-right: -77px;
        font-size: 11px;
        margin-left: 0;
    }
    .banner-top{
        padding-bottom: 30px;
    }
    .banner-top .logo-img{width: 100%;}
}

@media screen and (max-width:767px) {
    .user-logo {
        text-align: center;
        margin-bottom: 15px;
        margin-right: 0;
        margin-left: 0;
    }
    .search-group {
        float: left;
    }
    .banner-top .logo-img {      
        width: 70%;   
        display: block;
    margin: 0 auto 20px;   
    }
}

@media screen and (max-width:575px) {
    .search-group {
        width:100%;
        font-size: 10px;
        height: 30px;
        padding: 5px 5px;
    }
    .xa {
        width: 12%;
    }
    .banner-top .xa {
        height: 23px;
        padding: 0 0px 0px 10px;
        line-height: 18px;
    }
    .banner-top .user-logo a{
        font-size: 11px;
    }
    .user-logo {
        margin-top: 0px;
        text-align: right !important;
    }    
}

@media screen and (max-width:375px) {
    .search-group {
        padding: 5px 0px;
        font-size: 9px;
    }
}
@media screen and (max-width:360px){
    .banner-top .user-logo a{
        font-size: 10px;
    }
}
@media screen and (max-width:320px) {
  
    .banner-top .user-logo a{
        font-size: 11px;
    }
    
}

/* banner-top *********/

.latest {
    margin-top: 30px;
}

footer {
    background-color: #5a5f64;
    color: #fff;
    font-size: 13px;
    padding: 20px 10px 10px;
}

footer p {
    text-align: right;
}

footer .social i {
    font-size: 30px !important;
    margin: 0 10px;
    color: #fff;
    transition: 500ms ease all;
}

footer .social .fa-instagram:hover {
    color: #ec2897;
}

footer .social .fa-twitter:hover {
    color: #1da1f2;
}

footer .social .fa-whatsapp:hover {
    color: #4FCE5D;
}

.content-blog .item-img img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.content-blog .item-detail {
    font-size: 14px;
    text-align: justify;
    margin-top: 20px;
}

.content-blog .item-info {
    text-align: right;
    margin-bottom: 30px;
    border-bottom: 1px solid #999999;
    padding-bottom: 10px;
}

.content-blog .item-info span {
    float: left;
}

.content-blog .item-info h1 {
    font-weight: bold;
    display: inline-block;
    font-size: 17px;
    max-width: 500px;
}

.content-blog .item-info a {
    color: #999999;
    margin: 0 15px;
    font-size: 13px;
}
.content-blog .share-in-social{
    text-align: center;
    margin-bottom: 30px;
}
.content-blog .share-in-social span {   
    font-size: 15px; 
    font-weight: bold;   
}
.content-blog .share-in-social .fa-instagram{
    color: #ec2897;
}
.content-blog .share-in-social .fa-twitter{
    color: #1da1f2;
}
.content-blog .share-in-social .fa-telegram{
    color: #0088cc;
}
.content-blog .share-in-social .fa-whatsapp{
    color: #4FCE5D;
}

.content-blog .share-in-social span i {
    font-size: 22px;
    margin: 0 10px;
}
.writer {
    margin-top: 30px;
    margin-bottom: 30px;
}

.writer .writer-section {
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, .1);
    padding: 10px 20px;
}

.writer .writer-name img {
    border-radius: 50%;
    width: 55px;
    height: 56px;
}

.writer .writer-name {
    text-align: right;
    font-size: 14px;
    color: #161619;
}

.writer .writer-about {
    text-align: right;
    margin-right: 55px;
    margin-top: -20px;
    font-size: 14px;
    color: #161619;
}

.related-book .title-book h3 {
    font-size: 22px;
    margin-bottom: 15px;
    text-align: right;
}

.latest .title h3 {
    font-size: 22px;
}

.comments {
    text-align: right;
    margin-top: 50px;
}

.comments h3 {
    font-size: 22px;
        margin-bottom: 30px;
}

.comments .user-name {
    color: #222222;
    font-weight: bold;
    font-size: 14px;
}

.comments .user-name img {
    width: 50px;
    border-radius: 50%;
    height: 50px;
    filter: grayscale(1);
}

.comments .user-comment {
    margin-right: 70px;
    font-size: 14px;
}
.comments .comment-body{
    background: #fcfcfc;;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}
.comments .comment-body:nth-child(2n){
   background-color:#faf9f9 ;
}
.comments textarea {
    width: 100%;
    margin-top: 40px;
    border: none;
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, .1);
    outline: none;
}

.comments span {
    color: #999999;
    font-size: 13px;
  
}

.comments span.reply {
    float: left;
    margin-left: 75px;
}
.comments span.date {
    margin-right: 75px;
}

.comments span.reply a {
    color: #999999;
}

.comments span.reply:hover {
    font-weight: bold;
}
.comments button{
    width: 130px;
    margin-top: 10px;
}


.search-section{
    margin-bottom: 20px;
    text-align: right;
    margin-top: 25px;
}
.search-section h1{
    display: inline-block;
    font-size: 20px;
    color: red;
}

.login-form{
    text-align: right;
    margin: 30px 0 50px;
}
.login-form h1, .signup-form h1{font-size: 22px;}
.login-form a{
    color: #9b9a9a;
    font-size: 14px;
    font-weight: 500;
}
.signup-form{
    text-align: right;
    margin: 30px 0 50px;
}
.signup-form .register , .login-form .login{
    text-align: center;
}
.signup-form .register p , .signup-form .register p a{
    color: #9b9a9a;
    font-size: 14px;
    font-weight: 500;
}
.signup-form button , .login-form button
{
    width: 200px;
    margin: 15px 0;
}


.grid {
    position: relative;
    margin: 0 auto;
    padding: 0;
    max-width: 1000px;
    list-style: none;
    text-align: center;
}

/* Common style */

.grid figure {
    position: relative;
    float: left;
    overflow: hidden;
    margin: 0;
    width: 100%;
    background: #3085a3;
    text-align: center;
    cursor: pointer;
}

.grid figure img {
    position: relative;
    display: block;
    min-height: 100%;
    max-width: 100%;
    opacity: 0.8;
}

.grid figure figcaption {
    padding: 2em;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.25em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.grid figure figcaption::before, .grid figure figcaption::after {
    pointer-events: none;
}

.grid figure figcaption, .grid figure figcaption>a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Anchor will cover the whole item by default */

/* For some effects it will show as a button */

.grid figure figcaption>a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}

.grid figure h2 {
    word-spacing: -0.15em;
    font-weight: 300;
}

.grid figure h2 span {
    font-weight: 800;
}

.grid figure h2, .grid figure p {
    margin: 0;
}

.grid figure p {
    letter-spacing: 1px;
    font-size: 68.5%;
}

/* Individual effects */

/*---------------*/

/***** Sadie *****/

/*---------------*/

figure.effect-sadie figcaption::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -webkit-linear-gradient(top, rgba(72, 76, 97, 0) 0%, rgba(72, 76, 97, 0.8) 75%);
    background: linear-gradient(to bottom, rgba(72, 76, 97, 0) 0%, rgba(72, 76, 97, 0.8) 75%);
    content: '';
    opacity: 0;
    -webkit-transform: translate3d(0, 50%, 0);
    transform: translate3d(0, 50%, 0);
}

figure.effect-sadie h2 {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    color: #484c61;
    -webkit-transition: -webkit-transform 0.35s, color 0.35s;
    transition: transform 0.35s, color 0.35s;
    -webkit-transform: translate3d(0, -50%, 0);
    transform: translate3d(0, -50%, 0);
}

figure.effect-sadie figcaption::before, figure.effect-sadie p {
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}

figure.effect-sadie p {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2em;
    width: 100%;
    opacity: 0;
    -webkit-transform: translate3d(0, 10px, 0);
    transform: translate3d(0, 10px, 0);
}

figure.effect-sadie:hover h2 {
    color: #fff;
    -webkit-transform: translate3d(0, -50%, 0) translate3d(0, -40px, 0);
    transform: translate3d(0, -50%, 0) translate3d(0, -40px, 0);
}

.item:hover figcaption::before, .item:hover figcaption p {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/*---------------*/

@media screen and (max-width: 50em) {
    .content {
        padding: 0;
        text-align: center;
    }
    .grid figure {
        display: inline-block;
        float: none;
        margin: 0;
        width: 100%;
    }
}

*, *:after, *:before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.clearfix:before, .clearfix:after {
    display: table;
    content: '';
}

.clearfix:after {
    clear: both;
}

section {
    padding: 1em;
    text-align: center;
}

.content-blog {
    margin: 40px auto 0;
    max-width: 1000px;
}

.content>h2:first-child {
    padding-top: 0em;
}

/* Header */

.codrops-header {
    margin: 0 auto;
    padding: 4em 1em;
    text-align: center;
}

.codrops-header h1 {
    margin: 0;
    font-weight: 800;
    font-size: 4em;
    line-height: 1.3;
}

.codrops-header h1 span {
    display: block;
    padding: 0 0 0.6em 0.1em;
    color: #74777b;
    font-weight: 300;
    font-size: 45%;
}

/* Demo links */

.codrops-demos {
    clear: both;
    padding: 1em 0 0;
    text-align: center;
}

.content+.codrops-demos {
    padding-top: 5em;
}

.codrops-demos a {
    display: inline-block;
    margin: 0 5px;
    padding: 1em 1.5em;
    text-transform: uppercase;
    font-weight: bold;
}

.codrops-demos a:hover, .codrops-demos a:focus, .codrops-demos a.current-demo {
    background: #3c414a;
    color: #fff;
}

/* To Navigation Style */

.codrops-top {
    width: 100%;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.69em;
    line-height: 2.2;
}

.codrops-top a {
    display: inline-block;
    padding: 1em 2em;
    text-decoration: none;
    letter-spacing: 1px;
}

.codrops-top span.right {
    float: right;
}

.codrops-top span.right a {
    display: block;
    float: left;
}

.codrops-icon:before {
    margin: 0 4px;
    text-transform: none;
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
    font-family: 'codropsicons';
    line-height: 1;
    speak: none;
    -webkit-font-smoothing: antialiased;
}

.codrops-icon-drop:before {
    content: "\e001";
}

.codrops-icon-prev:before {
    content: "\e004";
}
@media screen and (max-width:576px){
    .grid figure p {
      font-size: 50.5%;
    }
}
@media screen and (max-width:320px){
    .grid figure p {
      font-size: 60.5%;
    }
}

/* Related demos */

.related {
    clear: both;
    padding: 6em 1em;
    font-size: 120%;
}

.related>a {
    display: inline-block;
    margin: 20px 10px;
    padding: 25px;
    border: 1px solid #4f7f90;
    text-align: center;
}

.related a:hover {
    border-color: #39545e;
}

.related a img {
    max-width: 100%;
    opacity: 0.8;
}

.related a:hover img, .related a:active img {
    opacity: 1;
}

.related a h3 {
    margin: 0;
    padding: 0.5em 0 0.3em;
    max-width: 300px;
    text-align: left;
}

/* Demo ad design */

body #cdawrap {
    background: none;
    top: 50px;
    border: none;
}

body #cdawrap a {
    color: #fff !important;
}

body #cda-remove {
    color: #fff;
}

@media screen and (max-width: 25em) {
    .codrops-header {
        font-size: 75%;
    }
    .codrops-icon span {
        display: none;
    }
}

@media screen and (max-width:800px){
    footer{
        font-size: 11px;
    }
    footer .social i{
        font-size: 20px !important;
        margin: 10px 10px;
    }
    .content-blog .item-detail{font-size: 12px;}
    .comments .user-comment{
        font-size: 12px;
    }
    .content-blog .item-info h1, .comments h3 ,.related-book .title-book h3 ,.latest .title h3{
        font-size: 15px;
    }
    .content-blog .item-info a{font-size: 11px;}
    .banner-top .user-logo a{font-size: 12px;}
}
@media screen and (max-width:576px){
    .content-blog .item-info{
        border: none;
    }
    .content-blog .share-in-social span{font-size: 12px;}
    .content-blog .share-in-social span i {
        font-size: 15px;
        margin: 0 5px;
    }
    .writer .writer-about{font-size: 12px;}
    .comments span{
        font-size: 11px;
    }
}
