@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
}

.headline-large {
  font-size: var(--fs-headline-large);
  line-height: var(--lh-headline-large);
  font-weight: var(--weight-bold);
  letter-spacing: var(--traking-n-025);
}

.headline-medium {
  font-size: var(--fs-headline-medium);
  line-height: var(--lh-headline-medium);
  font-weight: var(--weight-bold);
  margin-top: 1em;
}

.headline-small {
  font-size: var(--fs-headline-small);
  line-height: var(--lh-headline-small);
  font-weight: var(--weight-bold);
}

.title-large {
  font-size: var(--fs-title-large);
  line-height: var(--lh-body-medium);
  font-weight: var(--weight-semiBold);
  gap: 10px;
}

.title-medium {
  font-size: var(--fs-title-medium);
  line-height: var(--lh-title-medium);
  font-weight: var(--weight-semiBold);
}

.title-small {
  font-size: var(--fs-title-small);
  line-height: var(--lh-title-small);
  font-weight: var(--weight-semiBold);
}

.title-small-news {
  font-size: var(--fs-title-small);
  line-height: var(--lh-title-small);
  font-weight: var(--weight-semiBold);
  background-color: #fff;
  width: 100%;
  border-radius: 10px;
  padding: 12px;
}

.body-large {
  font-size: var(--fs-body-large);
  line-height: var(--lh-body-large);
  font-weight: var(--weight-regular);
}

.body-medium {
  font-size: var(--fs-body-large);
  line-height: var(--lh-body-medium);
  font-weight: var(--weight-semiBold);
}

.label-medium {
  font-size: var(--fs-label-large);
  line-height: var(--lh-label-medium);
  font-weight: var(--weight-semiBold);
  letter-spacing: var(--traking-p-05);
}

.card-img-top {
  object-fit: cover;
}

html {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: var(--fs-base);
  scroll-behavior: smooth;
}

body {
  background-color: #f4ead1;
  font-size: var(--fs-body-medium);
  line-height: var(--lh-body-medium);
}

/* 中心顯示的載入狀態 */
.spinner-container {
  display: none; /* 初始隱藏 */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.btn-fill {
  background-color: #2e5099;
  color: var(--neutral-100);
}

.nav {
  box-shadow: 0px 5px 10px 0px #0000000d;
}

.banner_title {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  font-size: 3.6rem;
}

.banner {
  background-image: url('../img/banner_1.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: hsla(0, 2%, 25%, 0.7);
  background-blend-mode: overlay;
  display: grid;
  place-items: center;
  min-height: 600px;
  text-align: center;
  padding-top: 125px;
}

.banner_res {
  background-image: url('../img/banner05.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: hsla(0, 2%, 25%, 0.7);
  background-blend-mode: overlay;
  display: grid;
  place-items: center;
  min-height: 600px;
  text-align: center;
  padding-top: 125px;
}

.banner_ab {
  background-image: url('../img/bg-about.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: hsla(0, 2%, 25%, 0.7);
  background-blend-mode: overlay;
  display: grid;
  place-items: center;
  min-height: 600px;
  text-align: center;
  padding-top: 125px;
}

.banner_cat {
  background-image: url('../img/banner06.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: hsla(0, 2%, 25%, 0.7);
  background-blend-mode: overlay;
  display: grid;
  place-items: center;
  min-height: 600px;
  text-align: center;
  padding-top: 125px;
}

.tabs-container {
  width: 350px;
  background-color: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}
.nav-tabs {
  border-bottom: none;
  position: relative;
  display: flex;
  justify-content: space-around;
}
.nav-tabs .nav-item {
  flex: 1;
  text-align: center;
}
.nav-tabs .nav-link {
  border: none;
  color: #000;
  padding: 10px 0;
  font-size: 1.1rem;
}
.nav-tabs .nav-link.active {
  color: #007bff;
}
.tab-indicator {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 50%;
  height: 2px;
  background-color: #007bff;
  transition: left 0.3s ease;
}

.card-custom {
  max-width: 550px; /* 調整卡片寬度 */
  border-radius: 20px; /* 設置圓角 */
  box-shadow: 0px 5px 10px 0px #0000000d;
}

/*關於我們*/

.about-container {
  display: flex;
  align-items: center;
}
.about-image {
  flex: 1;
  padding: 20px;
}
.about-content {
  flex: 2;
  padding: 20px;
}
.about-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}
.about-text {
  font-size: 18px;
}

/* 在小屏幕上移动图像到标题和文本上方 */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-image {
    padding: 0;
    margin-bottom: 20px;
  }
}

/*最新消息*/

.list-group-item {
  padding: 20px; /* 調整這個值來設置所需的內邊距 */
}

.list-group-numbered > li::before {
  display: none; /* 隱藏編號 */
}

/*footer*/

.footer_container {
  background-color: #071833;
}

/*知識專欄*/

.post-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1.5em;
  margin-top: 2rem;
}

.filter-item {
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
}

.active-filter {
  background: red;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
}

.blog-image {
  width: 100%;
  height: auto;
}
.blog-content {
  margin-top: 20px;
}
.blog-title {
  font-size: 2.5rem;
  margin-top: 20px;
}
.blog-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-top: 20px;
}

/*聯絡我們*/

.contact-info {
  padding: 20px;
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 20px;
}

/*登入*/

.login-container {
  max-width: 400px;
  margin-top: 50px;
}
.captcha-container {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.captcha {
  background-color: #f0f0f0;
  padding: 0.5rem;
  margin-right: 0.5rem;
  user-select: none;
}
.social-buttons .btn {
  margin-bottom: 0.5rem;
}

/*註冊*/

.register-container {
  max-width: 400px;
  margin-top: 50px;
}
.captcha-container {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.captcha {
  background-color: #f0f0f0;
  padding: 0.5rem;
  margin-right: 0.5rem;
  user-select: none;
}

/*諮詢*/

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #ccc;
}

.timeline-item {
  position: relative;
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  width: 50%;
  box-shadow: 0px 5px 10px 0px #0000000d;
  border: 2px solid #071833;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-item-left {
  left: 0;
}

.timeline-item-left::before {
  left: 100%;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #f8f9fa;
}

.timeline-item-right {
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item-right::before {
  right: 100%;
  border-width: 10px 10px 10px 0;
  border-color: transparent #f8f9fa transparent transparent;
}

/*個資聲明*/
.privacy-statement {
  background-color: white;
  max-width: 400px;
  max-height: 600px;
  overflow: auto;
  padding: 20px;
  border-radius: 25px;
  margin: 20px auto;
}

.custom-checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 3px;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #007bff;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-checkbox {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.custom-checkbox .checkmark:after {
  content: '';
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 8px;
  top: 4px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.person_submit {
  text-align: center;
  margin-top: 20px;
}

.form_body {
  background-color: white;
  max-width: 400px;
  max-height: 500px;
  overflow: auto;
  padding: 20px;
  border-radius: 25px;
  margin: 20px auto;
}
input[type='text'],
select,
textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
}

input[type='tel'] {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
}
input[type='submit'] {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
input[type='submit']:hover {
  background-color: #0056b3;
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 5px;
}

/*諮詢完成*/
.news_content_container {
  width: 350;
  max-height: 500px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  overflow: auto;
}

.consultation-form-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.consultation-form {
  width: 315px;
  background-color: #fffcec;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.consultation-form h2 {
  margin-bottom: 20px;
}

a {
  text-decoration: unset;
}

.simply-toast.alert {
  box-shadow: 1px 15px 15px -5px rgba(0,0,0,0.2);
  background: #fff;
  color: #000;
  opacity: 0.8;
  border: 1px solid #000;
  font-size: 22px;
}
.simply-toast > .close {
  float: right;
}