/* Reset */
html, body {
  margin: 0;
  padding: 0;
}

/* Global Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Base */
body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  line-height: 1.6;
  color: #333;
}

/* Header */
.site-header {
  background: #007bff;
  color: #fff;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}
.site-header h2 {
  margin: 0;
}
.site-header a {
  color: #fff;
  margin-left: 15px;
  text-decoration: none;
}
.site-header a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: #f0f8ff;
  border-bottom: 1px solid #ddd;
}
.hero h1 {
  font-size: 32px;
  margin-bottom: 10px;
}
.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

/* Search Bar */
.search-bar {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.search-bar input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  min-width: 120px;
  font-size: 16px;
}
.search-bar span {
  align-self: center;
  font-weight: bold;
}
.search-bar button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}
.search-bar button:hover {
  background: #0056b3;
}

/* Kalkulator */
.calc-section {
  padding: 40px 0;
}
.calc-box {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.calc-box form {
  display: flex;
  flex-direction: column;
}
.calc-box label {
  margin-top: 10px;
  font-weight: bold;
}
.calc-box input, .calc-box button {
  padding: 12px;
  margin-top: 5px;
  border-radius: 6px;
  font-size: 16px;
}
.calc-box input {
  border: 1px solid #ccc;
}
.calc-box button {
  background: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
}
.calc-box button:hover {
  background: #0056b3;
}

/* Result */
.result-box {
  background: #fdfdfd;
  padding: 20px;
  border-left: 4px solid #007bff;
  border-radius: 5px;
  margin-bottom: 20px;
}

/* Content Grid */
.content-section {
  padding: 50px 0;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.card h3 {
  margin-top: 0;
  font-size: 18px;
  color: #007bff;
}
.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.card li {
  margin: 6px 0;
}
.card a {
  text-decoration: none;
  color: #007bff;
}
.card a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #333;
  color: #fff;
  margin-top: 40px;
}
.site-footer .container {
  text-align: center;
  padding: 20px;
}
.site-footer nav {
  margin-top: 10px;
}
.site-footer a {
  color: #fff;
  margin: 0 5px;
}

/* Responsif */
@media (max-width: 768px) {
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 16px; }
  .calc-box input, .calc-box button,
  .search-bar input, .search-bar button {
    font-size: 14px;
    padding: 10px;
  }
}

/* Category List (contoh page) */
.category-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.category-list li {
  margin: 10px 0;
}
.category-list a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}
.category-list a:hover {
  text-decoration: underline;
}

/* [Layout dasar agar footer nempel di bawah] */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* konten ngisi ruang, footer terdorong ke bawah */
}

/* [Formulir Kontak] */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

form label {
  font-weight: bold;
}

form input,
form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
  max-width: 500px;
}

form button {
  align-self: flex-start;
  background: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

form button:hover {
  background: #0056b3;
}
