/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Namespace: nn (Narration News) */
.nn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards on desktop */
    gap: 20px;
    width: 100%;
    max-width: 900px;
    padding-bottom: 9px;
}

.nn-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    text-decoration: none; /* In case the whole card becomes a link later */
}

.nn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
}

.nn-card__label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #111827;
    color: white;
    padding: 5px 10px;
    font-size: 9px;
    font-weight: 800;
    border-radius: 6px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nn-card__image-wrap {
    width: 100%;
    aspect-ratio: 16 / 15;
    overflow: hidden;
}

.nn-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.nn-card__body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nn-card__date {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280; 
    margin-bottom: 12px;
}

.nn-card__date::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-color: #6b7280;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5' /%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5' /%3E%3C/svg%3E") no-repeat center;
}

/* ===== ENHANCED TITLE STYLES (Perfect Size) ===== */
.nn-card__title {
    font-size: 1rem;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.2px;
    transition: all 0.2s ease;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* Subtle hover effect for title */
.nn-card:hover .nn-card__title {
    color: #4f46e5;
}
/* ===== END ENHANCED TITLE STYLES ===== */

.nn-card__excerpt {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nn-card__link {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.nn-card__link::after {
    content: "→";
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.nn-card__link:hover::after {
    transform: translateX(4px);
}

/* Hide 4th card on desktop */
.nn-card:nth-child(4) {
    display: none;
}

/* Tablet: 2 cards */
@media (max-width: 900px) {
    .nn-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

/* Mobile: 1 card & hide 3rd card */
@media (max-width: 640px) {
    .nn-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    /* Hide the 3rd card on mobile screens */
    .nn-card:nth-child(3) {
        display: none;
    }
}