/* --- 1. VARIABLES & RESET --- */
:root {
    /* Color Palette - Nuansa Akademik (Biru Tua & Emas/Krem) */
    --primary-color: #003366; /* Biru Navy Universitas */
    --secondary-color: #004080; /* Biru yang lebih terang untuk hover */
    --accent-color: #e6b800; /* Emas untuk highlight/tombol penting */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f6f9;
    --white: #ffffff;
    --border-color: #e0e0e0;

    /* Typography */
    /* Gunakan Font Serif untuk Judul agar terlihat formal */
    --font-heading: 'Merriweather', 'Times New Roman', serif;
    /* Gunakan Sans-Serif untuk UI dan Body agar mudah dibaca di layar */
    --font-body: 'Open Sans', Helvetica, Arial, sans-serif;
    
    --spacing-std: 20px;
    --border-radius: 6px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

/* --- 2. LAYOUT UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-std);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* --- 3. HEADER & NAVIGATION --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.85rem;
    padding: 5px 0;
    text-align: right;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- 4. HERO SECTION (SEARCH) --- */
.hero-section {
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.8)), url('https://via.placeholder.com/1200x400'); /* Ganti URL gambar background */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.search-box {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-input {
    padding: 12px;
    width: 50%;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* --- 5. MAIN CONTENT (GRID LAYOUT) --- */
.main-grid {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 75% Konten, 25% Sidebar */
    gap: 30px;
    padding: 40px 0;
}

/* Bagian Artikel */
.section-title {
    font-family: var(--font-heading);
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.article-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.article-title a {
    color: var(--text-dark);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-abstract {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Membatasi abstract jadi 3 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.pdf-tag {
    background-color: #d32f2f; /* Merah PDF */
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- 6. SIDEBAR --- */
.sidebar-widget {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 10px;
    border-bottom: 1px dotted var(--border-color);
    padding-bottom: 5px;
}

/* --- 7. FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-col a {
    color: #cccccc;
    display: block;
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* --- 8. RESPONSIVE --- */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr; /* Stack sidebar ke bawah di HP */
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input {
        width: 100%;
    }
}