﻿/*==========================
    GRID LAYOUT
==========================*/

.showListing .other-Programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 16px;
}

.showListing .other-Programs-grid-item {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #1D1D1D;
    overflow: hidden;
}

/*==========================
    DESKTOP
==========================*/

@media (min-width: 1360px) and (max-width: 1420px) {
    .showListing .other-Programs-grid {
        grid-auto-rows: 210px;
        gap: 16px;
    }
}

@media (min-width: 1280px) and (max-width: 1360px) {
    .showListing .other-Programs-grid {
        grid-auto-rows: 190px;
        gap: 16px;
    }
}

/*==========================
    TABLET
==========================*/

@media (min-width: 1024px) and (max-width: 1280px) {
    .showListing .other-Programs-grid {
        grid-auto-rows: 150px;
        gap: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .showListing .other-Programs-grid {
        grid-auto-rows: 250px;
        gap: 16px;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .showListing .other-Programs-grid {
        grid-auto-rows: 190px;
        gap: 16px;
    }
}

/*==========================
    MOBILE
==========================*/

@media (max-width: 480px) {
    .showListing .other-Programs-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 184px;
        gap: 12px;
    }
}

/*==========================
    GRID CARDS
==========================*/

.showListing .other-Programs-grid-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 300 / 169;
    object-fit: cover;
    display: block;
}

.showListing .other-Programs-grid-card-content {
    padding: 10px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    direction: rtl;
    flex: 1;
}

.showListing .other-Programs-grid-card-author {
    margin: 0;
    color: #B8B8B8;
    font-size: 14px;
    font-family: DroidKufiBold;
    line-height: 1.4;
}

.showListing .other-Programs-grid-card-title {
    margin: 0;
    color: #FFF;
    font-size: 16px;
    font-family: DroidKufiBold;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .showListing .other-Programs-grid-card-author {
        font-size: 12px;
    }

    .showListing .other-Programs-grid-card-title {
        font-size: 14px;
    }
}
