﻿/*max pic*/
.heading {
    position: relative;
    width: 100%;
    /*padding: 75px;*/
    min-height: 200px;
    display: flex;
    align-items: center;
}

.backgroundImg {
    background-image: linear-gradient(rgba(204, 220, 181, 0),rgba(176, 220, 228, 0) 100%),url('../img/vackground-hDQ-dUjQN8E-unsplash copy.jpg');
    background-size: cover;
    background-position: center;
}

.header-title {
    width: 100%;
    margin: 0 0 24px;
    font-size: 40px;
    font-weight: 250;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
    color: #fff;
    margin-top: 15px;
    text-align: center;
}



.about-tablist {
    padding-top: 75px;
    padding-bottom: 75px;
}

.text-size-ylarge {
    font-size: 40px;
    font-weight: 700;
    text-align: left;
}

.tablist-title {
    text-align: center;
    padding: 60px 50px 60px;
    /*border-bottom: 1px solid #DEE2E6;
        border-left: 1px solid #DEE2E6;
        border-right: 1px solid #DEE2E6;*/
}

.text-size-24px {
    font-size: 24px;
    font-weight: 600;
}

.text-size-20px {
    font-size: 20px;
}

.text-align-and-padding {
    text-align: left;
    padding-top: 20px;
}


.about-body {
    padding-top: 50px;
    /*padding-left: 100px;*/
    /*padding-right: 100px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtext {
    margin-top: 20px;
    line-height: 2;
    font-size: 20px;
    text-align: justify;
    padding: 0px 25px;
    word-break: break-all;
}












/*Vision and purpose*/
.main-pic img {
    width: 100%;
}

h2.section-title {
    border-left: 6px solid #0d6efd;
    padding-left: 10px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 1.2rem;
}

.card-custom {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform .2s ease, box-shadow .2s ease;
    background: #fff;
}

    .card-custom:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    }

section {
    padding: 3rem 1rem;
}

    section.alt-bg {
        background-color: #eef2f7;
    }

blockquote {
    border-left: 4px solid #0d6efd;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 8px;
    color: #555;
    font-style: italic;
}


@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p.lead {
        font-size: 1.25rem;
    }
}







/*第一段設計*/
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.03);
    color: #6b7280;
    font-weight: 600;
}

.value-med-card {
    background: linear-gradient(180deg, #ffffff, #f7fbfd);
    border: 1px solid #dfe9ef;
    border-radius: 14px;
    padding: 24px;
    /* 自動等高 */
    display: flex;
    flex-direction: column;
    /* 高級質感效果 */
    box-shadow: 0 8px 20px rgba(0, 80, 120, 0.06);
    /* 動畫基礎 */
    opacity: 0;
    transform: translateY(20px);
    transition: transform .5s ease, box-shadow .5s ease, opacity .5s ease;
}

/* 卡片浮出動畫（純 CSS） */
.values-cards .col-12:nth-child(1) .value-med-card {
    animation: cardFadeIn .6s ease .0s forwards;
}

.values-cards .col-12:nth-child(2) .value-med-card {
    animation: cardFadeIn .6s ease .15s forwards;
}

.values-cards .col-12:nth-child(3) .value-med-card {
    animation: cardFadeIn .6s ease .3s forwards;
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 電腦 hover：微浮起 + 藍綠光感 */
@media (hover: hover) {
    .value-med-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 26px rgba(0, 80, 120, 0.12);
        border-color: #9cd0dc;
    }
}

/* 手機：無 hover，也能保持有質感陰影 */
@media (hover: none) {
    .value-med-card {
        box-shadow: 0 6px 18px rgba(0, 80, 120, 0.08);
    }
}






/*申請流程動畫*/
/* 背景光感 */
.process-cards-cl4 {
    padding: 4rem 1rem;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}

    /* 流動光線 */
    .process-cards-cl4::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 25% 25%, rgba(14,165,233,0.15), transparent 70%);
        transform: rotate(25deg);
        animation: floatLight 8s linear infinite;
        pointer-events: none;
    }

    .process-cards-cl4::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 75% 75%, rgba(59,130,246,0.15), transparent 70%);
        transform: rotate(-25deg);
        animation: floatLight 10s linear infinite;
        pointer-events: none;
    }

@keyframes floatLight {
    0% {
        transform: translate(0,0) rotate(0deg);
    }

    50% {
        transform: translate(10%,10%) rotate(15deg);
    }

    100% {
        transform: translate(0,0) rotate(0deg);
    }
}

/* 卡片網格 */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr; /* 僅一欄，全部上下排 */
    gap: 2.5rem;
    position: relative;
    z-index: 1; /* 卡片浮在光線上 */
}

/* 卡片樣式 */
.card-cl4 {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(245,248,255,0.9));
    border-radius: 22px;
    padding: 2rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s forwards;
    animation-delay: calc(var(--i) * 0.15s);
    overflow: hidden;
}

/* 卡片滑入動畫 */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-cl4:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 80px rgba(0,0,0,0.18);
    background: linear-gradient(145deg, rgba(245,248,255,1), rgba(230,240,255,0.9));
}

/* 卡片 icon */
.card-cl4 .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg,#0ea5e9,#3b82f6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.6rem;
    margin: 0 auto 1rem auto; /* ⭐ 讓 icon 本身水平置中 */
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}

.card-cl4:hover .icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

/* 卡片文字 */
.card-cl4 h5 {
    margin-bottom: 1rem;
    color: #0d6efd;
    font-weight: 700;
    font-size: 1.25rem;
    text-align:center;
}

.card-cl4 ul {
    padding-left: 1.2rem;
    margin: 0;
}

    .card-cl4 ul li {
        margin-bottom: 0.7rem;
        line-height: 1.6;
        color: #555;
    }

/* 手機版自適應 */
@media(max-width:768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card-cl4 {
        padding: 1.8rem 1rem;
    }

        .card-cl4 .icon {
            width: 60px;
            height: 60px;
            font-size: 1.3rem;
        }
}

