/* News Detail Page Styles */

.news-detail-section {
    background-color: #ffffff;
    padding: 40px 0 80px 0;
    min-height: 60vh;
}

/* Breadcrumb Navigation */
.news-detail-breadcrumb {
    margin-bottom: 2rem;
}

.news-detail-breadcrumb .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.news-detail-breadcrumb .breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-detail-breadcrumb .breadcrumb-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.news-detail-breadcrumb .breadcrumb-item.active {
    color: #5a6c7d;
}

.news-detail-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #adb5bd;
    padding: 0 0.5rem;
}

/* Article Container */
.news-detail-article {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
}

/* Article Header */
.news-detail-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

/* Article Meta Information */
.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    color: #5a6c7d;
    font-size: 0.95rem;
}

.news-detail-meta .meta-item {
    display: flex;
    align-items: center;
}

.news-detail-meta .meta-item i {
    color: #667eea;
    font-size: 0.9rem;
}

.news-detail-meta .meta-item span {
    color: #5a6c7d;
}

/* Cover Image */
.news-detail-cover {
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.news-detail-cover .cover-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Article Summary */
.news-detail-summary {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left: 4px solid #667eea;
    border-radius: 8px;
}

.news-detail-summary .summary-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
    font-style: italic;
}

/* Article Content */
.news-detail-content {
    margin-bottom: 3rem;
}

.news-detail-content .content-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #2c3e50;
    word-wrap: break-word;
}

/* Rich Text Content Styling */
.news-detail-content .content-body h1,
.news-detail-content .content-body h2,
.news-detail-content .content-body h3,
.news-detail-content .content-body h4,
.news-detail-content .content-body h5,
.news-detail-content .content-body h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-detail-content .content-body h1 {
    font-size: 2rem;
}

.news-detail-content .content-body h2 {
    font-size: 1.75rem;
}

.news-detail-content .content-body h3 {
    font-size: 1.5rem;
}

.news-detail-content .content-body p {
    margin-bottom: 1.5rem;
}

.news-detail-content .content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-detail-content .content-body ul,
.news-detail-content .content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-detail-content .content-body li {
    margin-bottom: 0.5rem;
}

.news-detail-content .content-body blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #5a6c7d;
    background-color: rgba(102, 126, 234, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 4px;
}

.news-detail-content .content-body a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.news-detail-content .content-body a:hover {
    color: #764ba2;
}

.news-detail-content .content-body code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
}

.news-detail-content .content-body pre {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.news-detail-content .content-body pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* Attachments Section */
.news-detail-attachments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.news-detail-attachments .attachments-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.news-detail-attachments .attachments-title i {
    color: #667eea;
}

.news-detail-attachments .attachments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-detail-attachments .attachment-item {
    margin-bottom: 1rem;
}

.news-detail-attachments .attachment-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.news-detail-attachments .attachment-link:hover {
    background-color: #667eea;
    color: #ffffff;
    border-color: #667eea;
    transform: translateX(4px);
}

.news-detail-attachments .attachment-link i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

.news-detail-attachments .attachment-name {
    font-weight: 500;
    margin-right: 0.5rem;
}

.news-detail-attachments .attachment-size {
    color: #6c757d;
    font-size: 0.9rem;
}

.news-detail-attachments .attachment-link:hover .attachment-size {
    color: rgba(255, 255, 255, 0.8);
}

/* Article Footer */
.news-detail-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.news-detail-footer .footer-actions {
    display: flex;
    justify-content: flex-start;
}

.news-detail-footer .btn-back {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.news-detail-footer .btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff;
}

.news-detail-footer .btn-back:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .news-detail-section {
        padding: 30px 0 60px 0;
    }

    .news-detail-title {
        font-size: 2rem;
    }

    .news-detail-meta {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .news-detail-summary .summary-text {
        font-size: 1.05rem;
    }

    .news-detail-content .content-body {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .news-detail-section {
        padding: 20px 0 50px 0;
    }

    .news-detail-breadcrumb {
        margin-bottom: 1.5rem;
    }

    .news-detail-title {
        font-size: 1.75rem;
    }

    .news-detail-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .news-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .news-detail-cover {
        margin-bottom: 2rem;
    }

    .news-detail-summary {
        margin-bottom: 2rem;
        padding: 1.25rem;
    }

    .news-detail-summary .summary-text {
        font-size: 1rem;
    }

    .news-detail-content {
        margin-bottom: 2rem;
    }

    .news-detail-content .content-body {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .news-detail-content .content-body h1 {
        font-size: 1.75rem;
    }

    .news-detail-content .content-body h2 {
        font-size: 1.5rem;
    }

    .news-detail-content .content-body h3 {
        font-size: 1.25rem;
    }

    .news-detail-attachments {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .news-detail-attachments .attachments-title {
        font-size: 1.25rem;
    }

    .news-detail-footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

