/* News Detail Page Styles */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Header Section */
.news-detail-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.news-detail-category {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-block;
}

.news-detail-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    line-height: 1.3;
    margin-bottom: 20px;
    word-break: keep-all;
}

.news-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 1rem;
    color: #777;
}

.meta-stats-group {
    display: flex;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Content Section */
.news-detail-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 60px;
}

.news-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    /* Changed to contain to show full image */
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-detail-text h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
}

.news-detail-text p {
    margin-bottom: 20px;
}

.news-detail-text ul,
.news-detail-text ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.news-detail-text li {
    margin-bottom: 10px;
}

/* Footer / Navigation */
.news-detail-nav {
    display: flex;
    justify-content: center;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.btn-list {
    padding: 12px 40px;
    background: #555;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-list:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .news-content {
        padding-top: 100px;
    }

    .news-detail-container {
        /* Adjusted padding, relied on .news-content for top clearance */
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 40px;
    }

    .news-detail-title {
        font-size: 1.6rem;
        word-break: break-all;
        /* Break at any character to prevent clipping */
        line-height: 1.5;
        /* Increased line-height slightly */
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .news-detail-image {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .news-detail-body {
        font-size: 1rem;
    }

    .news-detail-text h3 {
        font-size: 1.3rem;
        margin-top: 30px;
    }

    .news-detail-nav {
        margin-bottom: 60px;
        /* Keep button away from the footer */
    }
}