body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;

}

.header {
    background-color: #4CAF50;
    color: white;
    padding: 10px 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header small {
    color: #999595;
    /* 顏色比 h1 淡 */
    font-size: 0.6em;
    /* 字形小一點 */
}

.breadcrumb {
    list-style: none;
    background-color: #e4e0e0;
    padding: 8px 15px;
    margin: 0;
    border-radius: 4px;
}

.breadcrumb>li {
    display: inline;
    font-size: 14px;
}

.breadcrumb>li+li:before {
    content: "/";
    padding: 0 5px;
}

.breadcrumb .active {
    font-weight: bold;
}

.fill {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}


a {
    text-decoration: none;
    color: inherit;
}

.header h1 {
    margin: 0;
    padding-left: 20px;
}

.header nav {
    margin-right: 20px;
}

/* 設置導航為 Flexbox 佈局 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}


.nav-links,
.dropdown-content {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
}

.nav-links a:hover {
    background-color: #45a049;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

/* 新增 Flexbox 佈局 */
.about-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* 使項目在空間不足時換行 */
    gap: 20px;
    /* 項目之間的間距 */
}

.page-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.panel {
    flex: 1;
    /* 使每個面板具有相同的彈性 */
    max-width: 30%;
    /* 設置最大寬度 */
    box-sizing: border-box;
    /* 確保內邊距和邊框不會影響寬度 */
}

.panel img {
    width: 100%;
    /* 使圖片寬度自適應面板 */
    height: auto;
    /* 高度自動調整 */
}


.section {
    background: white;
    margin: 20px 0;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.section h2 {
    color: #333;
}

.contact {
    background-color: #333;
    color: white;
    padding: 10px;
    text-align: center;
}

.contact p {
    margin: 0;
}

.contact a {
    color: #4CAF50;
    text-decoration: none;
}

.locations ul {
    list-style: none;
    padding: 0;
}

.locations li {
    margin-bottom: 10px;
}

.footer {
    text-align: center;
    padding: 10px 0;
    background-color: #4CAF50;
    color: white;
    margin-top: 20px;
}

.footer-contact {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #f4f4f4;
    border-top: 1px solid #ddd;
}

.footer-contact .contact-info,
.footer-contact .map {
    width: 48%;
}

.footer-contact h2 {
    margin-bottom: 10px;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 5px;
}

.map iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

/* Carousel Container */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Carousel Images Container */
.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
}

/* Carousel Images */
.carousel-images img {
    width: 100%;
    height: auto;
}

/* Navigation Buttons */
.prev,
.next {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    transform: translateY(-50%);
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.Box-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}



.bg-color-1 {
    background-color: aqua;
   
}
.bg-color-2 {
    background-color: #FF4500;
    

}

.bg-color-3 {
    background-color: rgba(147, 112, 219, 1);
}

.text-center {
    text-align: center;
    background:#FFA07A;
}

.row{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
}
.img-portfolio{
    width: 45%;
    margin: 2.5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 3px ;
    box-sizing: border-box;
}
.image-wrapper {
    width: 100%;
    height: 400px;
}

.img-hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h3 {
    margin: 10px 0;
}

p {
    margin: 0 0 20px 0;
}
/* 模態框的基本樣式 */
.modal {
    display: none; /* 隱藏模態框 */
    position: fixed; /* 固定定位 */
    z-index: 1; /* 層級 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* 滾動 */
    background-color: rgb(0,0,0); /* 背景色 */
    background-color: rgba(0,0,0,0.4); /* 背景透明度 */
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.btn {
    padding: 10px 20px;
    border: none;
    color: white;
    cursor: pointer;
    margin: 5px;
}
.btn-primary {
    background-color: #007bff;
}
.btn-secondary {
    background-color: #6c757d;
}