/* --- RESET & BASIC --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f4f1ea;
    color: #333;
    padding-top: 130px; /* Ruang untuk header statis */
}

/* --- HEADER STATIS --- */
.header-craftsman {
    background-color: #2c3e50 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Tinggi Fix */
    z-index: 10000;
    border-bottom: 5px solid #a67c52;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-area {
    display: flex !important;
    align-items: center;
    text-decoration: none;
}

.logo-img-wrapper {
    display: flex !important;
    align-items: center;
    justify-content: center;

    /* Tentukan ukuran box yang sama (Square) agar bulat sempurna */
    width: 80px; 
    height: 80px;
    margin-right: 15px;
    position: relative;
    
    /* Efek Lingkaran Cahaya Putih di Belakang */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 40%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.logo-img-wrapper img {
    height: 55px !important; /* Ukuran logo */
    width: auto;
    display: block;

    /* Tambahkan drop-shadow dikit agar logo makin tajam di atas cahaya */
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-name {
    color: #ffffff !important;
    font-family: 'Roboto Slab', serif !important;
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}

.company-tagline {
    color: #a67c52 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- NAVIGASI --- */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    margin-left: 25px;
}

.main-navigation ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.main-navigation ul li a:hover {
    color: #a67c52;
}

/* --- KONTEN & SIDEBAR --- */
.main-content {
    padding-bottom: 50px;
}

.welcome-note, .article-wrapper, .sidebar-container {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.welcome-note {
    border-left: 6px solid #2c3e50;
}

.sidebar-container h3 {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid #a67c52;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* --- STICKY SIDEBAR --- */
.sticky-sidebar {
    position: -webkit-sticky; /* Dukungan untuk Safari */
    position: sticky;
    top: 120px; /* Jarak dari atas layar (Header 100px + Jarak 20px) */
    z-index: 100;
    
    /* Efek Visual */
    background: #ffffff;
    border: 2px solid #2c3e50; /* Border biru tua khas header */
    border-top: 5px solid #a67c52; /* Aksen warna coklat kayu di atas */
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Bayangan lembut agar terlihat melayang */
    
    padding: 20px;
    transition: all 0.3s ease;
    
    /* Pastikan sidebar tidak melebihi tinggi layar agar tetap bisa diakses */
    max-height: calc(100vh - 200px); 
    overflow-y: auto; /* Jika isi sidebar sangat panjang, dia bisa di-scroll sendiri di dalam box */
}

/* Membuat judul modul di dalam sidebar lebih menonjol */
.sticky-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2c3e50;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Memberi sedikit jarak antar modul di dalam sidebar */
.sticky-sidebar .module {
    margin-bottom: 25px;
}

/* Hilangkan scrollbar pada sidebar jika ingin terlihat bersih (Opsional) */
.sticky-sidebar::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* --- FOOTER FIX / STATIS --- */
.footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 15px 0; /* Padding diperkecil agar tidak terlalu makan tempat */
    border-top: 5px solid #2c3e50;
    font-size: 14px;
    
    /* Tambahkan ini untuk membuatnya statis di bawah */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000; /* Sejajar dengan header agar tetap di paling depan */
}

/* --- UPDATE PADDING BODY --- */
body {
    padding-top: 130px;    /* Ruang untuk header */
    padding-bottom: 80px;  /* TAMBAHKAN INI: Ruang untuk footer agar konten tidak tertutup */
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .logo-img-wrapper img {
        height: 40px;
        margin-right: 10px;
    }
    .company-name { font-size: 18px; }
    .main-navigation { margin-top: 10px; }
    body { padding-top: 160px; }
}