html {
    overflow-x: hidden;
}

@font-face {
    font-family: Vazir;
    src        : url(../assets/fonts/Vazir-Regular.ttf);
}

@font-face {
    font-family: BoldVazir;
    src        : url(../assets/fonts/Vazir-Bold.ttf);
}

* {
    font-family: Vazir;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: BoldVazir;
    line-height: normal !important;
}

p {
    line-height: normal !important;
}

body {
    font-family      : 'Source Sans Pro', sans-serif;
    font-size        : 18px;
    line-height      : 1.8em;
    overflow-x       : hidden;
    background-color : rgb(13, 4, 56);
    background-image : url('../img/background.jpg');
    background-repeat: no-repeat;
    background-size  : cover;
}

header {
    margin-top: 30px;
}

header ul {
    list-style: none;
}

header nav {
    display    : inline;
    margin-left: 2px;
    font-weight: bolder;
}

header nav a {
    color           : #fff;
    margin          : 4px auto;
    background-color: rgba(28, 28, 28, 0.223);
    border          : 1px solid rgba(255, 255, 255, 0.1);
    border-radius   : 15px;
    padding         : 17px;
    backdrop-filter : blur(10px);
    display: block;
    width: fit-content;
}

header nav a:hover {
    border: #846787 solid 1px;
    color : #d0b7d3;
}

.user-img {
    border-radius: 50%;
    width        : 175px;
}

.bi {
    width : 34px;
    height: 34px;
    margin: 0 10px;
    color : #fff;
}

.media-content:hover {
    color: #309AFD;
}

.media-content {
    border-radius: 10px;
    padding      : 7px 13px;
    margin       : 7px 13px;
    display      : inline-block;
    color        : #fff;
    text-align: start;
    padding-right: 20px;
}

main h4{
    line-height: 81px !important;
}

@media screen and (max-width: 500px) {
    header{
        margin-top: 5px;
    }
    #bio {
        margin: 20px 0;
    }
    main .mt-5{
        margin-top: 2px !important;
    }
  .media-content{
    padding-right: 5px;
  }

  header nav a{
      font-size: small;
  }

  main h4{
    line-height: 50px !important;
    }
}

.mc-tel {
    background-color: #13366e;
}

.mc-ins {
    background-color: #6e1347;
}

.mc-tik {
    background-color: #080141;
}

.mc-yot {
    background-color: #9b0000;
}

.mc-xtw {
    background-color: #000000;
}

.mc-thr {
    background-color: #402525;
}

.mc-eit {
    background-color: #8e5b04;
}

.mc-fac {
    background-color: #0144a2;
}

.mc-web {
    background-color: #224b2a;
}

.mc-rub {
    background-color: #762b2b;
}

.mc-wat {
    background-color: #23813b;
}

.mc-lik {
    background-color: #a7228d;
}

.mc-bal {
    background-color: #368b60;
}

.media-logo {
    width : 40px;
    height: 40px;
    margin: 0 7px;
}

p,
li,
span,
em,
a,
address {
    color: #e2e2e2;
}

h2,
p {
    margin-top: 0;
}

a:hover,
a.active {
    color: #309AFD;
}

.tm-btn {
    padding         : 10px 40px;
    color           : white;
    background-color: #3299CD;
    display         : inline-block;
    border          : none;
    cursor          : pointer;
    font-size       : 1.2rem;
    transition      : all 0.3s ease;
    border-radius   : .3rem !important;
}

button.tm-btn {
    padding: 15px 40px;
}

.tm-btn:hover {
    color           : white;
    background-color: #49b4e9;
}

h1 {
    font-size: 3rem;
}

em {
    display: block;
}

div {
    box-sizing: border-box;
}

.tm-mt-35 {
    margin-top: 35px;
}

.tm-mb-0 {
    margin-bottom: 0;
}

.tm-mb-15 {
    margin-bottom: 15px;
}

.tm-mb-30 {
    margin-bottom: 30px;
}

.tm-mb-40 {
    margin-bottom: 40px;
}

.tm-mb-50 {
    margin-bottom: 50px;
}

.tm-mb-80 {
    margin-bottom: 80px;
}

.tm-text-center {
    text-align: center;
}

.tm-text-right {
    text-align: right;
}

.tm-color-primary {
    color: #309AFD;
}

.tm-color-gray {
    color: #666768;
}

.tm-color-gray-2 {
    color: #98999A;
}

.tm-color-light-gray {
    color: #c0c0c0;
}

.tm-bg-dark {
    background-color: #081f36;
}

blockquote {
    margin: 0 0 30px 10px;
}

img {
    max-width: 100%;
}

.tm-page-title {
    font-size: 30px;
    color    : #ddd;
}

body,
ul {
    margin : 0;
    padding: 0;
}

a {
    text-decoration: none;
    transition     : all 0.3s ease;
}

.tm-mt-0 {
    margin-top: 0;
}

.tm-site-header {
    padding: 60px 70px 30px;
}

.tm-tagline {
    font-size  : 1.5rem;
    margin-left: 130px;
}

#tm-video-container {
    max-height      : 400px;
    overflow        : hidden;
    background-color: #333;
    margin-bottom   : 90px;
    position        : relative;
}

#tm-video {
    width : 100%;
    height: auto;
}

#tm-video-control-button {
    position: absolute;
    bottom  : 20px;
    right   : 20px;
    z-index : 1000;
    color   : #e1e1e1;
}

.tm-nav-item {
    list-style: none;
    margin    : 22px;
}

.tm-nav-link {
    display       : flex;
    align-items   : center;
    flex-direction: column;
    width         : 200px;
    height        : 200px;
    padding       : 30px;
    border        : 1px solid #D2D3D4;
    color         : #999;
    box-sizing    : border-box;
    border-radius : 25px 2px;
}

.tm-nav-link:hover,
.tm-nav-link.active {
    color: #309AFD;
}

.tm-nav-link i {
    margin-top: 30px;
    color     : #309AFD;
}

.tm-main-nav ul {
    display     : flex;
    flex-wrap   : wrap;
    margin-left : auto;
    margin-right: auto;
}

.tm-container {
    max-width    : 1254px;
    padding-left : 15px;
    padding-right: 15px;
    margin       : 20px auto 5px;
}

.tm-footer {
    display        : flex;
    justify-content: space-between;
    padding        : 25px;
    font-size      : 0.9em;
}

.tm-close-popup {
    text-align: right;
    display   : block;
}

.tm-close-popup i {
    margin-left : 10px;
    margin-right: 10px;
}

.tm-row {
    display: flex;
}

.tm-col-6 {
    flex: 0 0 50%;
}

.tm-study-pad {
    padding: 10px 55px 50px;
}

.tm-study-col-l {
    margin-right: 40px;
}

/* text-based popup styling */
.popup {
    position : relative;
    padding  : 12px 20px 35px;
    width    : auto;
    max-width: 1200px;
    margin   : 0 auto;
}

/* 

====== Move-from-top effect ======

*/
.mfp-move-from-top .mfp-with-anim {
    opacity   : 0;
    transition: all 0.2s;
    transform : translateY(-100px);
}

.mfp-move-from-top.mfp-bg {
    opacity   : 0;
    transition: all 0.2s;
}

.mfp-move-from-top.mfp-ready .mfp-with-anim {
    opacity  : 1;
    transform: translateY(0);
}

.mfp-move-from-top.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-move-from-top.mfp-removing .mfp-with-anim {
    transform: translateY(-50px);
    opacity  : 0;
}

.mfp-move-from-top.mfp-removing.mfp-bg {
    opacity: 0;
}

button.mfp-arrow {
    display: none;
}

/* study */
.tm-study-img {
    max-width : 300px;
    max-height: 600px;
}

/* Gallery */
.tm-gallery {
    flex  : 0 0 68%;
    margin: 0 20px;
}

.tm-gallery-container {
    position  : relative;
    max-width : 800px;
    margin    : 0 -10px;
    list-style: none;
    text-align: center;
}

.tm-paging {
    overflow  : auto;
    margin-top: 25px;
}

.tm-paging li {
    list-style: none;
}

.tm-paging-link {
    display        : flex;
    float          : left;
    width          : 40px;
    height         : 40px;
    align-items    : center;
    justify-content: center;
    background     : white;
    color          : #999;
    margin-right   : 15px;
    margin-bottom  : 15px;
    border-radius  : 50%;
}

a.tm-paging-link.active,
a.tm-paging-link:hover {
    background: #309AFD;
    color     : white;
}

.tm-gallery-right {
    flex       : 0 0 26%;
    margin-left: 15px;
}

.tm-gallery-links {
    margin-left  : 35px;
    margin-bottom: 25px;
}

.tm-gallery-links li {
    list-style   : none;
    margin-bottom: 20px;
}

.tm-gallery-link-icon {
    display: inline-block;
    width  : 30px;
}

.tm-gallery-item {
    overflow  : hidden;
    margin    : 15px 10px;
    min-width : 180px;
    max-width : 180px;
    max-height: 240px;
    width     : 25%;
    background: #3085a3;
    text-align: center;
    cursor    : pointer;
}

.tm-gallery-container figure img {
    position  : relative;
    display   : block;
    min-height: 100%;
    max-width : 100%;
    opacity   : 0.9;
}

.tm-gallery-container figure figcaption {
    padding                    : 2em;
    color                      : #fff;
    text-transform             : uppercase;
    font-size                  : 1.25em;
    -webkit-backface-visibility: hidden;
    backface-visibility        : hidden;
}

.tm-gallery-container figure figcaption::before,
.tm-gallery-container figure figcaption::after {
    pointer-events: none;
}

.tm-gallery-container figure figcaption,
.tm-gallery-container 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 */
.tm-gallery-container figure h2 {
    word-spacing: -0.15em;
    font-weight : 300;
}

.tm-gallery-container figure h2 span {
    font-weight: 800;
}

.tm-gallery-container figure h2,
.tm-gallery-container figure p {
    margin: 0;
}

.tm-gallery-container figure p {
    letter-spacing: 1px;
    font-size     : 68.5%;
}

/*---------------*/
/***** Chico *****/
/*---------------*/

figure.effect-chico img {
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition        : opacity 0.35s, transform 0.35s;
    -webkit-transform : scale(1.12);
    transform         : scale(1.12);
}

figure.effect-chico:hover img {
    opacity          : 0.5;
    -webkit-transform: scale(1);
    transform        : scale(1);
}

figure.effect-chico figcaption {
    padding    : 1em;
    box-sizing : border-box;
    display    : flex;
    align-items: center;
}

figure.effect-chico figcaption::before {
    position         : absolute;
    top              : 15px;
    right            : 15px;
    bottom           : 15px;
    left             : 15px;
    border           : 1px solid #fff;
    content          : '';
    -webkit-transform: scale(1.1);
    transform        : scale(1.1);
}

figure.effect-chico figcaption::before,
figure.effect-chico p {
    opacity           : 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition        : opacity 0.35s, transform 0.35s;
}

figure.effect-chico h2 {
    padding: 20% 0 20px 0;
}

figure.effect-chico p {
    color            : white;
    margin           : 0 auto;
    max-width        : 200px;
    -webkit-transform: scale(1.5);
    transform        : scale(1.5);
}

figure.effect-chico:hover figcaption::before,
figure.effect-chico:hover p {
    opacity          : 1;
    -webkit-transform: scale(1);
    transform        : scale(1);
}

/* job */
.tm-job-inner {
    padding: 0 20px;
}

.tm-testimonial-col {
    flex         : 0 0 33.3334%;
    padding-left : 20px;
    padding-right: 20px;
}

/* About */
.mapouter {
    position: relative;
    height  : 250px;
    width   : 100%;
}

.gmap_canvas {
    overflow  : hidden;
    background: none !important;
    height    : 250px;
    width     : 100%;
}

.tm-intrests-row {
    max-width: 1045px;
}

.tm-about-col {
    margin-left : 40px;
    margin-right: 40px;
    max-width   : 500px;
}

/* intrests */
#intrests {
    padding-bottom: 65px;
}

.tm-intrests-col-r {
    padding-left : 0;
    padding-right: 30px;
}

.tm-intrests-form {
    max-width   : 350px;
    margin-left : 40px;
    margin-right: 40px;
}

.form-control {
    font-family: 'Source Sans Pro', sans-serif;
    font-size  : 1.2rem;
    border     : 1px solid #D5D6D7;
    box-sizing : border-box;
    padding    : 15px;
    width      : 100%;
}

.form-group {
    margin-bottom: 25px;
}

select:not([multiple]) {
    -webkit-appearance : none;
    -moz-appearance    : none;
    text-align         : end;
    background-position: right 15px center;
    background-repeat  : no-repeat;
    background-image   : url(../img/select-arrow.png);
    padding            : 14px 20px;
    padding-right      : 20px;
    color              : #666;
}

.tm-intrests-links li {
    list-style   : none;
    margin-bottom: 10px;
}

.tm-intrests-link-icon {
    margin-right: 15px;
}

address {
    font-style: normal;
}

@media (max-width: 850px) {
    .tm-intrests-row {
        flex-direction: column;
    }

    .tm-intrests-col {
        flex         : 0 0 100%;
        max-width    : 100%;
        padding-left : 30px;
        padding-right: 30px;
    }

    .tm-intrests-form {
        max-width    : 100%;
        margin-left  : 0;
        margin-right : 0;
        margin-bottom: 50px;
    }
}

@media (max-width: 700px) {
    .tm-about-row {
        flex-direction: column;
    }

    .tm-about-col {
        flex: 0 0 100%;
    }
}

@media (max-width: 1264px) {
    .tm-main-nav ul {
        max-width: 976px;
    }
}

@media (max-width: 1020px) {
    .tm-main-nav ul {
        max-width: 732px;
    }
}

@media (max-width: 776px) {
    .tm-main-nav ul {
        max-width: 488px;
    }
}

@media (max-width: 532px) {
    .tm-main-nav ul {
        max-width: 244px;
    }
}

@media (max-width: 992px) {
    .tm-testimonial-row {
        flex-wrap: wrap;
    }

    .tm-testimonial-col {
        flex         : 100%;
        margin-bottom: 50px;
    }

    .tm-testimonial-col:last-child {
        margin-bottom: 0;
    }

    .tm-testimonial-col-2 {
        flex: 50%;
    }
}

@media (max-width: 635px) {
    .tm-testimonial-col-2 {
        flex: 100%;
    }
}

@media (max-width: 902px) {
    .tm-gallery {
        flex: 0 0 50%;
    }

    .tm-gallery-right {
        flex: 0 0 38%;
    }
}

@media (max-width: 805px) {
    .tm-gallery-row {
        flex-direction: column-reverse;
    }

    .tm-gallery {
        flex: 0 0 100%;
    }

    .tm-gallery-right {
        flex        : 0 0 100%;
        margin-left : 20px;
        margin-right: 20px;
    }

    .tm-gallery-right-inner {
        display       : flex;
        flex-direction: column-reverse;
    }

    .tm-gallery-links {
        display      : flex;
        flex-wrap    : wrap;
        margin-top   : 20px;
        margin-bottom: 0;
        margin-left  : 0;
    }

    .tm-gallery-links li {
        margin-right: 20px;
    }
}

#div-medias {
    text-align: center;
}

@media (max-width: 850px) {
    .tm-content-row {
        flex-direction: column;
    }

    .tm-study-col-l {
        margin-right: 0;
    }
}

@media (max-width: 650px) {
    .tm-study-row {
        flex-direction: column;
    }

    .tm-study-img {
        max-width : 100%;
        max-height: none;
    }
}

@media (max-width: 540px) {
    .tm-footer {
        flex-direction: column;
        align-items   : center;
    }
}

@media (max-width: 558px) {
    .tm-site-header {
        padding-left : 30px;
        padding-right: 30px;
    }

    .tm-tagline {
        margin-left: 30px;
    }
}