html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* full height */
}

.main-content {
    flex: 1; /* isi otomatis mendorong footer ke bawah */
}


.site-header {
    background: #222;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.site-header .subtext {
    margin-top: 10px;
    font-size: 1.2em;
    color: #ccc;
}

.search-section {
    padding: 40px 0;
    text-align: center;
    background: #fff;
}

.search-section input[type="text"] {
    width: 60%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}

.search-section button {
    padding: 12px 20px;
    font-size: 1em;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.features-section {
    padding: 80px 0;
    background: #fff;
}

.features-section .container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.features-section .feature {
    flex: 1 1 250px;
    max-width: 300px;
    text-align: center;
    padding: 20px;
}

.features-section .feature h2 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #142252;
    color: #fff;
    padding: 12px 20px;
    text-align: center;
    z-index: 9999;
}

/* basic reset */
* { box-sizing: border-box; margin:0; padding:0; }
body { font-family: Arial, Helvetica, sans-serif; background:#fff; color:#222; }

/* container helper */
.container { width: 95%; max-width:1200px; margin: 0 auto; }

/* NAVBAR */
.navbar {
    background: #142252;
    color: #fff;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    transition: box-shadow .25s ease, background .25s ease;
    position: fixed; /* fixed navbar */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

/* brand */
.nav-brand { display:flex; align-items:center; text-decoration:none; color:inherit; }
.nav-logo { width:40px; height:40px; object-fit:contain; margin-right:10px; }
.nav-title { line-height:1; }
.site-name { font-weight:700; font-size:16px; display:block; }
.site-sub { font-size:11px; opacity:0.85; }

/* desktop menu */
.nav-menu { list-style:none; display:flex; gap:20px; align-items:center; margin-left:20px; }
.nav-menu li a { color:#dcdcdc; text-decoration:none; font-size:15px; padding:8px 0; }
.nav-menu li a:hover { color:#fff; }

/* buttons */
.nav-buttons { display:flex; align-items:center; gap:10px; }
.search-btn { background:#0d6efd; color:#fff; padding:8px 12px; border-radius:6px; text-decoration:none; font-weight:600; }
.hamburger { display:none; background:transparent; border:0; color:#fff; font-size:20px; cursor:pointer; }

/* mobile menu */
.mobile-menu { display:none; flex-direction:column; background:#162b52; padding:8px 16px; }
.mobile-menu a { color:#fff; padding:10px 0; text-decoration:none; border-bottom:1px solid rgba(255,255,255,0.06); }

/* shadow when scrolled */
#navbar.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.25); }

/* give body top padding so content not hidden under fixed navbar */
#main-content { padding-top:72px; }

/* RESPONSIVE */
@media (max-width:900px) {
    .nav-menu { display:none; }
    .hamburger { display:block; }
    .search-btn { display:none; }
    .nav-title .site-name { font-size:14px; }
}






/* Grid yang lebih rapi dan terpusat */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom pada desktop */
    gap: 20px;
    padding: 20px;
    max-width: 1200px; /* Membatasi lebar grid */
    margin: 0 auto; /* Agar berada di tengah */
}

/* Agar lebih responsif pada layar kecil */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr; /* 1 kolom pada layar kecil */
    }
}

.hidden {
    display: none;
}

/* Menyembunyikan isi konten tool card tapi link tetap aktif */
.tool-card.hidden {
    display: none;  /* Sembunyikan seluruh tool-card */
}

.tool-card.hidden .tool-content {
    display: none; /* Sembunyikan konten tapi link tetap ada */
}

.tool-card {
    display: block; /* Menggunakan display block agar bisa menjadi link yang clickable */
}

.tool-card {
	text-decoration: none; /* Menghilangkan underline */
    color: inherit; /* Warna teks mengikuti warna parent */
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: 0.25s;
    cursor: pointer; /* Menandakan bisa diklik */
    justify-content: space-between;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    #width: 70px;
    #height: 70px;
    border-radius: 12px;
    background: #f8faff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 28px;
    color: #4169e1;
}

.tool-title {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #222;
}

.tool-desc {
    margin: 6px 0;
    color: #555;
    font-size: 14px;
}

.tool-tag {
    display: inline-block;
    background: #e6eeff;
    color: #4169e1;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
}


.features-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}



.feature {
    flex: 1;
    margin: 10px;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.feature h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature p {
    font-size: 1rem;
    color: #333;
}

.feature-image {
    width: 50px;
    height: 50px;
    margin-top: 20px;
}
