/* ==========================================================================
   KTECH NEWS GRID BUILDER ELEMENT - SCOPED UNDER .ktech-news-grid-element
   ========================================================================== */

.ktech-news-grid-element {
    width: 100%;
    margin-bottom: 30px;
}

.ktech-news-grid-element .news-top-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
}

/* FEATURED POST (LEFT COLUMN) */
.ktech-news-grid-element .news-item-featured {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.ktech-news-grid-element .news-item-featured .news-item-image {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    margin-bottom: 14px !important;
    background-color: #f3f4f6 !important;
}

.ktech-news-grid-element .news-item-featured .news-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.ktech-news-grid-element .news-item-featured:hover .news-item-image img {
    transform: scale(1.03) !important;
}

.ktech-news-grid-element .news-item-date span {
    display: inline-block !important;
    padding: 3px 14px !important;
    background-color: #f3f4f6 !important;
    color: #777777 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 20px !important;
}

.ktech-news-grid-element .news-item-featured .news-item-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 8px 0 8px 0 !important;
}

.ktech-news-grid-element .news-item-featured .news-item-title a {
    color: #111827 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.ktech-news-grid-element .news-item-featured .news-item-title a:hover {
    color: var(--primary-color, #e53935) !important;
}

.ktech-news-grid-element .news-item-featured .news-item-brief {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #555555 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* SIDE POSTS (RIGHT COLUMN) */
.ktech-news-grid-element .news-side-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
}

.ktech-news-grid-element .news-item-side {
    display: flex !important;
    gap: 18px !important;
    align-items: flex-start !important;
}

.ktech-news-grid-element .news-item-side .news-item-image {
    flex: 0 0 210px !important;
    width: 210px !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    background-color: #f3f4f6 !important;
}

.ktech-news-grid-element .news-item-side .news-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.ktech-news-grid-element .news-item-side:hover .news-item-image img {
    transform: scale(1.04) !important;
}

.ktech-news-grid-element .news-item-side .news-item-caption {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.ktech-news-grid-element .news-item-side .news-item-title {
    font-size: 16.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 4px 0 4px 0 !important;
}

.ktech-news-grid-element .news-item-side .news-item-title a {
    color: #111827 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.ktech-news-grid-element .news-item-side .news-item-title a:hover {
    color: var(--primary-color, #e53935) !important;
}

.ktech-news-grid-element .news-item-side .news-item-brief {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: #666666 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 991px) {
    .ktech-news-grid-element .news-top-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 767px) {
    .ktech-news-grid-element .news-item-side {
        flex-direction: row !important;
    }

    .ktech-news-grid-element .news-item-side .news-item-image {
        flex: 0 0 130px !important;
        width: 130px !important;
    }
}
