/* Premium News Page Styling */

.news-article-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.news-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 60px 40px;
    color: white;
    text-align: center;
}

.news-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-title-primary {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.news-meta-header {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 14px;
    opacity: 0.9;
}

.news-meta-header i {
    margin-left: 8px;
    color: var(--accent);
}

.news-body {
    padding: 40px 80px 50px;
    font-size: 18px;
    line-height: 1.9;
    color: #334155;
    text-align: justify;
}

.news-thumbnail-wrapper {
    width: 100%;
    max-width: 900px;
    margin: -40px auto 0;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.news-thumbnail {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    border: 5px solid white;
}

.news-body p {
    margin-bottom: 25px;
}

.news-body img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 30px 0;
    max-width: 100%;
    height: auto;
}

.news-footer-actions {
    padding: 30px 80px 50px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-group {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: var(--transition-smooth);
    font-size: 18px;
}

.share-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .news-body, .news-footer-actions {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    .news-header { padding: 40px 20px; }
    .news-title-primary { font-size: 26px; }
    .news-body { padding: 30px 20px; font-size: 16px; }
    .news-footer-actions { padding: 20px; flex-direction: column; gap: 20px; text-align: center; }
}

/* Unified news detail view. */
.news-detail-page {
    width: 100%;
}

.news-detail-toolbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 18px;
}

.news-detail-toolbar .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-detail-card {
    overflow: hidden;
    margin-bottom: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.news-detail-hero {
    position: relative;
    height: 360px;
    overflow: hidden;
}

.news-detail-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-hero::after {
    position: absolute;
    inset: 0;
    content: '';
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(48, 67, 0, 0) 25%,
        rgba(48, 67, 0, 0.88) 100%
    );
}

.news-detail-hero-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 32px 40px;
    color: #fff;
    text-align: right;
}

.news-detail-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
}

.news-detail-meta i {
    margin-left: 5px;
}

.news-detail-title {
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
}

.news-detail-content {
    padding: 36px 48px 44px;
}

.news-detail-content-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary);
}

.news-detail-content-heading h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.news-detail-body {
    color: var(--text-main);
    font-size: 17px;
    line-height: 1.9;
}

.news-detail-body p:first-child {
    margin-top: 0;
}

.news-detail-body p:last-child {
    margin-bottom: 0;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.news-detail-body table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
}

.news-detail-body th,
.news-detail-body td {
    padding: 9px 12px;
    border: 1px solid var(--border-color);
}

.news-related-activity {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding: 14px 16px;
    color: var(--primary);
    background: rgba(48, 67, 0, 0.06);
    border: 1px solid rgba(48, 67, 0, 0.12);
    border-radius: var(--radius-md);
}

.news-related-activity > i {
    font-size: 22px;
}

.news-related-activity div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.news-related-activity span {
    color: var(--text-muted);
    font-size: 12px;
}

.news-related-activity strong {
    color: var(--text-main);
    font-size: 15px;
}

@media (max-width: 768px) {
    .news-detail-hero {
        height: 260px;
    }

    .news-detail-hero-overlay {
        padding: 22px 20px;
    }

    .news-detail-title {
        font-size: 24px;
    }

    .news-detail-content {
        padding: 28px 20px 32px;
    }

    .news-detail-body {
        font-size: 16px;
    }
}
