@import "icons.css";
@import "buttons.css";
@import "heading.css";
@import "fonts.css";

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --blue: #097ca6;
  --bs-danger-rgb: 192, 57, 43;
  --danger: #c0392b;
  --dark-100: #3d3d3d;
  --dark: #323232;
  --gray-100: #f0f0f0;
  --gray-200: #c0c0c0;
  --gray-300: #999999;
  --gray-400: #dadada;
  --gray-500: #979797;
  --gray-600: #9f9f9f;
  --gray-700: #f2f2f2;
  --gray-800: #bfbfc0;
  --gray-900: #f7f7f7;
  --gray: #adadad;
  --green: #7a931f;
  --orange-100: #ff9c1e;
  --orange-200: #ff9100;
  --orange-rgb: 239, 130, 53;
  --orange: #ef8235;
  --yellow: #fff5e2;
}

body,
input,
textarea,
option,
select {
  font-family: "PingFangTC", sans-serif;
}

body {
  color: var(--dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "微軟正黑體";
}

.ff-arial {
  font-family: Arial, Helvetica, sans-serif;
}

main {
  flex: 1;
}

p {
  margin-bottom: 1.25rem;
}

.fw-medium {
  font-weight: 500 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.fs-italic {
  font-style: italic;
}

.lh-0 {
  line-height: 0;
}

.lh-15 {
  line-height: 1.5;
}

.lh-17 {
  line-height: 1.7;
}

.max-hpx-240 {
  max-height: 240px;
}

.bg-gray-100 {
  background-color: var(--gray-100);
}

.bg-yellow {
  background-color: var(--yellow);
}

.bg-light {
  background-color: var(--gray-900) !important;
}

@media (min-width: 992px) {
  .bg-lg-light {
    background-color: var(--gray-900) !important;
  }
}

.bg-cloud {
  background-color: rgba(var(--bs-black-rgb), 0.09);
}

.bg-orange,
.hover\:bg-orange:hover {
  background-color: var(--orange) !important;
}

.text-orange,
.hover\:text-orange:hover {
  color: var(--orange) !important;
}

.text-gray {
  color: var(--gray) !important;
}

.text-dark {
  color: var(--dark) !important;
}


.text-block {
  color: var(--gray) !important;
}

.text-gray-300 {
  color: var(--gray-300) !important;
}

@media (min-width: 992px) {
  .text-lg-dark {
    color: var(--bs-dark) !important;
  }
}

.text-blue {
  color: var(--blue);
}

.text-green {
  color: var(--green);
}

.hover\:text-white:hover {
  color: var(--bs-white) !important;
}

.container {
  max-width: 1200px;
  width: 100%;
}

/***********************************************
 Utils
/**********************************************/

.cursor-pointer {
  cursor: pointer;
}

.rotate-horz {
  transform: rotate(180deg);
}

.border-orange {
  border-color: var(--orange) !important;
}

@media (min-width: 992px) {
  .border-lg-8 {
    border-width: 8px !important;
  }
}

.border-gray-500 {
  border-color: var(--gray-500) !important;
}

.center-vert {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mbpx-10 {
  margin-bottom: 10px !important;
}

.max-wpx-200 {
  flex-shrink: 0;
  max-width: 200px;
  width: 100%;
}

@media (min-width: 768px) {
  .wpx-md-90 {
    flex-shrink: 0;
    width: 90px;
  }
}

@media (min-width: 992px) {
  .border-lg-0 {
    border: 0 !important;
  }
}

.shadow {
  box-shadow: 0 0 12px rgb(var(--bs-black-rgb), 0.08) !important;
}

@media (min-width: 992px) {
  .shadow-lg-none {
    box-shadow: none !important;
  }
}

/***********************************************
  Banner
/**********************************************/

.banner {
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 120px;
  position: relative;
}

@media (min-width: 992px) {
  .banner {
    min-height: 420px;
  }
}

.banner.banner-home {
  min-height: 130px;
  height: 200px;
}

@media (min-width: 992px) {
  .banner.banner-home {
    min-height: 665px;
  }
}

@media (min-width: 768px) {
  .banner {
    min-height: 420px;
    
  }
}

/***********************************************
  Logo
/**********************************************/

.logo img {
  height: 30px;
}

@media (min-width: 992px) {
  .logo img {
    height: auto;
  }
}

/***********************************************
  Menu Hamburger
/**********************************************/

.menu-hamburger {
  cursor: pointer;
  display: block;
  height: 15px;
  position: relative;
  width: 24px;
}

.menu-hamburger.active .icon-hamburger {
  background: transparent;
}

.menu-hamburger.active .icon-hamburger:before {
  top: 0;
  transform: rotate(-45deg);
}

.menu-hamburger.active .icon-hamburger:after {
  top: 0;
  transform: rotate(45deg);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

@media (min-width: 992px) {
  .header-content {
    width: auto;
  }
}

/***********************************************
  Menu
/**********************************************/

.menu {
  background: var(--orange);
  display: none;
  font-size: 16px;
  height: calc(100vh - 46px);
  left: 0;
  overflow: auto;
  position: fixed;
  top: 46px;
  transition: max-height 0.2s ease-out;
  width: 100%;
  z-index: 2;
}

@media (min-width: 992px) {
  .menu {
    background: transparent;
    display: block !important;
    font-size: 24px;
    height: auto;
    left: auto;
    overflow: hidden;
    position: static;
    top: auto;
    transition: none;
    width: auto;
  }
}

.menu ul {
  list-style: none;
  margin-bottom: 0;
  margin-left: 0;
  padding-left: 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .menu > ul {
    display: flex;
  }
}

.menu ul li {
  white-space: nowrap;
}

.menu > ul li a {
  align-items: center;
  color: var(--bs-white);
  display: flex;
  font-weight: 600;
  justify-content: center;
  padding: 14px;
  text-decoration: none;
  text-align: center;
}

@media (min-width: 992px) {
  .menu > ul li a {
    color: var(--dark);
    padding: 10px 25px;
  }
}

.menu ul li a:hover,
.menu ul li.active a {
  font-weight: 600;
}

@media (min-width: 992px) {
  .menu ul li a:hover,
  .menu ul li.active a {
    color: var(--orange);
  }
}

.menu > ul li.active > a::before {
  background-color: var(--bs-white);
  content: "";
  display: inline-flex;
  height: 4px;
  margin-right: 0.5rem;
  width: 4px;
}

@media (min-width: 992px) {
  .menu > ul li.active > a::before {
    content: none;
  }
}

.menu > ul li.submenu > a::after {
  border-color: var(--bs-white) transparent transparent transparent;
  border-style: solid;
  border-width: 6px 5px 0 5px;
  content: "";
  height: 0;
  margin-left: 0.5rem;
  width: 0;
}

@media (min-width: 992px) {
  .menu > ul li.submenu > a::after {
    content: none;
  }
}

.menu > ul li.submenu.arrow > a::after {
  border-width: 0 5px 6px 5px;
  border-color: transparent transparent var(--bs-white) transparent;
}

.menu > ul ul {
  background-color: rgba(var(--bs-black-rgb), 0.07);
  display: none;
  font-size: 14px;
}

@media (min-width: 992px) {
  .menu > ul ul {
    display: none !important;
  }
}

/***********************************************
  Grid
/**********************************************/

.grid {
  display: grid;
  grid-gap: 10px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 992px) {
  .grid {
    grid-gap: 85px;
  }
}

/***********************************************
  Footer
/**********************************************/

.footer {
  font-size: 16px;
}

@media (min-width: 992px) {
  .footer {
    font-size: 20px;
  }
}

.footer a {
  color: var(--dark);
  text-decoration: none;
}

.footer a:hover {
  color: var(--orange);
}

.footer img {
  height: 50px;
}

@media (min-width: 992px) {
  .footer img {
    height: auto;
  }
}

/***********************************************
  Team
/**********************************************/

@media (min-width: 768px) {
  .team {
    border-radius: 20px;
    border: 2px solid var(--orange-100);
    padding: 45px 110px;
    position: relative;
    text-align: center;
  }

  .team-title {
    left: 50%;
    position: absolute;
    top: -28px;
    transform: translateX(-50%);
  }

  .team-title::before {
    background-color: var(--bs-white);
    content: "";
    height: 100%;
    left: 50%;
    position: absolute;
    top: 0;
    width: 120%;
    transform: translateX(-50%);
  }

  .team-title span {
    display: block;
    position: relative;
  }

  .team-title span::after,
  .team-title span::before {
    background-color: var(--orange-100);
    content: "";
    height: 15px;
    position: absolute;
    top: 19px;
    transform: rotate(-45deg);
    width: 15px;
  }

  .team-title span::after {
    left: -25px;
  }

  .team-title span::before {
    right: -25px;
  }

  .team-content {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.5;
  }
}

/***********************************************
 Pagination
/**********************************************/

.pagination {
  align-items: center;
  display: flex;
  font-size: 85%;
  justify-content: center;
  padding-top: 1rem;
}

.pagination .pagination-number {
  align-items: center;
  display: flex;
  margin: 0 0.7rem;
}

.pagination .pagination-item {
  align-items: center;
  background-color: var(--bs-white);
  border-radius: 0.15rem;
  border: 1px solid var(--gray);
  color: var(--bs-dark);
  cursor: pointer;
  display: flex;
  height: 26px;
  justify-content: center;
  margin-left: 0.2rem;
  margin-right: 0.2rem;
  min-width: 26px;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  text-decoration: none;
}

.pagination .pagination-item > a {
  color: #3d3d3d;
}

.pagination .pagination-item:hover {
  border-color: var(--orange);
  color: var(--orange);
  font-weight: 600;
}

.pagination .pagination-active:hover,
.pagination .pagination-active {
  background-color: var(--orange);
  border-color: var(--orange);
  color: var(--bs-white);
  font-weight: 600;
}

.pagination .pagination-active:hover,
.pagination .pagination-active > a {
  color: var(--bs-white);
}

.pagination .pagination-dots {
  margin: 0.25rem;
}

.pagination .pagination-arrow {
  height: 26px;
  padding: 0;
  width: 26px;
}

/***********************************************
  Related
/**********************************************/

.related {
  border-top: 1px dashed var(--gray-200);
  padding-top: 1.5rem;
}

.related-item {
  align-items: center;
  color: var(--bs-dark);
  cursor: pointer;
  display: flex;
  text-decoration: none;
}

.related-item span {
  display: block;
}

.related-item:hover {
  color: var(--bs-dark);
}

.related-item:hover .fw-normal {
  font-weight: 500 !important;
}

/***********************************************
  Sidebar
/**********************************************/

.sidebar ul {
  font-size: 22px;
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  border-top: 1px solid var(--gray-400);
}

.sidebar ul li:first-child {
  border-top: none;
}

.sidebar ul li a {
  color: var(--bs-dark);
  display: block;
  font-weight: 600;
  padding: 18px 20px;
  position: relative;
  text-decoration: none;
}

.sidebar ul li a::before {
  background-color: var(--gray-400);
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
}

.sidebar ul li a:hover,
.sidebar ul li.active a {
  color: var(--orange);
}

.sidebar ul li a:hover::before,
.sidebar ul li.active a::before {
  background-color: var(--orange);
}

/***********************************************
  Cycle Carousel Image
/**********************************************/

.cycle-slide {
  padding-right: 0.5rem;
}

.cycle-prev,
.cycle-next {
  color: var(--gray-600);
  position: absolute;
  text-decoration: none;
  top: 50%;
  transform: translateY(-50%);
}

.cycle-prev {
  left: -28px;
}

.cycle-next {
  right: -22px;
}

@media (min-width: 992px) {
  .cycle-next {
    right: -19px;
  }
}

.cycle-prev:hover,
.cycle-next:hover {
  color: var(--orange);
}

#slideshow-1 .cycle-slide {
  z-index: 1!important;
  display: none;
}

#slideshow-1 .cycle-slide-active {
  display: block;
}

/***********************************************
  List Square
/**********************************************/

.list-square {
  list-style: none;
  padding: 0;
}

.list-square li {
  margin: 12px 0;
  padding-left: 15px;
  position: relative;
}

.list-square li::before {
  background-color: var(--bs-dark);
  content: "";
  display: block;
  height: 5px;
  left: 0;
  position: absolute;
  top: 10px;
  width: 5px;
}

/***********************************************
  Form
/**********************************************/

.form-select,
.form-control {
  background-color: var(--gray-700) !important;
  border-radius: 4px;
  border: none !important;
}

input.form-control {
  height: 42px;
}

.form-select:focus,
.form-control:focus {
  box-shadow: 0 0 5px rgb(var(--orange-rgb), 0.8);
}

.form-active:focus,
.form-active {
  background-color: var(--gray-300);
}

.form-control::placeholder {
  color: var(--gray-800);
}

/***********************************************
  Featured
/**********************************************/

@media (min-width: 992px) {
  .featured {
    padding-left: 45px;
    padding-top: 42px;
    position: relative;
  }

  .featured::before {
    background: url("../images/dots.png") top center repeat;
    content: "";
    height: 200px;
    left: 0;
    position: absolute;
    top: 0;
    width: 303px;
  }

  .featured img {
    position: relative;
    z-index: 1;
  }
}

/***********************************************
  Brand
/**********************************************/

.brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
