/* ===== RESET DASAR ===== */
html, body {
  height: 100%;
  margin: 0;
}

/* ===== BODY ===== */
body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: #f4f7fb;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #f8fbff, #e6f0ff);
  margin: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100vh;

  /* tambahan penting */
  display: flex;
  flex-direction: column;
}
s
/* ===== MAIN (BIAR FOOTER KE BAWAH) ===== */
main {
  flex: 1;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: medium;
    font-weight: 900;
    font-style: initial;
    color: #16160a;
    text-shadow:  
    -1px -1px 0 rgb(255, 255, 255),
     1px -1px 0 rgb(226, 222, 222),
     -1px 1px 0 rgb(255, 255, 255),
     1px 1px 0 rgb(255, 255, 255);
}

b {
    font-size: 900;
    text-shadow: #00c6ff;
}

h1 {
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(90deg, #0d6efd, #00c6ff);
  -webkit-text-fill-color: transparent;
  margin-bottom: 30px;
}

.judul {
  color: #000000;
  text-shadow: 
    -1px -1px 0 rgb(9, 9, 8),
     1px -1px 0 rgb(252, 254, 255),
     -1px 1px 0 rgb(6, 98, 103),
     1px 1px 0 rgb(12, 16, 233);
}

/* ===== LIST CARD ===== */
.list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* biar rapi di layar kecil */
}

/* ===== CARD ===== */
.card {
  width: 400px;
  text-decoration: none;
  color: black;
  border: 1px solid #ddd;
  padding: 10px;
  background: white;
}

.card img {
  width: 100%;
  height: auto;     /* ⬅ penting: biar gak gepeng */
  display: block;
}



/* ===== DETAIL PAGE ===== */
.detail img {
  width: 400px;
  max-width: 100%; /* biar aman di mobile */
  height: auto;
  margin-bottom: 20px;
}

/* ===== FOOTER ===== */
footer {/* ================= RESET & DASAR ================= */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
  padding: 20px;

  /* supaya footer ke bawah */
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
}

/* ================= HEADER & NAVBAR ================= */
header {
  color: white;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  color: white;
}

header h1 {
  margin: 0 0 10px 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* ================= MAIN ================= */
main {
  flex: 1; /* kunci footer di bawah */
  margin-top: 20px;
}

/* ================= LIST CARD ================= */
.list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ================= CARD ================= */
.card {
  width: 200px;
  text-decoration: none;
  color: black;
  border: 1px solid #ddd;
  padding: 10px;
  background: white;
  border-radius: 8px;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* gambar card */
.card img {
  width: 100%;
  height: auto; /* biar tidak gepeng */
  border-radius: 6px;
  display: block;
}

.card h3 {
  margin: 10px 0 0;
  font-size: 16px;
  text-align: center;
}

/* ================= DETAIL PAGE ================= */
.detail {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 700px;
}

.detail img {
  width: 400px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* ================= KELOLA DATA ================= */
section {
  background: white;
  padding: 20px;
  margin-top: 30px;
  border-radius: 10px;
}

input[type="text"] {
  padding: 8px;
  width: 220px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

button {
  background-color: #28a745;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #218838;
}

/* ================= FOOTER ================= */
footer {
  background-color: #0d6efd;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) 
{
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .list {
    justify-content: center;
  }

  .card {
    width: 90%;
  }
}
}
