/* ===================================================================
   News Detail Page – Hero + Prose + Downloads + Related
   =================================================================== */

/* ─── Hero ─────────────────────────────────────────────────────────── */
.nd-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--title-color, #1a1a2e) 0%, #2d1520 70%, var(--theme-color, #980d1a) 100%);
}

.nd-hero--with-image {
    min-height: 480px;
    background-size: cover;
    background-position: center;
}

.nd-hero--with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
}

.nd-hero__inner { position: relative; z-index: 1; }

.nd-hero__breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.nd-hero__breadcrumb li { color: rgba(255,255,255,0.7); }
.nd-hero__breadcrumb a { color: rgba(255,255,255,0.9); text-decoration: none; }
.nd-hero__breadcrumb a:hover { color: #fff; }

.nd-hero__meta {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}

.nd-hero__meta i { margin-right: 6px; }

.nd-hero__title {
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

/* ─── Article Body ─────────────────────────────────────────────────── */
.nd-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.nd-article__content {
    font-size: 17px;
    line-height: 1.85;
    color: #333;
}

.nd-article__content h2 { font-size: 26px; margin: 2em 0 0.8em; }
.nd-article__content h3 { font-size: 22px; margin: 1.8em 0 0.6em; }
.nd-article__content p { margin-bottom: 1.2em; }
.nd-article__content ul, .nd-article__content ol { margin: 1em 0 1.5em; padding-left: 1.5em; }
.nd-article__content blockquote { border-left: 4px solid var(--theme-color); padding-left: 24px; margin: 2em 0; font-style: italic; color: #555; }
.nd-article__content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5em 0; }

/* ─── Downloads ───────────────────────────────────────────────────── */
.nd-downloads {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.nd-downloads__title {
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.nd-downloads__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.nd-dl-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9f8f6;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
}

.nd-dl-card:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nd-dl-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--theme-color, #980d1a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.nd-dl-card__name { font-weight: 600; flex: 1; }
.nd-dl-card__action { color: var(--theme-color); font-size: 14px; }

/* ─── Related ─────────────────────────────────────────────────────── */
.nd-related {
    padding: 60px 20px 80px;
    background: #f9f8f6;
}

.nd-related__title {
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.nd-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.nd-related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nd-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.nd-related-card:hover .nd-related-card__title { color: var(--theme-color); }

.nd-related-card__img {
    height: 160px;
    overflow: hidden;
}

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

.nd-related-card__body { padding: 20px; }

.nd-related-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s;
}

.nd-related-card__date { font-size: 13px; color: #888; margin-top: 8px; }

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .nd-hero__title { font-size: 32px; }
}

@media (max-width: 575px) {
    .nd-hero { min-height: 360px; padding: 100px 0 40px; }
    .nd-hero__title { font-size: 26px; }
    .nd-article { padding: 40px 16px 60px; }
    .nd-article__content { font-size: 16px; }
}
