/**
 * News Grid
 *
 * @package jGambling
 */


.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin: 28px 0;
}


.news-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}


.news-card__img-link {
    display: block;
    overflow: hidden;
    line-height: 0;
    aspect-ratio: 16 / 9;
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.news-card:hover .news-card__img {
    transform: scale(1.04);
}


.news-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}


.news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.news-card__cat {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2396f7;
    background: rgba(35, 150, 247, 0.08);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.news-card__cat:hover {
    background: rgba(35, 150, 247, 0.15);
    color: #1570bf;
}

.news-card__date {
    font-size: 13px;
    color: #64748b;
}


.news-card__title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.news-card__title-link {
    color: #1e293b !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card__title-link:hover {
    color: #2396f7;
}


.news-card__excerpt {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.news-card__read {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: #2396f7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card__read:hover {
    color: #1570bf;
}


.news-grid + .load_more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    margin-bottom: 28px;
}

.news-grid + .load_more .custom_loadmore_button {
    min-width: 160px;
    height: 30px;
    padding: 0 28px;
    background: #edeef0;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.news-grid + .load_more .custom_loadmore_button:hover {
    background: #e0dfdf;
}


@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card__body {
        padding: 16px;
    }

    .news-card__title {
        font-size: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
