.navbar-brand img {
    height: 40px;
    width: auto; /* 保持圖片比例 */
}

.navbar {
    background-color: rgba(250, 250, 250, 0.8);
    height: 60px;
    margin: 20px;
    border-radius: 20px;
    padding: 0.5rem;
}

.navbar-toggler {
    border: none;
    font-size: 1.25rem;
}

.navbar-toggler:focus,
.btn-close:focus {
    box-shadow: none;
    outline: none;
}

.nav-link {
    color: rgb(0, 0, 0);
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link:active {
    color: rgb(255, 130, 41);
}

@media (min-width: 991px) {
    .nav-link::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: rgb(255, 130, 41);
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
    visibility: visible;
}

.navbar .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
}

/* Hero Section 基本設定 */
.parallax {
    background-image: url("/public/images/hero_wira.jpg");
    height: 500px; /* Adjust as needed */
    background-attachment: fixed;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-size: contain;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 手機裝置的媒體查詢 */
@media (max-width: 768px) {
    .parallax {
        height: 290px; /* 手機畫面的高度 */
        background-position: center 50%;
        background-attachment: scroll; /* 避免在手機上背景卡頓 */
        margin-bottom: -100px; /* 手機上保留一點小間距 */
    }
}

.card {
    height: 100%; /* 使卡片高度一致 */
    transition: transform 0.2s, box-shadow 0.2s;
    transform: scale(1);

    &:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
}

.service-card {
    transition: transform 0.2s, box-shadow 0.2s;
    transform: scale(1);

    &:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
}

.map-container {
    height: 100%; /* 讓地圖佔滿容器高度 */
    min-height: 400px;
}
.contact-icon {
    font-size: 24px;
    margin-right: 8px;
}
.line-link,
.wa-link {
    text-decoration: none;
    color: #06c755; /* Line 綠色 */
}
.line-link:hover,
.wa-link:hover {
    text-decoration: underline;
}

textarea {
    height: 100px; /* 調整訊息欄位的高度 */
    resize: none; /* 禁止調整大小（可選） */
}
.gallery-img {
    object-fit: cover;
    height: 200px;
    width: 100%;
    cursor: pointer;
}
.news-link {
    text-decoration: none; /* 取消預設的底線 */
    color: #333; /* 設定連結顏色 */
}

.news-link:hover {
    text-decoration: underline; /* 滑鼠移入時顯示底線 */
    color: #007bff; /* 滑鼠移入時變色 */
    cursor: pointer;
}

.pagination {
    margin: 10px 0;
}

.page-item .page-link {
    margin: 0 5px;
    padding: 8px 12px;
    font-size: 1rem;
}

.btn {
    white-space: nowrap; /* 禁止換行 */
    line-height: 1; /* 確保字體垂直置中 */
}


