/* --- RESET & BASIC --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: #f4f4f4; color: #333; }
a { text-decoration: none; }

/* --- 1. HEADER BESAR (Paling Atas) --- */
.main-header {
    background-color: #6c5ce7; /* Warna Ungu/Biru seperti di video */
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.main-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.main-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- 2. NAVBAR (Di bawah Header) --- */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center; /* Menu di tengah */
    padding: 0 20px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    display: block;
    padding: 15px 25px;
    color: #555;
    font-weight: 600;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-links li a:hover, 
.nav-links li a.active {
    color: #6c5ce7;
    background-color: #f9f9f9;
    border-bottom: 3px solid #6c5ce7;
}

/* --- 3. CONTAINER KONTEN --- */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 400px;
}

/* --- TYPOGRAPHY KONTEN --- */
.content-title {
    font-size: 1.8rem;
    color: #6c5ce7;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.content-text {
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* --- GRID SYSTEM (Untuk Karya & Media) --- */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 160px; object-fit: cover; }
.card-body { padding: 15px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 5px; color: #333; }
.card-body p { font-size: 0.9rem; color: #777; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #2d3436;
    color: white;
    margin-top: 40px;
}

/* --- SUB-NAVIGASI HALAMAN MEDIA --- */
.sub-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    background-color: #eee;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: 0.3s;
}

.tab-btn:hover {
    background-color: #dcdcdc;
}

/* Warna tombol saat aktif (dipilih) */
.tab-btn.active-tab {
    background-color: #6c5ce7;
    color: white;
}

/* Sembunyikan semua konten media secara default */
.media-content {
    display: none;
    animation: fadeIn 0.5s;
}

/* Tampilkan konten yang punya class 'show' */
.media-content.show {
    display: block;
}

/* Animasi muncul pelan */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style Khusus Audio Player */
.audio-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}