/* =========================================================
   News Detail Page
   ========================================================= */

.mlc-news-hero-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 6;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mlc-news-hero-img {
    max-width: 100%;
    width: auto;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.mlc-news-title-bar {
    background: #fff;
    border-bottom: 1px solid #e8eaf0;
    padding: 1.5rem 0 1.25rem;
}

.mlc-badge-cat {
    display: inline-block;
    background: var(--mlc-gold, #c9a227);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 0.6rem;
}

.mlc-news-main-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--mlc-navy, #0f1e3c);
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.mlc-news-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.mlc-news-meta-row i {
    margin-right: 4px;
    color: var(--mlc-gold-dark, #a07c10);
}

/* Share bar */
.mlc-news-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.mlc-news-share-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-right: 4px;
}

.mlc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mlc-share-btn:hover { opacity: 0.85; text-decoration: none; }

.mlc-share-whatsapp  { background: #25d366; color: #fff; }
.mlc-share-facebook  { background: #1877f2; color: #fff; }
.mlc-share-twitter   { background: #000;    color: #fff; }
.mlc-share-copy      { background: #f0f2f5; color: #333; }
.mlc-share-copy.copied { background: #d4edda; color: #155724; }

/* Article body — constrain all embedded images */
.mlc-article-body img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    border-radius: 6px;
    margin: 1rem auto;
}

.mlc-article-body table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

.mlc-article-body p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 767px) {
    .mlc-news-hero-img-wrap { aspect-ratio: 16 / 9; }
    .mlc-news-main-title    { font-size: 1.35rem; }
    .mlc-news-meta-row      { gap: 0.5rem; font-size: 0.8rem; }
    .mlc-share-btn          { padding: 5px 10px; font-size: 0.75rem; }
}
