﻿.home { background-color: #fff; }

.home .container { max-width: 1200px; padding-left: 60px; padding-right: 60px; }

/* ------------------- Hero -------------------  */
.home-hero {
    background-image: url('../images/hero_bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.home-hero .container {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-orient: vertical; -ms-flex-direction: column; flex-direction: column;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    height: 100%;
}
.home-welcome img { display: none; }
.home-welcome h1 { font-weight: 400; color: #fff; }
.home-welcome h1 strong { font-weight: 700; }

.home-login .form-login { position: relative; }
.home-login .form-login .form-control { display: block; border-radius: 6px; background-color: #fff; width: 100%; }
.home-login .form-login .form-control + .form-control { margin-top: 10px; }
.home-login .form-login .btn {
    position: absolute; right: 0; top: 0; height: 100%;
    font-weight: 700; color: #fff; text-align: center;
    background-color: #f37168; border-radius: 6px; 
    border: none;
}
.home-login .login-additional a { display: inline-block; padding: 2px 0; color: #fff; font-weight: 700; text-decoration: underline; }
.home-login .user-name { font-size: 18px; font-weight: 700; color: #fff; margin-right: 12px; }
.home-login .user-name em { font-style: normal; font-weight: 400; color: inherit; }

@media screen and (min-width: 1441px) {
    .home-hero { height: 710px; }
    .home-welcome { width: 460px; margin-bottom: 50px; }
    .home-welcome img { display: inline-block; width: auto; height: 70px; margin-bottom: 30px; }
    .home-welcome h1 { font-size: 30px; letter-spacing: -0.5px; }
    .home-login .form-login { padding-right: 120px; width: 460px; }
    .home-login .form-login .form-control { font-size: 18px; padding-left: 20px; padding-right: 20px; height: 50px; line-height: 50px; }
    .home-login .form-login .btn { width: 110px; font-size: 18px; }
    .home-login .login-additional { margin-top: 30px; }
    .home-login .login-additional a { font-size: 14px; }
    .home-login .login-additional a + a { margin-left: 30px; }
}
@media screen and (min-width: 1081px) and (max-width: 1440px) {
    .home-hero { height: 600px; }
    .home-welcome { width: 420px; margin-bottom: 36px; }
    .home-welcome h1 { font-size: 24px; letter-spacing: -0.4px; }
    .home-login .form-login { padding-right: 110px; width: 420px; }
    .home-login .form-login .form-control { font-size: 16px; padding-left: 18px; padding-right: 18px; height: 46px; line-height: 46px; }
    .home-login .form-login .btn { width: 100px; font-size: 18px; }
    .home-login .login-additional { margin-top: 24px; }
    .home-login .login-additional a { font-size: 14px; }
    .home-login .login-additional a + a { margin-left: 24px; }
}
@media screen and (min-width: 641px) and (max-width: 1080px) {
    .home-hero { height: 520px; }
    .home-welcome { width: 420px; margin-bottom: 36px; }
    .home-welcome h1 { font-size: 24px; letter-spacing: -0.4px; }
    .home-login .form-login { padding-right: 110px; width: 420px; }
    .home-login .form-login .form-control { font-size: 16px; padding-left: 14px; padding-right: 14px; height: 42px; line-height: 42px; }
    .home-login .form-login .btn { width: 100px; font-size: 18px; }
    .home-login .login-additional { margin-top: 24px; }
    .home-login .login-additional a { font-size: 14px; }
    .home-login .login-additional a + a { margin-left: 24px; }
}
@media screen and (max-width: 640px) {
    .home .container { padding: 0 20px; }
    .home-hero { height: 440px; }
    .home-hero .container { padding: 0 40px; }
    .home-welcome { margin-bottom: 20px; padding-top: 40px; }
    .home-welcome h1 { font-size: 20px; text-align: center; word-break: keep-all; }
    .home-welcome h1 br { display: none; }
    .home-login { padding: 0 40px; text-align: center; }
    .home-login .form-login .form-control { font-size: 14px; padding-left: 12px; padding-right: 12px; height: 40px; line-height: 40px; }
    .home-login .form-login .form-control + .form-control { margin-top: 6px; }
    .home-login .form-login .btn { position: static; width: 100%; font-size: 14px; height: 40px; line-height: 40px; margin-top: 6px; }
    .home-login .login-additional { margin-top: 20px; text-align: center; }
    .home-login .login-additional a { font-size: 13px; }
    .home-login .login-additional a + a { margin-left: 12px; }
    .home-login .user-name { display: block; font-size: 16px; margin-bottom: 8px; margin-right: 0px; }
}


/* ------------------- Others -------------------  */
.home-service, .home-article, .home-link, .home-client { padding: 40px 0; }
.home-service .documents {
    display: -webkit-box; display: -ms-flexbox; display: flex;
}
.home-service .documents a {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    width: calc(33.3333% - 4px); height: 90px; border-radius: 10px; margin-right: 12px; 
    font-size: 18px; font-weight: 700; color: #fff;
}
.home-service .documents a > div { transform: translateY(2px); }
.home-service .documents a:last-of-type { margin-right: 0; }
.home-service .documents a.document-primary { background-color: #459e93; }
.home-service .documents a.document-secondary { background-color: #69788a; }
.home-service .documents a.outlink { background-color: #aea8a6; }
.home-service .documents a i { font-size: 24px; font-weight: 400; color: inherit; margin-right: 20px; }
.home-service .documents a img { height: 16px; width: auto; margin-right: 20px; }

.home-service .contact { height: 90px; }
.home-service .contact > div {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    background-color: #f0f3f6; border-radius: 10px;
    height: 100%;
}
.home-service .contact label { font-size: 16px; font-weight: 700; margin-right: 24px; }
.home-service .contact .tel { font-size: 36px; font-weight: 700; margin-right: 20px; color: #343c45; }

.home-header {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    position: relative; padding-right: 36px; margin-bottom: 18px;
}
.home-header.no-more { padding-right: 0 !important; }
.home-header h2 { font-size: 24px; font-weight: 700; color: #f37168; }
.home-header::after {
    content: ''; display: block;
    border-top: 1px solid #f37168;
    margin-left: 20px; opacity: 0.5;
    -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
}
.home-header > a {
    display: block; width: 25px; height: 25px;
    text-indent: -9999px;
    position: absolute; right: 0; top: 4px;
    border: 1px solid #f37168; border-radius: 5px;
    background-color: transparent;
}
.home-header > a::before, .home-header > a::after { content: ''; display: block; position: absolute; }
.home-header > a::before { width: 11px; border-top: 1px solid #f37168; top: 11px; left: 6px; }
.home-header > a::after { height: 11px; border-left: 1px solid #f37168; top: 6px; left: 11px; }

.home-article ul > li { position: relative; padding: 12px 80px 12px 0; }
.home-article ul > li a { display: block; font-size: 18px; color: #343c45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-article ul > li a:hover { text-decoration: underline; }
.home-article ul > li time { font-size: 14px; color: #929fae; position: absolute; right: 0; top: 14px; }

.home-link a {
    display: block; height: 200px; background-color: #fff; border-radius: 10px; padding: 40px;
    background-size: contain; background-position-x: right; background-repeat: no-repeat;
    background-color: #f0f3f6;
}
.home-link a.link-about { background-image: url('../images/link_about.png'); }
.home-link a.link-qna { background-image: url('../images/link_qna.png'); }
.home-link a p { font-size: 16px; font-weight: 700; color: #808a95; margin-bottom: 10px; }
.home-link a h2 { font-size: 28px; font-weight: 700; color: #343c45; }

.home-client ul::before, .home-client ul::after { content: ''; display: table; }
.home-client ul::after { clear: both; }
.home-client ul > li { float: left; width: 25%; }
.home-client ul > li a {
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-orient: vertical; -ms-flex-direction: column; flex-direction: column;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
}
.home-client ul > li a img { display: inline-block; max-width: 180px; height: auto; max-height: 100px; }

@media screen and (max-width: 1200px) {
    .home-service .documents a { height: 72px; margin-right: 16px; font-size: 16px; }

    .home-service .contact { height: 72px; }
    .home-service .contact label { font-size: 14px; margin-right: 12px; }
    .home-service .contact .tel { font-size: 24px; margin-right: 12px; }
}

@media screen and (min-width: 961px) {
    .home { padding-bottom: 80px; }
    .home-grid { margin-left: -24px; margin-right: -24px; }
    .home-grid::before, .home-grid::after { content: ''; display: table; }
    .home-grid::after { clear: both; }
    .home-grid > div { float: left; width: 50%; padding: 0 24px; }
    .home-client ul > li { margin: 20px 0px; }
    .home-client ul > li a { height: 100px; }
}
@media screen and (max-width: 960px) {
    .home { padding-bottom: 40px; }
    .home-service, .home-article, .home-link, .home-client { padding: 24px 0; }

    .home-service .documents a { height: 60px; margin-right: 8px; font-size: 12px; border-radius: 4px; padding: 0 11px; }
    /*.home-service .documents a br { display: none; }*/
    .home-service .documents a i,
    .home-service .documents a img { display: none; }

    .home-service .contact { height: auto; margin-top: 20px; }
    .home-service .contact > div { background-color: transparent; }
    .home-service .contact label { font-size: 12px; margin-right: 8px; }
    .home-service .contact .tel { font-size: 24px; margin-right: 8px; }

    .home-header { padding-right: 30px; margin-bottom: 10px; }
    .home-header h2 { font-size: 18px; }
    .home-header::after { margin-left: 10px; }
    .home-header > a { width: 19px; height: 19px; top: 2px; border-radius: 3px; }
    .home-header > a::before { width: 9px; top: 8px; left: 4px; }
    .home-header > a::after { height: 9px; top: 4px; left: 8px; }

    .home-article ul > li { padding: 6px 40px 6px 0; }
    .home-article ul > li a { font-size: 14px; }
    .home-article ul > li time { font-size: 12px; top: 8px; }

    .home-link a { height: 120px; border-radius: 6px; padding: 24px; }
    .home-link a p { font-size: 14px; margin-bottom: 10px; }
    .home-link a h2 { font-size: 20px; }

    .home-client ul > li { width: 50%; margin: 10px 0px; }
    .home-client ul > li a { height: 70px; }
    .home-client ul > li a img { max-width: 115px; }

    .home-grid > div + div { margin-top: 30px; }

}