/* ===== سكشن فيديوهات المنصة مع التبويبات ===== */
.platform_videos {
    
    position: relative;
    
}

.platform_videos::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(81, 106, 200, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.platform_videos::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(227, 175, 100, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}


/* محتوى التبويبات */
.platform_videos .tab-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 15px 40px rgba(16, 27, 59, 0.1);
    border: 1px solid rgba(192, 203, 240, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

.platform_videos .tab-content:hover {
    box-shadow: 0 20px 50px rgba(16, 27, 59, 0.15);
    transform: translateY(-5px);
}

.platform_videos .tab-content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--light_bluewhite), transparent);
    border-radius: 0 20px 0 0;
    z-index: 0;
}

/* تصميم الفيديوهات */
.platform_videos video {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--dark_blue);
    position: relative;
    z-index: 1;
}

.platform_videos video:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.platform_videos video::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(38, 66, 139, 0.1), transparent);
    border-radius: 12px;
    z-index: 2;
    pointer-events: none;
}

/* تخصيص عناصر التحكم بالفيديو */
.platform_videos video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent) !important;
}

.platform_videos video::-webkit-media-controls-play-button {
    border-radius: 10px !important;
}

.platform_videos video::-webkit-media-controls-current-time-display,
.platform_videos video::-webkit-media-controls-time-remaining-display {
    color: white !important;
    font-weight: 600;
}

/* رسائل تلميحية */
.platform_videos .tab-pane {
    position: relative;
}

.platform_videos .tab-pane::after {
    content: "Click play to watch the video";
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.platform_videos .tab-pane:hover::after {
    opacity: 1;
}

/* تلميحات للتبويبات */
.platform_videos .nav-item {
    position: relative;
    max-width: max-content;
}

.platform_videos .nav-item::after {
    content: attr(data-title);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark_blue);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.platform_videos .nav-item:hover::after {
    opacity: 1;
}

.platform_videos .nav-item::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--dark_blue);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.platform_videos .nav-item:hover::before {
    opacity: 1;
}

/* تحسينات للعرض على الجوال */
@media (max-width: 768px) {
    .platform_videos {
        padding: 3rem 0;
    }
    
    .platform_videos .nav-pills {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .platform_videos .nav-link {
        padding: 10px 20px !important;
        font-size: 0.9rem;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
  
    
    .platform_videos video {
        border-radius: 8px;
    }
    
    .platform_videos .nav-link.active::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .platform_videos .nav-link {
        padding: 8px 15px !important;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .platform_videos .tab-content {
        border-radius: 15px;
    }
    
    .platform_videos video {
        border-radius: 6px;
    }
}

/* تأثيرات إضافية */
.platform_videos .tab-pane {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* مؤشر التحميل للفيديو */
.platform_videos video:not([src]) {
    background: linear-gradient(135deg, var(--light_bluewhite), white);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.platform_videos video:not([src])::before {
    content: "Loading video...";
    color: var(--middle_blue);
    font-weight: 600;
    font-size: 1.1rem;
}