/* ====================================================
   PERBAIKAN FINAL WEBSITE SIPIL SAINS - UNKHAIR
   ==================================================== */

/* ===== RESET HEADER - TANPA MENGHILANGKAN TEKS ===== */
#headerTitle h1,
#headerTitle h1 a,
header .site-title,
header .brand,
header .logo-text {
    /* HAPUS: color: transparent !important; - INI PENYEBAB TEKS HILANG */
    color: #333 !important; /* Kembalikan warna teks */
    font-size: 24px !important;
    line-height: 1.3 !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

/* ===== PERBAIKAN HEADER AGAR TIDAK TERPOTONG ===== */
header,
#header,
.header-top,
.navbar-header,
.logo-container {
    overflow: visible !important;
    padding: 15px 0 !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
}

header *,
#header * {
    overflow: visible !important;
}

/* ===== LAYOUT HEADER YANG SEIMBANG ===== */
#headerTitle {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important; /* Jarak antara logo dan teks */
    flex-wrap: wrap !important;
}

/* ===== PERBAIKAN GAMBAR/LOGO ===== */
#headerTitle img,
header .logo img,
.logo img {
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    /* HAPUS: margin-left: -10px !important; - INI PENYEBAB PERGESERAN */
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== TEKS JUDUL DI SAMPING LOGO ===== */
#headerTitle h1,
header .site-title {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

#headerTitle h1 a,
header .site-title a {
    color: #333 !important;
    text-decoration: none !important;
}

/* ===== SUBTITLE/TAGLINE ===== */
header .subtitle,
.site-description,
.tagline {
    font-size: 14px !important;
    color: #666 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== PERBAIKAN MENU - TETAP TEBAL ===== */
.navbar-nav > li > a,
.navbar-nav .nav-link,
#primary-menu .menu-item a,
.main-navigation a {
    font-weight: 700 !important;
}

/* ===== PERBAIKAN SIDEBAR ===== */
.sidebar .widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.sidebar .widget-title {
    font-size: 16px;
    font-weight: 700 !important;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* ===== PERBAIKAN KONTEN UTAMA ===== */
#main-content .container,
.page_content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== RESPONSIF ===== */
@media (max-width: 768px) {
    #headerTitle {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    #headerTitle img,
    header .logo img {
        max-height: 60px !important;
    }
    
    #headerTitle h1,
    #headerTitle h1 a,
    header .site-title {
        font-size: 20px !important;
    }
    
    header .subtitle {
        font-size: 13px !important;
    }
    
    .sidebar {
        padding-left: 0;
        padding-top: 30px;
    }
}

@media (max-width: 480px) {
    #headerTitle img,
    header .logo img {
        max-height: 50px !important;
    }
    
    #headerTitle h1,
    #headerTitle h1 a,
    header .site-title {
        font-size: 17px !important;
    }
}