/* CSS Reset & Basic Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Gold Theme */
.gold-text { color: #ffd700; }
.gold-border { border: 1px solid #ffd700; }
.gold-bg { background-color: #ffd700; color: #1a1a1a; }

/* --- HEADER --- */
header {
    background-color: #2c2c2c;
    padding: 10px 0;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    flex-wrap: wrap;
}
.logo img {
    height: 80px;
    width: auto;
    max-width: 240px;
    vertical-align: middle;
}
.login-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.login-form input { padding: 8px; border-radius: 5px; border: 1px solid #333; background-color: #fff; color: #000; }
.login-form .captcha { font-weight: bold; background-color: #fff; color: #000; padding: 6px 10px; border-radius: 7px; }
.btn { padding: 8px 15px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; text-transform: uppercase; }
.btn-login { background-color: #ffd700; color: #1a1a1a; }
.btn-daftar { background-color: transparent; color: #ffd700; border: 1px solid #ffd700; }

/* --- MENU NAVIGASI & SUBMENU --- */
.main-nav { background-color: #333; border-top: 1px solid #ffd700; }
.main-nav .container { display: flex; justify-content: center; align-items: center; }
#nav-menu { list-style: none; display: flex; flex-direction: row; }
#nav-menu li { position: relative; }

/* === PERUBAHAN 1: Gaya Teks Menu Navigasi === */
#nav-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    color: #ffd700; /* Warna diubah menjadi kuning emas */
    font-weight: 600; /* Dibuat lebih tebal (bold) */
    text-decoration: none;
    transition: background-color 0.3s;
    white-space: nowrap;
	text-transform: uppercase;
}
#nav-menu li a:hover, #nav-menu li a.active { background-color: #ffd700; color: #1a1a1a; }
.menu-toggle { display: none; background: none; border: none; color: #ffd700; font-size: 1.8em; cursor: pointer; }

/* Gaya Panah Bawah */
.arrow-down { font-size: 0.7em; transition: transform 0.3s ease; }
.has-submenu > a.active .arrow-down { transform: rotate(180deg); }

/* Gaya Submenu (Desktop) */
.submenu {
    list-style: none;
    display: none;
    position: absolute;
    top: 100%;
    left: 50%; 
    transform: translateX(-50%); 
    background-color: #3e3e3e;
    padding: 10px; /* Beri sedikit padding agar tidak terlalu mepet */
    border-radius: 0 0 5px 5px;
    z-index: 100;
    border-top: 2px solid #ffd700;
    width: max-content; 
    gap: 10px; /* Jarak antar item submenu */
}
.submenu.show {
    display: flex;
    flex-direction: row;
    align-items: center; /* Membuat item di submenu (logo & teks) sejajar di tengah */
}
.submenu li a {
    padding: 10px 15px;
    border-bottom: none;
    color: #f0f0f0;
    font-weight: normal;
}

/* === GAYA BARU: Untuk Logo di dalam Submenu === */
.submenu-logo {
    max-width: 120px;
    max-height: 120px;
    height: auto;
    display: block; /* Menghilangkan spasi ekstra di bawah gambar */
}
/* === AKHIR GAYA BARU === */

/* --- RUNNING TEXT BAR --- */
.sub-header { 
		display: flex; '
		justify-content: space-between; 
		align-items: center; 
		background-color: #111; 
		border-top: 1px solid #ffd700; 
		border-bottom: 1px solid #ffd700; 
		padding: 2px;
		overflow: hidden; /* Mencegah konten keluar dari container */
		white-space: nowrap; /* Mencegah item turun baris */
		box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Efek bayangan */
		margin: 0 auto;
		}
		
/* === PERUBAHAN 2: Gaya Teks Marquee === */
.running-text { 
    flex-grow: 1;
    color: #ffd700; /* Warna diubah menjadi kuning emas */
    font-weight: bold; /* Dibuat tebal */
}
.header-info { display: flex; align-items: center; gap: 15px; color: #ccc; margin-right: 10px; margin-left: 10px; }
.header-info .btn-link { padding: 5px 10px; background-color: maroon; color: #ffd700; text-decoration: none; border-radius: 5px; font-weight: bold; }

/* --- MAIN CONTENT --- */
main { padding: 20px 0; }
.slider-container { width: 100%; height: auto; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; border: 1px solid #ffd700; }
.slider-container img { max-width: 100%; max-height: 100%; object-fit: cover; }
.info-boxes { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.info-box { flex: 1; min-width: 180px; height: 100px; background-color: #2c2c2c; border: 1px solid #444; display: flex; flex-direction: column; justify-content: center; align-items: center; text-decoration: none; color: #f0f0f0; transition: transform 0.3s, border-color 0.3s; }
.info-box:hover { transform: translateY(-5px); border-color: #ffd700; }
.info-box .box-icon { font-size: 2em; margin-bottom: 10px; color: #ffd700; }
.info-box .box-text { font-weight: bold; }
.banner { width: 100%; height: auto; display: flex; margin-bottom: 20px; border: 1px solid #ffd700; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.5fr; gap: 15px; }
.product-item { position: relative; height: 200px; background-color: #2c2c2c; border: 1px solid #444; overflow: hidden; }
.product-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-item:hover img { transform: scale(1.1); }
.product-item .product-title { position: absolute; bottom: 0; left: 0; width: 100%; background-color: rgba(0, 0, 0, 0.7); color: #ffd700; padding: 10px; text-align: center; font-weight: bold; }
.product-item.large { grid-column: 4 / 5; }

/* --- FOOTER & FLOATING MENU --- */
footer { background-color: #2c2c2c; padding: 20px 0; margin-top: 30px; border-top: 2px solid #ffd700; }
.footer-seo { text-align: justify; margin-bottom: 20px; font-size: 0.9em; color: #ccc; }
.copyright { background-color: #111; text-align: center; padding: 10px 0; font-size: 0.8em; color: #888; }
.floating-menu { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 1000; }
.floating-item { width: 50px; height: 50px; border-radius: 50%; background-color: #ffd700; display: flex; justify-content: center; align-items: center; text-decoration: none; color: #1a1a1a; font-size: 1.5em; transition: transform 0.3s; }
.floating-item:hover { transform: scale(1.1); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .login-form { width: 100%; justify-content: center; margin-top: 10px; }
    .top-bar { flex-direction: column; gap: 10px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-item.large { grid-column: 1 / 3; }
	.clock { display: none; }
}

@media (max-width: 768px) {
    .main-nav .container { justify-content: space-between; flex-wrap: wrap; }
    .menu-toggle { display: block; }
    #nav-menu { flex-direction: column; width: 100%; display: none; }
    #nav-menu.show { display: block; }
    #nav-menu li a { border-bottom: 1px solid #444; }

    /* Perilaku Submenu di Mobile */
    .submenu {
        position: static;
        transform: none;
        width: 100%;
        background-color: #2a2a2a;
        border-top: none;
        padding-left: 20px;
    }
    .submenu.show {
        display: block;
    }
    .submenu li a {
        color: #ccc;
        font-size: 0.9em;
    }
	
	.clock { display: none; }

    .info-boxes { flex-direction: column; }
    .info-box { flex-direction: row; justify-content: flex-start; padding: 15px; gap: 15px; height: auto; }
    .info-box .box-icon { display: none; }
    .floating-menu { display: none; }
}

@media (max-width: 480px) {
    .login-form { flex-direction: column; align-items: stretch; }
    .product-grid { grid-template-columns: 1fr; }
    .product-item.large { grid-column: 1 / 2; }
    .sub-header { flex-direction: column; gap: 5px; }
	.clock { display: none; }
}