/* Detail Publikasi Styles */

/* Main Section Responsive */
.publikasi-detail-section {
    background: linear-gradient(135deg, #C9A961 0%, #B8935F 100%);
    min-height: 100vh;
}

/* Card Responsive Padding */
.publication-content {
    background: #FEFEFE;
    color: #2c3e50;
}

/* Mobile Optimization - Wider Reading Area */
@media (max-width: 768px) {
    .publikasi-detail-section {
        padding-left: 4px !important;
        padding-right: 4px !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .publication-content {
        padding: 12px !important;
    }

    .publication-content h1 {
        font-size: 1.5rem !important;
    }

    .publication-content h4 {
        font-size: 1.2rem !important;
    }

    .publication-meta {
        padding: 0.75rem !important;
    }

    .breadcrumb {
        font-size: 0.85rem;
        padding: 8px 12px !important;
    }

    /* Ads Mobile Optimization - Make ads smaller */
    .banner-box {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }

    .iklan-small-container img {
        max-height: 100px !important;
        object-fit: cover;
    }

    /* Publikasi Lain - Smaller on mobile */
    .other-pub-item h6 {
        font-size: 0.85rem !important;
    }

    .other-pub-item small {
        font-size: 0.75rem !important;
    }
}

/* Reading Comfort */
.pub-summary {
    font-size: 1rem;
    line-height: 1.8;
    color: #2c3e50;
    text-align: justify;
}

.pub-summary p {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.pub-summary h1,
.pub-summary h2,
.pub-summary h3,
.pub-summary h4,
.pub-summary h5,
.pub-summary h6 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.pub-summary strong,
.pub-summary b {
    color: #1a252f;
}

.pub-summary a {
    color: #C9A961;
    text-decoration: underline;
}

.pub-summary a:hover {
    color: #B8935F;
}

/* Better Typography */
.publication-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a252f;
    line-height: 1.3;
}

.publication-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Meta Section */
.publication-meta {
    background-color: #f8f9fa !important;
    border-left: 4px solid #C9A961;
}

.publication-meta Small {
    color: #6c757d;
    font-size: 0.875rem;
}

.publication-meta .fw-bold {
    color: #2c3e50;
}

/* Badge Styling */
.badge.bg-info {
    background-color: #C9A961 !important;
    color: #FEFEFE !important;
    font-weight: 600;
}

/* PDF Viewer */
.pdf-viewer-container {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .pdf-viewer-container {
        margin-left: -12px;
        margin-right: -12px;
    }

    .pdf-viewer-container .ratio {
        min-height: 400px !important;
    }
}

/* Tags */
.badge.text-info {
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.breadcrumb-item a {
    transition: opacity 0.3s ease;
}

.breadcrumb-item a:hover {
    opacity: 0.8;
}

/* Animations */
.card {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .publikasi-detail-section {
        background: white !important;
        padding: 0 !important;
    }

    .breadcrumb,
    .btn,
    .badge,
    body>nav,
    body>footer,
    .col-lg-4 {
        display: none !important;
    }

    .publication-content {
        padding: 1rem !important;
    }

    .pub-summary {
        color: black !important;
    }
}