@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;400;500;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@200;300;400;500;600;700;900&display=swap");
@import url("https://pro.fontawesome.com/releases/v5.10.0/css/all.css");

:root {
  --primary: #56b692;
  --primary-darker: #2e8563;
  --primary-lighter: #f5f5f5;
  --secondary: #ea4e72;
  --gray: #dbdbdb;
  --light-gray: #f2f2f2;
  --dark: #000000;
  --red: #e00000;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  list-style-type: none;
  text-decoration: none;
}

body {
  color: var(--dark);
  font-family: Arial, "微軟正黑體", "Helvetica Neue", Helvetica, sans-serif,
    "新細明體";
  font-size: 1em;
  line-height: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  line-height: 1.2;
}

h2 {
  font-size: 1.2rem;
}

h3 {
  font-size: 1.05rem;
}

h4 {
  font-size: 0.95rem;
}

a {
  color: var(--dark);
}

a:focus,
a:focus-within {
  outline: 2px solid #000 !important;
  outline-offset: -2px;
  border-radius: 4px;
}

body a:hover {
  color: #eb6c0e;
}

.goCenter {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.9em;
  text-decoration: none;
  z-index: 1000;
  opacity: 0;
  transition: 0.5s;
  border-radius: 4px;
}

.goCenter:focus {
  outline: none;
  opacity: 1;
}

button,
.btn {
  transition: 0.3s ease-in-out;
  transform: scale(1);
}

button:not(:disabled):hover,
.btn:not(:disabled):hover {
  transform: scale(1.06);
}

a.btn {
  display: block;
}

/* navbar */

.backdrop {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
}

.navigation {
  position: fixed;
  left: 0;
  top: 55px;
  height: 100%;
  background: var(--primary);
  z-index: 1030;
  min-width: 250px;
  overflow: auto;
  padding: 5px 0 15px;
  transform: translateX(-100%);
  transition: all 0.5s ease-in-out;
}

.navigation.open {
  transform: translateX(0);
}

.navigation a {
  padding: 0.8rem 1rem;
}

.menuItem a {
  transition: 0.2s ease-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  border-bottom: 1px solid #fff5;
  margin: 0 10px;
}

.menuItem.hasChild i {
  transform: rotate(0deg);
  transition: all 0.5s;
}

.menuItem.active.hasChild i {
  transform: rotate(90deg);
}

.menuItem.active.hasChild .dropdown {
  display: block;
  opacity: 1;
  visibility: visible;
}

.menuItem.hasChild .dropdown {
  display: none;
  opacity: 0;
  visibility: hidden;
}

.menuItem.hasChild .dropdown li:hover a {
  background-color: var(--primary-darker);
  color: #ffffff;
}

.menuItem.hasChild .dropdown a {
  margin-left: 10px;
}

.navigation ul.subMenu {
  margin: 50px 0;
}

.navigation ul.subMenu li {
  margin: 8px;
  font-size: 0.9em;
  display: block;
  padding: 10px;
  line-height: 1.2;
  background-color: #8cdcb9;
  border-radius: 4px;
  text-align: center;
}

.navigation ul.subMenu li a {
  color: #2e8b5f;
}

.navigation ul.subMenu li a:hover {
  color: var(--primary-darker);
}

@media screen and (min-width: 768px) {
  .navigation {
    display: none;
  }
}

.header {
  background-color: #fff;
}

ul.topMenu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.9em;
  margin: 0 auto;
  padding-top: 5px;
}

ul.topMenu li {
  margin: 0 10px;
  position: relative;
}

ul.topMenu li::before {
  content: "";
  width: 1px;
  height: 12px;
  background-color: var(--dark);
  position: absolute;
  left: -11px;
  top: 7px;
}

ul.topMenu li:first-child:before,
ul.topMenu li:nth-child(2):before {
  width: 0;
}

ul.topMenu li a:hover {
  color: var(--primary-darker);
  border: 1px solid #73dcfc;
}

.memberGreeting {
  background: #c2e0e3;
  padding: 0 2px;
  border-radius: 5px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  z-index: 1010;
}

.mainNavbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.3s all ease-in-out;
  margin: 0 auto;
}

.mainNavbar.open .burger .line1 {
  transform: rotate(-45deg);
  transform-origin: top right;
}

.mainNavbar.open .burger .line2 {
  opacity: 0;
}

.mainNavbar.open .burger .line3 {
  transform: rotate(45deg);
  transform-origin: bottom right;
}

.burger div {
  width: 23px;
  height: 2px;
  background-color: #fff;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.4s ease-in;
  z-index: 1;
}

.burger .line1 {
  transform: rotate(0);
  transform-origin: top right;
}

.burger .line3 {
  transform: rotate(0);
  transform-origin: bottom right;
}

.mainNavbar .logo {
  width: 345px;
}

.mainNavbar .logo a {
  display: inline-block;
  text-align: center;
}

.mainNavbar .logo img {
  object-fit: contain;
  width: 100%;
}

.options {
  display: flex;
}

.fontChange {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.fontChange ul {
  display: flex;
  gap: 12px;
}

.fontChange ul li a {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: all 0.2s ease-in;
}

.fontChange ul li a:hover {
  transform: scale(1.05);
}

.fontChange ul li a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.searchWrap {
  display: flex;
  gap: 10px;
}

.d_m {
  display: none;
}

.searchWrap a {
  width: 30px;
  height: 30px;
  transition: all 0.2s ease-in;
}

.searchWrap a:hover {
  transform: scale(1.05);
}

.searchWrap a .searchWrap a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.searchWrap .fab {
    background: #38b4c4;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 30px;
    text-align: center;
}

.searchWrap .fab_align {
  position: relative;
}
.searchWrap .fab_align img {
  width:15px;
  height:15px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);  
}

.navList {
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1030;
}

.navList.fixed {
  position: fixed;
  top: 0;
  width: 100%;
}

.navList ul.menu {
  display: flex;
  width: 100%;
}

.navList ul.menu > li {
  position: relative;
  flex: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navList ul.menu > li > a {
  padding: 15px;
  width: 100%;
  display: inline-block;
  text-align: center;
  transition: 0.2s ease-in-out;
  border-right: 1px solid #ffffff50;
}

.navList ul.menu > li:first-child > a {
  border-left: 1px solid #ffffff50;
}

.navList ul.menu li ul.dropdown {
  height: 0;
  border-top: 0;
  min-width: 100%;
  left: 0;
  margin: 0;
  position: absolute;
  text-align: left;
  top: 100%;
  visibility: hidden;
  height: 1px;
  overflow: hidden;
  z-index: 10;
}

.navList ul.menu li ul.dropdown li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  white-space: nowrap;
  background-color: var(--primary-lighter);
  border: 1px solid var(--primary-lighter);
  transition: 0.2s ease-in-out;
}

.navList ul.menu li:hover .dropdown {
  visibility: visible;
  height: auto;
}

.navList ul.menu li:focus-within .dropdown {
  visibility: visible;
  height: auto;
}

.navList ul.menu li a:hover,
.navList ul.menu li a:focus {
  background-color: var(--primary-darker);
  color: #fff;
}

.navList ul.menu li ul.dropdown li:hover a,
.navList ul.menu li ul.dropdown li:focus a,
.navList ul.menu li ul.dropdown li:focus-within a {
  background-color: var(--primary-darker);
  color: #fff;
  border: 1px solid #73dcfc;
}

@media screen and (max-width: 768px) {
  ul.topMenu,
  .fontChange,
  .navList {
    display: none;
  }

  .mainNavbar {
    background-color: var(--primary);
    padding: 6px 10px;
    position: fixed;
    width: 100%;
    z-index: 1030;
  }

  .burger {
    display: flex;
  }

  .mobileMainNavbar {
    display: flex;
    z-index: 1000;
  }

  .mainNavbar .logo {
    width: 230px;
    transform: translateY(3px);
  }

  .mainNavbar .logo img {
    width: 90%;
  }

  .d_m {
    display: block;
  }

  .d_m.d_table_row {
    display: table-row;
  }

  .d_m.d_table_cell {
    display: table-cell;
  }

  .d_pc {
    display: none;
  }

  .searchWrap .fab {
      background: #fff;
      color: var(--primary);
  }
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-bottom: 25px;
  display: flex;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container,
  ul.topMenu,
  .mainNavbar,
  .navList ul.menu {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container,
  ul.topMenu,
  .mainNavbar,
  .navList ul.menu {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container,
  ul.topMenu,
  .mainNavbar,
  .navList ul.menu {
    max-width: 80%;
  }
}

@media (min-width: 1400px) {
  .container,
  ul.topMenu,
  .mainNavbar,
  .navList ul.menu {
    max-width: 70%;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 65px 20px 25px;
  }
}

/* main content */

.mainContent {
  width: 100%;
}

.topContent {
  font-size: 0.9em;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  margin: 0 0 10px;
  border-top: 1px solid #ffffff50;
}

.breadcrumb span:not(:last-child)::after {
  content: ">";
  margin: 0 5px 0;
}

.linkArea {
  display: flex;
}

.linkArea a:hover {
  background-color: #227e55;
}

.linkArea a {
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.825rem;
}

.linkArea img {
  width: 54px;
  height: 54px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .linkArea {
    width: 100%;
    justify-content: end;
    border-top: 0.5px solid #fff3;
  }
  .linkArea a {
    width: 2.5rem;
    line-height: 1.2rem;
    text-align: center;
    border-left: 0.5px solid #fff3;
  }
  .linkArea img {
    width: 30px;
    height: 30px;
  }
}

.currentTab {
  margin-top: 5px;
}

.currentTab a:hover {
  color: var(--primary-darker);
}

.currentTab span::after {
  content: "/";
  font-size: 13px;
  font-weight: 600;
  margin: 0 5px;
  color: var(--primary-darker);
}

.currentTab span:last-child:after {
  content: "";
}

.currentPage {
  font-size: 1.5em;
  text-align: center;
  margin-top: 8px;
}

.currentPage::after,
.currentPage::before {
  content: "-";
  font-weight: bold;
  margin: 0 5px;
  color: var(--primary-darker);
}

.currentPage a {
  color: var(--primary-darker);
}

.signOut {
  display: inline-block;
  background-color: #d73e29;
  color: #fff;
  border-radius: 20px;
  padding: 0 10px;
  margin-left: 7px;
  transform: scale(0.9);
  transition: 0.2s;
}

.signOut i {
  margin-left: 3px;
}

.signOut:hover {
  transform: scale(1);
}

@media (max-width: 768px) {
  .topContent {
    align-items: center;
    flex-direction: column;
  }

  .user_tab {
    flex-direction: column;
  }
}

.card {
  letter-spacing: 1px;
  padding: 20px 20px 30px;
  margin-bottom: 30px;
  border-radius: 10px;
}

.card p {
  text-align: justify;
}

.cardTitle {
  font-size: 1.2em;
  color: #ff8c00;
  margin-bottom: 15px;
  padding-left: 12px;
  text-align: center;
}

.attention {
  margin-top: 5px;
  font-weight: 500;
  color: var(--red);
}

.formGroup {
  margin: 10px 0;
  display: flex;
  align-items: center;
  width: 100%;
}

.formGroup label {
  width: 25%;
}

@media (max-width: 768px) {
  .formGroup {
    flex-direction: column;
  }

  .formGroup label {
    width: 100%;
  }
}

.formControl {
  display: block;
  width: 100%;
  padding: 0.25rem 0.5rem;
  font-weight: 400;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
  color: var(--dark);
  border: 1px solid var(--primary-darker);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.formSelect {
  display: block;
  width: 100%;
  padding: 0.375rem 0.1rem;
  -moz-padding-start: calc(0.75rem - 3px);
  font-weight: 400;
  font-size: inherit;
  color: var(--primary-darker);
  border: 1px solid var(--primary-darker);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.primaryBtn {
  border: 1px solid var(--primary-darker);
  background-color: #fff;
  color: var(--primary-darker);
  padding: 10px;
  cursor: pointer;
  font-size: inherit;
  transition: all 0.2s ease-in-out;
}

.primaryBtn:hover {
  background-color: var(--primary-darker);
  color: #fff;
}

table.leftThead td {
  padding: 10px;
}

table.leftThead td:first-child {
  background: var(--primary-lighter);
  font-weight: 500;
}

table.leftThead td:nth-child(2) {
  background: var(--light-gray);
}

@media (max-width: 576px) {
  table.leftThead tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
  }
}

.pagination {
  text-align: center;
}

.pagination .page {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination .page li {
  margin: 2px;
  flex: 0 0 35px;
}

.pagination .page li a {
  border-radius: 10px;
  padding: 6px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  color: var(--dark);
  background-color: var(--light-gray);
}

.pagination .page li.active a {
  color: #fff !important;
  background-color: var(--primary);
}

.pagination .page li {
  transform: scale(1);
  transition: 0.3s all ease;
}

.pagination .page li:hover {
  transform: scale(1.1);
}

.pagination .page li:not(.active):hover a {
  background-color: var(--primary);
  color: #fff;
}

/* footer */

footer {
  background-color: var(--primary);
  color: #fff;
  font-size: 0.85em;
  padding: 20px 15%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  line-height: normal;
}

.serviceHour {
  color: yellow;
  margin-top: 15px;
}

.footerIconWrap {
  display: flex;
  margin-top: 20px;
  color: yellow;
}

.footerIcon:first-child {
  margin-right: 10px;
}

.footerIcon,
.footerLink {
  display: flex;
  align-items: flex-start;
}

.footerIcon img {
  width: 23px;
}

.footerLink img {
  margin-right: 10px;
}

@media screen and (max-width: 991px) {
  footer {
    flex-direction: column;
    padding: 20px 50px;
  }

  .footerIconWrap {
    flex-direction: column;
  }

  .footerLink {
    margin-top: 10px;
    align-items: flex-end;
  }
}

@media screen and (max-width: 576px) {
  footer {
    padding: 15px 30px;
  }
}

.progressbarWrap {
  margin: 30px 0;
}

.progressbarWrap .progressbar {
  counter-reset: step;
  display: flex;
}

.progressbarWrap .progressbar li {
  position: relative;
  width: 33.33%;
  text-align: center;
}

.progressbarWrap .progressbar li:before {
  content: counter(step);
  counter-increment: step;
  width: 40px;
  height: 40px;
  border: 3px solid var(--primary-darker);
  color: var(--dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  background-color: #fff;
}

.progressbarWrap .progressbar li:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: var(--primary-darker);
  top: 20px;
  left: -50%;
  z-index: -1;
}

.progressbarWrap .progressbar li:first-child:after {
  content: none;
}

.progressbarWrap .progressbar li.active:before {
  background-color: var(--primary-darker);
  color: #fff;
}

.my-3 {
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
}
