.publikasi-section {
    background: linear-gradient(to bottom, #f3e5f5, #9b59b6);
    /* Gradient from light purple to primary purple */
    min-height: 80vh;
    padding: 60px 0;
    position: relative;
}

.publikasi-header {
    margin-bottom: 20px;
}

.page-title-right {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #8e44ad;
    /* Dark purple for better contrast on light background */
}

/* Search Bar */
.search-container {
    background: rgba(142, 68, 173, 0.15);
    /* Light purple tint */
    padding: 5px 5px 5px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    width: 300px;
    border: 1px solid rgba(142, 68, 173, 0.2);
}

.search-input {
    background: transparent;
    border: none;
    color: #333;
    box-shadow: none;
}

.search-input::placeholder {
    color: rgba(142, 68, 173, 0.6);
}

.search-input:focus {
    background: transparent;
    color: #333;
    box-shadow: none;
}

.btn-search {
    background: #9b59b6;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-search:hover {
    background: #8e44ad;
    color: white;
}

/* Publication List */
.publication-list-container {
    height: 1000px;
    overflow-y: auto;
    padding-right: 15px;
    /* Space for scrollbar */
    position: relative;
}

/* Custom Scrollbar for Webkit */
.custom-scrollbar::-webkit-scrollbar {
    width: 12px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: white;
}

/* Cards */
.publication-card {
    border: none;
    border-radius: 12px;
    /* Reduced from 15px for more professional look */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: white;
    padding: 8px;
    /* Extra breathing room */
}

.publication-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(142, 68, 173, 0.15);
    /* Purple-tinted shadow on hover */
}

.publication-card .card-title {
    font-family: 'Playfair Display', serif;
    /* Serif font for academic feel */
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-size: 1.3rem;
}

.publication-card .card-title a {
    color: #9b59b6;
    /* Primary purple for titles */
    text-decoration: none;
    transition: color 0.2s;
}

.publication-card .card-title a:hover {
    color: #8e44ad;
    /* Darker purple on hover */
}

.publication-card .card-text {
    font-family: 'Inter', sans-serif;
    color: #555555;
    /* Dark gray for better readability */
    line-height: 1.6;
    /* Improved line spacing */
    font-size: 0.95rem;
}

.publication-card .card-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    background-color: #9C70C3;
    /* Hero-bg color */
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
}

/* Sidebar */
.sidebar-card {
    border: none;
    border-radius: 12px;
    /* Reduced for consistency */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    background: white;
    height: 100%;
    max-height: 1000px;
    /* Match publication list height */
    overflow-y: auto;
}

.sidebar-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #9b59b6;
    /* Primary purple */
    font-weight: 700;
}

.category-link {
    text-decoration: none;
    color: #333;
    padding: 5px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    transition: color 0.2s;
}

.category-link:last-child {
    border-bottom: none;
}

.category-link:hover,
.category-link.active {
    color: #8e44ad;
    font-weight: 600;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.tag-link:hover,
.tag-link.active {
    color: #8e44ad;
    font-weight: 600;
    text-decoration: underline;
}