/* ========== Press Items Swiper - Homepage Media Section ========== */

/* Section Container */
.media-section-container {
    width: 100%;
    overflow: hidden;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Title */
.media-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.media-section-title h2 {
    font-family: 'Ezer Kashiach', 'EzerKashiach', Arial, sans-serif;
    font-weight: 700;
    font-size: 52px;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0;
}

/* Carousel Layout - arrows on sides, cards in middle */
.media-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1600px;
    margin: 0 auto;
    gap: 40px;
}

/* Navigation Arrows */
.media-nav-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.media-nav-btn:after {
    font-family: swiper-icons;
    font-size: 28px;
    color: #A6A1A3;
}

.media-nav-btn:hover:after {
    color: #FFFFFF;
}

/* Arrow icons - point in direction of movement */
.media-nav-prev:after {
    content: 'prev';
}

.media-nav-next:after {
    content: 'next';
}

.media-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

.media-nav-btn.swiper-button-disabled:hover:after {
    color: #A6A1A3;
}

/* Swiper Container - exactly 4 cards */
.media-swiper-wrapper {
    width: 1412px; /* 4 cards (335px) + 3 gaps (24px) = 1412px */
    flex-shrink: 0;
    overflow: hidden;
}

.media-swiper {
    overflow: hidden;
    width: 100%;
}

/* Cards */
.media-swiper .swiper-slide {
    width: 335px;
    height: auto;
    flex-shrink: 0;
}

.media-card {
    width: 335px;
    height: 447px;
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 10px;
    box-shadow: 0px 0px 16px rgba(102, 102, 102, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Card Header */
.media-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    min-height: 51px;
    direction: rtl;
}

.media-card-logo {
    height: 40px;
    max-width: 80px;
    object-fit: contain;
}

.media-card-info {
    font-family: 'EzerKashiach', Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.2;
    color: #9B9598;
    text-align: left;
    direction: ltr;
}

/* Card Image */
.media-card-image {
    height: 172px;
    margin: 0 15px;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    text-decoration: none;
}

.media-card-video {
    height: 172px;
    margin: 0 15px;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-card-video .play-btn {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.media-card-video:hover .play-btn {
    transform: scale(1.1);
}

.media-card-video .play-btn i {
    color: white;
    font-size: 24px;
    margin-left: 4px;
}

/* Card Content */
.media-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.media-card-content h3 {
    font-family: 'Ezer Kashiach', 'EzerKashiach', Arial, sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.27;
    color: #32293A;
    text-align: right;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card-content p {
    font-family: 'EzerKashiach', Arial, sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.3;
    color: #32293A;
    text-align: right;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* All Articles Button */
.media-all-articles-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.media-all-articles-btn {
    background-color: var(--midrag-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 9px 30px 14px;
    font-family: 'Ezer Kashiach', 'EzerKashiach', Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.media-all-articles-btn:hover {
    color: white;
    text-decoration: none;
}

/* Video Modal */
#mediaVideoModal .modal-dialog {
    max-width: 800px;
    margin: 10% auto;
}

#mediaVideoModal .modal-content {
    background: black;
    border: none;
    border-radius: 8px;
}

#mediaVideoModal .btn-close-modal {
    position: absolute;
    top: -35px;
    right: 0;
    color: white;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

#mediaVideoModal .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
}

#mediaVideoModal iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 1600px) {
    .media-swiper-wrapper {
        width: 1053px; /* 3 cards + 2 gaps */
    }
}

@media (max-width: 1250px) {
    .media-carousel-container {
        gap: 20px;
    }
    .media-swiper-wrapper {
        width: 694px; /* 2 cards + 1 gap */
    }
    .media-section-title h2 {
        font-size: 42px;
    }
}

@media (max-width: 900px) {
    .media-swiper-wrapper {
        width: 335px; /* 1 card */
    }
    .media-section-title h2 {
        font-size: 36px;
    }
    .media-section-title {
        margin-bottom: 40px;
    }
    .media-nav-btn {
        width: 35px;
        height: 35px;
    }
    .media-nav-btn:after {
        font-size: 24px;
    }
    .media-carousel-container {
        gap: 12px;
    }
}

@media (max-width: 500px) {
    .media-swiper .swiper-slide {
        width: 280px;
    }
    .media-card {
        width: 280px;
        height: 400px;
    }
    .media-swiper-wrapper {
        width: 280px;
    }
    .media-section-title h2 {
        font-size: 28px;
    }
    .media-nav-btn {
        width: 30px;
        height: 30px;
    }
    .media-nav-btn:after {
        font-size: 20px;
    }
    .media-carousel-container {
        gap: 8px;
    }
}
