/* ---------- carousel ---------- */

#carousel-generic {
    margin: 95px 0 0;
  }
  
  .page-header {
    margin: 95px 0 0;
  }
  
  .contact-wrapper {
    margin: 95px 0 0;
  }
  
  @media screen and (max-width: 1199px) {
    #carousel-generic {
      margin: 139px 0 0;
    }
  
    .page-header {
      margin: 139px 0 0;
    }
  
    .contact-wrapper {
      margin: 139px 0 0;
    }
  }
  
  @media screen and (max-width: 767px) {
    #carousel-generic {
      margin: 99px 0 0;
    }
  
    .page-header {
      margin: 99px 0 0;
    }
  
    .contact-wrapper {
      margin: 99px 0 0;
    }
  }
  
  @media screen and (max-width: 576px) {
    #carousel-generic {
      margin: 73px 0 0;
    }
  
    .page-header {
      margin: 73px 0 0;
    }
  
    .contact-wrapper {
      margin: 73px 0 0;
    }
  }
  
  /* ---------- navbar fixed ---------- */
  
  .navbar .dropdown-menu {
    background-color: #f8f8f8;
    top: 100%;
  }
  
  @media screen and (max-width: 992px) {
    .navbar .dropdown-menu {
      top: 98%;
    }
  }
  
  .dropdown-menu>li>a {
    font-size: 16px;
    padding: 10px 15px;
    transition: all 0.2s ease;
  }
  
  @media (max-width: 767px) {
    .navbar-nav .open .dropdown-menu .dropdown-header,
    .navbar-nav .open .dropdown-menu>li>a {
      padding: 10px 15px 10px 25px;
    }
  }

  @media (max-width: 414px) {
    .navbar-nav .open .dropdown-menu>li>a {
      white-space: pre-wrap;
    }
  }
  
  .dropdown-menu>li>a:focus,
  .dropdown-menu>li>a:hover {
    color: #ffffff;
    background-color: #f8b62b !important;
  }
  
  .open>.dropdown-menu {
    display: block;
  }
  
  @media screen and (min-width: 768px) {
  
    .nav li:hover>.dropdown-menu,
    .nav li:focus>.dropdown-menu {
      display: block;
    }
  }
  
  @media screen and (max-width:1199px) {
    .mainlink {
      padding: 0px 0 0;
    }
  }
  
  /* ---------- 服務項目樣式修改 ---------- */
  
  .service-row {
    display: flex;
    margin: 0;
  }
  
  @media screen and (max-width: 992px) {
    .service-row {
      flex-wrap: wrap;
      justify-content: space-between;
      margin: 0;
    }
  }
  
  @media screen and (min-width: 993px) {
    .service-row .col-md-6 {
      margin: 0;
    }
  }
  
  .service_item {
    flex-basis: 25%;
    padding: 0;
  }
  
  @media screen and (max-width: 992px) {
    .service_item {
      flex-basis: 50%;
      padding: 0 15px;
      margin: 15px 0 30px;
    }
  }
  
  @media screen and (max-width: 576px) {
    .service_item {
      flex-basis: 100%;
    }
  }
  
  .service_title {
    margin-bottom: 30px;
  }
  
  .service_img {
    overflow: hidden;
  }
  
  .service_img img {
    width: 100%;
    margin: 0;
    transition: 0.5s;
  }
  
  .service_img img:hover {
    transform: scale(1.1);
  }
  
  .service-list a {
    display: block;
    border-radius: 5px;
    color: #2f5a98;
  }
  
  .text-desc {
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(248, 182, 42, 0.75);
    height: 100%;
    opacity: 0;
    width: 100%;
    padding: 0px;
  }
  
  .port-1 {
    float: left;
    width: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
  }
  
  .port-1 .text-desc {
    opacity: 1;
    top: -85%;
    transition: 0.5s;
    color: #fff;
  }
  
  .port-1.effect-2 h3 {
    font-size: 21px;
  }
  
  .port-1 img {
    transition: 0.5s;
  }
  
  .port-1:hover img {
    transform: scale(1.2);
  }
  
  .port-1.effect-2 .text-desc {
    top: auto;
    bottom: -82.5%;
  }
  
  .port-1.effect-2:hover .text-desc {
    bottom: -82.5%;
    /* padding-top: 30%; */
    background: rgba(248, 182, 42, 1);
  }
  
  .service_item {
    color: #fff;
  }
  
  .port-1 img {
    max-width: 100%;
  }
  
  .port-1.effect-2 .toptitle {
    color: #fff;
    font-size: 22px;
    line-height: 1.65;
    letter-spacing: 0.5px;
    margin: 5px 0 0;
  }
  
  @media screen and (max-width: 1440px) {
    .port-1.effect-2 .toptitle {
      margin: 2px 0 0;
    }
  }
  
  @media screen and (max-width: 1200px) {
    .port-1.effect-2 .toptitle {
      margin: -1.5px 0 0;
    }
  }
  
  @media screen and (max-width: 1024px) {
    .port-1.effect-2 .toptitle {
      margin: -3.5px 0 0;
    }
  }
  
  @media screen and (max-width: 992px) {
    .port-1.effect-2 .toptitle {
      margin: 6.5px 0;
    }
  }
  
  @media screen and (max-width: 768px) {
    .port-1.effect-2 .toptitle {
      margin: 1px 0;
    }
  }
  
  @media screen and (max-width: 576px) {
    .port-1.effect-2 .toptitle {
      margin: 11px 0;
    }
  }
  
  @media screen and (max-width: 425px) {
    .port-1.effect-2 .toptitle {
      margin: 3px 0;
    }
  }
  
  @media screen and (max-width: 375px) {
    .port-1.effect-2 .toptitle {
      margin: 1px 0;
    }
  }
  
  @media screen and (max-width: 320px) {
    .port-1.effect-2 .toptitle {
      margin: -2px 0 0;
    }
  }
  
  .port-1.effect-2:hover .toptitle {
    /* margin: 5px auto 5px; */
  }
  
  .text-desc a {
    color: #fff;
  }
  
  .text-desc a:hover,
  .text-desc a:focus {
    color: #fff;
    text-decoration: none;
  }
  
  @media (min-width: 768px) {
    .port-1 img {
      width: 100%;
    }
  }
  
  .pull-left {
    padding: 0 15px;
  }
  
  /* ---------- 公司簡介 ---------- */
  
  .aboutwrap {
    display: flow-root;
    max-height: max-content;
    background-color: #f6f6f6;
    margin-top: 90px;
  }
  
  @media screen and (max-width:992px) {
    .aboutwrap {
      margin-top: 0;
    }
  }
  
  .aboutwrap .flex-box {
    display: flex;
  }
  
  @media screen and (max-width:992px) {
    .aboutwrap .flex-box {
      flex-direction: column;
    }
  }
  
  .aboutwrap .col-sm-6 {
    padding: 0;
  }
  
  @media screen and (max-width:992px) {
    .aboutwrap .col-sm-6 {
      width: 100%;
    }
  }
  
  .aboutwrap .col-sm-6.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .aboutwrap .about-content {
    padding: 50px 45px 60px;
  }
  
  @media screen and (max-width:1199px) {
    .aboutwrap .about-content {
      padding: 45px 45px 60px;
    }
  }
  
  @media screen and (max-width:992px) {
    .aboutwrap .about-content {
      padding: 45px 30px 60px;
    }
  }
  
  @media screen and (max-width:576px) {
    .aboutwrap .about-content {
      padding: 30px 15px 60px;
    }
  }

.btn {
    width: auto;
    min-width: 125px;
}

/* ---------- slogn ---------- */

.companytxt h3 {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.slognwrap {
    display: flex;
    align-items: center;
    justify-content: center;
}