/*
 * Backgound Function Collection
 * Oct 19: Largely rewrite to be more flexible
 *      - Before/After taking "Content" now
 *      - Ignore the rest of parameters if neither Image nor color exist
 *      - Able to handle Hover & Active BG
 */
/* Positioning & Sizing Function Collection
 * 
 * Oct 19: Enhanced dimen, if only one parameter, make it square size
 */
/*
 * Backgound Function Collection
 * Oct 19: Largely rewrite to be more flexible
 *      - Before/After taking "Content" now
 *      - Ignore the rest of parameters if neither Image nor color exist
 *      - Able to handle Hover & Active BG
 */
/* Positioning & Sizing Function Collection
 * 
 * Oct 19: Enhanced dimen, if only one parameter, make it square size
 */
.welcome-wrapper .wrapper {
  width: 100%;
  padding-left: 5vw;
  padding-right: 5vw;
}

.welcome-wrapper {
  max-width: 100%;
  width: 100%;
  padding-left: 0px;
  padding-right: 0px;
}

.welcome-wrapper {
  background-color: #fff;
  overflow: hidden;
  background-image: url(../../public/images/images/banner-home.jpg);
  background-color: #f5f5f7;
  background-position: center top;
  background-size: 100% 900px;
  background-repeat: no-repeat;
}
@media screen and (max-width: 991px) {
  .welcome-wrapper {
    background-position: 0 top;
  }
}
@media screen and (max-width: 767px) {
  .welcome-wrapper {
    background-image: url(../../public/images/images/banner-home-m.jpg);
    background-size: 100% 900px;
    background-position: center top;
  }
}
.welcome-wrapper .wrapper {
  margin-left: auto;
  margin-right: auto;
}
.welcome-wrapper .welcome {
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: auto auto;
  grid-template-rows: auto auto;
  row-gap: 15px;
  -ms-grid-columns: auto auto;
  grid-template-columns: auto auto;
  -webkit-column-gap: 34px;
  column-gap: 34px;
  grid-template-areas: "title loginbox" "carouselbox loginbox";
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 40px;
}
.welcome-wrapper .welcome .titleGrid {
  -ms-grid-rows: 1;
  grid-template-rows: 1;
  -ms-grid-columns: 1;
  grid-template-columns: 1;
  grid-area: title;
}
.welcome-wrapper .welcome .loginGrid {
  -ms-grid-rows: 1;
  grid-template-rows: 1;
  -ms-grid-row-span: 2;
  -ms-grid-columns: 2;
  grid-template-columns: 2;
  grid-area: loginbox;
}
.welcome-wrapper .welcome .carouselGrid {
  -ms-grid-rows: 2;
  grid-template-rows: 2;
  -ms-grid-columns: 1;
  grid-template-columns: 1;
  grid-area: carouselbox;
}
@media screen and (max-width: 767px) {
  .welcome-wrapper .welcome {
    -ms-grid-rows: auto auto auto;
    grid-template-rows: auto auto auto;
    row-gap: 30px;
    -ms-grid-columns: 100%;
    grid-template-columns: 100%;
    grid-template-areas: "title" "loginbox" "carouselbox";
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .welcome-wrapper .welcome .titleGrid,
.welcome-wrapper .welcome .loginGrid,
.welcome-wrapper .welcome .carouselGrid {
    -ms-grid-column-align: center;
    justify-self: center;
  }
}
.welcome-wrapper .welcome .titleGrid h1 {
  font-size: 3.2rem;
  font-weight: 500;
  color: #aa181b;
}
@media screen and (max-width: 767px) {
  .welcome-wrapper .welcome .titleGrid {
    text-align: center;
  }
  .welcome-wrapper .welcome .titleGrid h1 {
    margin-bottom: 14px;
  }
  .welcome-wrapper .welcome .titleGrid button {
    margin-top: 0;
  }
}
.welcome-wrapper .welcome.withLoginBox .loginGrid {
  width: 345px;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  background-color: #fff;
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
}
@media screen and (max-width: 991px) {
  .welcome-wrapper .welcome.withLoginBox .loginGrid {
    -webkit-align-self: end;
    -moz-align-self: end;
    -ms-flex-item-align: end;
    align-self: end;
  }
}
.welcome-wrapper .welcome.withLoginBox .loginGrid .header {
  background-color: #00799e;
  color: #fff;
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  padding-top: 7px;
  padding-bottom: 8px;
  margin: 0;
}
.welcome-wrapper .welcome.withLoginBox .loginGrid .loginBoxForm {
  padding: 20px 20px 5px;
}
.welcome-wrapper .welcome.withLoginBox .loginGrid .loginBoxForm .actionBtnWrapper {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  -webkit-align-items: stretch;
  -moz-align-items: stretch;
  align-items: stretch;
  -webkit-box-direction: normal;
  -webkit-box-orient: horizontal;
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  -moz-flex-wrap: nowrap;
  -ms-flex-wrap: none;
  flex-wrap: nowrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.welcome-wrapper .welcome.withLoginBox .loginGrid .loginBoxForm .actionBtnWrapper .ant-btn {
  margin: 0;
  width: 145px;
}
.welcome-wrapper .welcome.withLoginBox .loginGrid .loginBoxForm label.rememberMe span {
  font-weight: normal;
  font-size: 1.4rem;
}
.welcome-wrapper .welcome.withLoginBox .loginGrid .loginBoxForm .ant-input-affix-wrapper .ant-input-prefix img {
  width: 12px;
  height: 12px;
}
.welcome-wrapper .welcome.withLoginBox .loginGrid .supportingRow {
  background-color: #f5f5f7;
  padding: 20px;
}
.welcome-wrapper .welcome .carouselGrid {
  background-color: #fff;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 15px;
  min-width: 35vw;
  max-width: 700px;
  max-height: 300px;
}
@media screen and (max-width: 991px) {
  .welcome-wrapper .welcome .carouselGrid {
    height: 100%;
    -webkit-align-self: end;
    -moz-align-self: end;
    -ms-flex-item-align: end;
    align-self: end;
  }
}
@media screen and (max-width: 767px) {
  .welcome-wrapper .welcome .carouselGrid {
    background-color: transparent;
    margin-top: 20px;
    max-width: 100%;
    width: 100%;
    max-height: 310px;
    position: relative;
  }
  .welcome-wrapper .welcome .carouselGrid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -50px;
    right: -50px;
    background-color: #f5f5f7;
  }
  .welcome-wrapper .welcome.withLoginBox .loginGrid .loginBoxForm .actionBtnWrapper .ant-btn {
    width: 100%;
  }
}
