/* ============================================
   Prolrey Biotech — News Detail Page Stylesheet
   ============================================ */

.nd-page {
    margin-top: var(--nav-h);
    padding: 40px 0 64px;
    background: var(--bg-white);
    min-height: 60vh;
}

/* ---------- Breadcrumb ---------- */
.nd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-light);
    margin-bottom: 28px;
}

.nd-breadcrumb a {
    color: var(--gray);
    transition: color var(--transition);
}

.nd-breadcrumb a:hover {
    color: var(--red);
}

.nd-sep {
    color: var(--gray-light);
    font-size: 12px;
}

.nd-cur {
    color: var(--dark);
    font-weight: 600;
}

/* ---------- Article ---------- */
.nd-article {
    max-width: 820px;
    margin: 0 auto;
}

.nd-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    background: var(--bg-light);
    margin-bottom: 28px;
}

.nd-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nd-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.nd-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin-bottom: 28px;
}

.nd-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--gray);
}

.nd-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--dark);
    margin: 28px 0 12px;
}

.nd-body h3:first-child {
    margin-top: 0;
}

.nd-body p {
    margin: 0 0 16px;
}

.nd-body ul,
.nd-body ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.nd-body li {
    margin-bottom: 8px;
}

.nd-body a {
    color: var(--red);
    text-decoration: underline;
}

.nd-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

/* ---------- Rich-text embeds written by the admin editor ---------- */
.nd-body video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 16px 0;
    background: #000;
}

.nd-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14px;
    overflow: hidden;
    border-radius: 8px;
}

.nd-body table td,
.nd-body table th {
    border: 1px solid var(--line, #e6e8eb);
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
}

.nd-body table th {
    background: var(--bg-light);
    font-weight: 600;
}

.nd-body blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    border-left: 4px solid var(--red-light);
    background: var(--bg-light);
    color: var(--gray);
}

.nd-actions {
    margin-top: 40px;
}

/* ---------- Related news ---------- */
.nd-related {
    padding: 72px 0 88px;
    background: var(--bg-light);
}

.nd-related .section-title {
    margin-bottom: 44px;
}

.nd-related .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* ---------- Not found ---------- */
.nd-notfound {
    text-align: center;
    padding: 80px 20px;
}

.nd-notfound p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .nd-related .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nd-page {
        padding: 24px 0 48px;
    }

    .nd-title {
        font-size: 26px;
    }

    .nd-related .news-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }
}
