/* Development Milestones Gallery Styles */

.development-section {
    margin: 50px 2% 0 2%;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    width: calc(100% - 4%);
    clear: both;
}

.development-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 30px 0 0 0;
    width: 100%;
    clear: both;
}

.development-item {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: stretch;
}

.development-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.dev-image-container {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
}

.dev-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.dev-image.placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

.development-item:hover .dev-image {
    transform: scale(1.05);
}

.dev-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dev-title {
    margin: 0 0 15px 0;
    font-size: 120% !important;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.3;
}

.dev-intro {
    font-size :110%;font-family:Noto Sans TC;line-height: 30px;letter-spacing:1px;
            color: #4e4e4e;
}

/* 響應式設計 - 電腦版橫列，行動裝置縱列 */
@media only screen and (max-width: 768px) {
    .development-item {
        flex-direction: column;
    }
    
    .dev-image-container {
        width: 100%;
        height: 0;
        padding-bottom: 100%; /* 1:1 比例 */
    }
    
    .dev-image {
        position: absolute;
    }
    
    .dev-content {
        padding: 20px;
    }
    
    .dev-title {
            font-size: 120% !important;
        margin-bottom: 12px;
    }
    
    .dev-intro {
        font-size :110%;font-family:Noto Sans TC;line-height: 30px;letter-spacing:1px;
        color: #4e4e4e;
    }
}

/* Business Section Styles - 與 development 相同寬度 */
.business-section {
    margin: 50px 2% 0 2%;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    width: calc(100% - 4%) !important;
    max-width: calc(100% - 4%) !important;
    clear: both;
    box-sizing: border-box;
}

.business-section:first-child {
    margin-top: 50px;
}

.business-section:not(:first-child) {
    margin-top: 20px;
}

.business-title-inline {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
    text-align: center;
}

/* 頁面標題包裝器樣式 - 置中 */
.page-title-wrapper {
    display: block;
    width: 100%;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 15px;
    position: relative;
    clear: both;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
    padding: 20px 0 30px 0;
    font-family: 
    'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', 
    Arial, 'Helvetica', 'Noto Sans TC', sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(44, 62, 80, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-title:hover {
    transform: translateY(-3px);
    text-shadow: 0 4px 20px rgba(44, 62, 80, 0.5);
}


.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2c3e50, #34495e, transparent);
    border-radius: 1px;
    opacity: 0.8;
}


.business-content {
    position: relative;
    clear: both;
    float: none;
    display: block;
    width: 100%;
    line-height: 30px;
    letter-spacing: 1px;
    background-color: #F7F7F7;
    word-break: normal;
    padding: 70px 2% 25px 2%;
    overflow: hidden;
    border-radius: 10px;
    box-sizing: border-box;
}



@media only screen and (max-width: 480px) {
    .development-grid {
        gap: 20px;
    }
    
    .dev-content {
        padding: 15px;
    }
    
    .dev-title {
        font-size: 120% !important;
    }
    
    .dev-intro {
        font-size :110%;font-family:Noto Sans TC;line-height: 30px;letter-spacing:1px;
        color: #4e4e4e;
    }
    
    .business-title-inline {
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .business-content {
        padding: 50px 3% 25px 3%;
    }
}
