/* News Grid 1 - 4 Columns x 2 Rows */

/* Wrapper */
.news-grid-1-wrap {
    max-width: 1200px;
    margin: 20px auto 25px auto;
    padding: 0 20px;
}

/* Header Title Bar */
.news-grid-1-header {
    display: flex;
    align-items: center;
    padding: 0 0 12px 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #222;
}

.news-grid-1-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

.news-grid-1-title strong {
    font-weight: 700;
}

/* 4-Column Grid */
.news-grid-1-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Each Card */
.ng1-item {
    width: 100%;
}

.ng1-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail */
.ng1-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #e5e5e5;
    margin-bottom: 10px;
}

.ng1-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ng1-link:hover .ng1-thumb img {
    transform: scale(1.05);
}

/* Title */
.ng1-content {
    padding: 0;
}

.ng1-title {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    line-height: 1.5;
    margin: 0;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.ng1-link:hover .ng1-title {
    color: #555;
}

/* Tablet: 2 Columns */
@media (max-width: 768px) {
    .news-grid-1-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding-bottom: 20px;
    }

    .news-grid-1-title {
        font-size: 20px;
    }

    .ng1-title {
        font-size: 17px;
    }
}

/* Mobile: 2 Columns (keep 2 on small too) */
@media (max-width: 480px) {
    .news-grid-1-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding-bottom: 20px;
    }

    .ng1-title {
        font-size: 17px;
    }
}