/******************************************************************/
/******************************************************************/
/* VIDEO TUTORIALS                                                */
/* Single Column Horizontal Card Layout                           */
/******************************************************************/
/******************************************************************/

/* -----------------------------------------------------------------------------
   SECTION: Video List Container
   ----------------------------------------------------------------------------- */
   .vt-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

/* -----------------------------------------------------------------------------
   SECTION: Video Item Card
   ----------------------------------------------------------------------------- */
.vt-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vt-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vt-item:hover .vt-item-title {
    color: var(--primary);
}

/* -----------------------------------------------------------------------------
   SECTION: Video Wrapper Override (larger size in new layout)
   ----------------------------------------------------------------------------- */
.vt-item .video-wrapper {
    flex-shrink: 0;
    position: relative;
    width: 320px;
    max-width: 320px;
    margin: 0;
    border-radius: 6px;
    box-shadow: none;
}

.vt-item .video-wrapper::before {
    padding-top: 56.25%;
}

.vt-item .video-wrapper:hover {
    transform: none;
    box-shadow: none;
}

.vt-item:hover .video-wrapper .play-button {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.05);
}

/* -----------------------------------------------------------------------------
   SECTION: Video Info
   ----------------------------------------------------------------------------- */
.vt-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.vt-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.vt-item-desc {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.vt-item-meta {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* -----------------------------------------------------------------------------
   SECTION: Responsive
   ----------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .vt-item .video-wrapper {
        width: 260px;
        max-width: 260px;
    }
}

@media (max-width: 767px) {
    .vt-item {
        flex-direction: column;
        padding: 12px;
    }

    .vt-item .video-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .vt-item-title {
        font-size: 16px;
    }

    .vt-item-desc {
        font-size: 14px;
    }
}

/* -----------------------------------------------------------------------------
   SECTION: Default Video Wrapper Styles
   ----------------------------------------------------------------------------- */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.video-wrapper:hover .play-button {
    background: rgba(255, 0, 0, 1);
}

.play-button::after {
    content: "";
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent white;
    margin-left: 3px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-wrapper.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Skeleton loader */
.video-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    will-change: background-position;
}

.video-thumbnail:not(.video-skeleton) {
    animation: none;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

