/* تهیه شده برای مهندسین نیکا رایان پویا */
#NRPGrid
{
    font-family: 'NRP' , Calibri, Arial, sans-serif;
    color: #00669f;
    margin: 0 30px 0 0;
    text-decoration: none;
}
.nrp-ig-grid li a
{
    color: #f0f0f0;
    text-decoration: none;
}

.nrp-ig-grid
{
    list-style: none;
    padding: 10px 10px 10px 10px;
    margin: 0;
}

.nrp-ig-grid li
{
    width: 10rem;
    float: right;
    height: 10rem;
    text-align: center;
    margin: 0.6% 0.6% 0.6% 0.6%;
    border-radius: 20px 20px 20px 20px;
    background-color: white;
    overflow: hidden;
    padding: 0;
    border: 1px solid #ddd;
    box-shadow: #E3E3E3 0 6px 2px 0;
}

.nrp-ig-grid li > a
{
    text-decoration: none;
    display: block;
    height: 100%;
    color: #00669f;
    -webkit-transition: background 0.2s;
    -moz-transition: background 0.2s;
    transition: background 0.2s;
}

.nrp-ig-icon
{
    padding: 40px 0 0 0;
    display: block;
    -webkit-transition: -webkit-transform 0.2s;
    transition: -moz-transform 0.2s;
    transition: transform 0.2s;
}

.nrp-ig-icon:before
{
    font-family: 'NRP';
    font-size: 5em;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

/*
---------------------------  آیکون --------------------------------
*/


.nrp-ig-grid .nrp-ig-title
{
    font-size: 1.4em;
    position: relative;
    -webkit-transition: -webkit-transform 0.2s;
    -moz-transition: -moz-transform 0.2s;
    transition: transform 0.2s;
}

.nrp-ig-grid .nrp-ig-title:before
{
    content: '';
    position: absolute;
    background: #00669f;
    width: 160px;
    height: 4px;
    top: 0;
    left: 50%;
    margin: -30px 0 0 -80px;
    -webkit-transition: margin-top 0.2s; /* top or translate does not seem to work in Firefox */
    -moz-transition: margin-top 0.2s;
    transition: margin-top 0.2s;
}

.nrp-ig-grid .nrp-ig-category
{
    text-transform: uppercase;
    display: inline-block;
    font-size: 0.90em;
    letter-spacing: 1px;
    color: #00669f;
    -webkit-transform: translateY(-40px);
    -moz-transform: -moz-translateY(-40px);
    -ms-transform: -ms-translateY(-40px);
    transform: translateY(-40px);
    opacity: 0;
    -webkit-transition: -webkit-transform 0.3s, opacity 0.2s;
    -moz-transition: -moz-transform 0.3s, opacity 0.2s;
    -webkit-transition: transform 0.3s, opacity 0.2s;
    display: none;
}

.nrp-ig-grid li:hover .nrp-ig-category, .touch .nrp-ig-grid li .nrp-ig-category
{
    opacity: 1;
    -webkit-transform: translateY(-40px);
    -moz-transform: translateY(-40px);
    -ms-transform: translateY(-40px);
    transform: translateY(-40px);
}


.nrp-ig-grid li > a:hover
{
    /*background: #00669f;*/
    background: #FFB500;
    border: 1px solid #00669f;
}

.nrp-ig-grid li > a:hover .nrp-ig-icon
{
    -webkit-transform: translateY(10px);
    -moz-transform: translateY(10px);
    -ms-transform: translateY(10px);
    transform: translateY(10px); /*-webkit-transform: translateY(-25px);     -moz-transform: translateY(-25px);     -ms-transform: translateY(-25px);     transform: translateY(-25px);*/
}

.nrp-ig-grid li > a:hover .nrp-ig-icon:before, .nrp-ig-grid li > a:hover .nrp-ig-title
{
    color: #00669f;
}

.nrp-ig-grid li > a:hover .nrp-ig-title
{
     -webkit-transform: translateY(-10px);     -moz-transform: translateY(-10px);     -ms-transform: translateY(-10px);     transform: translateY(-10px);
   /* -webkit-transform: translateY(-30px);
    -moz-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    transform: translateY(-30px);*/
}

.nrp-ig-grid li > a:hover .nrp-ig-title:before
{
    background: #fff;
    margin-top: 80px;
    opacity: 0;
}


@media screen and (max-width: 62.75em)
{
    .nrp-ig-grid li
    {
        width: 30%;
    }
}
@media screen and (max-width: 41.6em)
{
    #NRPGrid
    {
        margin: 0 5% 0 0;
    }

    .nrp-ig-grid li
    {
        width: 130px;
        height: 130px;
    }
    .nrp-ig-grid .nrp-ig-title:before
    {
        visibility: hidden;
        content: '';
        position: absolute;
        background: #00669f;
        width: 60%;
        height: 2%;
        top: 0;
        left: 50%;
        margin: 0 0 0 0;
        -webkit-transition: margin-top 0.2s; /* top or translate does not seem to work in Firefox */
        -moz-transition: margin-top 0.2s;
        transition: margin-top 0.2s;
    }

    .nrp-ig-icon:before
    {
        font-size: 60px;
    }

    .nrp-ig-grid .nrp-ig-title
    {
        font-size: 1.7vw;
    }

    .nrp-ig-grid .nrp-ig-category
    {
        margin-top: 1vmax;
    }

    .nrp-ig-grid li > a:hover .nrp-ig-title
    {
        -webkit-transform: translateY(-4px);
        -moz-transform: translateY(-4px);
        -ms-transform: translateY(-4px);
        transform: translateY(-4px);
    }

    .nrp-ig-category
    {
        visibility: hidden;
    }
}
@media screen and (max-width: 25em)
{
    .nrp-ig-grid
    {
        font-size: 60%;
    }
    .nrp-ig-icon:before
    {
        font-size: 6em;
    }
    .nrp-ig-grid .nrp-ig-title
    {
        font-size: 0.6em;
    }

    .nrp-ig-grid .nrp-ig-category
    {
        margin-top: 10px;
    }
}
