
:root {
    --brand-dark: #37534f;
    --brand-light: #527976;
    --brand-bg: #e9ebea;
    --brand-btn: #476865;
}
html {
  scroll-behavior: smooth;
}
body {
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    color: #333;
    letter-spacing: 0.15em;
}
/* 繁體中文環境：啟用 Huninn */
:lang(zh-HK) {
  font-family: 'Huninn', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

/* 簡體中文環境：啟用簡中友好的字型（或您自託管的糖圓體） */
:lang(zh-CN) {
  font-family: 'TangYuan', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
:lang(zh-HK) i, :lang(zh-CN) i{
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free";
}
::selection {
  background-color: var(--brand-dark); /* 反白背景顏色 */
  color: #ffffff;            /* 反白文字顏色 */
}
a:hover {
    color: #527976;
}
a[data-trigger]{
cursor: pointer;
}
button{    
    letter-spacing: 0.15em;
}
section, div[id^="section"] {
  scroll-margin-top: 70px; /* 根據你 Navbar 的高度進行調整 */
}
h1, .h1, h2, .h2, h3, .h3{
    letter-spacing: 0.2em;
}
.btn, .accordion-button {
    font-size: 1.2rem;
    border-radius: 20px;
}
.bg-brand-light { background-color: var(--brand-bg); }
.text-brand { color: var(--brand-dark); }
.btn-brand {
    background-color: var(--brand-btn);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 24px;
}
.btn-brand:hover {
    background-color: var(--brand-dark);
    color: white;
}
.btn-brand-whatsapp {
    background-color: var(--brand-light);
    color: white;
    border-radius: 20px;
    padding: 8px 20px;
}
.btn-brand-whatsapp i { font-size: 1.2rem; vertical-align: middle; }
.btn-brand:focus, .btn-brand-whatsapp:focus {
    background-color: var(--brand-btn);
    color: var(--bs-white);
}

.btn-brand:active , .btn-brand-whatsapp:active  {
    border: var(--brand-btn) 2px solid;
    color: var(--bs-white);
}

.hero-section {
    padding: 80px 0;
    background-color: #e2e4e1;
    position: relative;
}
.about-section { padding: 60px 0; background-color: #f7f7f7; }
.services-section { padding: 0px 0; background-color: #e2e4e1; }
.services-section .frosted-glass-box { margin-top: 60px; margin-bottom: 60px; }


.services-section img{
    max-width: 100%;
}

@media (min-width: 680px) {
    .services-section img{
       max-width: 650px;
    }
}
@media (min-width: 992px) {
    .services-section img{
       max-width: 450px;
    }
}
@media (min-width: 1200px) {
    .services-section img{
       max-width: 600px;
    }
}
@media (min-width: 1400px) {
    .services-section img{
       max-width: 650px;
    }
}
.coop-section { padding: 60px 0; background-color: #f1f2f0; }
.service-section { padding: 60px 0; background-color: #f1f2f0; }
.contact-section { padding: 60px 0; background-color: #e2e4e1; }
.qa-section { padding: 60px 0; background-color:var(--brand-dark) }


.service-box { background-color: white; border-radius: 10px; padding: 20px; }
.service-right-col { background-color: var(--brand-dark); color: white; padding: 20px; height: 100%; }

.accordion-button:not(.collapsed) {
    background-color: white;
    color: var(--brand-dark);
    box-shadow: none;
    border-radius: 8px 8px 0px 0px !important;
}
.accordion-flush .accordion-item .accordion-button{
    border-radius: 8px;
}
.accordion-button { font-weight: bold; border-radius: 0px 0px 8px 8px; margin-bottom: 10px; }
.accordion-item { border: none; background: transparent; }
.accordion-collapse { background: white; border-radius:  0px 0px 8px 8px ; margin-top: -10px; margin-bottom: 10px;}

.contact-form-box { background-color: var(--brand-light); padding: 30px; border-radius: 15px; color: white;}
.form-control { border-radius: 0; margin-bottom: 15px; }

.footer { 
    background-color: black; color: var(--brand-dark); padding: 10px 0; font-size: 0.8rem; 
    position: fixed;
    width: 100vw;
    bottom: 0;
    border-top: var(--brand-dark) 1px solid;
}

.datepicker tbody tr:nth-child(even) td {
    background-color: #FFF !important;
}
.datepicker table tr td.selected{
    background-color: var(--bs-primary) !important;
}
.datepicker table tr td.range {
    background-color: var(--bs-primary) !important;
    color: #FFF;
}
.datepicker .next::after, .datepicker .prev::after{
    border-color: var(--bs-primary) !important;
}
td.text-ellipsis{
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: break-all;
    overflow: hidden;
    max-width: 15vw;
}
.app-brand .layout-menu-toggle {
    background-color: #b1d3ff;
    border: 7px solid var(--bs-primary)
}
.btn{
    word-break: keep-all;
}
.card-btn{
    text-align: center;
}
.card-footer{
    border-top: 1px solid #d9dee3;
}

.thumbnail{
    max-width: 100%;
    max-height: 100%;
}
.daterangepicker{
    background-color: var(--bs-white);
    border: 0 solid #d9dee3;
    border-radius: 0.5rem;
    
    background-clip: padding-box;
    box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
}
.daterangepicker td.in-range {
    background-color: #357ebd !important;
    border-color: transparent;
    color: #FFF !important;
    border-radius: 0;
}.daterangepicker td.end-date {
    border-radius: 0 4px 4px 0 !important;
}.daterangepicker td.start-date {
    border-radius: 4px 0 0 4px!important;
}.daterangepicker td.end-date.start-date {
    border-radius: 4px 4px 4px 4px!important;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--bs-gray-dark);
}

.carousel-item img{
  display: block;
  width: 100%;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    display: block;
    padding-left: 15px;
    padding-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #d9dee3;
    border-radius: 4px;
}
.select2-container .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    min-height: 40px;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #697a8d;
    line-height: 40px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: 6px;
    position: absolute;
    top: 50%;
    width: 0;
}
.input-group > .form-control, .input-group > .form-select,  .input-group > .select2-container {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}
.btn i{
    min-width: 1rem;
}
th.dt-nowrap {
    width: 1%;
}
.nav-align-top .nav-tabs .nav-link.active {
    box-shadow: 0 -3px 6px 0 rgba(67, 89, 113, 0.12);
}

table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date, table.dataTable td.dt-type-numeric, table.dataTable td.dt-type-date {
    text-align: left;
}
tr td:last-child {
    width: 1%;
    white-space: nowrap;
}

.btn-warning {
    background-color: var(--bs-warning);
}
.btn-success {
    background-color: var(--bs-success-rgb);
}
.bg-warning {
    background-color: var(--bs-warning-rgb) !important;
}
.bg-success {
    background-color: var(--bs-success-rgb) !important;
}

.form-label:has(~ div input:required,~ div select:required, ~div textarea):after,
.col-form-label:has(~ div input:required,~ div select:required, ~div textarea):after {
    content: "*";
    color: #F00;
    margin-left: 0.5rem;
}

.carousel .carousel-item.active h5.card-header{
    color:var(--bs-card-cap-color);
}

.select2-container--disabled .select2-selection__clear{
    display: none;
}

#layout-menu .badge-notifications{
    position: absolute;
    left: -10px;
}

.table th {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}
.badge {
    --bs-badge-font-size: 1rem;
    font-size: 1rem;
}
.form-label, .col-form-label {
    font-size: 1rem;
}
.badge-notifications{
    font-size: 0.8rem;
}

.toast {
    font-size: 1.2rem;
    width: 450px;
}
.bg-right {
    background-image: url(/resource/images/background.png);
    background-repeat: no-repeat;
    background-size: contain;
    /* Positions the right edge of the image at the right edge of the container, */
    /* then moves it rightward by exactly half of the image's width */
    background-position: calc(100% + (var(--img-width, 50vw) / 2)) bottom; 
}
.section-icon{
    max-width: 250px;

}
/* 帶有背景圖的大容器 */
.forst-background {
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.5);
  background-blend-mode: lighten;
}
.about-bg{
    background-image: url("/resource/images/about_bg.jfif");
}
.service-bg{
    background-image: url("/resource/images/service_bg.jfif");
}
.contact-bg{
    background-image: url("/resource/images/contact_bg.jfif");
    background-size: 50%;
}

/* 上層的半透明毛玻璃卡片 */
.frosted-glass-box {
  background-color: rgba(255, 255, 255, 0.2); /* 必須使用半透明背景色 */
  backdrop-filter: blur(10px); /* 模糊元件後方的背景圖 */
  -webkit-backdrop-filter: blur(10px); /* 為了 Safari 瀏覽器相容性 */
  
  padding: 40px;
  border-radius: 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
#backToTop {
  position: fixed;
  bottom: 80px;
  right: 80px;
  display: none; /* Hidden by default */
  z-index: 9999; /* Ensure it stays on top of other content */
  width: 80px;
  height: 80px;
  padding: 0;
  line-height: 80px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-size: 50px;
  letter-spacing: normal;
}

.item-number {
    background-color: var(--brand-btn);
    color: var(--bs-white);
    font-weight: bold;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    letter-spacing: normal;
}
.social-media-link{
    font-size: 30px;
}
.lang {
    font-size: 20px;
    font-weight: bold;
}