/* pro2 news-detail.css - Green Accent (#00cc4c), Dark BG */

.news-detail-page {
    padding: 30px 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    font-size: 14px;
    color: #999;
}
.breadcrumb a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: #00cc4c;
}

/* Two-Column Layout */
.detail-layout {
    display: flex;
    gap: 30px;
}
.detail-main {
    flex: 1;
    min-width: 0;
}
.detail-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Article */
.news-article {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Article Header */
.news-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.news-header h1 {
    font-size: 28px;
    line-height: 1.4;
    margin: 0 0 15px;
    color: #f8f8f8;
}
.news-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #888;
}
.news-header-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.news-header-meta .category-tag {
    background: rgba(0,204,76,0.12);
    color: #00cc4c;
    padding: 4px 12px;
    border-radius: 4px;
}

/* Cover Image */
.news-cover {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
}
.news-cover img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* Article Content */
.news-content {
    font-size: 16px;
    line-height: 1.8;
    color: #d4d4d4;
}
.news-content p {
    margin-bottom: 18px;
}
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}
.news-content a {
    color: #00cc4c;
    text-decoration: underline;
}

/* Tags */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.news-tags span {
    background: rgba(0,204,76,0.08);
    color: #999;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}
.news-tags span:hover {
    background: rgba(0,204,76,0.15);
    color: #00cc4c;
}

/* Source */
.news-source {
    margin-top: 25px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 14px;
    color: #999;
}
.news-source a {
    color: #00cc4c;
    text-decoration: none;
}
.news-source a:hover {
    text-decoration: underline;
}

/* Related News */
.related-news {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.related-news h3 {
    font-size: 18px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0,204,76,0.3);
    color: #00cc4c;
}
.related-news .news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.related-news .news-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.related-news .news-item:last-child {
    border-bottom: none;
}
.related-news .news-thumb {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.related-news .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-news .news-title {
    font-size: 15px;
    margin: 0 0 8px;
}
.related-news .news-title a {
    color: #f8f8f8;
    text-decoration: none;
}
.related-news .news-title a:hover {
    color: #00cc4c;
}

/* Sidebar */
.sidebar-block {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sidebar-title {
    font-size: 16px;
    color: #00cc4c;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,204,76,0.3);
}

/* Sidebar Items */
.sidebar-block .news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-block .news-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-block .news-item:last-child {
    border-bottom: none;
}
.sidebar-block .news-thumb {
    width: 60px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-block .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Attribute selector for class prefix compatibility */
[class~="sidebar-block"] .news-thumb {
    width: 60px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
[class~="sidebar-block"] .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-block .news-title {
    font-size: 13px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-block .news-title a {
    color: #d4d4d4;
    text-decoration: none;
}
.sidebar-block .news-title a:hover {
    color: #00cc4c;
}
.sidebar-block .news-summary {
    display: none;
}
.sidebar-block .news-meta {
    font-size: 11px;
    margin-top: 5px;
    color: #777;
}

/* Responsive */
@media (max-width: 992px) {
    .detail-layout {
        flex-direction: column;
    }
    .detail-sidebar {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .news-article {
        padding: 20px;
    }
    .news-header h1 {
        font-size: 22px;
    }
    .news-content {
        font-size: 15px;
    }
    .news-header-meta {
        gap: 10px;
    }
    .related-news .news-thumb {
        width: 80px;
        height: 55px;
    }
}
