/* ==========================================================
   CII 首頁輪播 Slider (自定義輕量版 - 強制左對齊)
   ========================================================== */

/* 輪播最外層容器 */
.cii-slider-container {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    background-color: #3C3F45;
}

/* 輪播軌道 */
.cii-slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 每一張幻燈片 */
.cii-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center; /* 垂直置中 */
    justify-content: center; /* 讓 1300px 的框在畫面中置中 */
    z-index: 1;
}

.cii-slide.active {
    opacity: 1;
    z-index: 2;
}

/* 圖片變暗遮罩 */
.cii-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* ==========================================================
   內容框 (強制限制 1300px，強制左對齊)
   ========================================================== */
.cii-slide-content {
    position: relative;
    z-index: 3;
    width: 100% !important; 
    max-width: 1300px !important; /* 強制 1300px */
    margin: 0 auto !important; /* 框體置中 */
    padding: 0 20px !important; 
    
    /* 🌟 關鍵：使用 Flex 強制內容靠左 */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* 讓內部所有元素（標題、簡介、按鈕）靠左對齊 */
    text-align: left !important; /* 雙重保險，文字靠左 */
}

/* 標題 */
.cii-slide-title {
    font-size: 52px !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important; 
}

/* 簡介描述 */
.cii-slide-desc {
    font-size: 20px !important;
    line-height: 1.6 !important;
    margin: 0 0 36px 0 !important;
    color: #f1f1f1 !important;
    max-width: 800px !important; /* 簡介限制寬度，避免太長 */
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

/* 按鈕 */
.cii-slide-btn {
    display: inline-block !important;
    padding: 10px 36px !important;
    background: #f3f2f14d !important;
    color: #34373C !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.cii-slide-btn:hover {
    background: #e6b85a !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(243, 204, 115, 0.4) !important;
}

/* ==========================================================
   底部控制點 (Dots)
   ========================================================== */
.cii-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.cii-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cii-dot:hover { background: rgba(255, 255, 255, 0.8); }
.cii-dot.active {
    background: #726c5f7a;
    transform: scale(1.1);
}

/* ==========================================================
   響應式設計 (RWD)
   ========================================================== */
@media (max-width: 1024px) {
    .cii-slider-container { height: 360px; }
    .cii-slide-title { font-size: 42px !important; }
    .cii-slide-desc { font-size: 18px !important; }
}

@media (max-width: 767px) {
    .cii-slider-container { height: 250px; }
    .cii-slide-title { font-size: 26px !important; margin-bottom: 15px !important; }
    .cii-slide-desc { font-size: 16px !important; margin-bottom: 25px !important; }
    .cii-slide-btn { padding: 8px 24px !important; font-size: 14px !important; }
    .cii-slider-dots { bottom: 18px; }
}