* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
line-height: 1.8;
}

.container {
max-width: 900px;
margin: 0 auto;
padding: 20px;
}

/* Navigation */
.nav {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
animation: slideDown 0.6s ease-out;
}

.back-btn {
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 12px 20px;
border-radius: 25px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}

.back-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.action-buttons {
display: flex;
gap: 10px;
}

.action-btn {
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
padding: 12px;
border-radius: 50%;
text-decoration: none;
transition: all 0.3s ease;
cursor: pointer;
border: none;
font-size: 16px;
}

.action-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.1);
}

/* Infografis Header */
.infografis-header {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 24px;
padding: 40px;
text-align: center;
margin-bottom: 30px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
animation: slideUp 0.6s ease-out 0.2s both;
}

.category-badge {
background: linear-gradient(45deg, #667eea, #764ba2);
color: white;
padding: 8px 20px;
border-radius: 20px;
font-size: 14px;
font-weight: 600;
display: inline-block;
margin-bottom: 20px;
}

.infografis-title {
font-size: 36px;
font-weight: 700;
margin-bottom: 20px;
color: #333;
line-height: 1.3;
}

.meta-info {
display: flex;
align-items: center;
justify-content: center;
gap: 25px;
padding-top: 25px;
border-top: 1px solid #eee;
font-size: 14px;
color: #666;
}

.meta-item {
display: flex;
align-items: center;
gap: 8px;
}

.author-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background: linear-gradient(45deg, #ff6b6b, #feca57);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
font-size: 18px;
}

/*Galeri css*/
.infografis-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out 0.4s both;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.gallery-wrapper {
position: relative;
width: 100%;
aspect-ratio: auto;
overflow: hidden;
}

.gallery-slider {
display: flex;
width: 100%;
height: 100%;
transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
flex: 0 0 100%;
width: 100%;
height: 100%;
position: relative;
}

.gallery-slide img {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
cursor: pointer;
transition: transform 0.3s ease;
background: #f8f9fa;
}

.gallery-slide img:hover {
transform: scale(1.02);
}

.nav-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(10px);
border: none;
color: white;
width: 45px;
height: 45px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 10;
opacity: 0;
visibility: hidden;
}

.gallery-wrapper:hover .nav-btn {
opacity: 1;
visibility: visible;
}

.nav-btn:hover {
background: rgba(0, 0, 0, 0.8);
transform: translateY(-50%) scale(1.1);
}

.nav-btn.prev { left: 15px; }
.nav-btn.next { right: 15px; }
.nav-btn:disabled {
opacity: 0.3;
cursor: not-allowed;
pointer-events: none;
}

.gallery-dots {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 8px;
z-index: 10;
}

.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
cursor: pointer;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.3);
}

.dot.active {
background: white;
transform: scale(1.2);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-counter {
position: absolute;
top: 20px;
right: 20px;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(10px);
color: white;
padding: 6px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 500;
z-index: 10;
}

.zoom-hint {
position: absolute;
bottom: 60px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(10px);
color: white;
padding: 8px 16px;
border-radius: 20px;
font-size: 12px;
display: flex;
align-items: center;
gap: 6px;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 10;
}

.gallery-wrapper:hover .zoom-hint {
opacity: 1;
visibility: visible;
}


/* Description Section */
.description-section {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 24px;
padding: 40px;
margin-bottom: 30px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(255, 255, 255, 0.2);
animation: slideUp 0.6s ease-out 0.6s both;
}

.description-section h2 {
font-size: 28px;
font-weight: 700;
margin-bottom: 20px;
color: #333;
position: relative;
display: flex;
align-items: center;
gap: 12px;
}

.description-section h2::before {
content: '';
width: 4px;
height: 30px;
background: linear-gradient(45deg, #667eea, #764ba2);
border-radius: 2px;
}

.description-content {
font-size: 16px;
line-height: 1.8;
color: #555;
}

.description-content p {
margin-bottom: 18px;
}

.description-content ul, .description-content ol {
margin: 20px 0;
padding-left: 30px;
}

.description-content li {
margin-bottom: 8px;
color: #555;
}



/* Social Share */
.social-share {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 24px;
padding: 30px;
margin-bottom: 30px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(255, 255, 255, 0.2);
text-align: center;
animation: slideUp 0.6s ease-out 0.8s both;
}

.social-share h3 {
margin-bottom: 20px;
color: #333;
font-size: 24px;
}

.share-buttons {
display: flex;
justify-content: center;
gap: 15px;
flex-wrap: wrap;
}

.share-button {
background: linear-gradient(45deg, #667eea, #764ba2);
color: white;
padding: 12px 20px;
border-radius: 25px;
text-decoration: none;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
font-size: 14px;
}

.share-button:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.share-button.twitter { background: linear-gradient(45deg, #1DA1F2, #0d8bd9); }
.share-button.facebook { background: linear-gradient(45deg, #4267B2, #365899); }
.share-button.linkedin { background: linear-gradient(45deg, #0077B5, #005885); }
.share-button.whatsapp { background: linear-gradient(45deg, #25D366, #1ebe57); }
.share-button.pinterest { background: linear-gradient(45deg, #BD081C, #8C0615); }

/* Related Infografis */
.related-infografis {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 24px;
padding: 30px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(255, 255, 255, 0.2);
animation: slideUp 0.6s ease-out 1s both;
}

.related-infografis h3 {
margin-bottom: 25px;
color: #333;
font-size: 24px;
}

.related-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}

.related-card {
background: #f8f9fa;
border-radius: 16px;
overflow: hidden;
text-decoration: none;
color: inherit;
transition: all 0.3s ease;
border: 1px solid #eee;
}

.related-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.related-image {
width: 100%;
height: 180px;
object-fit: cover;
}

.related-content {
padding: 20px;
}

.related-content h4 {
font-size: 16px;
font-weight: 600;
margin-bottom: 8px;
color: #333;
line-height: 1.4;
}

.related-meta {
font-size: 14px;
color: #666;
display: flex;
align-items: center;
gap: 15px;
}

/* Image Modal */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.9);
animation: fadeIn 0.3s ease;
}

.modal-content {
position: relative;
margin: auto;
display: block;
width: 90%;
max-width: 1200px;
max-height: 90%;
object-fit: contain;
top: 50%;
transform: translateY(-50%);
animation: zoomIn 0.3s ease;
}

.close {
position: absolute;
top: 20px;
right: 35px;
color: #fff;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
cursor: pointer;
z-index: 1001;
}

.close:hover,
.close:focus {
color: #bbb;
}

.modal-caption {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
color: #fff;
text-align: center;
font-size: 16px;
background: rgba(0, 0, 0, 0.7);
padding: 10px 20px;
border-radius: 20px;
}

/* Animations */
@keyframes slideDown {
from {
    opacity: 0;
    transform: translateY(-30px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

@keyframes slideUp {
from {
    opacity: 0;
    transform: translateY(30px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

@keyframes zoomIn {
from { transform: translateY(-50%) scale(0.8); }
to { transform: translateY(-50%) scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
.container {
    padding: 15px;
}

.infografis-header {
    padding: 25px;
}

.infografis-title {
    font-size: 28px;
}

.description-section {
    padding: 25px;
}

.description-section h2 {
    font-size: 24px;
}

.meta-info {
    flex-direction: column;
    gap: 15px;
}

.download-buttons {
    flex-direction: column;
    align-items: center;
}

.share-buttons {
    flex-direction: column;
    align-items: center;
}

.related-grid {
    grid-template-columns: 1fr;
}

.action-buttons {
    flex-direction: column;
    gap: 8px;
}

.nav {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

.back-btn {
    justify-content: center;
}

.action-buttons {
    flex-direction: row;
    justify-content: center;
}

.infografis-container { margin: 0 15px 30px 15px; }
.gallery-wrapper { aspect-ratio: auto; }
.nav-btn { width: 35px; height: 35px; font-size: 14px; }
.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }
.gallery-counter { top: 15px; right: 15px; font-size: 11px; padding: 4px 8px; }
.zoom-hint { font-size: 11px; padding: 6px 12px; bottom: 50px; }
}