/* News Detail Page */

.news-detail {
    padding: 80px 0;
    min-height: 60vh;
}

.news-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-detail-header {
    margin-bottom: 40px;
}

.back-link {
    display: inline-block;
    color: var(--theme-color, #3b82f6);
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-hover, #2563eb);
}

.news-category {
    display: inline-block;
    background: var(--theme-color, #3b82f6);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.news-detail-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color, #1f2937);
    line-height: 1.4;
    margin-bottom: 16px;
}

.news-date {
    display: block;
    color: var(--subText-color, #6b7280);
    font-size: 0.9rem;
}

.news-detail-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Rich text body */
.news-detail-body {
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--dark-color, #1f2937);
    font-size: 1.05rem;
}

.news-detail-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.news-detail-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.news-detail-body p {
    margin-bottom: 1.25rem;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.news-detail-body ul, .news-detail-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.news-detail-body li {
    margin-bottom: 0.5rem;
}

.news-detail-body blockquote {
    border-left: 4px solid var(--theme-color, #3b82f6);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-secondary, #f3f4f6);
    border-radius: 0 8px 8px 0;
}

.news-detail-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.news-detail-body th, .news-detail-body td {
    border: 1px solid var(--border-color, #e5e7eb);
    padding: 0.75rem;
    text-align: left;
}

.news-detail-body th {
    background: var(--bg-secondary, #f3f4f6);
    font-weight: 600;
}

/* Media Gallery */
.news-media-gallery {
    margin-bottom: 40px;
}

.media-item {
    margin-bottom: 2rem;
}

.media-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.media-video video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.media-youtube .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.media-youtube .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Links */
.news-detail-links {
    margin-bottom: 40px;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-color, #3b82f6);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border: 2px solid var(--theme-color, #3b82f6);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.external-link:hover {
    background: var(--theme-color, #3b82f6);
    color: white;
}

.news-detail-footer {
    padding-top: 40px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    display: flex;
    justify-content: center;
}

.btn-back {
    display: inline-block;
    padding: 12px 32px;
    background: var(--bg-secondary, #f3f4f6);
    color: var(--dark-color, #1f2937);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-back:hover {
    background: var(--bg-tertiary, #e5e7eb);
}

/* Responsive */
@media (max-width: 768px) {
    .news-detail {
        padding: 60px 0;
    }
    .news-detail-header h1 {
        font-size: 1.5rem;
    }
    .news-detail-container {
        padding: 0 16px;
    }
    .news-detail-body {
        font-size: 1rem;
    }
}
