@import "header.css";
@import "footer.css";
.contact_main {
    padding-top: 85px;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-52%);
    text-align: center;
    color: #fff;
}

.contact_main h3 {
    font-size: 1.8rem;
    /*color: #fff;*/
    font-weight: 700;
    margin-bottom: 4rem;
}

.contact_main h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact_main p {
    line-height: 2rem;
    font-weight: 700;
    font-size: 1rem;
}

.contact_main p a {
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.contact_lists {
    background-color: #f5f5f5;
    padding: 2rem 0;
}

.contact_title {
    text-align: center;
    margin-bottom: 3rem;
}

.contact_title h3 {
    font-weight: 700;
    font-size: 2rem;
    color: #333;
    margin: 0 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #c9c9c9;
}

.contact_blocks {
    flex-wrap: wrap;
}

.contact_block {
    box-sizing: border-box;
    padding: 0 15px;
}

.contact_img {
    position: relative;
    overflow: hidden;
}

.contact_img img {
    display: block;
    transform: scale(1.1);
    transition: all ease .5s;
}

.contact_block:hover .contact_img img {
    transform: scale(1);
}

.mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.contact_img p {
    transition: all ease .3s;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 1.8rem;
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    transform: translateY(-60%);
    z-index: 2;
}

.contact_block:hover .contact_img p {
    transform: scale(1.05) translateY(-60%);
}

.contact_txt {
    transition: all ease .5s;
    background-color: #fff;
    margin-bottom: 4rem;
    width: 90%;
    min-height: 202px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    margin-top: -40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
}

.contact_block:hover .contact_txt {
    background-color: #1090d6;
}

.contact_txt p {
    margin-top: 10px;
    color: black;
    line-height: 1.5rem;
}

.contact_block:hover .contact_txt p {
    color: white;
}

.contact_txt p a {
    color: #1090d6;
    line-height: 1.5rem;
}

.contact_block:hover .contact_txt p a {
    color: white;
}

@media (max-width: 1000px) {
    .contact_main {
        top: inherit;
        transform: none;
        bottom: 20%;
    }
}

@media (min-width: 1000px) {
    .contact_block {
        width: 33.3%;
    }
}