/* Video Testimonials Main Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Grid Container */
.vt-grid {
    display: grid;
    gap: 16px;          /* ← kam kiya (pehle 30px tha) */
    margin-bottom: 24px;
}

.vt-columns-2 { grid-template-columns: repeat(2, 1fr); }
.vt-columns-3 { grid-template-columns: repeat(3, 1fr); }
.vt-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.vt-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-in-out;
}

.vt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Thumbnail */
.vt-thumb {
    position: relative;
    height: 460px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* ── VIDEO ELEMENT ── */
.vt-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 5;
    background: #000;
}

/* Mobile: same full height */
@media (max-width: 768px) {
    .vt-video {
        height: 100%;
    }
}

/* ── PLAYING STATE ── */
.vt-thumb.vt-playing {
    background-image: none !important;
    background-color: #000;
}

.vt-thumb.vt-playing .vt-video {
    display: block !important;
}

/* Playing state mein overlay bilkul hide */
.vt-thumb.vt-playing .vt-overlay {
    display: none !important;
}

/* ── TITLE AREA — ALWAYS VISIBLE ── */
.vt-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 18px;      /* ← kam kiya */
    display: flex;
    justify-content: space-between;
    align-items: center;     /* ← center align */
    z-index: 20;
    pointer-events: none;
}

/* Play button click hone do */
.vt-play-btn {
    pointer-events: all;
}

/* Playing state mein title video ke upar dikhega, black space nahi */
.vt-thumb.vt-playing .vt-content {
    display: flex !important;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
    z-index: 20;
}

.vt-text {
    flex: 1;
}

/* Title & Subtitle */
.vt-title {
    margin: 0 0 5px 0;
    line-height: 1.3;
    word-break: break-word;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.vt-subtitle {
    margin: 0;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Overlay Gradient (normal/thumbnail state) */
.vt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 3;
}

/* ── PLAY BUTTON ── */
.vt-play-btn {
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 15px;
    transition: all 0.3s ease;
    z-index: 25;
    width: 65px;
    height: 65px;
    min-width: 65px;
    font-weight: bold;
}

.vt-play-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(255,255,255,0.3);
}

.vt-play-btn:active {
    transform: scale(0.95);
}

/* Hidden Cards */
.vt-hidden {
    display: none !important;
}

/* View All Button */
.vt-button-wrapper {
    text-align: center;
    margin-top: 28px;
    padding: 10px 0;
}

.vt-view-all-btn {
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.vt-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .vt-columns-4 { grid-template-columns: repeat(2, 1fr); }
    .vt-grid { gap: 25px; }
}

@media (max-width: 768px) {
    .vt-columns-2,
    .vt-columns-3,
    .vt-columns-4 {
        grid-template-columns: 1fr;
    }

    .vt-thumb { height: 350px; }

    .vt-content { padding: 15px 20px; }

    .vt-title { font-size: 18px !important; }

    .vt-subtitle { font-size: 13px !important; }

    .vt-play-btn {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .vt-thumb { height: 280px; }

    .vt-content {
        padding: 12px 15px;
    }

    .vt-title { font-size: 15px !important; }

    .vt-subtitle { font-size: 12px !important; }

    .vt-play-btn {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px;
        font-size: 20px;
        margin-left: 10px;
    }

    .vt-view-all-btn {
        font-size: 14px;
        padding: 12px 30px !important;
    }
}

/* Accessibility */
.vt-play-btn:focus,
.vt-view-all-btn:focus {
    outline: 2px solid #1b7c3c;
    outline-offset: 2px;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Print */
@media print {
    .vt-play-btn, .vt-view-all-btn { display: none; }
}
