﻿body {
    font-family: "Noto Sans TC", sans-serif; color: #3d3d3d;
    padding-top: 9rem;
    padding-bottom: 2.5rem;
}

.custom-navbar {
    background-color: #f8f9fa;
    padding: 0px 0px 4px 10%;
}
.navbar.fixed-top {
    height: 4.5rem;
}

.footer.fixed-bottom {
    position: fixed !important;
    height: 2.5rem;
    line-height: 2.5rem; /* 讓文字垂直置中 */
}
@media (max-width: 767px) and (min-width: 480px) {
    img {
        max-width: 80%;
        height: auto;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

img {
    max-width: 32%;
    height: auto;
}

.pi {
    padding: 100px;
}

.container {
    max-width: 960px;
}

p {
    font-size: 0.9em;
}

.btn-outline-custom {
    background-color: transparent;
    border: 2px solid #79C0C5;
    color: #79C0C5;
}

    .btn-outline-custom:hover {
        background-color: #79C0C5;
        color: white;
    }

.line-icon {
    width: clamp(24px, 10vw, 64px);
    height: clamp(24px, 10vw, 64px);
}
/* Home page icons*/
.icon-grid-5 {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 8px;
}

.icon-item {
    flex: 1 1 0;
    min-width: 0; /* 允許縮小 */
    max-width: 80px; /* 手機上每格上限 */
    text-align: center;
    font-size: 0.7rem;
    word-break: keep-all;
    overflow-wrap: break-word;
}

    .icon-item .line-icon {
        width: 100%;
        max-width: 48px;
        height: auto;
    }

    .icon-item .icon-title {
        font-size: 0.9rem;
        font-weight: 400;
        margin-bottom: 2px;
        line-height: 1.3;
    }

    .icon-item small {
        font-size: 0.75rem;
        line-height: 1.2;
    }

/* 平板以上放寬 */
@media (min-width: 576px) {
    .icon-grid-5 {
        gap: 16px;
    }

    .icon-item {
        max-width: 120px;
        font-size: 0.85rem;
    }

        .icon-item .icon-title {
            font-size: 0.9rem;
        }
}