/* Main Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Arabic', system-ui, sans-serif;
}

/* Navigation Link Colors */
.nav-link {
    color: #fff;
    /* background-color: #F4EFE5; */
}

.nav-scrolled .nav-link {
    color: #203020;
    background-color: #F4EFE5;
}

/* Navigation Scroll Effect */
.nav-scrolled {
    background-color: #F4EFE5;
    /* background-color: rgba(255, 255, 255, 0.95); */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



/* WhatsApp Float Button Animation */
.whatsapp-float {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Table Scroll */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table Container */
.table-container {
    min-width: 100%;
    border-collapse: collapse;
}

@media (max-width: 768px) {
    .table-container {
        min-width: 800px;
    }
}
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

/* Card Hover Effect */
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Styles */
/* #mobile-menu {
    background-color: rgba(255, 255, 255, 0.95);
    overflow: visible !important;
}

#mobile-produk-toggle {
    display: block;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 0.5rem 0.5rem;
}

#mobile-produk-menu {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    padding: 0;
    overflow: visible;
}

#mobile-produk-menu.hidden {
    display: none !important;
}

#mobile-produk-menu:not(.hidden) {
    display: block !important;
}

#mobile-produk-menu a {
    color: #203020;
    background-color: #fff;
    display: block;
    padding: 0.5rem 0.5rem;
    text-decoration: none;
}

#mobile-produk-menu a:hover {
    background-color: #16a34a;
    color: #fff;
} */

.table-container {
  max-height: 400px; /* Limits vertical height */
  overflow: auto;    /* Adds scrollbars only when needed */
  border: 1px solid #ccc;
}

/* ========================================
   PUBLIKASI PAGE STYLES
   ======================================== */

/* Hero Section */
.publikasi-hero {
    position: relative;
    padding: 8rem 1.5rem 4rem;
    background: linear-gradient(135deg, #203020 0%, #4B5320 50%, #4B6043 100%);
    overflow: hidden;
    color: #fff;
}

.publikasi-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.publikasi-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}

.publikasi-shape-1 {
    width: 380px;
    height: 380px;
    background: #6B7D5E;
    top: -120px;
    right: -100px;
    animation: floatShape 12s ease-in-out infinite;
}

.publikasi-shape-2 {
    width: 300px;
    height: 300px;
    background: #4B6043;
    bottom: -100px;
    left: -80px;
    animation: floatShape 14s ease-in-out infinite reverse;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
}

.publikasi-hero-content {
    position: relative;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.publikasi-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.publikasi-back-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-3px);
}

.publikasi-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}

.publikasi-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.publikasi-subtitle {
    font-size: 1.05rem;
    color: #e5e7eb;
    max-width: 42rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.publikasi-stats {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #d1d5db;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
}

/* Section */
.publikasi-section {
    background: #F4EFE5;
    padding: 3.5rem 1.5rem 5rem;
    min-height: 60vh;
}

.publikasi-container {
    max-width: 72rem;
    margin: 0 auto;
}

/* Year Filter */
.year-filter-wrapper {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(32, 48, 32, 0.06);
    border: 1px solid rgba(75, 83, 32, 0.08);
}

.year-filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4B5320;
    margin-bottom: 0.85rem;
}

.year-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.year-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #4B5320;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.year-chip:hover {
    border-color: #4B5320;
    background: rgba(75, 83, 32, 0.06);
    transform: translateY(-1px);
}

.year-chip.active {
    background: #4B5320;
    border-color: #4B5320;
    color: #fff;
    box-shadow: 0 4px 12px rgba(75, 83, 32, 0.3);
}

.year-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.4rem;
    padding: 0 0.45rem;
    background: #F4EFE5;
    color: #4B5320;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* PDF Grid */
.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.pdf-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(75, 83, 32, 0.1);
    transition: all 0.25s ease;
    animation: cardIn 0.4s ease-out backwards;
}

.pdf-card:nth-child(1) { animation-delay: 0.02s; }
.pdf-card:nth-child(2) { animation-delay: 0.06s; }
.pdf-card:nth-child(3) { animation-delay: 0.1s; }
.pdf-card:nth-child(4) { animation-delay: 0.14s; }
.pdf-card:nth-child(5) { animation-delay: 0.18s; }
.pdf-card:nth-child(6) { animation-delay: 0.22s; }
.pdf-card:nth-child(7) { animation-delay: 0.26s; }
.pdf-card:nth-child(8) { animation-delay: 0.3s; }

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(32, 48, 32, 0.12);
    border-color: rgba(75, 83, 32, 0.25);
}

.pdf-card.filtered-out {
    display: none;
}

.pdf-card-inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pdf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.pdf-icon {
    position: relative;
    width: 3rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    flex-shrink: 0;
}

.pdf-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.pdf-tag {
    position: absolute;
    bottom: -0.4rem;
    right: -0.4rem;
    background: #dc2626;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    letter-spacing: 0.05em;
}

.pdf-year-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, #4B5320, #4B6043);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 9999px;
}

.pdf-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #203020;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.pdf-filename {
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-meta {
    display: flex;
    gap: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #e5e7eb;
    margin-bottom: 1rem;
}

.pdf-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.pdf-meta-item svg {
    color: #4B5320;
}

.pdf-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: auto;
}

.pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pdf-btn-primary {
    background: #4B5320;
    color: #fff;
}

.pdf-btn-primary:hover {
    background: #203020;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(32, 48, 32, 0.2);
}

.pdf-btn-secondary {
    background: #F4EFE5;
    color: #4B5320;
    border: 1.5px solid transparent;
}

.pdf-btn-secondary:hover {
    background: #fff;
    border-color: #4B5320;
    transform: translateY(-1px);
}

/* Empty State */
.publikasi-empty {
    text-align: center;
    padding: 5rem 1.5rem;
    background: #fff;
    border-radius: 1rem;
    border: 2px dashed #d1d5db;
}

.publikasi-empty .empty-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.25rem;
    background: #F4EFE5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.publikasi-empty .empty-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.publikasi-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #203020;
    margin-bottom: 0.5rem;
}

.publikasi-empty p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 640px) {
    .publikasi-hero {
        padding: 7rem 1rem 3rem;
    }

    .publikasi-stats {
        gap: 1rem;
        padding: 0.85rem 1.25rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .publikasi-section {
        padding: 2.5rem 1rem 4rem;
    }

    .year-filter-wrapper {
        padding: 1rem;
    }

    .year-filter-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .year-filter-chips::-webkit-scrollbar {
        height: 4px;
    }

    .year-filter-chips::-webkit-scrollbar-thumb {
        background: #4B5320;
        border-radius: 2px;
    }

    .year-chip {
        flex-shrink: 0;
    }

    .pdf-grid {
        grid-template-columns: 1fr;
    }
}