@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@700&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
:target{
    scroll-margin-top: 100px;
  }
body {
  background: #f4f4f4;
  position: relative;
  font-family: "Microsoft JhengHei";
}
h2 {
  font-size: 64px;
  line-height: 92px;
  letter-spacing: 0.02em;
  font-weight: bold;
  font-family: "Noto Serif TC", serif;
  color: #0b0b0b;
  text-align: center;
}
h2 span {
  padding-bottom: 8px;
  border-bottom: 2px solid;
}

a {
  text-decoration: none;
}

header {
  background: #0b0b0b;
  display: flex;
  justify-content: center;
}
header .swiper-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 224px 0px 120px;
}
header h2 {
  font-weight: bold;
  font-family: "Noto Serif TC", serif;
  font-weight: bold;
  font-size: 64px;
  line-height: 92px;
  color: #f4f4f4;
  padding-bottom: 8px;
  text-align: unset;
}
header .line {
  content: "";
  display: flex;
  width: 300px;
  border-bottom: 2px solid #f4f4f4;
  margin-bottom: 80px;
}
header .swiper {
  width: 100%;
}
header .swiper .swiper-wrapper {
  width: 980px;
  height: 201px;
}
header .swiper .swiper-slide img {
  width: 100%;
  aspect-ratio: 4/3;
  margin-bottom: 8px;
}
header .swiper p {
  font-size: 32px;
  font-weight: bold;
  line-height: 43px;
  font-family: "Microsoft JhengHei";
  color: #f4f4f4;
  text-align: center;
}
header .swiper .swiper-button-next,
header .swiper .swiper-button-prev {
  position: absolute;
  top: 80px;
  color: #b5b5b5;
  cursor: pointer;
}
header .swiper .swiper-button-prev::before,
header .swiper .swiper-button-next::before {
  content: "";
  width: 40px;
  height: 80px;
  border-radius: 0 100px 100px 0;
  background-color: #363636;
  position: absolute;
  top: 4px;
  z-index: -1;
}
header .swiper .swiper-button-prev {
  top: 80px;
  left: 0px;
}
header .swiper .swiper-button-next {
  top: 80px;
  right: 0px;
}
header .swiper .swiper-button-prev::before {
  border-radius: 0 100px 100px 0;
  top: -17px;
  right: -13px;
}
header .swiper .swiper-button-next::before {
  border-radius: 100px 0 0 100px;
  top: -17px;
  left: -13px;
}

main .service_group {
  padding: 60px 19% 96px;
  font-family: "Microsoft JhengHei";
}
main .service_group .uni_service {
  width: 100%;
  margin: 12px auto;
  margin-bottom: 24px;
  box-shadow: 0 0 5px 0 rgba(19, 59, 91, 0.3);
}
main .service_group .accordion {
  background-color: #f4f4f4;
  width: 100%;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  transition: 0.4s;
}
main .service_group .accordion .font {
  display: flex;
  align-items: center;
}
main .service_group .accordion .info {
  margin-left: 24px;
}
main .service_group .accordion .info h5 {
  width: auto;
  font-weight: bold;
  font-size: 32px;
  line-height: 42px;
}
main .service_group .accordion .info p {
  display: inline;
  color: #518c95;
  font-size: 24px;
  line-height: 32px;
}
main .service_group .accordion .add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #518c95;
  color: #f4f4f4;
  width: 178px;
  height: 40px;
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  border-radius: 40px;
}
main .service_group .accordion .add-cart:hover {
  background-color: #1f9c95;
}
main .service_group .accordion .add-cart span {
  font-size: 18px;
}
main .service_group .accordion .add-cart img {
  width: 24px;
  height: 24px;
  margin-right: 16px;
}
main .service_group .panel {
  background-color: #d9d9d9;
  color: #0b0b0b;
  display: none;
  overflow: hidden;
  font-weight: 400px;
  font-size: 24px;
  line-height: 40px;
  text-align: justify;
  letter-spacing: 0.02em;
  padding: 0px 16px;
}
main .service_group .panel p {
  padding: 16px 0px;
}
main .service_group .panel::before {
  content: "";
  display: flex;
  width: 100%;
  border-top: 1px solid #6c6c6c;
}
main .service_group .active {
  background-color: #d9d9d9;
}
main .Service_img,
main .VedicAstrology_img,
main .ChineseMedicine_img,
main .Magic_img,
main .Other_img {
  height: 320px;
  padding-top: 80px;
}
main .Service_img h2,
main .Service_img p,
main .VedicAstrology_img h2,
main .VedicAstrology_img p,
main .ChineseMedicine_img h2,
main .ChineseMedicine_img p,
main .Magic_img h2,
main .Magic_img p,
main .Other_img h2,
main .Other_img p {
  font-weight: bold;
  font-family: "Noto Serif TC", serif;
  color: #f4f4f4;
  text-align: center;
  font-weight: 700px;
}
main .Service_img h2,
main .VedicAstrology_img h2,
main .ChineseMedicine_img h2,
main .Magic_img h2,
main .Other_img h2 {
  font-size: 64px;
  line-height: 92px;
  letter-spacing: 0.02em;
}
main .Service_img p,
main .VedicAstrology_img p,
main .ChineseMedicine_img p,
main .Magic_img p,
main .Other_img p {
  font-size: 48px;
  line-height: 69px;
}
main .Service_img {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("../img/swiper1.jpg");
  background-size: cover;
  background-position: center;
}
main .VedicAstrology_img {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url("../img/swiper2.jpg");
  background-size: cover;
  background-position: center;
}
main .ChineseMedicine_img {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url("../img/swiper3.jpg");
  background-size: cover;
  background-position: center;
}
main .Magic_img {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url("../img/swiper4.jpg");
  background-size: cover;
  background-position: center;
}
main .Other_img {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url("../img/swiper5.jpg");
  background-size: cover;
  background-position: center;
}
main .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 20px;
  justify-items: center;
  padding: 60px 8.5% 120px;
}
main .container .course_card {
  width: 100%;
  font-style: normal;
  box-shadow: 0 0 5px rgba(19, 59, 91, 0.3);
  padding: 16px;
  box-sizing: border-box;
}
main .container .title,
main .container .prices {
  font-weight: bold;
}
main .container .intro,
main .container .prices {
  font-weight: 400;
  font-size: 24px;
}
main .container .sort,
main .container .add-cart {
  color: #f4f4f4;
  height: 40px;
  font-size: 18px;
  line-height: 24px;
  border-radius: 40px;
}
main .container .title {
  color: #0b0b0b;
  font-size: 32px;
  line-height: 42px;
  margin-bottom: 8px;
  overflow: hidden;
  text-align: start;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
main .container .intro {
  color: #6c6c6c;
  line-height: 40px;
  text-align: justify;
  letter-spacing: 0.02em;
}
main .container .prices {
  color: #518c95;
  font-size: 24px;
  line-height: 32px;
  margin: 24px 0;
  text-align: right;
  font-family: Microsoft JhengHei;
}
main .container .wrap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
main .container .wrap .sort {
  padding: 8px 16px;
}
main .container .wrap .add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #518c95;
  width: 178px;
  height: 40px;
}
main .container .wrap .add-cart:hover {
  background-color: #1f9c95;
}
main .container .wrap .add-cart img {
  width: 24px;
  height: 24px;
  margin-right: 16px;
}
main .VedicAstrology .sort {
  background-color: #687ca6;
}
main .ChineseMedicine .sort {
  background-color: #cda07b;
}
main .Magic .sort {
  background-color: #6c6c6c;
}
main .Other .sort {
  background-color: #e37d73;
}

.backToTop {
  position: fixed;
  right: 30px;
  bottom: 30px;
}
.backToTop a {
  display: inline-block;
  position: sticky;
  top: 90vh;
}
.backToTop a img {
  width: 80px;
}

footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  height: 120px;
  padding: 0 10.5%;
  margin-top: 120px;
  background-color: #0b0b0b;
  color: #f4f4f4;
  font-size: 24px;
  line-height: 32px;
  font-weight: bold;
  align-items: center;
}
footer a {
  color: #f4f4f4;
}
footer .footerLeft span {
  padding-right: 16px;
}
footer .footerMiddle {
  justify-self: center;
}
footer .footerMiddle ul {
  display: flex;
}
footer .footerMiddle ul li {
  list-style: none;
  border-right: solid #f4f4f4;
  border-right-width: 1px;
  padding-right: 32px;
  margin-right: 32px;
}
footer .footerMiddle ul li:nth-last-child(1) {
  border-right-width: 0px;
  padding-right: 0px;
  margin-right: 0px;
}
footer .footerRight {
  justify-self: end;
  display: flex;
}
footer .footerRight a {
  margin-right: 16px;
}
footer .footerRight a:nth-last-child(1) {
  margin-right: 0;
}
footer .footerRight a img {
  width: 40px;
}

@media screen and (min-width: 1270px) and (max-width: 1500px) {
  main .container {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (min-width: 601px) and (max-width: 1270px) {
  header .swiper-block {
    padding: 160px 0px 80px;
  }
  header h2 {
    font-size: 52px;
    line-height: 75px;
  }
  header .line {
    margin-bottom: 40px;
  }
  header .swiper .swiper-wrapper {
    width: 584px;
    height: 275px;
  }
  header .swiper .swiper-wrapper p {
    font-size: 28px;
    line-height: 37px;
    text-align: center;
  }
  header .swiper .swiper-button-next,
  header .swiper .swiper-button-prev {
    display: none;
  }
  main .service_group {
    padding: 40px 24px 80px;
  }
  main .service_group .uni_service {
    margin-bottom: 24px;
  }
  main .service_group .accordion {
    padding: 16px;
    width: 100%;
  }
  main .service_group .accordion .info h5 {
    font-size: 28px;
    line-height: 37px;
  }
  main .service_group .panel p {
    width: auto;
  }
  main .container {
    grid-template-columns: 1fr;
    padding: 40px 128px 80px;
    justify-content: center;
  }
  main .container .course_card {
    margin: 12px 0;
  }
  main .container .intro,
  main .container .prices {
    font-weight: bold;
  }
  main .container .title {
    font-size: 28px;
    line-height: 37.24px;
  }
  main .Service_img h2,
  main .Service_img p,
  main .VedicAstrology_img h2,
  main .VedicAstrology_img p,
  main .ChineseMedicine_img h2,
  main .ChineseMedicine_img p,
  main .Magic_img h2,
  main .Magic_img p,
  main .Other_img h2,
  main .Other_img p {
    font-size: 52px;
    line-height: 74.72px;
  }
  footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 168px;
    padding: 36px 0 188px;
    margin-top: 80px;
  }
  footer .footerLeft {
    width: 100%;
    text-align: center;
  }
  footer .footerMiddle {
    margin-top: 24px;
  }
  footer .footerMiddle ul li {
    padding-right: 32px;
    margin-right: 32px;
  }
  footer .footerRight {
    margin-top: 24px;
    margin-left: 32px;
  }
  footer .footerRight a {
    margin-right: 24px;
  }
}
@media screen and (max-width: 600px) {
  .humburger {
    width: 24px !important;
    height: 24px !important;
  }
  header .swiper-block {
    padding: 120px 0px 60px;
  }
  header h2 {
    font-size: 32px;
    line-height: 46px;
  }
  header .line {
    width: 120px;
    margin-bottom: 16px;
  }
  header .swiper .swiper-wrapper {
    width: 324px;
  }
  header .swiper .swiper-wrapper img {
    margin-bottom: 0px;
  }
  header .swiper .swiper-wrapper p {
    font-size: 20px;
    line-height: unset;
    text-align: center;
  }
  header .swiper .swiper-button-next,
  header .swiper .swiper-button-prev {
    display: none;
  }
  main .Service_img,
  main .VedicAstrology_img,
  main .ChineseMedicine_img,
  main .Magic_img,
  main .Other_img {
    height: unset;
    padding: 54px 0px;
  }
  main .Service_img h2, main .Service_img p,
  main .VedicAstrology_img h2,
  main .VedicAstrology_img p,
  main .ChineseMedicine_img h2,
  main .ChineseMedicine_img p,
  main .Magic_img h2,
  main .Magic_img p,
  main .Other_img h2,
  main .Other_img p {
    font-size: 32px;
    line-height: 46px;
  }
  main .service_group {
    padding: 30px 4.5% 44px;
  }
  main .service_group .uni_service {
    margin: 0px 0px 16px;
  }
  main .service_group .uni_service .accordion .font h5 {
    font-size: 20px;
    line-height: 27px;
  }
  main .service_group .uni_service .accordion .font p {
    font-size: 16px;
    line-height: 21px;
  }
  main .service_group .uni_service .accordion .add-cart {
    width: 32px;
    height: 32px;
    border-radius: 40px;
    padding: 8px;
  }
  main .service_group .uni_service .accordion .add-cart img {
    width: 16px;
    height: 16px;
    margin-right: 0px;
  }
  main .service_group .uni_service .accordion .add-cart span {
    display: none;
  }
  main .service_group .uni_service .panel p {
    font-size: 16px;
    line-height: 28px;
  }
  main .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 4.4% 60px;
  }
  main .container .course_card {
    width: 100%;
    height: 224px;
  }
  main .container .course_card .title {
    font-size: 20px;
    line-height: 27px;
  }
  main .container .course_card .intro {
    font-size: 16px;
    line-height: 28px;
  }
  main .container .course_card .prices {
    font-size: 16px;
    line-height: 21px;
  }
  main .container .course_card .sort {
    height: 32px;
    font-size: 12px;
    line-height: 16px;
  }
  main .container .course_card .add-cart {
    width: 116px;
    height: 32px;
  }
  main .container .course_card .add-cart img {
    width: 16px;
    height: 16px;
  }
  main .container .course_card .add-cart span {
    font-size: 12px;
    line-height: 16px;
  }
  .backToTop {
    right: 4px;
  }
  .backToTop a img {
    width: 48px;
  }
  footer {
    display: grid;
    grid-template-columns: 185px 32px;
    row-gap: 24px;
    height: 256px;
    padding: 40px 0;
    margin-top: 60px;
    background-color: #0b0b0b;
    color: #fff;
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: 0.02em;
    justify-content: center;
  }
  footer a {
    color: #f4f4f4;
  }
  footer .footerLeft {
    grid-column: 1/3;
    grid-row: 1/2;
    text-align: center;
  }
  footer .footerMiddle {
    grid-column: 1/2;
    grid-row: 2/3;
    justify-self: left;
  }
  footer .footerMiddle ul {
    display: flex;
    flex-direction: column;
  }
  footer .footerMiddle ul li {
    border-right-width: 0;
    padding-right: 0px;
    margin-right: 0px;
    margin-bottom: 16px;
  }
  footer .footerRight {
    grid-column: 2/3;
    grid-row: 2/3;
    justify-self: end;
    align-self: flex-end;
    display: flex;
    flex-direction: column;
  }
  footer .footerRight a {
    margin-bottom: 16px;
    margin-right: 0px;
  }
  footer .footerRight a:nth-last-child(1) {
    margin-bottom: 0;
  }
  footer .footerRight a img {
    width: 32px;
  }
}
