﻿.media-link {
    text-decoration: none;
    display: block;
}

.media-card {
    position: relative;
    height: 260px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.media-card:hover {
    transform: translateY(-5px);
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* التدرج اللوني فوق الصورة */
.media-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 45, 90, 0.85), rgba(0, 45, 90, 0.35), rgba(0, 0, 0, 0));
    z-index: 1;
}

/* زر التشغيل */
.media-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #003366;
    z-index: 2;
}

/* العنوان */
.media-card .title {
    position: absolute;
    bottom: 18px;
    left: 18px;
    color: #fff;
    font-weight: 600;
    z-index: 2;
}

.media-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-behavior: smooth;
}

/* شكل السكرول */
.media-scroll::-webkit-scrollbar {
    height: 8px;
}

.media-scroll::-webkit-scrollbar-thumb {
    background: #b5b5b5;
    border-radius: 10px;
}

/* الرابط */
.media-link {
    flex: 0 0 auto;
    text-decoration: none;
}

/* الكارد */
.media-card {
    width: 320px;
    height: 260px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.media-card:hover {
    transform: translateY(-6px);
}

/* الصورة */
.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* التدرج اللوني */
.media-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 45, 90, 0.85), rgba(0, 45, 90, 0.35), rgba(0, 0, 0, 0));
    z-index: 1;
}

/* زر التشغيل */
.media-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #003366;
    z-index: 2;
}

/* العنوان */
.media-card .title {
    position: absolute;
    bottom: 18px;
    left: 18px;
    color: #fff;
    font-weight: 600;
    z-index: 2;
}

@media (max-width: 1000px) {
    .media-card {
        width: 100% !important;
        /* Made responsive */
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Products Video Slider Styles (Moved from Index.cshtml) */
.products-video-slider .slider-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    padding-bottom: 15px;
}

.video-thumb-container {
    position: relative;
}

.video-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.45);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s ease;
}

.video-thumb-container:hover .video-overlay {
    opacity: 1;
}

.video-icon {
    width: 32px;
}

.video-title {
    text-align: center;
    padding-top: 10px;
}

.video-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}