/* News2 Block - Alternative News Grid */

.news2 {
    padding: 3rem 0;
    background: #f8fafc;
}

.news2__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news2__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

/* 4 Card Grid - 2x2 layout */
.news2__grid--4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.news2__grid--4 .news2__card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.news2__grid--4 .news2__card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.news2__grid--4 .news2__image {
    width: 140px;
    min-width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.news2__grid--4 .news2__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news2__grid--4 .news2__content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news2__grid--4 .news2__card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news2__grid--4 .news2__card:hover .news2__card-title {
    color: #3182ce;
}

/* 3 Card Grid - Featured + 2 small */
.news2__grid--3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Featured card - double height, spans both rows */
.news2__grid--3 .news2__card--featured {
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.news2__grid--3 .news2__card--featured:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.news2__grid--3 .news2__card--featured .news2__image {
    width: 100%;
    height: 0;
    padding-bottom: 60%;
    position: relative;
}

.news2__grid--3 .news2__card--featured .news2__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news2__grid--3 .news2__card--featured .news2__content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news2__grid--3 .news2__card--featured .news2__card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.news2__grid--3 .news2__card--featured:hover .news2__card-title {
    color: #3182ce;
}

.news2__card-excerpt {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Small cards in 3-card layout */
.news2__grid--3 .news2__card--small {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.news2__grid--3 .news2__card--small:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.news2__grid--3 .news2__card--small .news2__image {
    width: 120px;
    min-width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.news2__grid--3 .news2__card--small .news2__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news2__grid--3 .news2__card--small .news2__content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news2__grid--3 .news2__card--small .news2__card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news2__grid--3 .news2__card--small:hover .news2__card-title {
    color: #3182ce;
}

/* Placeholder for missing images */
.news2__image--placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news2__image--placeholder svg {
    width: 40px;
    height: 40px;
    color: #94a3b8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .news2 {
        padding: 2rem 0;
    }

    .news2__title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* 4 Card Grid - Stack to single column */
    .news2__grid--4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news2__grid--4 .news2__image {
        width: 100px;
        min-width: 100px;
        height: 100px;
    }

    .news2__grid--4 .news2__card-title {
        font-size: 0.9375rem;
    }

    /* 3 Card Grid - Stack to single column */
    .news2__grid--3 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }

    .news2__grid--3 .news2__card--featured {
        grid-row: auto;
    }

    .news2__grid--3 .news2__card--featured .news2__image {
        padding-bottom: 50%;
    }

    .news2__grid--3 .news2__card--featured .news2__card-title {
        font-size: 1.125rem;
    }

    .news2__grid--3 .news2__card--small .news2__image {
        width: 100px;
        min-width: 100px;
        height: 100px;
    }
}

/* Editor Styles */
.news2-editor {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.news2-editor .news2 {
    padding: 1.5rem 0;
}
