/* ==========================================================================
   Current News Cards — Stylesheet
   Adjust colours, fonts and spacing to match your Divi theme.
   ========================================================================== */

/* Grid: 3 columns on desktop, 2 on tablet, 1 on mobile */
.cnc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (max-width: 980px) {
    .cnc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cnc-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.cnc-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.cnc-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Featured image */
.cnc-card__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Card body */
.cnc-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Title */
.cnc-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Date */
.cnc-card__date {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0 0 0.75rem;
}

/* ACF fields: definition list */
.cnc-card__fields {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cnc-card__field {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.cnc-card__field-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 0;
}

.cnc-card__field-value {
    font-size: 0.9rem;
    color: #374151;
    margin: 0;
    line-height: 1.4;
}

/* Empty state */
.cnc-no-posts {
    color: #6b7280;
    font-style: italic;
}

/* ==========================================================================
   [news_latest] — compact single-post widget
   ========================================================================== */

.cnc-latest {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.cnc-latest__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.cnc-latest__date {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin: 0 0 0.6rem;
}

.cnc-latest__fields {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cnc-latest__field {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem;
}

.cnc-latest__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    white-space: nowrap;
}

/* Separator dot between label and value */
.cnc-latest__label::after {
    content: ":";
}

.cnc-latest__value {
    font-size: 0.875rem;
    color: #1f2937;
    margin: 0;
}
