/* =======================================================
   STYLE FINAL - LAB TERPADU UGK
   ======================================================= */

:root {
    --primary: #004a99;
    --secondary: #0066cc;
    --accent: #f39c12;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    background-color: #fdfdfd; 
    color: var(--dark);
    line-height: 1.6;
}

.container-wide {
    width: 95%;
    max-width: 1200px; /* Standar ukuran Bootstrap yang pas, tidak terlalu lebar */
    margin: 0 auto;    /* Mengetengahkan konten */
    padding: 0 15px;
    
}

/* 1. HEADER & TOP BAR */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    padding: 10px 0;
}

.top-bar .container-wide {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info-left {
    display: flex;
    gap: 20px;
}

.top-info-left a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.top-info-left a:hover {
    color: var(--accent);
}

/* 2. NAVBAR SECTION */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0; /* Memberi ruang napas atas bawah */
}

/* BRAND / LOGO - DIKUNCI AGAR TIDAK JUMBO */
.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none;
    flex-shrink: 0; /* Mencegah logo tertekan menu */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02); /* Efek zoom sangat halus saat logo didekati kursor */
}

.logo-text {
    border-left: 2px solid #eee; /* Warna garis pembatas lebih lembut */
    padding-left: 15px;
    margin-left: 5px;
}

.logo img { 
    height: 60px; /* TINGGI DIKUNCI */
    width: auto; 
    object-fit: contain; 
}

.logo-text { 
    display: flex; 
    flex-direction: column; 
    border-left: 2px solid #ddd;
    padding-left: 15px;
}

.logo-text .title { 
    font-weight: 800; 
    font-size: 1.1rem; 
    color: var(--primary); 
    line-height: 1.1;
}

.logo-text .subtitle { 
    font-size: 0.75rem; 
    color: #7f8c8d; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* NAVIGATION MENU */
/* Tambahkan efek garis bawah halus saat hover di PC */
.main-nav a {
    position: relative;
    padding: 8px 12px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover::after {
    width: 70%; /* Garis muncul dari tengah saat hover */
}

.main-nav a:hover i {
    transform: translateY(-2px); /* Ikon sedikit melompat */
    transition: 0.3s;
}

/* Sticky Header yang lebih smooth */
.main-header {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Garis batas bawah sangat tipis */
}

.main-nav ul { 
    display: flex; 
    list-style: none; 
    gap: 15px;
    align-items: center;
}

.main-nav a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 600; 
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 7px;
}

.main-nav a i { 
    color: var(--primary); 
    font-size: 15px;
}

.main-nav a:hover { 
    background: #eef5ff; 
    color: var(--primary); 
}

/* LOGIN BUTTON */
.btn-admin {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 74, 153, 0.1);
    letter-spacing: 0.5px;
}

.btn-admin:hover {
    background: var(--secondary);
    box-shadow: 0 6px 15px rgba(0, 74, 153, 0.2);
    background: var(--secondary);
}

/* 3. Content Area */
.content-wrapper {
    padding-top: 30px;
    padding-bottom: 50px;
}

/* --- 4. FOOTER MODERN --- */
.main-footer {
    background: #1a252f; /* Warna biru gelap yang solid */
    color: #cbd5e0;
    padding: 60px 0 20px;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

/* Penyelarasan Logo Footer agar mirip Header */
.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: none;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 15px;
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.footer-subtitle {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #a0aec0;
    text-align: justify;
}

/* Kontak Styling */
.footer-contact h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.contact-list p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.contact-list i {
    color: var(--accent);
    margin-top: 4px;
    width: 20px;
}

.contact-list a {
    color: #cbd5e0;
    text-decoration: none;
    transition: 0.3s;
}

.contact-list a:hover {
    color: var(--white);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #718096;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar-container { flex-direction: column; gap: 15px; }
    .footer-grid { grid-template-columns: 1fr;gap: 30px; text-align: center; }
    .footer-about { align-items: center; }
    .footer-about p { text-align: center; }
}


.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1a237e;
    cursor: pointer;
}

.mobile-only { display: none; }

/* =======================================================
   PERBAIKAN MEDIA QUERY UNTUK HP (768px kebawah)
   ======================================================= */
@media screen and (max-width: 768px) {
    /* 1. Top Bar: Tampilkan Ikon Saja agar Hemat Tempat */
    .top-info-left { 
        display: none !important; 
    }
    .top-bar .container-wide {
        justify-content: center !important;
        text-align: center;
    }

    .top-info-right {
        display: block !important;
        font-size: 11px; /* Sedikit dikecilkan agar muat satu baris di HP kecil */
        letter-spacing: 1px;
    }
    /* 2. Navbar: Layout Baris (Logo di Kiri, Hamburger di Kanan) */
    .navbar-container {
        flex-direction: row !important; /* Paksa baris, jangan kolom */
        justify-content: space-between;
        padding: 10px 15px;
    }
    

    .logo img { height: 45px !important; }
    .logo-text .title { font-size: 14px !important; }
    .logo-text .subtitle { font-size: 10px !important; }

    /* 3. Munculkan Tombol Hamburger */
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    /* 4. Menu Navigasi Jadi Dropdown Full Screen */
    .main-nav {
        display: none; /* Sembunyi sebelum diklik */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        z-index: 1000;
        padding: 10px 0;
    }

    .main-nav.active {
        display: block; /* Muncul saat JS nambahin class 'active' */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li { width: 100%; }
    .main-nav ul li a {
        padding: 15px 25px;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        font-size: 16px;
        border-radius: 0;
    }

    /* Sembunyikan tombol login asli di HP agar tidak berantakan */
    .header-action { display: none; }
}

/* Tambahan Shadow Halus untuk kesan Modern di semua device */
.news-card, .news-img img, .detail-image-container img {
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
}