/* style.css */

/* 全域與字體設定 */
body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.8;
    color: #444;
    background-color: #f8f9fa; /* Add a light background color */
}

/* 導覽列 */
.navbar-brand {
    letter-spacing: 1px;
}

/* 頁首英雄區塊 */
.hero {
    background: linear-gradient(135deg, rgba(0, 90, 158, 0.8), rgba(0, 174, 239, 0.7)), url('https://images.unsplash.com/photo-1556740738-b6a63e27c4df?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    padding: 6rem 0; /* Adjusted padding */
    color: white;
}

.hero h1 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* 區塊標題 */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700; /* Make title bolder */
    color: #2c3e50; /* Darker title color */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #007bff;
    border-radius: 2px;
}

/* Card design */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem; /* Add a slight border radius */
}

.card:hover {
    transform: translateY(-5px); /* Adjusted hover effect */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Services Page Specific Styles */
.left-box .list-group-item.active {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.left-box .list-group-item-action:hover, .left-box .list-group-item-action:focus {
    background-color: #f1f1f1;
    color: #007bff;
}

.left-box .list-group-item {
    border-radius: 0.25rem; /* Rounded corners for items */
    margin-bottom: 5px; /* Space between items */
    border: 1px solid #ddd;
}

.tab-content {
    border-radius: 0.5rem;
    background-color: #fff;
    padding: 2rem;
}

/* PDCA specific styling */
 .pdca-diagram-container {
            display: grid;
            grid-template-areas:
                "planning execution"
                "action checking";
            gap: 1.5rem;
        }
 .pdca-diagram-item {
            border-radius: 1rem;
            text-align: center;
            padding: 2rem;
            color: white;
        }
        .pdca-item-planning { grid-area: planning; background-color: #3182ce; }
        .pdca-item-execution { grid-area: execution; background-color: #ed8936; }
        .pdca-item-checking { grid-area: checking; background-color: #3182ce; }
        .pdca-item-action { grid-area: action; background-color: #ed8936; }


/* 組織圖 */
.org-chart .card {
    border: 1px solid #eee;
}

/* 回到頂部按鈕 */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1030;
}

#back-to-top.show {
    display: block;
    opacity: 1;
}