/*=====================================*
  YOUTUBE VIDEOS SECTION
*=====================================*/

.rt-youtube-videos{
    width:100%;
    padding:60px 0;
    background:#fff;
    overflow:hidden;
}

/*=====================================*
  HEADING
*=====================================*/

.rt-youtube-heading{
    text-align:center;
    max-width:800px;
    margin:0 auto 40px;
    padding:0 15px;
}

.rt-youtube-heading .rt-section-tag{
    display:inline-block;
    background:#e10600;
    color:#fff;
    padding:8px 20px;
    border-radius:50px;
    font-size:12px;
    font-weight:700;
    margin-bottom:12px;
}

.rt-youtube-heading h2{
    font-size:32px;
    font-weight:800;
    margin-bottom:10px;
    line-height:1.3;
}

.rt-youtube-heading p{
    font-size:15px;
    color:#666;
    line-height:1.6;
}

/*=====================================*
  GRID
*=====================================*/

.rt-youtube-grid{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:0 15px;
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:20px;
}

/*=====================================*
  CARD
*=====================================*/

.rt-video-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
    transition:0.3s ease;
}

.rt-video-card:hover{
    transform:translateY(-5px);
    box-shadow:0 16px 35px rgba(0,0,0,0.15);
}

/*=====================================*
  THUMBNAIL (FINAL FIX)
*=====================================*/

.rt-video-thumb{
    position:relative;
    width:100%;
    height:200px;   /* FIXED for stability */
    overflow:hidden;
    background:#000;
}

.rt-video-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
}

/*=====================================*
  PLAY BUTTON
*=====================================*/

.rt-play-btn{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:50px;
    height:50px;
    background:rgba(255,255,255,0.95);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#e10600;
    font-size:20px;
}

/*=====================================*
  DURATION
*=====================================*/

.rt-video-duration{
    position:absolute;
    bottom:8px;
    right:8px;
    background:#111;
    color:#fff;
    font-size:11px;
    padding:3px 7px;
    border-radius:5px;
}

/*=====================================*
  CONTENT
*=====================================*/

.rt-video-content{
    padding:12px;
}

.rt-video-content h3{
    font-size:14px;
    font-weight:700;
    line-height:1.4;
    margin-bottom:5px;
    color:#111;
}

.rt-video-content p{
    font-size:12px;
    color:#777;
}

/*=====================================*
  BUTTON
*=====================================*/

.rt-view-all{
    text-align:center;
    margin-top:40px;
}

.rt-view-all-btn{
    display:inline-block;
    background:#e10600;
    color:#fff;
    padding:10px 24px;
    border-radius:40px;
    font-size:14px;
    text-decoration:none;
}

.rt-view-all-btn:hover{
    background:#111;
}
/* =====================================
TABLET (GRID - 2 COLUMNS)
===================================== */

@media (max-width:992px){

    .rt-youtube-grid{
        display:grid;
        grid-template-columns:repeat(2, 1fr);
        gap:20px;
    }

    .rt-youtube-heading h2{
        font-size:26px;
    }
}


/* =====================================
MOBILE (1 PER ROW - NO SLIDER)
===================================== */

@media (max-width:576px){

    .rt-youtube-grid{
        display:grid !important;
        grid-template-columns:1fr !important;  /* ✅ 1 card per row */
        gap:18px;
        padding:0 15px;
    }

    /* ❌ slider completely OFF */
    .rt-youtube-slider{
        display:none !important;
    }

    .rt-youtube-card{
        width:100%;
    }

    .rt-youtube-thumbnail{
        width:100%;
        aspect-ratio:16/9;
        border-radius:10px;
        overflow:hidden;
    }

    .rt-youtube-thumbnail img{
        width:100%;
        height:100%;
        object-fit:cover;
    }

}