/* =========================================
   RELATED NEWSPAPERS GRID (Image Fix)
   ========================================= */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 20px;
}

.related-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 10px;
    text-align: center;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align to top */
    min-width: 0;
}

.related-card:hover {
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(8, 123, 80, 0.1);
    transform: translateY(-2px);
}

.related-logo {
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

/* This is the crucial part for images */
.related-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.related-logo.noimg .related-bn {
    display: block;
}

.related-bn {
    display: none;
    font-size: 16px;
    font-weight: 800;
    color: #111;
}

.related-card strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    word-break: break-word;
    margin-bottom: 4px;
}

.related-card small {
    display: block;
    font-size: 10px;
    color: var(--muted);
}
/* ===== HTML CONTENT SUPPORT (Long Description) ===== */
.formatted-content {
    color: #334155;
    font-size: 14px;
    line-height: 1.7;
}
.formatted-content p { margin-bottom: 12px; }
.formatted-content ul, .formatted-content ol { margin: 0 0 12px 20px; padding: 0; }
.formatted-content li { margin-bottom: 6px; }
.formatted-content strong, .formatted-content b { font-weight: 700; color: #0f172a; }
.formatted-content a { color: #0f76b9; text-decoration: underline; }
.formatted-content a:hover { color: #0c5e94; }
.formatted-content h3, .formatted-content h4 { margin: 16px 0 8px; font-weight: 700; color: #0f172a; }