.dn-news-wrapper {
    width: 100%;
}

.dn-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dn-card {
    display: flex;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
    flex-direction: column;
    justify-content: flex-end; /* Pushes content block to the bottom */
}

.dn-card:hover {
    transform: translateY(-5px);
}

/* Full card background image */
.dn-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.5s ease;
}

.dn-card:hover .dn-card-image {
    transform: scale(1.03);
}

/* Floating Overlay Card Content Box */
.dn-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.dn-card:hover .dn-card-content {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Normal Grid Card (1 column wide) */
.dn-grid-card {
    height: 480px;
    padding: 20px;
}

/* Featured Card (2 columns wide, on the first row) */
.dn-featured-card {
    grid-column: span 2;
    height: 480px;
    padding: 20px;
}

.dn-category-badge {
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    border-radius: 4px;
}

.dn-post-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

/* Make featured title slightly larger */
.dn-featured-card .dn-post-title {
    font-size: 24px;
}

.dn-post-title a {
    text-decoration: none;
    transition: opacity 0.2s;
}

.dn-post-title a:hover {
    opacity: 0.8;
}

.dn-post-excerpt {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.dn-btn {
    display: inline-block;
    padding: 10px 24px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.dn-btn:hover {
    opacity: 0.9;
}

/* Visual cue for mock items in editor */
.dn-mock-item {
    opacity: 0.95;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .dn-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .dn-featured-card {
        grid-column: span 2; /* Still span full row on tablet (2 cols) */
    }
}

@media (max-width: 767px) {
    .dn-news-grid {
        grid-template-columns: 1fr;
    }
    .dn-featured-card {
        grid-column: span 1;
    }
    .dn-grid-card, .dn-featured-card {
        height: 440px;
        padding: 15px;
    }
}
