/* 色彩定義 */
:root {
    --text-white: #FFFFFF;
    --primary-blue: #223C5F;
    --text-orange: #f35900;
    --bg-light-blue: #f0f7ff;
}

body {
  font-family: Microsoft JhengHei, "微軟正黑體", "Lato", "Noto Sans";
  transition: background-color .5s;
	background-color: #E9EFFD;
	overflow-x: hidden;
	color: #333333;
	line-height: 1.5em;
	font-size: 0.8125rem;
	padding: 0;
	margin: 0;
}

/* 基礎標題 */
.text-primary { color: var(--primary-blue) !important; }
.text-orange { color: var(--text-orange) !important; }

.hero-section {
    background: linear-gradient(to top, #E9EFFD 0, rgba(255,255,255,0) 5%), url(../images/header-bg.png);
    background-position: bottom center, center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 550px;
    display: flex;           /* 啟用 Flexbox */
    flex-direction: column;  
    justify-content: center; 
    align-items: flex-start;
    padding-left: 5%;
    position: relative;
}

.hero-section img {
    width:40%; 
}

@media screen and (max-width:1200px) {
    .hero-section {
        background-size: 100%;
        min-height: 400px;
    }
}

@media screen and (max-width:992px) {
    .hero-section {
        background-size: 100%;
        min-height: 350px;
    }
    .hero-section img {
    width:45%; 
}
}
@media screen and (max-width:768px) {
    .hero-section {
        background-size: cover;
        min-height: 280px;
    }
    .hero-section img {
    width:45%; 
}
}
@media screen and (max-width:576px) {
    .hero-section {
        background-size: cover;
        min-height: 180px;
        padding-left: 0;
    }
    .hero-section img {
    width:50%; 
}
}

.section-header .title-underline {
    width: 60px;
    height: 4px;
    background: var(--text-orange);
    margin-top: 8px;
}

.service-card {
    background-color: #FBF9FA;
    border-radius: 16px;
    box-shadow: 0 0 18px rgba(0,0,0,.1);
}
.card-bg {
    background: url(../images/card-bg.png), #FBF9FA;
    background-position: bottom right;
    background-size: auto;
    background-repeat: no-repeat;
}
.service-card h2 {
    font-size: 1.5rem;
    letter-spacing: .1rem;
    display: block;
    color: var(--text-white);
    background: linear-gradient(125deg, #0c7d79 25%, rgba(50,118,189,.5) 82%);
    /* background: url(../images/title-bg.png) top left;
    background-repeat: repeat-y;
    background-size: cover; */
    border-radius: 16px 16px 0 0;
}
.service-card > h3 {
    margin: 30px 20px 20px;
    font-size: 1.5rem;
    position: relative;
    padding-left: 40px;

}.service-card > h3::before {
    content:"";
    position: absolute;
    width: 48px;
    height: 44px;
    left: 0;
    top: -5px;
    background:url(../images/icon-star.png);
    background-size: 80%;
    background-repeat: no-repeat;
}
.service-card p {
    font-size: 1.25rem;
    line-height: 2rem;
    padding: 20px;
}
.img-placeholder {
    width: 280px;
    height: 280px;
    background: #fff;
    border: 1px dashed var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content {
    padding: 0 20px;
}

.measure-card {
    background: #FDFBFE;
    padding: 1rem 1rem;
    border-radius: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(220,220,220,0.9);
    cursor: pointer;
}

.measure-card:hover, .measure-card:focus {
    transform: translateY(-10px);
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-blue);
    outline: none;
}
.measure-card h3 {
    font-size: 1.125rem;
    margin-top: .5rem;
    transition: color 0.3s ease;
}
.measure-card:hover h3.text-primary {
    color: var(--text-orange)!important;
    cursor: pointer;

}

.measure-card img {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.measure-card:hover img {
    transform: scale(1.1);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0;
}

.card-title-long {
    font-size: 0.9rem;
    line-height: 1.4;
}
@media (max-width: 991px) {
    .measure-card {
        padding: 1rem;
    }
}

ul.list-u li {
    font-size: 1.125rem;
    line-height: 1.8rem;
}
ul.list-u li strong {
    display: block;
    color: var(--text-orange);
}

.cta {
    border:1px solid #e0e0e0;
    padding: 1rem;
    border-radius: 30px;
    font-size: 1.125rem;
    text-align: center;
    background-color: #E0EAF6;
}

.card-link-item {
    width: 49%;
    border: 1px solid var(--primary-blue);
    border-radius: 24px;
    padding: 1rem;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.card-link-desc {
    font-size: 1.125rem;
    margin-bottom: .5rem;
    color: var(--primary-blue);
    font-weight: 600;
    text-align: center;
}

.card-link a {
    text-align: center;
    color: var(--text-white); /* 確保文字始終為白色 */
    width: 100%;
    font-size: 1.75rem;
    letter-spacing: .1rem;
    padding: 1.5rem;
    border-radius: 20px;
    /* background: url(../images/btn-bg.png) top left;
    background-repeat: repeat-y;
    background-size: cover; */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
  background: linear-gradient(125deg, #0c7d79 25%, #3276bd 52%);
  color: #fff;
  background-position: 0% 50%;
  background-size: 200% auto;
  transition: all 0.3s ease-out;
}

.card-link a:hover, .card-link a:focus {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.1); 
    box-shadow: 0 8px 25px rgba(34, 60, 95, 0.3);
    color: #FFF;
    background-position: 70% 50%;
    border-radius: 30px;
}

/* 點擊（Active）動態：回彈效果 */
.card-link a:active {
    transform: translateY(-2px) scale(0.98);
    transition: 0.1s;
}

@media (max-width: 767px) {
    .card-link {
        flex-direction: column;
        gap: 15px; /* 增加按鈕間的垂直距離 */
        margin: 20px !important;
    }
    .card-link a {
        width: 100%;
        padding: 1.2rem;
        font-size: 1.25rem;
    }
    .card-link-item {
        width: 100%;
    }
}
@media (min-width: 768px) {
    
    .border-end-md {
        border-right: 1px solid #eee;
    }
}

@media screen and (max-width:991px) {
    .service-content .col-lg-7 {
        padding-bottom: 4rem;
    }
    .card-bg {
        background-size: 60%;
    }
    
}

@media screen and (max-width:768px) {

    .cta {
        margin: 0 20px;
        line-height: 1.6rem;
    }
    
}
@media (max-width: 576px) {
    .service-content .col-lg-7 {
        padding-bottom: 3.5rem;
    }
    .card-bg {
        background-size: 80%;
    }
    .card-link {
        flex-direction: column;
    }
    .card-link a {
        width: 100%;
        margin-bottom: 10px;
    }
}

.popover {
  font-size: 1rem; 
}

.popover-body {
  color:#004a5f;     /* 文字顏色 */
  line-height: 1.6;
  font-weight: 500;
}

.footer {
    background-color: #B6C4E6;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.footer h2 {
    font-size: 1.25rem;
}
.footer li {
    color:#333333;
    font-size: 1rem;
}
.bg-light-blue { background-color: var(--bg-light-blue); }

/* 無障礙焦點 */
.measure-card:focus-visible {
    box-shadow: 0 0 0 3px var(--text-orange);
}

.footer-info {
    font-size: 0.9375rem;
    margin: 20px 0 30px;
}