/* ── Homepage Video Section — video.css ─────────────────────────── */

.vidx-section {
    background: #f0f4f8;
    padding: 56px 0 72px;
}

/* ── Section subtitle ────────────────────────────────────────────── */
.vidx-subtitle {
    font-size: 14px;
    color: #6b8292;
    margin: 6px 0 0;
}
.vidx-all-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cn-blue, #00a1e9) 0%, #0070a8 100%);
    border-radius: 6px;
    text-decoration: none;
    flex-shrink: 0;
    transition: box-shadow .2s ease, transform .15s ease;
    box-shadow: 0 2px 8px rgba(0,161,233,.3);
}
.vidx-all-btn:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,161,233,.45);
}

/* ── Two-column layout ───────────────────────────────────────────── */
.vidx-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.vidx-left {
    flex: 0 0 62%;
    min-width: 0;
}
.vidx-right {
    flex: 0 0 38%;
    min-width: 0;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vidx-right::-webkit-scrollbar       { width: 4px; }
.vidx-right::-webkit-scrollbar-track { background: #e8edf2; border-radius: 4px; }
.vidx-right::-webkit-scrollbar-thumb { background: var(--cn-blue, #00a1e9); border-radius: 4px; }

/* ── Video player ────────────────────────────────────────────────── */
.vidx-player-box {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(9,44,64,.18);
}
.vidx-player-box video {
    width: 100%;
    display: block;
}

/* ── Description box ─────────────────────────────────────────────── */
.vidx-desc-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 18px 22px;
    margin-top: 14px;
    border-left: 4px solid var(--cn-blue, #00a1e9);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    font-size: 14px;
    line-height: 1.8;
    color: #4a5568;
}
.vidx-desc-box h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--cn-navy, #092c40);
    margin: 0 0 10px;
}
.vidx-desc-box .description-item {
    margin-bottom: 6px;
}
.vidx-desc-box button {
    background: linear-gradient(135deg, var(--cn-blue, #00a1e9) 0%, #0070a8 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}
.vidx-desc-box button a {
    color: #fff;
    text-decoration: none;
}

/* ── Thumbnail cards ─────────────────────────────────────────────── */
.vidx-thumb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .18s ease, border-color .18s ease, transform .15s ease;
}
.vidx-thumb-item:hover {
    background: #f0f7fd;
    box-shadow: inset 3px 0 0 var(--cn-blue, #00a1e9);
}
.vidx-thumb-item.active {
    background: #e8f4fd;
    box-shadow: inset 3px 0 0 var(--cn-blue, #00a1e9);
}
.vidx-thumb-item img {
    width: 90px;
    height: 56px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.vidx-thumb-item p {
    font-size: 13px;
    font-weight: 600;
    color: var(--cn-navy, #092c40);
    margin: 0;
    line-height: 1.4;
}

/* hover caption — hidden on homepage */
.hover-caption { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .vidx-left  { flex: 0 0 58%; }
    .vidx-right { flex: 0 0 42%; }
}
@media (max-width: 768px) {
    .vidx-section { padding: 40px 0 56px; }
    .vidx-header  { flex-direction: column; align-items: flex-start; }
    .vidx-layout  { flex-direction: column; }
    .vidx-left, .vidx-right {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}
@media (max-width: 480px) {
    .vidx-title              { font-size: 22px; }
    .vidx-thumb-item img     { width: 72px; height: 46px; }
    .vidx-thumb-item p       { font-size: 12px; }
    .vidx-desc-box           { padding: 14px 16px; }
}
