/* Grid
----------------------------------------------------------------- */
.container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1%;
    box-sizing: border-box;
}
.column,
.columns {
    width: 100%;
    float: left;
    box-sizing: border-box; }

@media (min-width: 310px) {
    .container {
        width: 100%;
    }
    .column,
    .columns {
        margin-left: 4%; }
    .column:first-child,
    .columns:first-child {
        margin-left: 0; }

    .one.column,
    .one.columns                    { width: 4.66666666667%; }
    .two.columns                    { width: 13.3333333333%; }
    .three.columns                  { width: 22%;            }
    .four.columns                   { width: 30.6666666667%; }
    .five.columns                   { width: 39.3333333333%; }
    .six.columns                    { width: 48%;            }
    .seven.columns                  { width: 56.6666666667%; }
    .eight.columns                  { width: 65.3333333333%; }
    .nine.columns                   { width: 74.0%;          }
    .ten.columns                    { width: 82.6666666667%; }
    .eleven.columns                 { width: 91.3333333333%; }
    .twelve.columns                 { width: 100%; margin-left: 0; }

    .one-third.column               { width: 30.6666666667%; }
    .two-thirds.column              { width: 65.3333333333%; }

    .one-half.column                { width: 48%; }

    /* Offsets */
    .offset-by-one.column,
    .offset-by-one.columns          { margin-left: 8.66666666667%; }
    .offset-by-two.column,
    .offset-by-two.columns          { margin-left: 17.3333333333%; }
    .offset-by-three.column,
    .offset-by-three.columns        { margin-left: 26%;            }
    .offset-by-four.column,
    .offset-by-four.columns         { margin-left: 34.6666666667%; }
    .offset-by-five.column,
    .offset-by-five.columns         { margin-left: 43.3333333333%; }
    .offset-by-six.column,
    .offset-by-six.columns          { margin-left: 52%;            }
    .offset-by-seven.column,
    .offset-by-seven.columns        { margin-left: 60.6666666667%; }
    .offset-by-eight.column,
    .offset-by-eight.columns        { margin-left: 69.3333333333%; }
    .offset-by-nine.column,
    .offset-by-nine.columns         { margin-left: 78.0%;          }
    .offset-by-ten.column,
    .offset-by-ten.columns          { margin-left: 86.6666666667%; }
    .offset-by-eleven.column,
    .offset-by-eleven.columns       { margin-left: 95.3333333333%; }

    .offset-by-one-third.column,
    .offset-by-one-third.columns    { margin-left: 34.6666666667%; }
    .offset-by-two-thirds.column,
    .offset-by-two-thirds.columns   { margin-left: 69.3333333333%; }

    .offset-by-one-half.column,
    .offset-by-one-half.columns     { margin-left: 52%; }

}


/* Base Styles
----------------------------------------------------------------- */

html {
    font-size: 62.5%;
    height: 100%;
}
body {
    font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
    line-height: 1.6;
    font-weight: 400;
    font-family: "Vazir", Helvetica, Arial, sans-serif;
    color: #333333;
    direction: rtl;
    margin: 8px;
}


/* Typography
----------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 300; }
h1 { font-size: 4.0rem; line-height: 1.2;  letter-spacing: -.1rem;}
h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
h3 { font-size: 3.0rem; line-height: 1.3;  letter-spacing: -.1rem; }
h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
h5 { font-size: 1.8rem; line-height: 1.5;  letter-spacing: -.05rem; }
h6 { font-size: 1.5rem; line-height: 1.6;  letter-spacing: 0; }

/* Larger than phablet */
@media (min-width: 550px) {
    h1 { font-size: 5.0rem; }
    h2 { font-size: 4.2rem; }
    h3 { font-size: 3.6rem; }
    h4 { font-size: 3.0rem; }
    h5 { font-size: 2.4rem; }
    h6 { font-size: 1.5rem; }
}

p {
    margin-top: 0; }


/* Links
----------------------------------------------------------------- */
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: inherit; }


/* Lists
----------------------------------------------------------------- */
ul {
    list-style: circle inside; }
ol {
    list-style: decimal inside; }
ol, ul {
    padding-left: 0;
    margin-top: 0; }
ul ul,
ul ol,
ol ol,
ol ul {
    margin: 1.5rem 0 1.5rem 3rem;
    font-size: 90%; }
li {
    margin-bottom: 1rem; }


/* Spacing
----------------------------------------------------------------- */
button,
.button {
    margin-bottom: 1rem; }
input,
textarea,
select,
fieldset {
    margin-bottom: 1.5rem; }
pre,
blockquote,
dl,
figure,
table,
p,
ul,
ol,
form {
    margin-bottom: 1rem;
}


/* Utilities
----------------------------------------------------------------- */
.u-full-width {
    width: 100%;
    box-sizing: border-box; }
.u-max-full-width {
    max-width: 100%;
    box-sizing: border-box; }
.u-pull-right {
    float: right; }
.u-pull-left {
    float: left; }


/* Misc
----------------------------------------------------------------- */
hr {
    margin-top: 3rem;
    margin-bottom: 3.5rem;
    border-width: 0;
    border-top: 1px solid #E1E1E1; }


/* Clearing
----------------------------------------------------------------- */
.container:after,
.row:after,
.u-cf {
    content: "";
    display: table;
    clear: both; }


/* Cmp elements
----------------------------------------------------------------- */
.main-cmp {
    margin: 1% 0 0 0;
    display: block;
    border: 1px solid #535556;
    transform-style: preserve-3d;
}

.text-bg {
    position: absolute;
    width: inherit;
    background-size: cover;
    background-position: center bottom;
    height: 100%;
    left: 0;
    bottom: 0;
    filter: blur(15px);
    opacity: .3;
}

.main-cmp .cmp-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    text-shadow: 0 1px rgba(255, 255, 255, 0.5);
    text-align: right;
    background: #fff;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.main-cmp .cmp-title {
    padding: 5px;
    font-size: 2.2rem;
    position: relative;
}

.cmp .cmp-title {
    font-size: 1.4rem;
    color: #353535;
    text-shadow: 0 1px #fff;
    text-align: right;
    display: table-cell;
    width: 50vh;
    vertical-align: middle;
    height: 129px;
    padding: 0 3px;
    background: linear-gradient(115deg, rgba(222, 222, 222, 0.22) 0%,rgba(224, 224, 224, 0.3) 50%,rgba(216, 216, 216, 0.53) 50%,rgba(226, 226, 226, 0.28) 100%);
}

.main-cmp .cmp-info {position: relative;padding: 0 5px;font-size: 1.4rem;}

.main-cmp .cmp-cover {
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 50vh;
    transition: all ease .1s;
}

.main-cmp:hover > .cmp-cover {
}

.side-cmps {
    transform-style: preserve-3d;
    margin: 8px 0 0 0;
}

.cmp {
    border: 1px solid #9a9a9a;
    height: calc(50vh - 16px);
}

.cmp:hover {
}

.side-cmps .cmp-cover {
    width: 100%;
    object-fit: cover;
    margin-bottom: -10px;
}

.prefix {  }

.important {
    font-weight: bold; }

.postfix {  }

.call-to-action {
    position: relative;
    display: block;
    color: #fff;
    font-weight: bold;
    font-size: 1.4rem;
    padding: 3px 0;
    text-align: center;
    background: linear-gradient(270deg, #f2144d, #1498f2, #e83ccb);
    background-size: 600% 600%;
    animation: attract 10s ease infinite;
    -webkit-animation: attract 10s ease infinite;
    -moz-animation: attract 10s ease infinite;
}

.main-cmp .call-to-action {
    text-shadow: none;
    margin-top: -10px;
}

a.four.columns:hover > .cmp > .call-to-action,
a.six.columns:hover > .cmp > .call-to-action {
    animation-duration: 1.5s;
    -webkit-animation-duration: 1.5s;
    -moz-animation-duration: 1.5s;
}

.main-cmp:hover > .cmp-text > .call-to-action {
    animation-duration: 3s;
    -webkit-animation-duration: 3s;
    -moz-animation-duration: 3s;
}

@-webkit-keyframes attract {
    0%{background-position:0 50%}
    50%{background-position:100% 50%}
    100%{background-position:0 50%}
}
@-moz-keyframes attract {
    0%{background-position:0 50%}
    50%{background-position:100% 50%}
    100%{background-position:0 50%}
}
@keyframes attract {
    0%{background-position:0 50%}
    50%{background-position:100% 50%}
    100%{background-position:0 50%}
}

.background {
    height: 100%;
    width: 100%;
    position: fixed;
    /* box-shadow: inset 0 0 0 1px #d2d2d2; */
    z-index: -1;
    top: 0;
    left: 0;
    background: white;
}
