/* Video Page Styles - Common styles for video cards and components */

/* Featured Video Section */
.featuredVideoSec {
    background: linear-gradient(135deg, rgba(174, 110, 255, 0.08) 0%, rgba(124, 77, 230, 0.12) 50%, rgba(1, 213, 245, 0.08) 100%);
    position: relative;
    overflow: clip;
    transition: background-color 0.8s ease;
    /* For smooth background transition */
}

.featured-videos-title {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Video Cards Container */
.video-cards-container {
    gap: 30px;
    display: flex;
    flex-wrap: wrap;
}

/* Individual Video Card */
.video-card-item {
    width: 320px;
    background: white;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(163, 0, 245, 0.2) !important;
    position: relative;
    overflow: hidden;
    border: 5px solid rgba(174, 110, 255, 0.5);
}

.video-card-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 45px rgba(174, 110, 255, 0.25) !important;
    border-color: rgba(174, 110, 255, 0.3) !important;
}

/* Shimmer effect on hover */
.video-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(174, 110, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.video-card-item:hover::before {
    left: 100%;
}

/* Video Thumbnail Container */
.video-thumbnail {
    height: 190px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.video-thumbnail img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

/* Video Duration Badge */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
}

/* Play Button Overlay */
.play-button-overlay {
    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;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-button-overlay {
    opacity: 1;
}

.play-button-overlay i {
    color: #7c4de6;
    font-size: 18px;
    margin-left: 3px;
}

/* Video Card Title */
.video-card-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

/* Language Tags Container */
.language-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Language Tag */
.language-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

/* Specific language tag colors */
.language-tag.hindi {
    background: transparent;
    color: #a700c1;
    border: 1px solid #a700c1;
}

.language-tag.english {
    background: transparent;
    color: #a700c1;
    border: 1px solid #a700c1;
}

.language-tag.telugu {
    background: transparent;
    color: #a700c1;
    border: 1px solid #a700c1;
}

.language-tag.hindi-rap {
    background: transparent;
    color: #a700c1;
    border: 1px solid #a700c1;
}

.language-tag.odia {
    background: transparent;
    color: #a700c1;
    border: 1px solid #a700c1;
}

.language-tag.marathi {
    background: transparent;
    color: #a700c1;
    border: 1px solid #a700c1;
}

.language-tag.tamil {
    background: transparent;
    color: #a700c1;
    border: 1px solid #a700c1;
}

.language-tag.kannada {
    background: transparent;
    color: #a700c1;
    border: 1px solid #a700c1;
}

.language-tag.bengali {
    background: transparent;
    color: #a700c1;
    border: 1px solid #a700c1;
}

.language-tag.gujarati {
    background: transparent;
    color: #a700c1;
    border: 1px solid #a700c1;
}

.language-tag.punjabi {
    background: transparent;
    color: #a700c1;
    border: 1px solid #a700c1;
}

.language-tag.assamese {
    background: transparent;
    color: #a700c1;
    border: 1px solid #a700c1;
}

.language-tag.maithili {
    background: transparent;
    color: #a700c1;
    border: 1px solid #a700c1;
}

/* Download Button */
.download-button {
    width: 100%;
    background: #be6dea;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.download-button:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4) !important;
}

/* View More Button */
.view-more-btn {
    border-radius: 35px;
    padding: 15px 50px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1.2px;
    color: #7c4de6;
    border: 2px solid #7c4de6;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(124, 77, 230, 0.2);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.view-more-btn:hover {
    background: linear-gradient(135deg, #7c4de6 0%, #ae6eff 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 77, 230, 0.4);
}

.view-more-btn span {
    position: relative;
    z-index: 1;
}

/* Section Title */
.featured-videos-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 60px;
    color: transparent;
    background: linear-gradient(135deg, #7c4de6 0%, #ae6eff 35%, #01d5f5 65%, #fd7e14 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(174, 110, 255, 0.1);
    padding-bottom: 25px;
    position: relative;
}

.featured-videos-title::after {
    display: none !important;
}

/* Title Underline */
.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #7c4de6, #ae6eff, #01d5f5);
    margin: 15px auto 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(174, 110, 255, 0.3);
}

/* Background Decorative Elements */
.bg-decoration-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(174, 110, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.bg-decoration-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(1, 213, 245, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

/* Container with z-index */
.video-section-container {
    position: relative;
    z-index: 1;
}

/* Responsive Design for Mobile Devices */
@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        justify-items: center;
        gap: 25px;
        padding: 40px 20px;
    }

    .video-card-item {
        width: 100%;
        max-width: 350px;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        padding: 30px 15px;
        gap: 20px;
        justify-items: center;
    }

    .video-cards-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .video-cards-container .video-card-item {
        position: sticky;
        top: 15vh;
        z-index: 10;
        width: 100%;
        max-width: 350px;
        height: auto;
        margin-bottom: 10vh;
        /* Replicates the vertical rhythm of the .panel items (approx 50vh total height per item) */
        box-shadow: 0 -15px 30px rgba(174, 110, 255, 0.15), 0 10px 30px rgba(163, 0, 245, 0.2) !important;
        /* Emphasize top shadow for overlap effect in brand colors */
    }

    .video-cards-container .video-card-item:last-child {
        margin-bottom: 0;
    }

    .videos-grid .video-card-item {
        width: 100%;
        max-width: 350px;
        justify-self: center;
    }
}


/* Ambassador Carousel Styles */
.ambassador-carousel-container {
    display: none;
    /* Hidden by default (for mobile) */
    padding: 20px 0;
    width: 100%;
    min-height: 380px;
    position: relative;
    z-index: 10;
    margin-top: 3px;
}

/* Specific media query to show on Tablet and Desktop (Bootstrap SM/MD and up) */
@media screen and (min-width: 768px) {
    .ambassador-carousel-container {
        display: block !important;
    }
}

.ambassador-swiper {
    padding-bottom: 10px !important;
    padding-top: 10px !important;
    width: 100% !important;
    height: auto;
    min-height: 70px;
    /* Reduced */
    position: relative;
    z-index: 5;
    overflow: visible !important;
}

.ambassador-slide {
    width: 320px; 
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy feel */
    perspective: 1000px;
    opacity: 0;
    visibility: hidden;
}

.ambassador-slide.swiper-slide-visible,
.ambassador-slide.swiper-slide-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.ambassador-card {
    width: 320px; 
    background: #ffffff;
    border-radius: 16px; 
    border: 5px solid #e91e63;
    padding: 15px; 
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    transform: scale(0.65); /* Smaller neighbors */
    opacity: 0.5;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.swiper-slide-active .ambassador-card {
    transform: scale(1.05); /* Prominent center card */
    opacity: 1;
    box-shadow: 0 30px 80px rgba(233, 30, 99, 0.2);
    z-index: 50 !important;
}

/* Ensure neighbors are semi-visible and overlapping */
.swiper-slide-prev .ambassador-card,
.swiper-slide-next .ambassador-card {
    transform: scale(0.85);
    opacity: 0.8;
    z-index: 10;
}

.swiper-slide-prev-prev .ambassador-card,
.swiper-slide-next + .swiper-slide .ambassador-card {
    transform: scale(0.7);
    opacity: 0.6;
    z-index: 5;
}

.ambassador-card .video-thumbnail {
    width: 100%;
    margin-bottom: 5px;
    border-radius: 20px;
    overflow: hidden;
}

.ambassador-card .video-card-title {
    font-weight: 700;
    font-size: 16px; /* Matching video-card-item */
    color: #333;
    margin: 5px 0 10px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ambassador-card .language-tags {
    margin-bottom: 15px;
    margin-top: 15px;
}

.ambassador-card .language-tag {
    font-weight: 700;
    font-size: 10px; /* Matching video-card-item */
    padding: 4px 12px;
    border-radius: 20px;
    background: #e0f2fe;
    color: #0ea5e9;
    border: none;
}

.ambassador-card .download-button {
    background: #14b8a6; /* Cyan/Teal from screenshot */
    border-radius: 12px;
    padding: 10px; /* Matching video-card-item */
    font-size: 14px; /* Matching video-card-item */
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    border: none;
    width: 100%;
}
.ambassador-card .download-button:hover {
    background: #0d9488 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3) !important;
}

.swiper-slide-prev .ambassador-card,
.swiper-slide-next .ambassador-card {
    opacity: 0.7;
    transform: scale(0.9);
}

.ambassador-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ambassador-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #7c4de6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
}

.ambassador-card:hover .ambassador-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Controls styling */
.swiper-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.ambassador-pagination {
    position: static !important;
    width: auto !important;
}

.ambassador-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
}

.ambassador-pagination .swiper-pagination-bullet-active {
    background: #7c4de6;
    width: 25px;
    border-radius: 10px;
}

.ambassador-prev,
.ambassador-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    color: #64748b !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    z-index: 100 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.ambassador-prev:hover,
.ambassador-next:hover {
    background: #7c4de6 !important;
    color: #fff !important;
}

.ambassador-prev {
    left: -10px !important;
}

.ambassador-next {
    right: -10px !important;
}

@media (min-width: 1400px) {
    .ambassador-prev { left: -60px !important; }
    .ambassador-next { right: -60px !important; }
}

.ambassador-prev:after,
.ambassador-next:after {
    display: none;
}

.ambassador-prev:hover,
.ambassador-next:hover {
    background: #7c4de6;
    color: #fff !important;
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .ambassador-slide {
        width: 320px;
        /* Matches static cards */
    }
}

@media (max-width: 768px) {
    .ambassador-carousel-container {
        display: none !important;
    }
}