/* ============================================
   LEFT STICKY BANNER - PC ONLY (≥1200px)
   ============================================ */

/* Banner container - chỉ hiển thị trên PC */
.left-sticky-banner {
    display: none; /* Ẩn mặc định */
    position: fixed;
    left: 40px; /* Di chuyển vào trong một chút */
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    width: 240px; /* Banner vừa phải */
    max-width: 240px;
    height: auto; /* Tự động theo chiều cao ảnh */
    max-height: 90vh; /* Giới hạn tối đa 90% chiều cao màn hình */
    transition: all 0.3s ease;
    padding: 0;
    box-sizing: border-box;
}

/* Chỉ hiển thị trên màn hình PC (≥1200px) */
@media (min-width: 1200px) {
    .left-sticky-banner {
        display: block;
    }
}

/* Banner card */
.left-sticky-banner-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    height: auto; /* Tự động theo chiều cao ảnh */
    display: flex;
    flex-direction: column;
}

/* Hover effect */
.left-sticky-banner-card:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(8px);
}

/* Banner image container */
.left-sticky-banner-image {
    width: 100%;
    height: auto; /* Tự động theo chiều cao ảnh */
    display: block;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.left-sticky-banner-image img {
    width: 100%;
    height: auto; /* Giữ tỷ lệ ảnh gốc */
    display: block;
    object-fit: contain; /* Hiển thị toàn bộ ảnh không bị cắt */
    object-position: center;
    border-radius: 15px; /* Bo góc toàn bộ */
}

/* Banner content */
.left-sticky-banner-content {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Banner title (optional) */
.left-sticky-banner-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Banner description (optional) */
.left-sticky-banner-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* CTA Button */
.left-sticky-banner-cta {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    color: #667eea;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.left-sticky-banner-cta:hover {
    background: #f0f0f0;
    color: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.left-sticky-banner-cta:active {
    transform: translateY(0);
}

/* Banner với gradient khác (nếu cần) */
.left-sticky-banner-card.gradient-blue .left-sticky-banner-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.left-sticky-banner-card.gradient-green .left-sticky-banner-content {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.left-sticky-banner-card.gradient-orange .left-sticky-banner-content {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.left-sticky-banner-card.gradient-red .left-sticky-banner-content {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Responsive - Ẩn hoàn toàn trên tablet & mobile */
@media (max-width: 1199px) {
    .left-sticky-banner {
        display: none !important;
    }
}

/* Đảm bảo banner không che nội dung chính */
@media (min-width: 1200px) {
    /* Tạo padding cho container chính nếu cần (tùy chọn) */
    .section.feature-part .container {
        position: relative;
    }
}

/* Animation khi load */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

.left-sticky-banner {
    animation: slideInLeft 0.5s ease-out;
}

/* Đảm bảo banner không bị che bởi header */
@media (min-width: 1200px) {
    .left-sticky-banner {
        top: 50%;
        /* JavaScript sẽ điều chỉnh vị trí để tránh header/footer */
    }
}
