﻿/* ====================== NEWS DETAILS SECTION ========================= */
.news-details-section {
    background: var(--np-grey-hot-bg);
    padding: 80px 0;
}
/* ====================== END SECTION ========================= */


/* ====================== CARD ========================= */
.news-details-card {
    max-width: 920px;
    margin: 0 auto;
    background: var(--np-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    animation: newsFadeUp .35s ease;
}
/* ====================== END CARD ========================= */


/* ====================== IMAGE ========================= */
.news-details-image {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
}

    .news-details-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 24px;
    }
/* ====================== END IMAGE ========================= */


/* ====================== CONTENT ========================= */
.news-details-content {
    padding: 36px 42px;
}

.news-details-title {
    font-family: var(--font-logo);
    font-size: var(--fs-3xl);
    font-weight: 100;
    margin-bottom: 12px;
}

.news-details-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    opacity: .7;
    margin-bottom: 28px;
}
/* ====================== END CONTENT ========================= */


/* ====================== BODY ========================= */
.news-details-body {
    font-size: var(--fs-md);
    line-height: 1.6;
    color: var(--np-dark);
}

    /* typography inside news content */
    .news-details-body h1,
    .news-details-body h2,
    .news-details-body h3,
    .news-details-body h4,
    .news-details-body h5,
    .news-details-body h6 {
        margin: 24px 0 12px;
        font-weight: 700;
    }

    .news-details-body p {
        margin-bottom: 16px;
    }

    .news-details-body ul,
    .news-details-body ol {
        padding-left: 22px;
        margin-bottom: 16px;
    }

    .news-details-body li {
        margin-bottom: 6px;
    }

    .news-details-body table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }

    .news-details-body th,
    .news-details-body td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: left;
    }

    .news-details-body strong {
        font-weight: 700;
    }
/* ====================== END BODY ========================= */


/* ====================== FOOTER ========================= */
.news-details-footer {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

.news-details-back {
    font-weight: 700;
    font-size: var(--fs-md);
    color: var(--np-green);
    text-decoration: none;
    transition: color .2s ease;
}

    .news-details-back:hover,
    .news-details-back:focus {
        color: var(--np-accent2);
        text-decoration: none;
    }

    .news-details-back:visited,
    .news-details-back:active {
        text-decoration: none;
    }
/* ====================== END FOOTER ========================= */


/* ====================== RESPONSIVE ========================= */
@media (max-width: 768px) {
    .news-details-content {
        padding: 24px;
    }

    .news-details-title {
        font-size: var(--fs-2xl);
    }
}
/* ====================== END RESPONSIVE ========================= */


/* ====================== ANIMATION ========================= */
@keyframes newsFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ====================== END ANIMATION ========================= */
