
.tp-magazin-feed {
    position: relative;
    margin-top: 24px;
    padding-top: 12px;
}

.tp-magazin-feed::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    height: 1px;

    background-image: repeating-linear-gradient(
        to right,
        rgba(0, 165, 149, .55) 0,
        rgba(0, 165, 149, .55) 10px,
        transparent 10px,
        transparent 18px
    );
}

/*
 * A Bootstrap 3 row-t flex konténerré tesszük,
 * hogy az egy sorban lévő kártyák azonos magasak legyenek.
 */
.tp-magazin-feed .magazin-feed {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/*
 * Minden Bootstrap-oszlop maga is flex konténer lesz.
 */
.tp-magazin-feed .magazin-feed > [class*="col-"] {
    display: flex;
}

/*
 * Az egész kártya kattintható.
 * A white-space felülírás a régi globális
 * a { white-space: nowrap !important; } szabály miatt kell.
 */
.tp-magazin-feed .magazin-feed-card {
    display: flex;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    white-space: normal !important;
}

.tp-magazin-feed .magazin-feed-card:hover,
.tp-magazin-feed .magazin-feed-card:focus {
    color: inherit;
    text-decoration: none;
}

.tp-magazin-feed .magazin-feed-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.tp-magazin-feed .magazin-feed-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 2px;
}

.tp-magazin-feed .magazin-feed-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.tp-magazin-feed .magazin-feed-card:hover .magazin-feed-image img {
    transform: scale(1.05);
}

.tp-magazin-feed .magazin-feed-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

/*
 * A cím legfeljebb két sor magas helyet kap.
 */
.tp-magazin-feed .magazin-feed-title {
    display: -webkit-box;
    min-height: 56px;
    margin: 12px 0 14px;
    overflow: hidden;
    color: #f9690e;
    line-height: 1.15;
    white-space: normal;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tp-magazin-feed .magazin-feed-excerpt {
    flex: 1;
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    line-height: 1.6;
    white-space: normal;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.tp-magazin-feed .magazin-feed-more {
    display: block;
    margin-top: auto;
    color: #00a595;
    font-weight: 600;
    white-space: normal;
}

.tp-magazin-feed .magazin-feed-card {
    transition:
        transform .25s ease,
        opacity .25s ease;
}

.tp-magazin-feed .magazin-feed-card:hover {
    transform: translateY(-4px);
}

.tp-magazin-feed .magazin-feed-image img {
    transition:
        transform .4s ease,
        filter .4s ease;
}

.tp-magazin-feed .magazin-feed-card:hover .magazin-feed-image img {
    transform: scale(1.045);
    filter: saturate(1.06) contrast(1.02);
}

.tp-magazin-feed .magazin-feed-title {
    transition: color .25s ease;
}

.tp-magazin-feed .magazin-feed-card:hover .magazin-feed-title {
    color: #f9690e;
}

.tp-magazin-feed .magazin-feed-more {
    position: relative;
    display: inline-block;
    width: fit-content;
    transition: color .25s ease;
}

.tp-magazin-feed .magazin-feed-more::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .25s ease;
}

.tp-magazin-feed .magazin-feed-card:hover .magazin-feed-more::after {
    width: 100%;
}

.tp-magazin-feed .magazin-feed-header {
    margin-bottom: 28px;
    text-align: center;
}

.tp-magazin-feed .magazin-feed-heading {
    margin: 0 0 8px;
    color: #f9690e;
}

.tp-magazin-feed .magazin-feed-subtitle {
    margin: 0;
    color: #555;
    text-align: center;
}

.tp-magazin-feed .magazin-feed-footer {
    margin-top: 28px;
    text-align: center;
}

.tp-magazin-feed .magazin-feed-all {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #00a595;
    color: #00a595;
    text-decoration: none;
    white-space: normal !important;
    transition: background-color .25s ease, color .25s ease;
}

.tp-magazin-feed .magazin-feed-all:hover,
.tp-magazin-feed .magazin-feed-all:focus {
    background-color: #00a595;
    color: #fff;
    text-decoration: none;
}
