/* News Detail Section */
.news-detail-section {
    padding: 120px 0 60px;
    background: #f9fafb;
    min-height: calc(100vh - 200px);
}

.news-detail-header {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #1d4ed8;
}

.back-link i {
    font-size: 0.9rem;
}

.news-detail-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* PDF Viewer Container */
.pdf-viewer-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pdf-viewer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
}

.toolbar-btn i {
    font-size: 0.875rem;
}

.zoom-level {
    min-width: 50px;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.pdf-viewer-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: #525252;
}

#pdf-viewer {
    width: 100%;
    min-height: 600px;
    height: calc(100vh - 300px);
    border: none;
    display: block;
}

.pdf-loading,
.pdf-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.pdf-loading p,
.pdf-error p {
    margin-top: 1rem;
    font-size: 1rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pdf-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pdf-error i {
    font-size: 3rem;
    color: #fbbf24;
}

.pdf-error .btn {
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-detail-section {
        padding: 100px 0 40px;
    }

    .news-detail-header h1 {
        font-size: 2rem;
    }

    .pdf-viewer-toolbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .toolbar-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .toolbar-btn span {
        display: none;
    }

    #pdf-viewer {
        height: calc(100vh - 400px);
        min-height: 400px;
    }
}

